PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.16.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.16.0
2.16.0 2.15.0 2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 All 83 releases
← All changes | assets/build/blocks.js +1803 -1789 2.15.0 → 2.16.0 View file →
@@ -1,5 +1,5 @@
1 -(()=>{var t,e,i,o,a,l={76480(t,e,i){"use strict";i.d(e,{RS:()=>b,Xo:()=>a,b8:()=>r,rG:()=>o,z$:()=>n});const o=["ablocks/atomic-div","ablocks/atomic-flex","ablocks/atomic-grid","ablocks/atomic-text","ablocks/atomic-image","ablocks/atomic-svg"],a="__atomic",l=["styles","globalClasses","alignment","animation","animations","transitionDuration","customCSS","hideOn"],n=t=>o.includes(t),s=t=>void 0===t?void 0:JSON.parse(JSON.stringify(t)),r=(t={})=>{const e={};return l.forEach(i=>{void 0!==t[i]&&(e[i]=s(t[i]))}),e},b=(t={})=>{const e={};return l.forEach(i=>{e[i]=s(t[i])}),e}},84391(t,e,i){"use strict";i.d(e,{_:()=>Ae,G:()=>Le});var o=i(27723),a=i(47143),l=i(17463),n=i(14745),s=i(70866),r=i(58351),b=i(43271),c=i(21993),d=i(68761),u=i(88554);const p={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},...(0,d.D$)(),...(0,u.D$)("link"),...(0,c.D$)("alignment",!0,{value:"flex-start"}),...b.Ay};var m=i(2620),h=i(2489),g=i(74411),f=i(16867);const y={block_id:{type:"string",
1 +(()=>{var t,e,i,o,a,l={76480(t,e,i){"use strict";i.d(e,{RS:()=>b,Xo:()=>a,b8:()=>r,rG:()=>o,z$:()=>n});const o=["ablocks/atomic-div","ablocks/atomic-flex","ablocks/atomic-grid","ablocks/atomic-text","ablocks/atomic-image","ablocks/atomic-svg"],a="__atomic",l=["styles","globalClasses","alignment","animation","animations","transitionDuration","customCSS","hideOn"],n=t=>o.includes(t),s=t=>void 0===t?void 0:JSON.parse(JSON.stringify(t)),r=(t={})=>{const e={};return l.forEach(i=>{void 0!==t[i]&&(e[i]=s(t[i]))}),e},b=(t={})=>{const e={};return l.forEach(i=>{e[i]=s(t[i])}),e}},62598(t,e,i){"use strict";i.d(e,{_:()=>Ae,G:()=>Le});var o=i(27723),a=i(47143),l=i(17463),n=i(14745),s=i(70866),r=i(58351),b=i(43271),c=i(21993),d=i(68761),u=i(88554);const p={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},...(0,d.D$)(),...(0,u.D$)("link"),...(0,c.D$)("alignment",!0,{value:"flex-start"}),...b.Ay};var m=i(2620),h=i(2489),g=i(74411),f=i(16867);const y={block_id:{type:"string",
2 2 default:""},blockVersion:{type:"number",default:""},paragraph:{type:"string",source:"html",selector:".ablocks-paragraph-text"},dropCaps:{type:"boolean",default:!1,copyStyle:!0},dropCapsTextColor:{type:"string",default:"#0f2aff",copyStyle:!0},paragraphSize:{type:"string",default:"md",copyStyle:!0},textColor:{type:"string",default:"#000000",copyStyle:!0},...(0,c.D$)("alignment",!0,{value:"left"}),...(0,h.D$)("typography",!0),...(0,g.D$)("textShadow"),...(0,f.D$)("textStroke",!0),...b.Ay};var T=i(70399),H=i(25314);const M={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},videoSource:{type:"string",default:"youtube"},videoStartTime:{type:"number",default:0},videoEndTime:{type:"number",default:0},videoUrl:{type:"string",default:""},selfHostedURL:{type:"string",default:""},externalLink:{type:"boolean",default:!1},autoplay:{type:"boolean",default:!1},mute:{type:"boolean",default:!1},loop:{type:"boolean",default:!1},playerControl:{type:"boolean",default:!0},
3 3 downloadButton:{type:"boolean",default:!1},vimeoURL:{type:"string",default:"https://vimeo.com/1034907087"},youtubeURL:{type:"string",default:"https://www.youtube.com/watch?v=oh0NDa_oVuI&ab_channel=aBlocks"},privacyMode:{type:"boolean",default:!1},introTitle:{type:"boolean",default:!0},introPortrait:{type:"boolean",default:!0},introByline:{type:"boolean",default:!0},poster:{type:"string",default:""},preload:{type:"string",default:"metadata"},aspectRatio:{type:"string",default:"1.77777",copyStyle:!0},...(0,i(42314).D$)("cssFilter"),...b.Ay};var x=i(1168),k=i(11276),v=i(57654),_=i(77168),R=i(80241);const S={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},course_count:{type:"number",default:3},course_columns:{type:"number",default:3,copyStyle:!0},show_pagination:{type:"boolean",default:!0},difficulty_levels:{type:"array",default:[]},price_types:{type:"array",default:[]},order_by:{type:"string",default:"date"},course_order:{type:"string",default:"DESC"},
4 4 course_ids:{type:"array",default:[]},course_categories:{type:"array",default:[]},course_tags:{type:"array",default:[]},course_exclude_ids:{type:"array",default:[]},course_exclude_categories:{type:"array",default:[]},course_exclude_tags:{type:"array",default:[]},category_color:{type:"string",default:"#000",copyStyle:!0},category_hover_color:{type:"string",default:"#000",copyStyle:!0},title_color:{type:"string",default:"#333",copyStyle:!0},title_hover_color:{type:"string",default:"#333",copyStyle:!0},author_color:{type:"string",default:"#333",copyStyle:!0},author_hover_color:{type:"string",default:"#333",copyStyle:!0},rating_color:{type:"string",default:"#5a3d00",copyStyle:!0},rating_hover_color:{type:"string",default:"#5a3d00",copyStyle:!0},price_color:{type:"string",default:"#1a1a1a",copyStyle:!0},price_hover_color:{type:"string",copyStyle:!0,default:"#1a1a1a"},wish_icon_color:{type:"string",copyStyle:!0,default:"#999"},wish_icon_hover_color:{type:"string",copyStyle:!0,default:"#999"},
5 5 ...(0,h.D$)("cat_typography",!0),...(0,h.D$)("title_typography",!0),...(0,h.D$)("author_typography",!0),...(0,h.D$)("rating_typography",!0),...(0,h.D$)("price_typography",!0),...(0,v.D$)("card_background",!0),...(0,_.D$)("card_border",!0),...(0,R.D$)("card_margin",!0),...(0,R.D$)("card_hover_margin",!0),...(0,R.D$)("card_padding",!0),...(0,R.D$)("card_hover_padding",!0),...(0,v.D$)("wish_icon_background",!0),...b.Ay};var W=i(96931),P=i(53036),U=i(81568),j=i(75799),w=i(42377),z=i(80554);(0,w.D$)({attributeName:"avatarHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"px"}),(0,w.D$)({attributeName:"avatarWidth",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"px"}),(0,w.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px"});const C=(0,w.D$)({attributeName:"authorTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,
@@ -11,72 +11,72 @@
11 11 },iconBackgroundColor:{type:"string",default:"#eee",copyStyle:!0},thicknessColor:{type:"string",default:"#eee",copyStyle:!0},showAnimation:{type:"boolean",default:!0,copyStyle:!0},connectorAnimationColor:{type:"string",default:"#00ad6b",copyStyle:!0},contentBackgroundColor:{type:"string",default:"#eee",copyStyle:!0},showDate:{type:"boolean",default:!0,copyStyle:!0},showDateTablet:{type:"boolean",default:!0,copyStyle:!0},showDateMobile:{type:"boolean",default:!0,copyStyle:!0},dateFormat:{type:"string",default:"F j, Y",copyStyle:!0},dateColor:{type:"string",default:"#333333",copyStyle:!0},dateAlign:{type:"string",default:"left",copyStyle:!0},dateBackground:{type:"string",default:"#eee",copyStyle:!0},...at,...lt,...(0,w.D$)({attributeName:"thickness",isResponsive:!1,defaultValue:3,copyStyle:!0}),...nt,...(0,d.D$)("icon",{
12 12 path:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-up",hasNoSelectorOrSource:!0}),...(0,c.D$)("alignment",!0,{value:"left"}),...(0,h.D$)("dateTypography",!0),...(0,R.D$)("contentPadding",!0),...(0,R.D$)("datePadding",!0),...(0,_.D$)("dateBorder",!0),...b.Ay},rt={block_id:{type:"string"},blockVersion:{type:"number",default:""},headingTag:{type:"string",default:"h1"},heading:{type:"string",source:"text",selector:".ablocks-notice-title",default:"New Block Added"},isDismissible:{type:"boolean",default:!0},textColor:{type:"string",default:"",copyStyle:!0},backgroundColor:{type:"string",default:"#EFEFF0",copyStyle:!0},noticeClose:{type:"string",default:"oneTime",copyStyle:!0},
13 13 ...(0,d.D$)("icon",{path:"M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z",viewBox:"0 0 512 512",className:"far fa-window-close",size:20}),...(0,c.D$)("alignment",!0,{value:"left"}),...(0,h.D$)("typography",!0),...(0,g.D$)("textShadow"),...(0,u.D$)("link"),...(0,f.D$)("textStroke",!0),...(0,R.D$)("noticeHeaderPadding",!0),...b.Ay};var bt=i(58509),ct=i(91464),dt=i(28482),ut=i(14120);const pt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:""
14 14 },isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:"",copyStyle:!0},rowOddColorH:{type:"string",default:"",copyStyle:!0},rowEvenColor:{type:"string",default:"",copyStyle:!0},rowEvenColorH:{type:"string",default:"",copyStyle:!0},headerColor:{type:"string",default:"",copyStyle:!0},headerColorH:{type:"string",default:"",copyStyle:!0},bodyBg:{type:"string",copyStyle:!0},bodyBgH:{type:"string",copyStyle:!0},footerColor:{type:"string",default:"",copyStyle:!0},footerColorH:{type:"string",default:"",copyStyle:!0},borderCollapse:{types:"string",default:"collapse"},...b.Ay,...(0,_.D$)("border",!0)},mt={block_id:{type:"string",default:""},tagName:{type:"string",default:"td"},cellColor:{type:"string",default:"",copyStyle:!0},cellColorH:{type:"string",default:"",copyStyle:!0},rowSpan:{type:"string",default:"1"},colSpan:{type:"string",default:"1"},...(0,c.D$)("textAlignment",!0,{value:"left"})};var ht=i(74196),gt=i(8697),ft=i(18057);const yt={block_id:{type:"string",default:""
15 -},blockVersion:{type:"number",default:""},svgDrawColor:{type:"string",default:"gray",copyStyle:!0},duration:{type:"number",default:5,copyStyle:!0},...(0,d.D$)(),...(0,u.D$)("link"),...(0,c.D$)("alignment",!0,{value:"flex-start"}),...b.Ay};var Tt=i(60690),Ht=i(91664),Mt=i(46890);const xt={block_id:{type:"string",default:""},label:{type:"string",default:"Menu"},isSubMenu:{type:"boolean",default:!1},hasMegaMenu:{type:"boolean",default:!1},hasLink:{type:"boolean",default:!1},link:{type:"string",default:"#"},...(0,u.D$)("link")};var kt=i(91353),vt=i(29419);const _t={block_id:{type:"string"},dataCategory:{type:"string",default:""},...b.Ay};var Rt=i(68267),St=i(60273),Wt=i(88297);const Pt={block_id:{type:"string"},blockVersion:{type:"number",default:2},asset_url:{type:"string",default:"",copyStyle:!0},custom_url:{type:"string",default:"",copyStyle:!0},uploaded_json:{type:"object",default:""},trigger:{type:"string",default:"viewport",copyStyle:!0},hoverArea:{type:"string",default:"animation",
16 -copyStyle:!0},onHoverOut:{type:"string",default:"nothing",copyStyle:!0},reverse:{type:"bool",default:!1,copyStyle:!0},loop:{type:"bool",default:!1,copyStyle:!0},animationSpeed:{type:"number",default:1,copyStyle:!0},...(0,q.D$)("animationSource",!1,{value:"upload"}),...b.Ay};var Ut=i(71651),jt=i(81905),wt=i(22478),zt=i(56027),Ct=i(23731);const At={block_id:{type:"string",default:""},...b.Ay},Lt={block_id:{type:"string",default:""},qrValue:{type:"string",default:""},blockVersion:{type:"number",default:2},bgColor:{type:"string",default:"#FFF",copyStyle:!0},qrLevel:{type:"string",default:"M",copyStyle:!0},fgColor:{type:"string",default:"#000",copyStyle:!0},imageSrc:{type:"string",default:""},logoOpacity:{type:"number",default:.6},logoWidth:{type:"number",default:50},logoHeight:{type:"number",default:50},qrData:{type:"object",default:{},copyStyle:!0},imagevalue:{type:"object",default:{}},qrSize:{type:"number",default:250,copyStyle:!0},isImage:{type:"boolean",default:!1},excavateValue:{
17 -type:"boolean",default:!1},positionX:{type:"number",default:0},positionY:{type:"number",default:0},...(0,c.D$)("alignment",!0,{value:"left"}),...b.Ay};var Dt=i(58372),Nt=i(41607),It=i(62882),Vt=(i(4788),i(5230)),Ot=i(33206);const Yt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:(0,o.__)("Add Your Curvy Text Here","ablocks")},pathType:{type:"string",default:"wave"},isShowIcon:{type:"bool",default:!0,copyStyle:!0},strokeColor:{type:"string",default:"blue",copyStyle:!0},textColor:{type:"string",default:"black",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},textStrokeShow:{type:"bool",default:!1,copyStyle:!0},textStroke:{type:"number",default:0,copyStyle:!0},strokeTextColor:{type:"string",default:"black",copyStyle:!0},offsetControl:{type:"number",default:0},transition:{type:"number",default:1,copyStyle:!0},strokeWidth:{type:"number",default:1,copyStyle:!0},rotate:{type:"number",default:0,copyStyle:!0},iconSize:{
18 -type:"number",default:250},iconSvgPath:{type:"string",default:""},iconSvgViewBox:{type:"string",default:""},iconClass:{type:"string",default:""},...(0,c.D$)("alignment",!0,{value:"left"}),...(0,u.D$)("link",!0),...(0,h.D$)("typography",!0),...(0,g.D$)("textShadow"),...b.Ay};var Xt=i(86781);const Bt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},metaKey:{type:"string",default:""},linkAdd:{type:"boolean",default:!1},trimMode:{type:"boolean",default:!1},dynamicTextColor:{type:"string",default:"",copyStyle:!0},trimLimit:{type:"number",default:0},trimEndSymbol:{type:"string",default:""},...(0,h.D$)("dynamicTypography",!0),...(0,c.D$)("alignment",!0,{value:"left"}),...b.Ay};var Et=i(9233);const Ft=(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),qt={block_id:{type:"string",default:""},products_count:{type:"number",default:3},products_columns:{type:"number",default:3,
19 -copyStyle:!0},show_pagination:{type:"boolean",default:!0},price_types:{type:"array",default:[]},order_by:{type:"string",default:"date"},products_order:{type:"string",default:"DESC"},products_ids:{type:"array",default:[]},products_categories:{type:"array",default:[]},products_tags:{type:"array",default:[]},products_exclude_ids:{type:"array",default:[]},products_exclude_categories:{type:"array",default:[]},products_exclude_tags:{type:"array",default:[]},title_color:{type:"string",default:"#008DFF",copyStyle:!0},title_hover_color:{type:"string",default:" ",copyStyle:!0},price_color:{type:"string",default:" ",copyStyle:!0},price_hover_color:{type:"string",copyStyle:!0,default:" "},cart_button_color:{type:"string",default:"",copyStyle:!0},cart_button_hover_color:{type:"string",default:"",copyStyle:!0},cart_button_text_color:{type:"string",default:"",copyStyle:!0},cart_button_text_hover_color:{type:"string",default:"",copyStyle:!0},cart_button_transition:{type:"number",default:0,copyStyle:!0
20 -},...(0,w.D$)({attributeName:"buttonDriection",attributeObjectKey:"value",isResponsive:!0,defaultValue:"column",unitDefaultValue:"",hasUnit:!1,copyStyle:!0}),...(0,w.D$)({attributeName:"buttonGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),...Ft,...(0,h.D$)("cat_typography",!0),...(0,h.D$)("cart_button_typography",!0),...(0,h.D$)("title_typography",!0),...(0,h.D$)("author_typography",!0),...(0,h.D$)("rating_typography",!0),...(0,h.D$)("price_typography",!0),...(0,v.D$)("card_background",!0),...(0,_.D$)("card_border",!0),...(0,R.D$)("card_margin",!0),...(0,R.D$)("card_hover_margin",!0),...(0,R.D$)("card_padding",!0),...(0,R.D$)("card_hover_padding",!0),...(0,v.D$)("wish_icon_background",!0),...(0,_.D$)("cart_border",!0),...(0,c.D$)("titleTextAlign",!0,{value:"center"}),...(0,c.D$)("priceTextAlign",!0,{value:"center"}),...b.Ay},$t={block_id:{type:"string",default:""},form_title:{type:"string",
21 -default:"Log In into your Account"},username_label:{type:"string",default:"Username or Email Address"},username_placeholder:{type:"string",default:"Username or Email Address"},password_label:{type:"string",default:"Password"},password_placeholder:{type:"string",default:"Password"},remember_label:{type:"string",default:"Remember me"},login_button_label:{type:"string",default:"Log In"},reset_password_label:{type:"string",default:"Reset password"},show_logged_in_message:{type:"boolean",default:!0},customer_register_url:{type:"string",default:""},login_redirect_url:{type:"string",default:""},logout_redirect_url:{type:"string",default:""},login_btn_color:{type:"string",default:"#fff"},login_btn_bg_color:{type:"string",default:"#7B68EE"},login_btn_bg_hover_color:{type:"string",default:"#6F5DD6"},login_btn_hover_color:{type:"string",default:"#fff"},title_color:{type:"string",default:"#000"},title_hover_color:{type:"string",default:"#000"},input_field_label_color:{type:"string",default:"#333"
22 -},input_field_label_hover_color:{type:"string",default:"#333"},form_footer_title_color:{type:"string",default:"#000"},inputFieldColor:{type:"string",default:"#333"},inputFieldColorH:{type:"string",default:"#333"},input_field_bg_color:{type:"string",default:"#fff"},input_field_bg_hover_color:{type:"string",default:"#fff"},...(0,h.D$)("login_btn_typography",!0),...(0,h.D$)("title_typography",!0),...(0,h.D$)("input_field_label_typography",!0),...(0,h.D$)("form_footer_title_typography",!0),...(0,v.D$)("form_bg_color",!0),...(0,_.D$)("input_field_border",!0),...(0,_.D$)("form_border",!0),...(0,R.D$)("input_field_padding",!0),...(0,R.D$)("form_padding",!0),...b.Ay},Gt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},tableBackground:{type:"string",default:"",copyStyle:!0},tableBackgroundH:{type:"string",default:"",copyStyle:!0},tableTransition:{type:"number",default:0,copyStyle:!0},tableRowBackground:{type:"string",default:"",copyStyle:!0},tableRowBackgroundH:{
23 -type:"string",default:"",copyStyle:!0},thumbImage:{type:"number",default:120,copyStyle:!0},productTitleColor:{type:"string",default:"",copyStyle:!0},productTitleColorH:{type:"string",default:"",copyStyle:!0},productSubTiteColor:{type:"string",default:"",copyStyle:!0},productSubTiteColorH:{type:"string",default:"",copyStyle:!0},productPriceColor:{type:"string",default:"",copyStyle:!0},productPriceColorH:{type:"string",default:"",copyStyle:!0},...(0,h.D$)("tableHeaderTypography",!0),...(0,h.D$)("productTilteTypography",!0),...(0,h.D$)("productsubTitleTypography",!0),...(0,h.D$)("productPriceTypography",!0),...b.Ay};var Zt=i(78696);const Kt={block_id:{type:"string",default:""},selectTextcolor:{type:"string",default:"black"},selectTextcolorH:{type:"string",default:"black"},selectBackground:{type:"string",default:"white"},selectBackgroundH:{type:"string",default:"white"},selectWidth:{type:"number",default:236},...(0,R.D$)("selectPadding",!0),...(0,_.D$)("selectBorder",!0),...(0,
24 -h.D$)("selectTypography",!0)};var Jt=i(53490);const Qt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},...(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"%",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,h.D$)("buttonTypography",!0),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},te={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},buttonColor:{type:"string",default:"",copyStyle:!0},buttonColorH:{type:"string",default:"",copyStyle:!0},buttonBackground:{type:"string",default:"",copyStyle:!0},buttonBackgroundH:{type:"string",default:"",copyStyle:!0},...(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,
25 -defaultValue:100,unitDefaultValue:"%",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,h.D$)("buttonTypography",!0),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},ee={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},tableWidth:{type:"number",default:100},tableBackground:{type:"string",default:""},tableBackgroundH:{type:"string",default:""},tableColor:{type:"string",default:""},tableColorH:{type:"string",default:""},tableLastColorH:{type:"string",default:""},tableLastColor:{type:"string",default:""},tableLastBackground:{type:"string",default:""},tableLastBackgroundH:{type:"string",default:""},...(0,c.D$)("tableAlignment",!0,{value:"left"}),...(0,h.D$)("firstTableTypography",!0),...(0,h.D$)("lastTableTypography",!0),...b.Ay},ie={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleContentColor:{type:"string",default:""},titleContentColorH:{type:"string",default:""},
26 -detailsColor:{type:"string",default:""},detailsColorH:{type:"string",default:""},emailColor:{type:"string",default:""},emailColorH:{type:"string",default:""},...(0,h.D$)("titleContentTypography",!0),...(0,h.D$)("detailsTypography",!0),...(0,h.D$)("emailTypography",!0),...b.Ay},oe={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},address_color:{type:"string",default:""},address_hover_color:{type:"string",default:""},heading_color:{type:"string",default:""},heading_hover_color:{type:"string",default:""},...(0,h.D$)("address_typograhy",!0),...(0,h.D$)("heading_typograhy",!0),...b.Ay},ae={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},shipping_heading_color:{type:"string",default:""},shipping_heading_hover_color:{type:"string",default:""},shipping_address_color:{type:"string",default:"#000000"},shipping_address_hover_color:{type:"string",default:"#000000"},...(0,h.D$)("shipping_heading_typograhy",!0),...(0,
27 -h.D$)("shipping_address_typograhy",!0),...b.Ay},le={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},iconColor:{type:"string",default:"#111"},iconColorH:{type:"string",default:"#111"},countBg:{type:"string",default:"#008DFF"},countBgH:{type:"string",default:"#008DFF"},countColor:{type:"string",default:"#fff"},countColorH:{type:"string",default:"#fff"},...(0,h.D$)("countTypography",!0),...(0,R.D$)("padding",!0,{top:"0",right:"20",bottom:"0",left:"20"}),...b.Ay};var ne=i(57374),se=i(69993),re=i(90723);(0,w.D$)({attributeName:"imageWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"}),(0,w.D$)({attributeName:"imageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"});const be={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{
28 -type:"",default:0},titleColor:{type:"string",default:"#111"},titleColorH:{type:"string",default:"#111"},descriptionColor:{type:"string",default:"#111"},descriptionColorH:{type:"string",default:"#111"},isCustom:{type:"boolean",default:!1},...(0,h.D$)("titleTypography",!0),...(0,h.D$)("descriptionTypography",!0),...(0,_.D$)("border",!0),...b.Ay};var ce=i(62511),de=i(82424),ue=i(74748);const pe={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},label:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},...(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"%",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,h.D$)("buttonTypography",!0),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},me={block_id:{
29 -type:"string",default:""},blockVersion:{type:"number",default:2},label:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},...(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"%",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,h.D$)("buttonTypography",!0),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},he={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},id:{type:"number"},bookmark_text:{type:"string",default:"Bookmark"},bookmarked_text:{type:"string",default:"Bookmarked"},buttonColor:{type:"string",default:"#ffffff"},badgeFillColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:"#ea580c"},buttonBackgroundH:{type:"string",default:""},
30 -...(0,w.D$)({attributeName:"badgeSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:30,unitDefaultValue:"px",hasUnit:!0}),...(0,c.D$)("listAlignment",!0,{value:"flex-start"}),...(0,h.D$)("buttonTypography",!0),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},ge={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},id:{type:"number"},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},...(0,w.D$)({attributeName:"bandageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay};var fe=i(38652);const ye={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},
31 -user_id:{type:"number",default:0},show_label:{type:"boolean",default:!0},show_icon:{type:"boolean",default:!0},label_single:{type:"string",default:"Bookmark"},label_plural:{type:"string",default:"Bookmarks"},wrapper_class:{type:"string",default:"wrapper"},numberColor:{type:"string",default:""},...(0,c.D$)("countAlignment",!0,{value:"left"}),...b.Ay};var Te=i(6035),He=i(64608);const Me={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},text:{type:"string",default:"Upvote"},buttonColor:{type:"string",default:"#ffffff"},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:"#ea580c"},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},...(0,w.D$)({attributeName:"badgeSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:30,unitDefaultValue:"px",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"flex-start"}),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),
32 -...b.Ay},xe=(0,w.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),ke=(0,w.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),ve={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},transition:{type:"number",default:10,copyStyle:!0},showTitle:{type:"boolean",default:!0},iconColor:{type:"string",default:"",copyStyle:!0},fillColor:{type:"string",default:"",copyStyle:!0},titleColor:{type:"string",default:"",copyStyle:!0},bgColor:{type:"string",default:"",copyStyle:!0},activeIconColor:{type:"string",default:"",copyStyle:!0},activeFillColor:{type:"string",default:"",copyStyle:!0},activeTitleColor:{type:"string",default:"",copyStyle:!0},activeBGColor:{type:"string",default:"",copyStyle:!0},...(0,q.D$)("justificationAlign",!0,{value:"center"}),...(0,_.D$)("border",!0),...(0,_.D$)("activeBorder",!0),
33 -...(0,h.D$)("activeTitleTypography",!0),...(0,h.D$)("titleTypography",!0),...(0,R.D$)("padding",!0),...xe,...ke,post_id:{type:"number",default:0},show_label:{type:"boolean",default:!0},show_icon:{type:"boolean",default:!0},label_single:{type:"string",default:"Bookmark"},label_plural:{type:"string",default:"Bookmarks"},wrapper_class:{type:"string",default:"wrapper"},upvoteNumberColor:{type:"string",default:""},...(0,c.D$)("countAlignment",!0,{value:"left"}),...b.Ay};var _e=i(11053),Re=i(45352);const Se={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},post_id:{type:"number"},text:{type:"string",default:""},textColor:{type:"string",default:"#b300ef"},textColorH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},...(0,w.D$)({attributeName:"bandageHeight",
34 -attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",hasUnit:!0}),...(0,w.D$)({attributeName:"textGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,unitDefaultValue:"px",hasUnit:!0}),...(0,h.D$)("textTypography",!0),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay};var We=i(93240);const Pe={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},status:{type:"string",default:""},show_label:{type:"boolean",default:!0},show_icon:{type:"boolean",default:!0},label_single:{type:"string",default:"Bookmark"},label_plural:{type:"string",default:"Bookmarks"},wrapper_class:{type:"string",default:"claim-count-wrapper"},upvoteNumberColor:{type:"string",default:""},...(0,c.D$)("countAlignment",!0,{value:"left"}),...b.Ay};var Ue=i(99512);const je={button:l.A,heading:n.A,container:s.Ay,counter:r.Ay,icon:p,divider:m.Ay,
35 -paragraph:y,spacer:T.A,video:M,search:K.Ay,image:x.Ay,"taxonomy-listing":Xt.Ay,"image-scroll":k.Ay,"star-ratings":H.Ay,"academy-container":W.A,"academy-courses":S,"academy-course-media":P.Ay,"academy-course-curriculums":U.Ay,"academy-course-reviews":j.Ay,"academy-review-list":D,"academy-review-form":N.Ay,"academy-addition-info":I.Ay,"academy-course-instructor":V.Ay,"academy-course-description":O,"academy-enroll-content":Y.Ay,tabs:X.Ay,"tabs-child":{block_id:{type:"string",default:""},tabId:{type:"number",default:0}},accordion:B.Ay,"single-accordion":E.Ay,"image-comparison":F.Ay,"flip-box":$,toggle:G.Ay,"toggle-child":{block_id:{type:"string",default:""}},"social-shares":et.Ay,notice:rt,lists:Z.Ay,countdown:J.Ay,"image-hotspot":Q.A,"image-hotspot-child":tt.A,coupon:it,"content-timeline":ot.Ay,"content-timeline-child":st,carousel:bt.Ay,"dual-button":ct.A,"price-menu":dt.Ay,"price-menu-item":ut.Ay,table:pt,"table-row":{block_id:{type:"string",default:""},rowColor:{type:"string",
36 -default:"",copyStyle:!0},rowColorH:{type:"string",default:"",copyStyle:!0}},"table-cell":mt,modal:ht.Ay,"table-of-content":gt.Ay,map:ft.Ay,"svg-draw":yt,menu:Tt.Ay,"menu-child-mega":Ht.Ay,"menu-child-sub":Mt.A,"menu-item":xt,"info-box":kt.Ay,"filterable-cards":vt.Ay,"filterable-cards-item":_t,"stripe-button":Rt.A,"paypal-button":St.A,logout:Wt.Ay,"lottie-animation":Pt,chart:Ut.Ay,"advance-lists":jt.Ay,"advance-list-item":wt.Ay,"news-ticker":zt.Ay,marquee:Ct.Ay,"marquee-child":At,"qr-code":Lt,"loop-builder":Nt.A,"loop-template":It.Ay,"loop-filter":Vt.A,"text-path":Yt,"featured-image":Et.Ay,"scroll-to-top":Ot.Ay,player:Ue.Ay,breadcrumb:Dt.Ay,"dynamic-text":Bt,"storeengine-products":qt,"storeengine-login-form":$t,"storeengine-cart-list":Gt,"storeengine-coupon-form":Zt.Ay,"storeengine-product-filter":Kt,"storeengine-checkout-form":Jt.A,"storeengine-continue-button":Qt,"storeengine-checkout-button":te,"storeengine-cart-sub-table":ee,"storeengine-order-info":ie,"storeengine-billing-info":oe,
37 -"storeengine-shipping-info":ae,"storeengine-mini-cart":le,"storeengine-cart-notice":ne.A,"storeengine-product-gallery":se.Ay,"storeengine-product-summary":re.Ay,"storeengine-product-description":be,"storeengine-product-review":ce.Ay,"storeengine-funnel-checkout":de.Ay,"storeengine-funnel-offer":ue.Ay,"storeengine-funnel-accept":pe,"storeengine-funnel-decline":me,"ecm-bookmark-button":he,"ecm-bookmark-badge":ge,"ecm-bookmark-list":fe.A,"ecm-bookmark-count":ye,"ecm-reaction-list":Te.A,"ecm-reaction":He.Ay,"ecm-upvote":Me,"ecm-upvote-count":ve,"ecm-upvote-list":_e.A,"ecm-claim-button":Re.Ay,"ecm-claim-badge":Se,"ecm-claim-list":We.A,"ecm-claim-count":Pe};var we=i(76480),ze=i(72916);const Ce=(t,e={})=>{const i=(0,ze.qX)(),o=(0,ze.Mw)();if(!i&&!o)return t;const a={...t};for(const t of Object.keys(a)){const l=a[t],n=e[t];(i&&((0,ze.V4)(l)||(0,ze.V4)(n))||o&&((0,ze.yt)(l)||(0,ze.yt)(n)))&&delete a[t]}return a},Ae=()=>{const t=(0,
38 -a.select)("core/block-editor").getSelectedBlock()||{},{name:e="",attributes:i={}}=t,o=/^ablocks\//;if(!o.test(e))return;const l=JSON.parse(localStorage.getItem("aBlocksCopyPasteStyles")||"{}");if((0,we.z$)(e))return l[we.Xo]=(0,we.b8)(i),void localStorage.setItem("aBlocksCopyPasteStyles",JSON.stringify(l));const n=e.replace(o,"");l[n]={};const s=je?.[n];for(const t in i)s?.[t]?.copyStyle&&(l[n][t]=i[t]);const r=JSON.stringify(l);localStorage.setItem("aBlocksCopyPasteStyles",r)},Le=()=>{const t=(0,a.select)("core/block-editor").getSelectedBlock()||{},{name:e=""}=t,i=/^ablocks\//;if(!i.test(e))return;const l=JSON.parse(localStorage.getItem("aBlocksCopyPasteStyles")||"{}");if((0,we.z$)(e)){const e=l[we.Xo];if(!e)return(0,a.dispatch)("core/notices")?.createWarningNotice?.((0,o.__)("Copy styles from an atomic block first. Styles from other blocks cannot be pasted here.","ablocks"),{type:"snackbar"}),!1;const{clientId:i,attributes:n}=t;return void(0,
39 -a.dispatch)("core/block-editor").updateBlockAttributes(i,Ce((0,we.RS)(e),n))}const n=e.replace(i,""),s=l[n];if(!s)return!1;const{clientId:r,attributes:b}=t,c=je?.[n];for(const t in b)c?.[t]?.copyStyle&&!s?.[t]&&(s[t]=void 0);(0,a.dispatch)("core/block-editor").updateBlockAttributes(r,Ce(s,b))}},80777(t,e,i){"use strict";i.d(e,{A:()=>o});const o=class{constructor(t){if(this.ablocksAnimation=t,!this.ablocksAnimation||!t?.classList.contains("ablocks-invisible"))return;const e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(this.applyAnimation(t.target),e.unobserve(t.target))})},{threshold:.5});Array.isArray(t)||t instanceof NodeList?t.forEach(t=>{e.observe(t)}):t&&e.observe(t),window.addEventListener("resize",()=>this.handleResize(t))}applyAnimation(t){if(t.getAttribute("data-settings")){
40 -const e=JSON.parse(t.getAttribute("data-settings")),i=window.matchMedia(`(max-width: ${this.getBreakpoint("tablet")}) and (min-width: ${this.getBreakpoint("mobile")})`).matches,o=window.matchMedia(`(max-width: ${this.getBreakpoint("mobile")})`).matches;let a=e.animationType;if(i?a=e.animationTypeTablet||e.animationType:o&&(a=e.animationTypeMobile||e.animationType),t.style.visibility="visible","none"===a)return;t.style.setProperty("--animate-duration",`${e.animationDuration||1}s`),t.style.setProperty("--animate-delay",`${e.animationDelay||0}s`),t.classList.add("animate__animated","animate__"+a)}}handleResize(t){Array.isArray(t)||t instanceof NodeList?t.forEach(t=>{this.applyAnimation(t)}):t&&this.applyAnimation(t)}getBreakpoint(t){switch(t){case"tablet":return"800px";case"mobile":return"480px";default:return"1200px"}}}},67083(t,e,i){"use strict"
41 -;var o=i(74997),a=i(51609),l=i.n(a),n=i(46942),s=i.n(n),r=i(47143),b=i(52619),c=i(80241),d=i(57654),u=i(10131),p=i(5905),m=i(51317),h=i(4480),g=i(73249),f=i(76619),y=i(77168),T=i(19419),H=i(80554),M=i(36168);const x=(t,e="")=>{const i={_border:"border",_background:"background",_boxShadow:"box-shadow"},o=Object.keys(i).reduce((e,o)=>{const a=i[o];if(t?.[o]){const i=t?.[o]?.transitionDuration||"0";e.push(`${a} ${i}s ease`)}return e},[]),a=(0,M.Zy)(t?._padding,{unit:"px"}),l=(0,M.Zy)(t?._margin,{unit:"px"}),n=(0,M.Zy)(t?._border,{unitWidth:"px",unitWidthH:"px",unitRadius:"px",unitRadiusH:"px"}),s=o.join(",");return{...(0,c.qD)(l,"margin",e),...(0,c.qD)(a,"padding",e),...(0,T.qD)(t?._mask,e),...(0,d.qD)(t?._background,"background",e),...(0,y.qD)(n,e),...(0,p.qD)(t?._width,"width",e),...(0,m.qD)(t?._position,"position",e),...(0,h.qD)(t?._zIndex,"z-index",e),...(0,H.qD)(t?._boxShadow,"box-shadow",e),transition:s}},k=(t,e="")=>({...(0,d.a9)(t?._background,"background",e),...(0,
42 -y.a9)(t?._border,e),...(0,H.a9)(t?._boxShadow,e)}),v=(t,e="")=>({...(0,f.qD)({_hide_on_desktop:t?._hide_on_desktop,_hide_on_tablet:t?._hide_on_tablet,_hide_on_mobile:t?._hide_on_mobile},e)}),_=(t,e="")=>({...(0,g.qD)(t?._transform,"transform",e)}),R=(t,e="")=>({...(0,g.a9)(t?._transform,"transform",e)}),S=(t,e="")=>t._backgroundOverlay&&"backgroundOverlayType"in t._backgroundOverlay&&"none"!==t._backgroundOverlay.backgroundOverlayType?{...(0,u.td)(t?._backgroundOverlay,t?._border,"background",e)}:[],W=(t,e="")=>t._backgroundOverlay&&"backgroundOverlayTypeH"in t._backgroundOverlay&&"none"!==t._backgroundOverlay.backgroundOverlayTypeH?{...(0,u.fb)(t?._backgroundOverlay,t?._border,"background",e)}:[],P=(t,e="")=>({...(0,f.iR)({_hide_on_desktop:t?._hide_on_desktop,_hide_on_tablet:t?._hide_on_tablet,_hide_on_mobile:t?._hide_on_mobile},e)});var U=i(2489);const j=t=>{const e=(0,M.VA)().filter(t=>t.width>0&&"Tablet"!==t.id&&"Mobile"!==t.id),i={};if(!e.length)return i
43 -;const o=t("__ablocksphantom__")||{};return e.forEach(e=>{const a=t(e.suffix)||{},l={};Object.keys(a).forEach(t=>{o[t]!==a[t]&&(l[t]=a[t])}),Object.keys(l).length&&(i[e.suffix]={width:e.width,min:e.min||0,max:e.max||e.width,styles:l})}),i},w=(t,e)=>{const i=[];return t>0&&i.push(`(min-width:${t}px)`),e>0&&i.push(`(max-width:${e}px)`),i.join(" and ")},z=(t,e,i,o,a,l)=>{const n=parseInt(t.getBreakpoint("tablet"),10),s=parseInt(t.getBreakpoint("mobile"),10),r=[{width:n,min:0,max:n,styles:o},{width:s,min:0,max:s,styles:a}];Object.values(l).forEach(t=>r.push({width:parseInt(t.width,10),min:t.min||0,max:t.max||parseInt(t.width,10),styles:t.styles})),r.sort((t,e)=>e.width-t.width);const b=[],c=[];return r.forEach((o,a)=>{let l={...i};for(let t=0;t<a;t++)(0,M.N$)(r[t],o)&&(l={...l,...c[t]});const n=t.filterResponsiveStyles(l,o.styles||{});c[a]=n;const s=t.generateCSSForMediaQuery("bp",n);if(!s.trim())return;const d=t.minifyCSS(s),u=w(o.min,o.max)
44 -;d&&u&&b.push(`@media screen and ${u} { ${e} { ${d} } }`)}),b},C=class{customCSS="";constructor(t={},e){t.block_id=e,this.parentClass=`.editor-styles-wrapper .ablocks-block-${e}`,this.classStyles=[],this.attributes=t,t?._custom_css&&(this.customCSS=t?._custom_css);const i=(0,U.nx)(t);if(Object.keys(i).length>0){const t=document.querySelector(".editor-styles-wrapper");t&&(0,U.Kx)(i,t)}t?._margin&&(this.addClassStyles("{{WRAPPER}}",x(t),x(t,"Tablet"),x(t,"Mobile"),this.customDeviceMap(e=>x(t,e))),this.addClassStyles("{{WRAPPER}}:hover",k(t),k(t,"Tablet"),k(t,"Mobile")),this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop,{{WRAPPER}}.ablocks-hide-on-tablet,{{WRAPPER}}.ablocks-hide-on-mobile",v(t),v(t,"Tablet"),v(t,"Mobile")),this.addClassStyles("{{WRAPPER}}::before",S(t),S(t,"Tablet"),S(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover::before",W(t),W(t,"Tablet"),W(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover > .ablocks-block-container",R(t),R(t,"Tablet"),R(t,"Mobile")),
45 -this.addClassStyles("{{WRAPPER}} > .ablocks-block-container",_(t),_(t,"Tablet"),_(t,"Mobile"),this.customDeviceMap(e=>_(t,e))),this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop .ablocks-block-container,{{WRAPPER}}.ablocks-hide-on-tablet .ablocks-block-container,{{WRAPPER}}.ablocks-hide-on-mobile .ablocks-block-container",P(t),P(t,"Tablet"),P(t,"Mobile")));let o=(0,b.applyFilters)("ablocks.global.editorInlineCSS",null,t,this);o&&o.length&&o.map(t=>{this.addClassStyles(t?.className,t?.desktopStyles,t?.tabletStyles??{},t?.mobileStyles??{})})}addClassStyles(t,e,i={},o={},a={}){this.classStyles.push({className:t,desktopStyles:e,tabletStyles:i,mobileStyles:o,responsiveStyles:a})}customDeviceMap(t){return j(t)}generateCSS(){let t=this.classStyles.map(({className:t,desktopStyles:e,tabletStyles:i,mobileStyles:o,responsiveStyles:a})=>{const l=this.filterResponsiveStyles(e,i),n=this.filterResponsiveStyles({...e,...l
46 -},o),s=this.generateCSSForMediaQuery("desktop",e),r=this.generateCSSForMediaQuery("tablet",l),b=this.generateCSSForMediaQuery("mobile",n),c=this.minifyCSS(s),d=this.minifyCSS(r),u=this.minifyCSS(b),p=this.getParentSelector(t),m=[];return c&&m.push(`${p} { ${c} }`),a&&0!==Object.keys(a).length?m.push(...z(this,p,e,i,o,a)):(r!==s&&d&&m.push(`@media screen and (max-width: ${this.getBreakpoint("tablet")}) { ${p} { ${d} } }`),b!==r&&u&&m.push(`@media screen and (max-width: ${this.getBreakpoint("mobile")}) { ${p} { ${u} } }`)),m.join("\n\n")}).join("\n\n");return t+=this.getCustomCSS(),t.replace(/\s+/g," ")}getCustomCSS(){return this.customCSS.replace(/\bselector\b/g,this.parentClass)}generateCSSForMediaQuery(t,e){return 0===Object.keys(e).length?"":Object.keys(e).map(t=>`${t}: ${e[t]};`).join("\n")}getBreakpoint(t){const e="undefined"!=typeof window&&window.ABlocksGlobal&&window.ABlocksGlobal.breakpoints||{};switch(t){case"tablet":return`${e.tablet||800}px`;case"mobile":
47 -return`${e.mobile||480}px`;default:return"1200px"}}minifyCSS(t){return(t=(t=t.replace(/\/\*[\s\S]*?\*\//g,"")).replace(/\s+/g," ")).replace(/\s?([:,;{}])\s?/g,"$1")}getParentSelector(t){return this.parentClass?t.replaceAll("{{WRAPPER}}",this.parentClass):t}filterResponsiveStyles(t,e){const i={};for(const o in e)o in t&&t[o]===e[o]||(i[o]=e[o]);return i}},A=class{customCSS="";constructor(t={},e){t.block_id=e,this.parentClass=`.editor-styles-wrapper .ablocks-block-${e}`,this.classStyles=[],this.attributes=t,t?._custom_css&&(this.customCSS=t?._custom_css);const i=(0,U.nx)(t);if(Object.keys(i).length>0){const t=document.querySelector(".editor-styles-wrapper");t&&(0,U.Kx)(i,t)}t?._margin&&(this.addClassStyles("{{WRAPPER}}",x(t),x(t,"Tablet"),x(t,"Mobile"),this.customDeviceMap(e=>x(t,e))),this.addClassStyles("{{WRAPPER}}:hover",k(t),k(t,"Tablet"),k(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover",{...k(t),...R(t)},{...k(t,"Tablet"),...R(t,"Tablet")},{...k(t,"Mobile"),...R(t,"Mobile")}),
48 -this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop,{{WRAPPER}}.ablocks-hide-on-tablet,{{WRAPPER}}.ablocks-hide-on-mobile",v(t),v(t,"Tablet"),v(t,"Mobile")),this.addClassStyles("{{WRAPPER}}::before",S(t),S(t,"Tablet"),S(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover::before",W(t),W(t,"Tablet"),W(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover > .ablocks-block-container",R(t),R(t,"Tablet"),R(t,"Mobile")),this.addClassStyles("{{WRAPPER}} > .ablocks-block-container",_(t),_(t,"Tablet"),_(t,"Mobile"),this.customDeviceMap(e=>_(t,e))),this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop,{{WRAPPER}}.ablocks-hide-on-tablet,{{WRAPPER}}.ablocks-hide-on-mobile",P(t),P(t,"Tablet"),P(t,"Mobile")));let o=(0,b.applyFilters)("ablocks.global.editorInlineCSS",null,t,this);o&&o.length&&o.map(t=>{this.addClassStyles(t?.className,t?.desktopStyles,t?.tabletStyles??{},t?.mobileStyles??{})})}addClassStyles(t,e,i={},o={},a={}){this.classStyles.push({className:t,desktopStyles:e,tabletStyles:i,
49 -mobileStyles:o,responsiveStyles:a})}customDeviceMap(t){return j(t)}mediaCondition(t,e){return w(t,e)}generateCSS(){let t=this.classStyles.map(({className:t,desktopStyles:e,tabletStyles:i,mobileStyles:o,responsiveStyles:a})=>{const l=this.removeEmptyCss(e),n=this.filterResponsiveStyles(l,i),s=this.filterResponsiveStyles({...l,...n},o),r=this.generateCSSForMediaQuery("desktop",l),b=this.generateCSSForMediaQuery("tablet",n),c=this.generateCSSForMediaQuery("mobile",s),d=this.minifyCSS(r),u=this.minifyCSS(b),p=this.minifyCSS(c),m=this.getParentSelector(t),h=[];return d&&h.push(`${m} { ${d} }`),a&&0!==Object.keys(a).length?h.push(...z(this,m,l,i,o,a)):(b!==r&&u&&h.push(`@media screen and (max-width: ${this.getBreakpoint("tablet")}) { ${m} { ${u} } }`),c!==b&&p&&h.push(`@media screen and (max-width: ${this.getBreakpoint("mobile")}) { ${m} { ${p} } }`)),h.join("\n\n")}).join("\n\n");return t+=this.getCustomCSS(),t.replace(/\s+/g," ")}getCustomCSS(){
50 -return this.customCSS.replace(/\bselector\b/g,this.parentClass)}generateCSSForMediaQuery(t,e){return 0===Object.keys(e).length?"":Object.keys(e).map(t=>`${t}: ${e[t]};`).join("\n")}getBreakpoint(t){const e="undefined"!=typeof window&&window.ABlocksGlobal&&window.ABlocksGlobal.breakpoints||{};switch(t){case"tablet":return`${e.tablet||800}px`;case"mobile":return`${e.mobile||480}px`;default:return"1200px"}}minifyCSS(t){return(t=(t=t.replace(/\/\*[\s\S]*?\*\//g,"")).replace(/\s+/g," ")).replace(/\s?([:,;{}])\s?/g,"$1")}getParentSelector(t){return this.parentClass?t.replaceAll("{{WRAPPER}}",this.parentClass):t}removeEmptyCss(t){if(!t||"object"!=typeof t)return{};const e={};for(const i in t){const o=t[i];if("string"!=typeof o)continue;const a=o.trim();""===a||/^(px|em|rem|vh|vw|vmin|vmax|cm|mm|in|pt|pc|%)$/i.test(a)||(e[i]=a)}return e}filterResponsiveStyles(t,e){const i={};for(const o in e){let a=e[o];"string"==typeof a&&(a=a.trim(),
51 -""===a||/^(px|em|rem|vh|vw|vmin|vmax|cm|mm|in|pt|pc|%)$/i.test(a)||o in t&&t[o]===a||(i[o]=a))}return i}};var L=i(27723),D=i(94715),N=i(56427),I=i(10790);function V({title:t,initialOpen:e,children:i}){return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.PanelBody,{title:t,initialOpen:e,className:"ablocks-panel-body",children:i})})}V.propTypes={};var O=i(5556),Y=i.n(O);const X=t=>{const{label:e,icon:i,iconPosition:o,isDisabled:a,onClick:l,buttonStyle:n,className:r,buttonType:b,type:c="button",link:d,target:u,suffix:p,preset:m,buttonSize:h}=t,g=s()("ablocks-btn",{["ablocks-btn--"+p]:p,["ablocks-btn--"+m]:m,["ablocks-btn--"+o]:o,["ablocks-btn--"+h]:h,"ablocks-btn--primary":!b&&e,"ablocks-btn--secondary":"secondary"===b&&!a,"ablocks-btn--tertiary":"tertiary"===b&&!a,"ablocks-btn--primary-disabled":a&&!b,"ablocks-btn--secondary-disabled":a&&"secondary"===b,"ablocks-btn--tertiary-disabled":a&&"tertiary"===b});return"link"===c?(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("a",{href:d,
52 -className:r||g,onClick:l,disabled:a,style:n,rel:"noreferrer",target:u,children:[i&&"right"!==o?i:"",e&&(0,I.jsx)("span",{className:"ablocks-btn--label",children:e}),i&&"right"===o&&i]})}):(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("button",{type:c,className:r||g,disabled:a,onClick:l,style:n,children:["right"!==o&&i,e&&(0,I.jsx)("span",{className:"ablocks-btn--label",children:e}),"right"===o&&i]})})},B={tooltipText:Y().string,children:Y().node},E=t=>{const{tooltipText:e="",children:i="",position:o="top"}=t,[l,n]=(0,a.useState)(!1);return(0,I.jsxs)("div",{className:`ablocks-tooltip tooltip--${o}`,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},children:[l&&(0,I.jsx)("div",{className:"ablocks-tooltip__text ",children:e}),i]})};E.propsTypes=B;const F=E,q=(0,M.um)(Array.isArray(M.rI)&&M.rI.length?M.rI:[{id:"Desktop",label:"Desktop",suffix:"",width:0,min:0,max:0},{id:"Tablet",label:"Tablet",suffix:"Tablet",width:800,min:0,max:800},{id:"Mobile",label:"Mobile",suffix:"Mobile",width:480,
53 -min:0,max:480}]),$=["Desktop","Tablet","Mobile"],G=t=>"Tablet"===t?"tablet":"Mobile"===t?"mobile":"desktop";(0,r.select)(M.rb)||(0,r.register)((0,r.createReduxStore)(M.rb,{reducer(t={customDevice:null,devices:q},e){switch(e.type){case"SET_CUSTOM_DEVICE":return{...t,customDevice:e.device};case"SET_DEVICES":return{...t,devices:(0,M.um)(e.devices)};default:return t}},actions:{setCustomDevice:t=>({type:"SET_CUSTOM_DEVICE",device:t}),setDevices:t=>({type:"SET_DEVICES",devices:t})},selectors:{getCustomDevice:t=>t.customDevice,getDevices:t=>t.devices}}));const Z=()=>{const t=(0,r.select)(M.rb)?.getDevices?.();return Array.isArray(t)&&t.length?t:q},K=t=>{const e=t||{};let i=e.min||0;const o=e.max||0;if("strict"==("strict"===M.kF?"strict":"cascade")&&o>0&&i<1){const t=(t=>Z().reduce((e,i)=>{const o=i.max||0;return o>0&&o<t&&o>e?o:e},0))(o);t>0&&(i=t+1)}return{min:i,max:o}},J=t=>{const e=t||{};return e.max?e.max:e.min?e.min:99999},Q=t=>Z().filter(e=>{const{min:i,max:o}=K(e)
54 -;return!((i||o)&&(i&&t<i||o&&t>o))}),tt={fontSize:"14px",width:"14px",height:"14px"},et=(0,a.forwardRef)((t,e)=>{const{wpDevice:i,customDevice:o,devices:n}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||"Desktop",customDevice:t(M.rb)?.getCustomDevice()||null,devices:t(M.rb)?.getDevices()||[]}),[]),s="Desktop"!==i?i:o||"Desktop",b=n.find(t=>t.id===s)||n[0]||{id:"Desktop"},[c,d]=(0,a.useState)(!1),u=(0,a.useRef)(null),p=()=>{d(!c)},m=t=>{u?.current&&!u?.current?.contains(t.target)&&d(!1)};(0,a.useEffect)(()=>(document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)),[]);const h=t=>$.includes(t.id)?(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--${G(t.id)}`}):(0,I.jsx)("span",{className:"dashicons dashicons-editor-expand",style:tt}),g=t=>$.includes(t.id)?t.label+(t.width?` (≤${t.width}px)`:""):`${t.width}px`,f=$.includes(b.id);return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(N.ButtonGroup,{
55 -className:"ablocks-responsive-navigation",children:[(0,I.jsx)(X,{onClick:p,ref:e,title:f?void 0:g(b),icon:f?h(b):(0,I.jsx)(F,{tooltipText:g(b),position:"bottom",children:h(b)})}),(0,I.jsx)("div",{className:`ablocks-responsive-navigation__dropdown-items ${c&&"ablocks-responsive-navigation__dropdown--is-open"}`,ref:u,children:n.map(t=>{const e=$.includes(t.id);return(0,I.jsx)(X,{className:s===t.id?"is-active":"",onClick:()=>(t=>{$.includes(t.id)?((0,r.dispatch)(M.rb).setCustomDevice(null),(0,r.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType(t.id)):((0,r.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType("Desktop"),(0,r.dispatch)(M.rb).setCustomDevice(t.id)),p()})(t),title:e?void 0:g(t),icon:(0,I.jsx)(F,{tooltipText:g(t),position:"right",children:h(t)})},t.id)})})]})})});et.propTypes={};const it=et,ot={label:Y().string,isResponsive:Y().bool,isHeader:Y().bool,affordance:Y().node};function at({label:t,isResponsive:e=!0,isHeader:i=!1,affordance:o=null}){
56 -return i?(0,I.jsx)("div",{className:"ablocks-component-control-header",children:t}):t||o?(0,I.jsxs)("div",{className:"ablocks-component-control-label",children:[(0,I.jsx)("span",{className:"ablocks-component-control-label__label",children:t}),e&&(0,I.jsx)(it,{}),o&&(0,I.jsx)("span",{className:"ablocks-component-control-label__affordance",children:o})]}):null}at.propTypes=ot;const lt=()=>{const{wpDevice:t,customDevice:e,devices:i}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||"Desktop",customDevice:t(M.rb)?.getCustomDevice()||null,devices:t(M.rb)?.getDevices()||[]}),[]),o="Desktop"!==t?t:e||"Desktop",a=i.find(t=>t.id===o);return a?a.suffix:"Desktop"===o?"":o},nt={options:Y().array,attributeObjectKey:Y().string,defaultValue:Y().string,attributeName:Y().string,onChangeHandler:Y().func,isResponsive:Y().bool,attributeDefaultValue:Y().object,setAttributes:Y().func,getAttributeDefaultValue:Y().func,attributeValue:Y().any},st=[{value:"px",label:"px"
57 -},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],rt=(0,a.forwardRef)(({options:t=st,attributeValue:e,attributeName:i,onChangeHandler:o,attributeObjectKey:l="",getAttributeDefaultValue:n,setAttributes:s,isResponsive:r=!0,attributeDefaultValue:b={}},c)=>{const d=lt(),[u,p]=(0,a.useState)(!1),m=(0,a.useRef)(null),h=()=>{p(!u)},g=t=>{m?.current&&!m?.current?.contains(t.target)&&p(!1)};(0,a.useEffect)(()=>(document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)),[]);return(0,I.jsxs)("div",{className:"ablocks-unit-select",ref:m,children:[(0,I.jsx)(X,{onClick:h,ref:c,label:(()=>{const i="function"==typeof n?n(r):void 0,o=b&&Object.keys(b).length>0?b:i,a=(0,M.Ic)(o,l,d);if(r){return(0,M.Ic)(e,l,d)||a}return e&&"object"==typeof e&&e[l]?e[l]:a||t?.[0]?.value||""})(),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"}),iconPosition:"right"}),(0,I.jsx)("div",{
58 -className:`ablocks-unit-select__dropdown-items ${u&&"ablocks-unit-select__dropdown--is-open"}`,children:t.map((t,a)=>(0,I.jsx)(X,{onClick:()=>{var a,c;a=t.value,c=d,o?o(a,r?l+c:l):((t,o)=>{r?s({[i]:(0,M.jI)(b||n(r),{...e,[l+o]:t})}):(0,M.Gv)(e)?s({[i]:{...e,[l]:t}}):s({[i]:t})})(a,c),h()},label:t.label},a))})]})});rt.propTypes=nt;const bt=rt,ct={attributeName:Y().string,deviceType:Y().string,attributeValue:Y().any,changeHandler:Y().func,setAttributes:Y().func,isResponsive:Y().bool,attributeObjectKeySuffix:Y().string,isDefaultLinked:Y().bool,isDisableLeftRight:Y().bool};function dt({attributeValue:t,attributeName:e="",deviceType:i="",changeHandler:o,setAttributes:a,isResponsive:l,attributeObjectKeySuffix:n="",isDefaultLinked:s=!0,isDisableLeftRight:r=!1}){const b=l&&i,d=e=>i=>{const o=t["common"+n+i];return(0,M.a4)(o)?o:t[e+n+i]},u=void 0!==t?.["isLinked"+n+i]?t?.["isLinked"+n+i]:s,p=t=>{const e=d(t)(i);return(0,M.a4)(e)?e:""},m=t=>{if(!b)return"";const e=(0,M.By)(i,d(t),{includeSelf:!1
59 -});return void 0===e?"":String(e)},h=(t,e)=>({...t,["top"+n+i]:e,["right"+n+i]:e,["bottom"+n+i]:e,["left"+n+i]:e}),g=(t,e)=>{o(t,u?"common"+n:e+n)};return(0,I.jsxs)("div",{className:"ablocks-control__fields",children:[(0,I.jsxs)("div",{className:"ablocks-control__field",children:[(0,I.jsx)(N.TextControl,{id:`ablocks-${e}-top`,className:"ablocks-dimension-control__input ablocks-dimension-control__input--top",type:"number",onChange:t=>g(t,"top"),placeholder:m("top"),value:p("top")}),(0,I.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-top`,children:(0,L.__)("Top","ablocks")})]}),(0,I.jsxs)("div",{className:"ablocks-control__field",children:[(0,I.jsx)(N.TextControl,{id:`ablocks-${e}-right`,className:"ablocks-dimension-control__input ablocks-dimension-control__input--right",type:"number",onChange:t=>g(t,"right"),placeholder:m("right"),value:r?"":p("right"),disabled:r}),(0,I.jsx)("label",{className:"ablocks-dimension-control__label",
60 -htmlFor:`ablocks-${e}-right`,children:(0,L.__)("Right","ablocks")})]}),(0,I.jsxs)("div",{className:"ablocks-control__field",children:[(0,I.jsx)(N.TextControl,{id:`ablocks-${e}-bottom`,className:"ablocks-dimension-control__input ablocks-dimension-control__input--bottom",type:"number",onChange:t=>g(t,"bottom"),placeholder:m("bottom"),value:p("bottom")}),(0,I.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-bottom`,children:(0,L.__)("Bottom","ablocks")})]}),(0,I.jsxs)("div",{className:"ablocks-control__field",children:[(0,I.jsx)(N.TextControl,{id:`ablocks-${e}-left`,className:"ablocks-dimension-control__input ablocks-dimension-control__input--left",type:"number",onChange:t=>g(t,"left"),placeholder:m("left"),value:r?"":p("left"),disabled:r}),(0,I.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-left`,children:(0,L.__)("Left","ablocks")})]}),(0,I.jsx)("div",{className:"ablocks-control__field ablocks-control__field--control",
61 -children:(0,I.jsx)(X,{className:u?"ablocks-btn-Linked":"ablocks-btn-unlinked",icon:(0,I.jsx)(F,{tooltipText:(0,L.__)("Link Value Together","ablocks"),position:"bottom-left",children:(0,I.jsx)("span",{className:"ablocks-icon "+(u?"ablocks-icon--link":"ablocks-icon--unlink")})}),onClick:()=>{let o={};if(u){const e=p("top");o=h(t,e),o["common"+n+i]=""}else{const e=["top","right","bottom","left"].map(p).find(M.a4)??"";o=h(t,""),o["common"+n+i]=e}o["isLinked"+n+i]=!u,a({[e]:(0,M.jI)((0,c.tJ)(i),o)})}})})]})}dt.propTypes=ct;const ut=dt,pt=({figmaPasteBtnClickHandler:t=()=>{},position:e="top"})=>(0,I.jsx)("div",{className:"ablocks-figma-styles-paster-component-wrapper",children:(0,I.jsx)(F,{tooltipText:(0,L.__)("paste figma styles","ablocks"),position:e,children:(0,I.jsx)("span",{role:"presentation",onClick:async()=>{try{if("http:"===window.location.protocol)return(0,M.An)({message:(0,L.__)('Error! cannot access copied data in "http" protocol. Please use "https"',"ablocks"),config:{
62 -id:"ablocks-notice-figma-paste-ssl-notice"}}),!1;const e=await(navigator.clipboard?.readText?.());t(e)}catch(t){console.error("Failed to read clipboard contents: ",t),(0,M.An)({message:(0,L.__)("Failed to read clipboard contents. more info: ","ablocks")+t,config:{id:"ablocks-notice-figma-paste-try-catch-error"}})}},className:"ablocks-icon ablocks-icon--paste figma-paste-btn"})})}),mt=t=>t.replace(/var\(\s*--[\w-]+,\s*([^\)]+)\)/g,"$1"),ht=(t,e)=>{const i="box"===e?/box-shadow\s*:\s*([^;]+);/:/text-shadow\s*:\s*([^;]+);/,o=t.match(i);if(!o)return null;let a=o[1].trim();const l={horizontal:0,vertical:0,blur:0,color:""};"box"===e&&(l.shadowType="outer_shadow",l.shadow="",l.spread=0,a.includes("inset")&&(l.shadowType="inner_shadow",a=a.replace("inset","").trim()));const n=a.match(/(-?\d+(?:px)?(?=\s|$))|rgba?\([^)]+\)|#[0-9A-Fa-f]{3,8}/g);if(!n)throw new Error("Invalid text-shadow format");const s=n.pop();l.color=s;const[r,b,c=0,d=0]=n;return l.horizontal=parseInt(r),
63 -l.vertical=parseInt(b),l.blur=parseInt(c),"box"===e&&(l.spread=parseInt(d),l.shadow=`${r} ${b} ${c} ${d} ${s}`),l},gt=t=>{const e={},i=[...t.matchAll(/border(?:-(top|right|bottom|left))?:\s*(\d*\.?\d+)([a-z%]*)\s*(solid|dotted|dashed|double|groove|ridge|inset|outset|none|hidden)\s*(#[0-9a-fA-F]{3,6}|rgba?\([\d\s.,%]+\)|hsla?\([\d\s.,%]+\)|var\([^)]+\s*,\s*([#a-zA-Z0-9(),.%\s]+)\))?/g)];let o=null;return i.forEach(t=>{const i=t[1],a=t[2],l=t[3],n=t[4],s=t[5]||t[6];o||(o=l),i?(e[`${i}Width`]=a,e.unitWidth=l,e.isLinkedWidth=!1):(e.commonWidth=a,e.unitWidth=l),e.borderStyle=n,s&&(e.borderColor=s)}),e?.borderColor&&(e.borderColor=e.borderColor.match(/#[0-9a-fA-F]{3,8}|rgba?\([\d\s.,%]+\)|hsla?\([\d\s.,%]+\)/)?.[0]),e},ft=t=>{const e={unitRadius:null,isLinkedRadius:null},i=/var\([^,]+,\s*([\d.]+(?:px|em|rem|%))\)/;function o(t){const e=t.match(i);return e?e[1]:t}
64 -const a=t.match(/border-radius:\s*(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?)(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?;/);if(a){const[t,i,l,n]=a,s=o(t),r=o(i||s),b=o(l||s),c=o(n||r),d=s.match(/(px|em|rem|%)/);return e.unitRadius=d?d[1]:null,i?(e.topRadius=s.replace(e.unitRadius,""),e.rightRadius=r.replace(e.unitRadius,""),e.bottomRadius=b.replace(e.unitRadius,""),e.leftRadius=c.replace(e.unitRadius,""),e.isLinkedRadius=!1):(e.commonRadius=s.replace(e.unitRadius,""),e.isLinkedRadius=!0),e}const l=[...t.matchAll(/border-(top-left|top-right|bottom-right|bottom-left)-radius:\s*(var\([^)]+\)|[\d.]+(?:px|em|rem|%));/g)];return l.length>0?(l.forEach(t=>{const i=t[1],a=o(t[2]),l=a.match(/(px|em|rem|%)/);switch(e.unitRadius=e.unitRadius||(l?l[1]:null),i){case"top-left":e.topRadius=a.replace(e.unitRadius,"");break;case"top-right":e.rightRadius=a.replace(e.unitRadius,"");break;case"bottom-right":
65 -e.bottomRadius=a.replace(e.unitRadius,"");break;case"bottom-left":e.leftRadius=a.replace(e.unitRadius,"")}}),e.isLinkedRadius=!1,e):e},yt=(t,e)=>{let i;switch(e){case"typography":{const e={},o=(t=mt(t)).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").trim().split(";").map(t=>t.trim()).filter(t=>t);o.forEach(t=>{let[i,o]=t.split(":").map(t=>t.trim().replace(/[\"\']/g,""));/font\-family/.test(i)&&o.includes(",")&&(o=o.split(",")[0]),[i].includes(i)&&i&&o&&(e[i]=(t=>{const e=t.match(/^(-?\d*\.?\d+)([a-z%]+)$/i);if(e){const[,t,i]=e;return{value:parseFloat(t),unit:i}}return t})(o))}),i=e}break;case"text-shadow":i=ht(t,"text");break;case"box-shadow":i=ht(t,"box");break;case"color-gradient":{const e=/(linear-gradient|radial-gradient|conic-gradient|repeating-linear-gradient|repeating-radial-gradient)\(([^;]*)\)/i,o=/(?:color|background(?:-image|-color)?)\s*:\s*(?:var\([^\)]+,\s*)?(#[0-9a-fA-F]{3,8}|rgba?\([^\)]+\)|hsla?\([^\)]+\))/i;let a="";const l=t.match(e);if(l)a=l[0];else{const e=t.match(o)
66 -;e&&(a=e[1])}i=a}break;case"margin":case"padding":i=((t,e)=>{t=mt(t);const i=new RegExp(`${e}(?:-(top|right|bottom|left))?\\s*:\\s*(\\d+)(px|em|rem|%)?`,"g"),o={top:null,right:null,bottom:null,left:null};let a,l=null,n=[];for(;null!==(a=i.exec(t));){const i=a[1],s=a[2],r=a[3]||"px";if(l){if(l!==r)return null}else l=r;i?o[i]=s:n=t.match(new RegExp(`\\b${e}\\s*:\\s*(\\d+)(px|em|rem|%)?(\\s+\\d+(px|em|rem|%)?){0,3}`))[0].replace(new RegExp(`${e}\\s*:\\s*`),"").split(/\s+/)}if(n.length){const t=n.map(t=>`${parseInt(t)}`);switch(t.length){case 1:o.top=o.right=o.bottom=o.left=t[0];break;case 2:o.top=o.bottom=t[0],o.right=o.left=t[1];break;case 3:o.top=t[0],o.right=o.left=t[1],o.bottom=t[2];break;case 4:o.top=t[0],o.right=t[1],o.bottom=t[2],o.left=t[3]}}if(o.top===o.right&&o.right===o.bottom&&o.bottom===o.left)return{common:o.top,unit:l};const s={isLinked:!1,unit:l};return(o.top||0===o.top)&&(s.top=o.top),(o.right||0===o.right)&&(s.right=o.right),(o.bottom||0===o.bottom)&&(s.bottom=o.bottom),
67 -(o.left||0===o.left)&&(s.left=o.left),s})(t,e);break;case"border":i={...gt(t)||{},...ft(t)||{}};break;default:i={}}return i},Tt={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,styleType:Y().string,attributeValue:Y().any,setAttributes:Y().func,onChangeHandler:Y().func,attributeObjectKeySuffix:Y().string,isDisableLeftRight:Y().bool},Ht=[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],Mt=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}];function xt(t){const{styleType:e,isResponsive:i=!0,attributeName:o,attributeValue:a,onChangeHandler:n,setAttributes:s,label:r="",attributeObjectKeySuffix:b="",isDisableLeftRight:d=!1}=t,u=lt(),p={attributeValue:a,deviceType:u,isResponsive:i,changeHandler:(t,e)=>{n?n(t,i?e+u:e):((t,e)=>{s({[o]:(0,M.jI)((0,c.tJ)(i),{...a,[e+(i?u:"")]:t})})})(t,e)},isDisableLeftRight:d},m=b.includes("Radius")?Mt:Ht,h=()=>e?(0,I.jsx)(pt,{figmaPasteBtnClickHandler:t=>{const i=yt(t,e)
68 -;Object.values(i||{}).some(t=>t)?(s({[o]:i}),(0,M.An)({message:`${e} Style Successfully Pasted`,config:{id:"ablocks-notice-figma-paste-margin-padding-success-notice",type:"snackbar"}})):(0,M.An)({message:`Copy/Paste Failed: Wrong ${e} style`,config:{id:"ablocks-notice-figma-paste-margin-padding-error-notice",type:"snackbar"}})}}):(0,I.jsx)(I.Fragment,{});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-control ablocks-control--dimensions",children:[(0,I.jsxs)("div",{className:"ablocks-control__head",children:[r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:r,isResponsive:i}),(0,I.jsx)(h,{})]}),(0,I.jsx)(bt,{attributeName:o,attributeObjectKey:"unit"+b,attributeValue:a,setAttributes:s,getAttributeDefaultValue:c.tJ,options:m})]}),(0,I.jsx)(ut,{...p,attributeName:o,setAttributes:s,isDefaultLinked:a?.["isLinked"+b+(i?u:"")],attributeObjectKeySuffix:b})]})})}xt.propTypes=Tt;const kt={isResponsive:Y().bool,min:Y().number,max:Y().number,label:Y().string,
69 -attributeName:Y().string,attributeObjectKey:Y().string,attributeValue:Y().any,onChangeHandler:Y().func,isInline:Y().bool,hasUnit:Y().bool,unitOptions:Y().array,attributeDefaultValue:Y().any,autoSyncRange:Y().bool,attributeDataType:Y().string,unitDefaultValue:Y().string},vt=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}];function _t(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:r="",min:b=-1e3,max:c=1e3,attributeObjectKey:d="value",step:u,isInline:p=!0,hasUnit:m=!1,unitOptions:h=vt,attributeDefaultValue:g,unitDefaultValue:f="px",autoSyncRange:y=!0,attributeDataType:T=""}=t,H=lt(),x=(0,M.Bn)(g,i);let k;if(m&&!u){const t=o?.[e?d+"Unit"+H:d+"Unit"];let i="";""!==t&&void 0!==t||(i=(0,M.Ic)(o,"valueUnit",H)),k="em"===t||"rem"===t||"em"===i||"rem"===i?.1:1}const v=e?(0,M.Ic)(o,d,H,x):!e&&m?(0,M.Ic)(o,d):e||m||"object"!==T?o:(0,M.Ic)(o,d),_=m&&(()=>{let t
70 -;return t=e&&m?d+"Unit"+H:!e&&m?`${d}Unit`:!m&&e?d+H:d,o[t]?o[t]:(0,M.Ic)(o,`${d}${m?"Unit":""}`,H)||f})();let R=b,S="%"===_||"vw"===_?100:c;return y&&("px"===_?(S=c,R=0):"%"===_||"vw"===_||"vh"===_?(S=100,R=0):"rem"!==_&&"em"!==_||(S=10,R=.1)),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:s()("ablocks-control ablocks-control--range",{"ablocks-control--inline":p}),children:[(0,I.jsxs)("div",{className:"ablocks-control__head",children:[r&&(0,I.jsx)(at,{label:r,isResponsive:e}),m&&(0,I.jsx)(bt,{attributeName:i,attributeObjectKey:d+"Unit",attributeValue:o,setAttributes:n,attributeDefaultValue:x,options:h,isResponsive:e})]}),(0,I.jsx)(N.RangeControl,{value:v,onChange:t=>((t,l)=>{if(a){let o;o=e||"object"!==T?e?`${d}${l}`:i||d:d,a(t,o)}else((t,a)=>{n(e?{[i]:(0,M.jI)(x,{...o,[d+a]:t})}:!e&&m?{[i]:(0,M.jI)(x,{...o,[d]:t})}:e||m||"object"!==T?{[i]:t}:{[i]:(0,M.jI)(x,{...o,[d]:t})})})(t,l)})(t,H),min:R||0,max:S,step:u||k})]})})}_t.propTypes=kt;const Rt=(t=!1,e="value",i={})=>t?{
71 -[e]:"",[e+"Tablet"]:"",[e+"Mobile"]:"",...i}:{[e]:"",...i},St=[{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"DIV",value:"div"},{label:"SPAN",value:"span"},{label:"P",value:"p"}],Wt={label:Y().string,isSearch:Y().bool,options:Y().array,isResponsive:Y().bool,onChangeHandler:Y().func,attributeValue:Y().oneOfType([Y().string,Y().object,Y().array]),attributeObjectKey:Y().string,isInline:Y().bool,isMulti:Y().bool,className:Y().string,disabled:Y().bool},Pt=t=>{const{label:e="",isSearch:i=!1,attributeValue:o="",onChangeHandler:l,attributeName:n,setAttributes:s,attributeObjectKey:r="",isResponsive:b=!1,options:c=[],isMulti:d=!1,className:u="",disabled:p=!1}=t,m=(0,a.useRef)(null),h=(0,a.useRef)(null),g=lt();let f;f=r?b?o[r+g]:o[r]:b?o+g:o;const[y,T]=(0,a.useState)(!1),[H,x]=(0,a.useState)(""),[k,v]=(0,a.useState)(f),_=(t,e)=>{l?l(t,b?r+e:r):R(t,e)},R=(t,e)=>{if(r){const i=b?r+e:r;return s({
72 -[n]:(0,M.jI)(Rt(b,r),{...o,[i]:t})})}return s({[n]:t})},S=(t,e)=>{if(!e?.isDisabled&&!p)if(d){const t=[...k];t.push(e?.value),_(t,g),v(t)}else x(""),_(e.value,g)};return(0,a.useEffect)(()=>{if(Array.isArray(f)&&Array.isArray(k)){const t=f?.length,e=k?.length;t===e&&f.every((t,e)=>t===k[e])||v(f)}else f!==k&&v(f)},[f,k]),(0,a.useEffect)(()=>{const t=t=>{m?.current&&!m?.current?.contains(t.target)&&T(!1)};if(document.addEventListener("mousedown",t),h.current){h.current.style.maxHeight="";const t=h.current.offsetHeight,e=m.current.getBoundingClientRect(),i=(t=>{let e=t?.parentElement;for(;e&&e!==document.body;){const t=window.getComputedStyle(e);if(("auto"===t.overflowY||"scroll"===t.overflowY)&&e.scrollHeight>e.clientHeight){const t=e.getBoundingClientRect();return{top:t.top,bottom:t.bottom}}e=e.parentElement}return{top:0,bottom:window.innerHeight}})(m.current),o=i.bottom-e.bottom,a=e.top-i.top,l=8;o<t&&a>o?(h.current.style.top=`-${t}px`,
73 -t>a-l&&(h.current.style.maxHeight=`${Math.max(a-l,60)}px`)):(h.current.style.top="100%",t>o-l&&(h.current.style.maxHeight=`${Math.max(o-l,60)}px`))}return()=>{document.removeEventListener("mousedown",t)}},[y,H,c]),(0,I.jsxs)("div",{className:"ablocks-control ablocks-custom-select"+(u?` ${u}`:""),children:[(0,I.jsx)(at,{label:e,isResponsive:b}),(0,I.jsxs)("div",{className:"ablocks-custom-select--container",ref:m,children:[(0,I.jsxs)("div",{role:"presentation",className:"ablocks-custom-select--inner-content"+(p?" disabled":""),onClick:()=>!p&&T(!y),onKeyDown:()=>{},children:[(0,I.jsxs)("div",{className:"ablocks-custom-select--box",children:[d?(0,I.jsx)("div",{className:"ablocks-custom-select--multi-value",children:(k?.length>0?c.filter(t=>k.includes(t.value))?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-multi-select--option",children:[(0,I.jsx)("span",{className:"ablocks-multi-select--option-label",children:t?.label}),(0,I.jsx)("span",{role:"presentation",
74 -className:"ablocks-multi-select--option-close",onClick:e=>((t,e)=>{t.stopPropagation();const i=k.filter((t,i)=>t!==e.value);_(i,g),v(i)})(e,t),onKeyDown:()=>{},children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"})})]},e)):(0,M.Ic)(o,r,g))||"select..."}):(0,I.jsx)("div",{className:"ablocks-custom-select--single-value",children:i&&H?.length>0?"":(()=>{const t=c?.find(t=>t.value===f)?.label,e=(0,M.Ic)(o,r,g);if(t)return t;const i=c?.find(t=>t.value===e)?.label;return i||void 0})()||c[0]?.label||"select..."}),i&&(0,I.jsx)("div",{className:"ablocks-custom-select--input-container",children:(0,I.jsx)("input",{className:"ablocks-custom-select--search-option",type:"text",value:H,onChange:t=>{x(t.target.value)}})})]}),(0,I.jsx)("div",{className:"ablocks-custom-select--indicator",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"})})]}),(0,I.jsx)("div",{role:"presentation",
75 -className:"ablocks-custom-select--options"+(y?" ablocks-custom-select--options--toggle":""),onClick:()=>{T(!y)},onKeyDown:()=>{},ref:h,children:d?c?.filter(t=>!k.includes(t.value)).map((t,e)=>(0,I.jsx)("span",{role:"presentation",className:"ablocks-custom-select--option",onClick:e=>S(0,t),onKeyDown:()=>{},children:t?.label},e)):(0,I.jsx)(I.Fragment,{children:c.filter(t=>t.label.toLowerCase().includes(H.toLowerCase()))?.map((t,e)=>(0,I.jsx)("span",{role:"presentation",className:"ablocks-custom-select--option"+(f===t.value&&c.findIndex(e=>e.value===t.value)===e?" ablocks-custom-select--option--active":""),onClick:e=>S(0,t),onKeyDown:()=>{},children:t?.label},e))})})]})]})};Pt.propTypes=Wt;const Ut=Pt,jt={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func},wt=t=>{const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a,label:n=""}=t,s=lt(),r=(0,p.tJ)(e),b="custom"===(e?(0,M.Ic)(o,"widthType",s):o.widthType)
76 -;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-width-control",children:[(0,I.jsx)(Ut,{label:n,isResponsive:e,options:p.v2,attributeValue:o,attributeObjectKey:"widthType",attributeName:i,setAttributes:a}),b&&(0,I.jsx)("div",{className:"ablocks-width-control--range-control",children:(0,I.jsx)(_t,{...t,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],label:(0,L.__)("Custom Width","ablocks"),hasUnit:!0,unitDefaultValue:"%",isInline:!1,onChangeHandler:(t,e="")=>a({[i]:(0,M.jI)(r,{...o,[e]:t})}),attributeName:i,attributeObjectKey:"customWidth",attributeDefaultValue:r,autoSyncRange:!0})})]})})};wt.propTypes=jt;const zt=wt,Ct={normal:Y().node.isRequired,hover:Y().node.isRequired};function At(t){const{normal:e="",hover:i=""}=t,o=[{name:"normal",render:e,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Normal","ablocks")})}),
77 -className:"ablocks-normal-hover-tab__item"},{name:"hover",render:i,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Hover","ablocks")})}),className:"ablocks-normal-hover-tab__item"}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.TabPanel,{className:"ablocks-normal-hover-tabs",activeClass:"ablocks-normal-hover-tab__item--active",tabs:o,children:t=>t.render})})}At.propTypes=Ct;var Lt=i(66087),Dt=i.n(Lt);const Nt={margin:Y().string,topMargin:Y().string,bottomMargin:Y().string};function It({margin:t="",topMargin:e="",bottomMargin:i=""}){return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("div",{className:"ablocks-component-separator",style:{marginTop:`${t||e}px`,marginBottom:`${t||i}px`}})})}It.propTypes=Nt;const Vt={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,setAttributes:Y().func,attributeValue:Y().any,attributeObjectKey:Y().string};function Ot(t){
78 -const{isResponsive:e=!0,label:i="",attributeName:o,attributeValue:a,setAttributes:n,onChangeHandler:s,attributeObjectKey:r=""}=t,b=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-toggle-control",children:[i&&(0,I.jsx)(at,{label:i,isResponsive:e}),(0,I.jsx)(N.ToggleControl,{className:"ablocks-components-toggle-control",checked:r?a[r]:a,onChange:t=>{return i=t,l=b,void(s?s(i,e?r+l:r):((t,i)=>{n(e?{[o]:{...a,[r+i]:t}}:""!==r?{[o]:{...a,[r]:t}}:{[o]:t})})(i,l));var i,l}})]})})}Ot.propTypes=Vt;const Yt=window.wp.element;function Xt({label:t="",isShowPrimaryLabel:e="",FigmaPasterComponent:i=()=>(0,I.jsx)(I.Fragment,{}),CustomToggler:o,isReset:a,handleReset:l,placement:n="left-end",children:s,className:r="",isVisible:b,toggleVisible:c}){const[d,u]=(0,Yt.useState)(null),p=(0,Yt.useRef)(null),m=(0,Yt.useRef)(!1),h=(0,Yt.useRef)(`ablocks-popover-${Math.floor(1e4*Math.random())}`).current;return(0,Yt.useEffect)(()=>{const t=t=>{
15 +},blockVersion:{type:"number",default:""},svgDrawColor:{type:"string",default:"gray",copyStyle:!0},duration:{type:"number",default:5,copyStyle:!0},...(0,d.D$)(),...(0,u.D$)("link"),...(0,c.D$)("alignment",!0,{value:"flex-start"}),...b.Ay};var Tt=i(60690),Ht=i(91664),Mt=i(46890),xt=i(80952),kt=i(91353),vt=i(29419);const _t={block_id:{type:"string"},dataCategory:{type:"string",default:""},...b.Ay};var Rt=i(68267),St=i(60273),Wt=i(88297);const Pt={block_id:{type:"string"},blockVersion:{type:"number",default:2},asset_url:{type:"string",default:"",copyStyle:!0},custom_url:{type:"string",default:"",copyStyle:!0},uploaded_json:{type:"object",default:""},trigger:{type:"string",default:"viewport",copyStyle:!0},hoverArea:{type:"string",default:"animation",copyStyle:!0},onHoverOut:{type:"string",default:"nothing",copyStyle:!0},reverse:{type:"bool",default:!1,copyStyle:!0},loop:{type:"bool",default:!1,copyStyle:!0},animationSpeed:{type:"number",default:1,copyStyle:!0},...(0,
16 +q.D$)("animationSource",!1,{value:"upload"}),...b.Ay};var Ut=i(71651),jt=i(81905),wt=i(22478),zt=i(56027),Ct=i(23731);const At={block_id:{type:"string",default:""},...b.Ay},Lt={block_id:{type:"string",default:""},qrValue:{type:"string",default:""},blockVersion:{type:"number",default:2},bgColor:{type:"string",default:"#FFF",copyStyle:!0},qrLevel:{type:"string",default:"M",copyStyle:!0},fgColor:{type:"string",default:"#000",copyStyle:!0},imageSrc:{type:"string",default:""},logoOpacity:{type:"number",default:.6},logoWidth:{type:"number",default:50},logoHeight:{type:"number",default:50},qrData:{type:"object",default:{},copyStyle:!0},imagevalue:{type:"object",default:{}},qrSize:{type:"number",default:250,copyStyle:!0},isImage:{type:"boolean",default:!1},excavateValue:{type:"boolean",default:!1},positionX:{type:"number",default:0},positionY:{type:"number",default:0},...(0,c.D$)("alignment",!0,{value:"left"}),...b.Ay};var Dt=i(58372),Nt=i(41607),It=i(62882),Vt=(i(4788),i(5230)),Ot=i(33206)
17 +;const Yt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:(0,o.__)("Add Your Curvy Text Here","ablocks")},pathType:{type:"string",default:"wave"},isShowIcon:{type:"bool",default:!0,copyStyle:!0},strokeColor:{type:"string",default:"blue",copyStyle:!0},textColor:{type:"string",default:"black",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},textStrokeShow:{type:"bool",default:!1,copyStyle:!0},textStroke:{type:"number",default:0,copyStyle:!0},strokeTextColor:{type:"string",default:"black",copyStyle:!0},offsetControl:{type:"number",default:0},transition:{type:"number",default:1,copyStyle:!0},strokeWidth:{type:"number",default:1,copyStyle:!0},rotate:{type:"number",default:0,copyStyle:!0},iconSize:{type:"number",default:250},iconSvgPath:{type:"string",default:""},iconSvgViewBox:{type:"string",default:""},iconClass:{type:"string",default:""},...(0,c.D$)("alignment",!0,{value:"left"}),...(0,u.D$)("link",!0),...(0,
18 +h.D$)("typography",!0),...(0,g.D$)("textShadow"),...b.Ay};var Xt=i(86781);const Bt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},metaKey:{type:"string",default:""},linkAdd:{type:"boolean",default:!1},trimMode:{type:"boolean",default:!1},dynamicTextColor:{type:"string",default:"",copyStyle:!0},trimLimit:{type:"number",default:0},trimEndSymbol:{type:"string",default:""},...(0,h.D$)("dynamicTypography",!0),...(0,c.D$)("alignment",!0,{value:"left"}),...b.Ay};var Et=i(9233);const Ft=(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),qt={block_id:{type:"string",default:""},products_count:{type:"number",default:3},products_columns:{type:"number",default:3,copyStyle:!0},show_pagination:{type:"boolean",default:!0},price_types:{type:"array",default:[]},order_by:{type:"string",default:"date"},products_order:{type:"string",default:"DESC"},products_ids:{type:"array",default:[]
19 +},products_categories:{type:"array",default:[]},products_tags:{type:"array",default:[]},products_exclude_ids:{type:"array",default:[]},products_exclude_categories:{type:"array",default:[]},products_exclude_tags:{type:"array",default:[]},title_color:{type:"string",default:"#008DFF",copyStyle:!0},title_hover_color:{type:"string",default:" ",copyStyle:!0},price_color:{type:"string",default:" ",copyStyle:!0},price_hover_color:{type:"string",copyStyle:!0,default:" "},cart_button_color:{type:"string",default:"",copyStyle:!0},cart_button_hover_color:{type:"string",default:"",copyStyle:!0},cart_button_text_color:{type:"string",default:"",copyStyle:!0},cart_button_text_hover_color:{type:"string",default:"",copyStyle:!0},cart_button_transition:{type:"number",default:0,copyStyle:!0},...(0,w.D$)({attributeName:"buttonDriection",attributeObjectKey:"value",isResponsive:!0,defaultValue:"column",unitDefaultValue:"",hasUnit:!1,copyStyle:!0}),...(0,w.D$)({attributeName:"buttonGap",
20 +attributeObjectKey:"value",isResponsive:!0,defaultValue:8,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),...Ft,...(0,h.D$)("cat_typography",!0),...(0,h.D$)("cart_button_typography",!0),...(0,h.D$)("title_typography",!0),...(0,h.D$)("author_typography",!0),...(0,h.D$)("rating_typography",!0),...(0,h.D$)("price_typography",!0),...(0,v.D$)("card_background",!0),...(0,_.D$)("card_border",!0),...(0,R.D$)("card_margin",!0),...(0,R.D$)("card_hover_margin",!0),...(0,R.D$)("card_padding",!0),...(0,R.D$)("card_hover_padding",!0),...(0,v.D$)("wish_icon_background",!0),...(0,_.D$)("cart_border",!0),...(0,c.D$)("titleTextAlign",!0,{value:"center"}),...(0,c.D$)("priceTextAlign",!0,{value:"center"}),...b.Ay},$t={block_id:{type:"string",default:""},form_title:{type:"string",default:"Log In into your Account"},username_label:{type:"string",default:"Username or Email Address"},username_placeholder:{type:"string",default:"Username or Email Address"},password_label:{type:"string",default:"Password"},
21 +password_placeholder:{type:"string",default:"Password"},remember_label:{type:"string",default:"Remember me"},login_button_label:{type:"string",default:"Log In"},reset_password_label:{type:"string",default:"Reset password"},show_logged_in_message:{type:"boolean",default:!0},customer_register_url:{type:"string",default:""},login_redirect_url:{type:"string",default:""},logout_redirect_url:{type:"string",default:""},login_btn_color:{type:"string",default:"#fff"},login_btn_bg_color:{type:"string",default:"#7B68EE"},login_btn_bg_hover_color:{type:"string",default:"#6F5DD6"},login_btn_hover_color:{type:"string",default:"#fff"},title_color:{type:"string",default:"#000"},title_hover_color:{type:"string",default:"#000"},input_field_label_color:{type:"string",default:"#333"},input_field_label_hover_color:{type:"string",default:"#333"},form_footer_title_color:{type:"string",default:"#000"},inputFieldColor:{type:"string",default:"#333"},inputFieldColorH:{type:"string",default:"#333"},
22 +input_field_bg_color:{type:"string",default:"#fff"},input_field_bg_hover_color:{type:"string",default:"#fff"},...(0,h.D$)("login_btn_typography",!0),...(0,h.D$)("title_typography",!0),...(0,h.D$)("input_field_label_typography",!0),...(0,h.D$)("form_footer_title_typography",!0),...(0,v.D$)("form_bg_color",!0),...(0,_.D$)("input_field_border",!0),...(0,_.D$)("form_border",!0),...(0,R.D$)("input_field_padding",!0),...(0,R.D$)("form_padding",!0),...b.Ay},Gt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},tableBackground:{type:"string",default:"",copyStyle:!0},tableBackgroundH:{type:"string",default:"",copyStyle:!0},tableTransition:{type:"number",default:0,copyStyle:!0},tableRowBackground:{type:"string",default:"",copyStyle:!0},tableRowBackgroundH:{type:"string",default:"",copyStyle:!0},thumbImage:{type:"number",default:120,copyStyle:!0},productTitleColor:{type:"string",default:"",copyStyle:!0},productTitleColorH:{type:"string",default:"",copyStyle:!0},
23 +productSubTiteColor:{type:"string",default:"",copyStyle:!0},productSubTiteColorH:{type:"string",default:"",copyStyle:!0},productPriceColor:{type:"string",default:"",copyStyle:!0},productPriceColorH:{type:"string",default:"",copyStyle:!0},...(0,h.D$)("tableHeaderTypography",!0),...(0,h.D$)("productTilteTypography",!0),...(0,h.D$)("productsubTitleTypography",!0),...(0,h.D$)("productPriceTypography",!0),...b.Ay};var Zt=i(78696);const Kt={block_id:{type:"string",default:""},selectTextcolor:{type:"string",default:"black"},selectTextcolorH:{type:"string",default:"black"},selectBackground:{type:"string",default:"white"},selectBackgroundH:{type:"string",default:"white"},selectWidth:{type:"number",default:236},...(0,R.D$)("selectPadding",!0),...(0,_.D$)("selectBorder",!0),...(0,h.D$)("selectTypography",!0)};var Jt=i(53490);const Qt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},
24 +buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},...(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"%",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,h.D$)("buttonTypography",!0),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},te={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},buttonColor:{type:"string",default:"",copyStyle:!0},buttonColorH:{type:"string",default:"",copyStyle:!0},buttonBackground:{type:"string",default:"",copyStyle:!0},buttonBackgroundH:{type:"string",default:"",copyStyle:!0},...(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"%",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,h.D$)("buttonTypography",!0),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),
25 +...b.Ay},ee={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},tableWidth:{type:"number",default:100},tableBackground:{type:"string",default:""},tableBackgroundH:{type:"string",default:""},tableColor:{type:"string",default:""},tableColorH:{type:"string",default:""},tableLastColorH:{type:"string",default:""},tableLastColor:{type:"string",default:""},tableLastBackground:{type:"string",default:""},tableLastBackgroundH:{type:"string",default:""},...(0,c.D$)("tableAlignment",!0,{value:"left"}),...(0,h.D$)("firstTableTypography",!0),...(0,h.D$)("lastTableTypography",!0),...b.Ay},ie={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleContentColor:{type:"string",default:""},titleContentColorH:{type:"string",default:""},detailsColor:{type:"string",default:""},detailsColorH:{type:"string",default:""},emailColor:{type:"string",default:""},emailColorH:{type:"string",default:""},...(0,h.D$)("titleContentTypography",!0),...(0,
26 +h.D$)("detailsTypography",!0),...(0,h.D$)("emailTypography",!0),...b.Ay},oe={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},address_color:{type:"string",default:""},address_hover_color:{type:"string",default:""},heading_color:{type:"string",default:""},heading_hover_color:{type:"string",default:""},...(0,h.D$)("address_typograhy",!0),...(0,h.D$)("heading_typograhy",!0),...b.Ay},ae={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},shipping_heading_color:{type:"string",default:""},shipping_heading_hover_color:{type:"string",default:""},shipping_address_color:{type:"string",default:"#000000"},shipping_address_hover_color:{type:"string",default:"#000000"},...(0,h.D$)("shipping_heading_typograhy",!0),...(0,h.D$)("shipping_address_typograhy",!0),...b.Ay},le={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},iconColor:{type:"string",default:"#111"},iconColorH:{type:"string",default:"#111"},countBg:{type:"string",
27 +default:"#008DFF"},countBgH:{type:"string",default:"#008DFF"},countColor:{type:"string",default:"#fff"},countColorH:{type:"string",default:"#fff"},...(0,h.D$)("countTypography",!0),...(0,R.D$)("padding",!0,{top:"0",right:"20",bottom:"0",left:"20"}),...b.Ay};var ne=i(57374),se=i(69993),re=i(90723);(0,w.D$)({attributeName:"imageWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"}),(0,w.D$)({attributeName:"imageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"});const be={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"",default:0},titleColor:{type:"string",default:"#111"},titleColorH:{type:"string",default:"#111"},descriptionColor:{type:"string",default:"#111"},descriptionColorH:{type:"string",default:"#111"},isCustom:{type:"boolean",
28 +default:!1},...(0,h.D$)("titleTypography",!0),...(0,h.D$)("descriptionTypography",!0),...(0,_.D$)("border",!0),...b.Ay};var ce=i(62511),de=i(82424),ue=i(74748);const pe={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},label:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},...(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"%",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,h.D$)("buttonTypography",!0),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},me={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},label:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},
29 +buttonBackgroundH:{type:"string",default:""},...(0,w.D$)({attributeName:"buttonWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"%",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,h.D$)("buttonTypography",!0),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},he={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},id:{type:"number"},bookmark_text:{type:"string",default:"Bookmark"},bookmarked_text:{type:"string",default:"Bookmarked"},buttonColor:{type:"string",default:"#ffffff"},badgeFillColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:"#ea580c"},buttonBackgroundH:{type:"string",default:""},...(0,w.D$)({attributeName:"badgeSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:30,unitDefaultValue:"px",hasUnit:!0}),...(0,c.D$)("listAlignment",!0,{value:"flex-start"}),...(0,h.D$)("buttonTypography",!0),
30 +...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},ge={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},id:{type:"number"},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},...(0,w.D$)({attributeName:"bandageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay};var fe=i(38652);const ye={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},show_label:{type:"boolean",default:!0},show_icon:{type:"boolean",default:!0},label_single:{type:"string",default:"Bookmark"},label_plural:{type:"string",default:"Bookmarks"},wrapper_class:{
31 +type:"string",default:"wrapper"},numberColor:{type:"string",default:""},...(0,c.D$)("countAlignment",!0,{value:"left"}),...b.Ay};var Te=i(6035),He=i(64608);const Me={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},text:{type:"string",default:"Upvote"},buttonColor:{type:"string",default:"#ffffff"},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:"#ea580c"},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},...(0,w.D$)({attributeName:"badgeSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:30,unitDefaultValue:"px",hasUnit:!0}),...(0,c.D$)("buttonAlignment",!0,{value:"flex-start"}),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay},xe=(0,w.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),ke=(0,w.D$)({attributeName:"iconSize",attributeObjectKey:"value",
32 +isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),ve={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},transition:{type:"number",default:10,copyStyle:!0},showTitle:{type:"boolean",default:!0},iconColor:{type:"string",default:"",copyStyle:!0},fillColor:{type:"string",default:"",copyStyle:!0},titleColor:{type:"string",default:"",copyStyle:!0},bgColor:{type:"string",default:"",copyStyle:!0},activeIconColor:{type:"string",default:"",copyStyle:!0},activeFillColor:{type:"string",default:"",copyStyle:!0},activeTitleColor:{type:"string",default:"",copyStyle:!0},activeBGColor:{type:"string",default:"",copyStyle:!0},...(0,q.D$)("justificationAlign",!0,{value:"center"}),...(0,_.D$)("border",!0),...(0,_.D$)("activeBorder",!0),...(0,h.D$)("activeTitleTypography",!0),...(0,h.D$)("titleTypography",!0),...(0,R.D$)("padding",!0),...xe,...ke,post_id:{type:"number",default:0},show_label:{type:"boolean",default:!0},show_icon:{type:"boolean",
33 +default:!0},label_single:{type:"string",default:"Bookmark"},label_plural:{type:"string",default:"Bookmarks"},wrapper_class:{type:"string",default:"wrapper"},upvoteNumberColor:{type:"string",default:""},...(0,c.D$)("countAlignment",!0,{value:"left"}),...b.Ay};var _e=i(11053),Re=i(45352);const Se={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},post_id:{type:"number"},text:{type:"string",default:""},textColor:{type:"string",default:"#b300ef"},textColorH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},...(0,w.D$)({attributeName:"bandageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",hasUnit:!0}),...(0,w.D$)({attributeName:"textGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,unitDefaultValue:"px",hasUnit:!0}),...(0,
34 +h.D$)("textTypography",!0),...(0,c.D$)("buttonAlignment",!0,{value:"left"}),...(0,R.D$)("padding",!0),...(0,_.D$)("buttonBorder",!0),...(0,z.D$)("boxShadow"),...b.Ay};var We=i(93240);const Pe={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},status:{type:"string",default:""},show_label:{type:"boolean",default:!0},show_icon:{type:"boolean",default:!0},label_single:{type:"string",default:"Bookmark"},label_plural:{type:"string",default:"Bookmarks"},wrapper_class:{type:"string",default:"claim-count-wrapper"},upvoteNumberColor:{type:"string",default:""},...(0,c.D$)("countAlignment",!0,{value:"left"}),...b.Ay};var Ue=i(99512);const je={button:l.A,heading:n.A,container:s.Ay,counter:r.Ay,icon:p,divider:m.Ay,paragraph:y,spacer:T.A,video:M,search:K.Ay,image:x.Ay,"taxonomy-listing":Xt.Ay,"image-scroll":k.Ay,"star-ratings":H.Ay,"academy-container":W.A,"academy-courses":S,"academy-course-media":P.Ay,"academy-course-curriculums":U.Ay,
35 +"academy-course-reviews":j.Ay,"academy-review-list":D,"academy-review-form":N.Ay,"academy-addition-info":I.Ay,"academy-course-instructor":V.Ay,"academy-course-description":O,"academy-enroll-content":Y.Ay,tabs:X.Ay,"tabs-child":{block_id:{type:"string",default:""},tabId:{type:"number",default:0}},accordion:B.Ay,"single-accordion":E.Ay,"image-comparison":F.Ay,"flip-box":$,toggle:G.Ay,"toggle-child":{block_id:{type:"string",default:""}},"social-shares":et.Ay,notice:rt,lists:Z.Ay,countdown:J.Ay,"image-hotspot":Q.A,"image-hotspot-child":tt.A,coupon:it,"content-timeline":ot.Ay,"content-timeline-child":st,carousel:bt.Ay,"dual-button":ct.A,"price-menu":dt.Ay,"price-menu-item":ut.Ay,table:pt,"table-row":{block_id:{type:"string",default:""},rowColor:{type:"string",default:"",copyStyle:!0},rowColorH:{type:"string",default:"",copyStyle:!0}},"table-cell":mt,modal:ht.Ay,"table-of-content":gt.Ay,map:ft.Ay,"svg-draw":yt,menu:Tt.Ay,"menu-child-mega":Ht.Ay,"menu-child-sub":Mt.A,"menu-item":xt.A,
36 +"info-box":kt.Ay,"filterable-cards":vt.Ay,"filterable-cards-item":_t,"stripe-button":Rt.A,"paypal-button":St.A,logout:Wt.Ay,"lottie-animation":Pt,chart:Ut.Ay,"advance-lists":jt.Ay,"advance-list-item":wt.Ay,"news-ticker":zt.Ay,marquee:Ct.Ay,"marquee-child":At,"qr-code":Lt,"loop-builder":Nt.A,"loop-template":It.Ay,"loop-filter":Vt.A,"text-path":Yt,"featured-image":Et.Ay,"scroll-to-top":Ot.Ay,player:Ue.Ay,breadcrumb:Dt.Ay,"dynamic-text":Bt,"storeengine-products":qt,"storeengine-login-form":$t,"storeengine-cart-list":Gt,"storeengine-coupon-form":Zt.Ay,"storeengine-product-filter":Kt,"storeengine-checkout-form":Jt.A,"storeengine-continue-button":Qt,"storeengine-checkout-button":te,"storeengine-cart-sub-table":ee,"storeengine-order-info":ie,"storeengine-billing-info":oe,"storeengine-shipping-info":ae,"storeengine-mini-cart":le,"storeengine-cart-notice":ne.A,"storeengine-product-gallery":se.Ay,"storeengine-product-summary":re.Ay,"storeengine-product-description":be,
37 +"storeengine-product-review":ce.Ay,"storeengine-funnel-checkout":de.Ay,"storeengine-funnel-offer":ue.Ay,"storeengine-funnel-accept":pe,"storeengine-funnel-decline":me,"ecm-bookmark-button":he,"ecm-bookmark-badge":ge,"ecm-bookmark-list":fe.A,"ecm-bookmark-count":ye,"ecm-reaction-list":Te.A,"ecm-reaction":He.Ay,"ecm-upvote":Me,"ecm-upvote-count":ve,"ecm-upvote-list":_e.A,"ecm-claim-button":Re.Ay,"ecm-claim-badge":Se,"ecm-claim-list":We.A,"ecm-claim-count":Pe};var we=i(76480),ze=i(72916);const Ce=(t,e={})=>{const i=(0,ze.qX)(),o=(0,ze.Mw)();if(!i&&!o)return t;const a={...t};for(const t of Object.keys(a)){const l=a[t],n=e[t];(i&&((0,ze.V4)(l)||(0,ze.V4)(n))||o&&((0,ze.yt)(l)||(0,ze.yt)(n)))&&delete a[t]}return a},Ae=()=>{const t=(0,a.select)("core/block-editor").getSelectedBlock()||{},{name:e="",attributes:i={}}=t,o=/^ablocks\//;if(!o.test(e))return;const l=JSON.parse(localStorage.getItem("aBlocksCopyPasteStyles")||"{}");if((0,we.z$)(e))return l[we.Xo]=(0,we.b8)(i),
38 +void localStorage.setItem("aBlocksCopyPasteStyles",JSON.stringify(l));const n=e.replace(o,"");l[n]={};const s=je?.[n];for(const t in i)s?.[t]?.copyStyle&&(l[n][t]=i[t]);const r=JSON.stringify(l);localStorage.setItem("aBlocksCopyPasteStyles",r)},Le=()=>{const t=(0,a.select)("core/block-editor").getSelectedBlock()||{},{name:e=""}=t,i=/^ablocks\//;if(!i.test(e))return;const l=JSON.parse(localStorage.getItem("aBlocksCopyPasteStyles")||"{}");if((0,we.z$)(e)){const e=l[we.Xo];if(!e)return(0,a.dispatch)("core/notices")?.createWarningNotice?.((0,o.__)("Copy styles from an atomic block first. Styles from other blocks cannot be pasted here.","ablocks"),{type:"snackbar"}),!1;const{clientId:i,attributes:n}=t;return void(0,a.dispatch)("core/block-editor").updateBlockAttributes(i,Ce((0,we.RS)(e),n))}const n=e.replace(i,""),s=l[n];if(!s)return!1;const{clientId:r,attributes:b}=t,c=je?.[n];for(const t in b)c?.[t]?.copyStyle&&!s?.[t]&&(s[t]=void 0);(0,
39 +a.dispatch)("core/block-editor").updateBlockAttributes(r,Ce(s,b))}},80777(t,e,i){"use strict";i.d(e,{A:()=>o});const o=class{constructor(t){if(this.ablocksAnimation=t,!this.ablocksAnimation||!t?.classList.contains("ablocks-invisible"))return;const e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(this.applyAnimation(t.target),e.unobserve(t.target))})},{threshold:.5});Array.isArray(t)||t instanceof NodeList?t.forEach(t=>{e.observe(t)}):t&&e.observe(t),window.addEventListener("resize",()=>this.handleResize(t))}applyAnimation(t){if(t.getAttribute("data-settings")){const e=JSON.parse(t.getAttribute("data-settings")),i=window.matchMedia(`(max-width: ${this.getBreakpoint("tablet")}) and (min-width: ${this.getBreakpoint("mobile")})`).matches,o=window.matchMedia(`(max-width: ${this.getBreakpoint("mobile")})`).matches;let a=e.animationType;if(i?a=e.animationTypeTablet||e.animationType:o&&(a=e.animationTypeMobile||e.animationType),t.style.visibility="visible","none"===a)return
40 +;t.style.setProperty("--animate-duration",`${e.animationDuration||1}s`),t.style.setProperty("--animate-delay",`${e.animationDelay||0}s`),t.classList.add("animate__animated","animate__"+a)}}handleResize(t){Array.isArray(t)||t instanceof NodeList?t.forEach(t=>{this.applyAnimation(t)}):t&&this.applyAnimation(t)}getBreakpoint(t){switch(t){case"tablet":return"800px";case"mobile":return"480px";default:return"1200px"}}}},85414(t,e,i){"use strict";var o=i(74997),a=i(51609),l=i.n(a),n=i(46942),s=i.n(n),r=i(47143),b=i(52619),c=i(80241),d=i(57654),u=i(10131),p=i(5905),m=i(51317),h=i(4480),g=i(73249),f=i(76619),y=i(77168),T=i(19419),H=i(80554),M=i(36168);const x=(t,e="")=>{const i={_border:"border",_background:"background",_boxShadow:"box-shadow"},o=Object.keys(i).reduce((e,o)=>{const a=i[o];if(t?.[o]){const i=t?.[o]?.transitionDuration||"0";e.push(`${a} ${i}s ease`)}return e},[]),a=(0,M.Zy)(t?._padding,{unit:"px"}),l=(0,M.Zy)(t?._margin,{unit:"px"}),n=(0,M.Zy)(t?._border,{unitWidth:"px",
41 +unitWidthH:"px",unitRadius:"px",unitRadiusH:"px"}),s=o.join(",");return{...(0,c.qD)(l,"margin",e),...(0,c.qD)(a,"padding",e),...(0,T.qD)(t?._mask,e),...(0,d.qD)(t?._background,"background",e),...(0,y.qD)(n,e),...(0,p.qD)(t?._width,"width",e),...(0,m.qD)(t?._position,"position",e),...(0,h.qD)(t?._zIndex,"z-index",e),...(0,H.qD)(t?._boxShadow,"box-shadow",e),transition:s}},k=(t,e="")=>({...(0,d.a9)(t?._background,"background",e),...(0,y.a9)(t?._border,e),...(0,H.a9)(t?._boxShadow,e)}),v=(t,e="")=>({...(0,f.qD)({_hide_on_desktop:t?._hide_on_desktop,_hide_on_tablet:t?._hide_on_tablet,_hide_on_mobile:t?._hide_on_mobile},e)}),_=(t,e="")=>({...(0,g.qD)(t?._transform,"transform",e)}),R=(t,e="")=>({...(0,g.a9)(t?._transform,"transform",e)}),S=(t,e="")=>t._backgroundOverlay&&"backgroundOverlayType"in t._backgroundOverlay&&"none"!==t._backgroundOverlay.backgroundOverlayType?{...(0,u.td)(t?._backgroundOverlay,t?._border,"background",e)
42 +}:[],W=(t,e="")=>t._backgroundOverlay&&"backgroundOverlayTypeH"in t._backgroundOverlay&&"none"!==t._backgroundOverlay.backgroundOverlayTypeH?{...(0,u.fb)(t?._backgroundOverlay,t?._border,"background",e)}:[],P=(t,e="")=>({...(0,f.iR)({_hide_on_desktop:t?._hide_on_desktop,_hide_on_tablet:t?._hide_on_tablet,_hide_on_mobile:t?._hide_on_mobile},e)});var U=i(2489);const j=t=>{const e=(0,M.VA)().filter(t=>t.width>0&&"Tablet"!==t.id&&"Mobile"!==t.id),i={};if(!e.length)return i;const o=t("__ablocksphantom__")||{};return e.forEach(e=>{const a=t(e.suffix)||{},l={};Object.keys(a).forEach(t=>{o[t]!==a[t]&&(l[t]=a[t])}),Object.keys(l).length&&(i[e.suffix]={width:e.width,min:e.min||0,max:e.max||e.width,styles:l})}),i},w=(t,e)=>{const i=[];return t>0&&i.push(`(min-width:${t}px)`),e>0&&i.push(`(max-width:${e}px)`),i.join(" and ")},z=(t,e,i,o,a,l)=>{const n=parseInt(t.getBreakpoint("tablet"),10),s=parseInt(t.getBreakpoint("mobile"),10),r=[{width:n,min:0,max:n,styles:o},{width:s,min:0,max:s,styles:a}]
43 +;Object.values(l).forEach(t=>r.push({width:parseInt(t.width,10),min:t.min||0,max:t.max||parseInt(t.width,10),styles:t.styles})),r.sort((t,e)=>e.width-t.width);const b=[],c=[];return r.forEach((o,a)=>{let l={...i};for(let t=0;t<a;t++)(0,M.N$)(r[t],o)&&(l={...l,...c[t]});const n=t.filterResponsiveStyles(l,o.styles||{});c[a]=n;const s=t.generateCSSForMediaQuery("bp",n);if(!s.trim())return;const d=t.minifyCSS(s),u=w(o.min,o.max);d&&u&&b.push(`@media screen and ${u} { ${e} { ${d} } }`)}),b},C=class{customCSS="";constructor(t={},e){t.block_id=e,this.parentClass=`.editor-styles-wrapper .ablocks-block-${e}`,this.classStyles=[],this.attributes=t,t?._custom_css&&(this.customCSS=t?._custom_css);const i=(0,U.nx)(t);if(Object.keys(i).length>0){const t=document.querySelector(".editor-styles-wrapper");t&&(0,U.Kx)(i,t)}t?._margin&&(this.addClassStyles("{{WRAPPER}}",x(t),x(t,"Tablet"),x(t,"Mobile"),this.customDeviceMap(e=>x(t,e))),
44 +this.addClassStyles("{{WRAPPER}}:hover",k(t),k(t,"Tablet"),k(t,"Mobile")),this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop,{{WRAPPER}}.ablocks-hide-on-tablet,{{WRAPPER}}.ablocks-hide-on-mobile",v(t),v(t,"Tablet"),v(t,"Mobile")),this.addClassStyles("{{WRAPPER}}::before",S(t),S(t,"Tablet"),S(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover::before",W(t),W(t,"Tablet"),W(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover > .ablocks-block-container",R(t),R(t,"Tablet"),R(t,"Mobile")),this.addClassStyles("{{WRAPPER}} > .ablocks-block-container",_(t),_(t,"Tablet"),_(t,"Mobile"),this.customDeviceMap(e=>_(t,e))),this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop .ablocks-block-container,{{WRAPPER}}.ablocks-hide-on-tablet .ablocks-block-container,{{WRAPPER}}.ablocks-hide-on-mobile .ablocks-block-container",P(t),P(t,"Tablet"),P(t,"Mobile")));let o=(0,b.applyFilters)("ablocks.global.editorInlineCSS",null,t,this);o&&o.length&&o.map(t=>{
45 +this.addClassStyles(t?.className,t?.desktopStyles,t?.tabletStyles??{},t?.mobileStyles??{})})}addClassStyles(t,e,i={},o={},a={}){this.classStyles.push({className:t,desktopStyles:e,tabletStyles:i,mobileStyles:o,responsiveStyles:a})}customDeviceMap(t){return j(t)}generateCSS(){let t=this.classStyles.map(({className:t,desktopStyles:e,tabletStyles:i,mobileStyles:o,responsiveStyles:a})=>{const l=this.filterResponsiveStyles(e,i),n=this.filterResponsiveStyles({...e,...l},o),s=this.generateCSSForMediaQuery("desktop",e),r=this.generateCSSForMediaQuery("tablet",l),b=this.generateCSSForMediaQuery("mobile",n),c=this.minifyCSS(s),d=this.minifyCSS(r),u=this.minifyCSS(b),p=this.getParentSelector(t),m=[];return c&&m.push(`${p} { ${c} }`),a&&0!==Object.keys(a).length?m.push(...z(this,p,e,i,o,a)):(r!==s&&d&&m.push(`@media screen and (max-width: ${this.getBreakpoint("tablet")}) { ${p} { ${d} } }`),b!==r&&u&&m.push(`@media screen and (max-width: ${this.getBreakpoint("mobile")}) { ${p} { ${u} } }`)),
46 +m.join("\n\n")}).join("\n\n");return t+=this.getCustomCSS(),t.replace(/\s+/g," ")}getCustomCSS(){return this.customCSS.replace(/\bselector\b/g,this.parentClass)}generateCSSForMediaQuery(t,e){return 0===Object.keys(e).length?"":Object.keys(e).map(t=>`${t}: ${e[t]};`).join("\n")}getBreakpoint(t){const e="undefined"!=typeof window&&window.ABlocksGlobal&&window.ABlocksGlobal.breakpoints||{};switch(t){case"tablet":return`${e.tablet||800}px`;case"mobile":return`${e.mobile||480}px`;default:return"1200px"}}minifyCSS(t){return(t=(t=t.replace(/\/\*[\s\S]*?\*\//g,"")).replace(/\s+/g," ")).replace(/\s?([:,;{}])\s?/g,"$1")}getParentSelector(t){return this.parentClass?t.replaceAll("{{WRAPPER}}",this.parentClass):t}filterResponsiveStyles(t,e){const i={};for(const o in e)o in t&&t[o]===e[o]||(i[o]=e[o]);return i}},A=class{customCSS="";constructor(t={},e){t.block_id=e,this.parentClass=`.editor-styles-wrapper .ablocks-block-${e}`,this.classStyles=[],this.attributes=t,
47 +t?._custom_css&&(this.customCSS=t?._custom_css);const i=(0,U.nx)(t);if(Object.keys(i).length>0){const t=document.querySelector(".editor-styles-wrapper");t&&(0,U.Kx)(i,t)}t?._margin&&(this.addClassStyles("{{WRAPPER}}",x(t),x(t,"Tablet"),x(t,"Mobile"),this.customDeviceMap(e=>x(t,e))),this.addClassStyles("{{WRAPPER}}:hover",k(t),k(t,"Tablet"),k(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover",{...k(t),...R(t)},{...k(t,"Tablet"),...R(t,"Tablet")},{...k(t,"Mobile"),...R(t,"Mobile")}),this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop,{{WRAPPER}}.ablocks-hide-on-tablet,{{WRAPPER}}.ablocks-hide-on-mobile",v(t),v(t,"Tablet"),v(t,"Mobile")),this.addClassStyles("{{WRAPPER}}::before",S(t),S(t,"Tablet"),S(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover::before",W(t),W(t,"Tablet"),W(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover > .ablocks-block-container",R(t),R(t,"Tablet"),R(t,"Mobile")),
48 +this.addClassStyles("{{WRAPPER}} > .ablocks-block-container",_(t),_(t,"Tablet"),_(t,"Mobile"),this.customDeviceMap(e=>_(t,e))),this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop,{{WRAPPER}}.ablocks-hide-on-tablet,{{WRAPPER}}.ablocks-hide-on-mobile",P(t),P(t,"Tablet"),P(t,"Mobile")));let o=(0,b.applyFilters)("ablocks.global.editorInlineCSS",null,t,this);o&&o.length&&o.map(t=>{this.addClassStyles(t?.className,t?.desktopStyles,t?.tabletStyles??{},t?.mobileStyles??{})})}addClassStyles(t,e,i={},o={},a={}){this.classStyles.push({className:t,desktopStyles:e,tabletStyles:i,mobileStyles:o,responsiveStyles:a})}customDeviceMap(t){return j(t)}mediaCondition(t,e){return w(t,e)}generateCSS(){let t=this.classStyles.map(({className:t,desktopStyles:e,tabletStyles:i,mobileStyles:o,responsiveStyles:a})=>{const l=this.removeEmptyCss(e),n=this.filterResponsiveStyles(l,i),s=this.filterResponsiveStyles({...l,...n
49 +},o),r=this.generateCSSForMediaQuery("desktop",l),b=this.generateCSSForMediaQuery("tablet",n),c=this.generateCSSForMediaQuery("mobile",s),d=this.minifyCSS(r),u=this.minifyCSS(b),p=this.minifyCSS(c),m=this.getParentSelector(t),h=[];return d&&h.push(`${m} { ${d} }`),a&&0!==Object.keys(a).length?h.push(...z(this,m,l,i,o,a)):(b!==r&&u&&h.push(`@media screen and (max-width: ${this.getBreakpoint("tablet")}) { ${m} { ${u} } }`),c!==b&&p&&h.push(`@media screen and (max-width: ${this.getBreakpoint("mobile")}) { ${m} { ${p} } }`)),h.join("\n\n")}).join("\n\n");return t+=this.getCustomCSS(),t.replace(/\s+/g," ")}getCustomCSS(){return this.customCSS.replace(/\bselector\b/g,this.parentClass)}generateCSSForMediaQuery(t,e){return 0===Object.keys(e).length?"":Object.keys(e).map(t=>`${t}: ${e[t]};`).join("\n")}getBreakpoint(t){const e="undefined"!=typeof window&&window.ABlocksGlobal&&window.ABlocksGlobal.breakpoints||{};switch(t){case"tablet":return`${e.tablet||800}px`;case"mobile":
50 +return`${e.mobile||480}px`;default:return"1200px"}}minifyCSS(t){return(t=(t=t.replace(/\/\*[\s\S]*?\*\//g,"")).replace(/\s+/g," ")).replace(/\s?([:,;{}])\s?/g,"$1")}getParentSelector(t){return this.parentClass?t.replaceAll("{{WRAPPER}}",this.parentClass):t}removeEmptyCss(t){if(!t||"object"!=typeof t)return{};const e={};for(const i in t){const o=t[i];if("string"!=typeof o)continue;const a=o.trim();""===a||/^(px|em|rem|vh|vw|vmin|vmax|cm|mm|in|pt|pc|%)$/i.test(a)||(e[i]=a)}return e}filterResponsiveStyles(t,e){const i={};for(const o in e){let a=e[o];"string"==typeof a&&(a=a.trim(),""===a||/^(px|em|rem|vh|vw|vmin|vmax|cm|mm|in|pt|pc|%)$/i.test(a)||o in t&&t[o]===a||(i[o]=a))}return i}};var L=i(27723),D=i(94715),N=i(56427),I=i(10790);function V({title:t,initialOpen:e,children:i}){return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.PanelBody,{title:t,initialOpen:e,className:"ablocks-panel-body",children:i})})}V.propTypes={};var O=i(5556),Y=i.n(O);const X=t=>{
51 +const{label:e,icon:i,iconPosition:o,isDisabled:a,onClick:l,buttonStyle:n,className:r,buttonType:b,type:c="button",link:d,target:u,suffix:p,preset:m,buttonSize:h}=t,g=s()("ablocks-btn",{["ablocks-btn--"+p]:p,["ablocks-btn--"+m]:m,["ablocks-btn--"+o]:o,["ablocks-btn--"+h]:h,"ablocks-btn--primary":!b&&e,"ablocks-btn--secondary":"secondary"===b&&!a,"ablocks-btn--tertiary":"tertiary"===b&&!a,"ablocks-btn--primary-disabled":a&&!b,"ablocks-btn--secondary-disabled":a&&"secondary"===b,"ablocks-btn--tertiary-disabled":a&&"tertiary"===b});return"link"===c?(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("a",{href:d,className:r||g,onClick:l,disabled:a,style:n,rel:"noreferrer",target:u,children:[i&&"right"!==o?i:"",e&&(0,I.jsx)("span",{className:"ablocks-btn--label",children:e}),i&&"right"===o&&i]})}):(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("button",{type:c,className:r||g,disabled:a,onClick:l,style:n,children:["right"!==o&&i,e&&(0,I.jsx)("span",{className:"ablocks-btn--label",children:e
52 +}),"right"===o&&i]})})},B={tooltipText:Y().string,children:Y().node},E=t=>{const{tooltipText:e="",children:i="",position:o="top"}=t,[l,n]=(0,a.useState)(!1);return(0,I.jsxs)("div",{className:`ablocks-tooltip tooltip--${o}`,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},children:[l&&(0,I.jsx)("div",{className:"ablocks-tooltip__text ",children:e}),i]})};E.propsTypes=B;const F=E,q=(0,M.um)(Array.isArray(M.rI)&&M.rI.length?M.rI:[{id:"Desktop",label:"Desktop",suffix:"",width:0,min:0,max:0},{id:"Tablet",label:"Tablet",suffix:"Tablet",width:800,min:0,max:800},{id:"Mobile",label:"Mobile",suffix:"Mobile",width:480,min:0,max:480}]),$=["Desktop","Tablet","Mobile"],G=t=>"Tablet"===t?"tablet":"Mobile"===t?"mobile":"desktop";(0,r.select)(M.rb)||(0,r.register)((0,r.createReduxStore)(M.rb,{reducer(t={customDevice:null,devices:q},e){switch(e.type){case"SET_CUSTOM_DEVICE":return{...t,customDevice:e.device};case"SET_DEVICES":return{...t,devices:(0,M.um)(e.devices)};default:return t}},actions:{
53 +setCustomDevice:t=>({type:"SET_CUSTOM_DEVICE",device:t}),setDevices:t=>({type:"SET_DEVICES",devices:t})},selectors:{getCustomDevice:t=>t.customDevice,getDevices:t=>t.devices}}));const Z=()=>{const t=(0,r.select)(M.rb)?.getDevices?.();return Array.isArray(t)&&t.length?t:q},K=t=>{const e=t||{};let i=e.min||0;const o=e.max||0;if("strict"==("strict"===M.kF?"strict":"cascade")&&o>0&&i<1){const t=(t=>Z().reduce((e,i)=>{const o=i.max||0;return o>0&&o<t&&o>e?o:e},0))(o);t>0&&(i=t+1)}return{min:i,max:o}},J=t=>{const e=t||{};return e.max?e.max:e.min?e.min:99999},Q=t=>Z().filter(e=>{const{min:i,max:o}=K(e);return!((i||o)&&(i&&t<i||o&&t>o))}),tt={fontSize:"14px",width:"14px",height:"14px"},et=(0,a.forwardRef)((t,e)=>{const{wpDevice:i,customDevice:o,devices:n}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||"Desktop",customDevice:t(M.rb)?.getCustomDevice()||null,devices:t(M.rb)?.getDevices()||[]
54 +}),[]),s="Desktop"!==i?i:o||"Desktop",b=n.find(t=>t.id===s)||n[0]||{id:"Desktop"},[c,d]=(0,a.useState)(!1),u=(0,a.useRef)(null),p=()=>{d(!c)},m=t=>{u?.current&&!u?.current?.contains(t.target)&&d(!1)};(0,a.useEffect)(()=>(document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)),[]);const h=t=>$.includes(t.id)?(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--${G(t.id)}`}):(0,I.jsx)("span",{className:"dashicons dashicons-editor-expand",style:tt}),g=t=>$.includes(t.id)?t.label+(t.width?` (≤${t.width}px)`:""):`${t.width}px`,f=$.includes(b.id);return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(N.ButtonGroup,{className:"ablocks-responsive-navigation",children:[(0,I.jsx)(X,{onClick:p,ref:e,title:f?void 0:g(b),icon:f?h(b):(0,I.jsx)(F,{tooltipText:g(b),position:"bottom",children:h(b)})}),(0,I.jsx)("div",{className:`ablocks-responsive-navigation__dropdown-items ${c&&"ablocks-responsive-navigation__dropdown--is-open"}`,ref:u,children:n.map(t=>{
55 +const e=$.includes(t.id);return(0,I.jsx)(X,{className:s===t.id?"is-active":"",onClick:()=>(t=>{$.includes(t.id)?((0,r.dispatch)(M.rb).setCustomDevice(null),(0,r.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType(t.id)):((0,r.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType("Desktop"),(0,r.dispatch)(M.rb).setCustomDevice(t.id)),p()})(t),title:e?void 0:g(t),icon:(0,I.jsx)(F,{tooltipText:g(t),position:"right",children:h(t)})},t.id)})})]})})});et.propTypes={};const it=et,ot={label:Y().string,isResponsive:Y().bool,isHeader:Y().bool,affordance:Y().node};function at({label:t,isResponsive:e=!0,isHeader:i=!1,affordance:o=null}){return i?(0,I.jsx)("div",{className:"ablocks-component-control-header",children:t}):t||o?(0,I.jsxs)("div",{className:"ablocks-component-control-label",children:[(0,I.jsx)("span",{className:"ablocks-component-control-label__label",children:t}),e&&(0,I.jsx)(it,{}),o&&(0,I.jsx)("span",{className:"ablocks-component-control-label__affordance",
56 +children:o})]}):null}at.propTypes=ot;const lt=()=>{const{wpDevice:t,customDevice:e,devices:i}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||"Desktop",customDevice:t(M.rb)?.getCustomDevice()||null,devices:t(M.rb)?.getDevices()||[]}),[]),o="Desktop"!==t?t:e||"Desktop",a=i.find(t=>t.id===o);return a?a.suffix:"Desktop"===o?"":o},nt={options:Y().array,attributeObjectKey:Y().string,defaultValue:Y().string,attributeName:Y().string,onChangeHandler:Y().func,isResponsive:Y().bool,attributeDefaultValue:Y().object,setAttributes:Y().func,getAttributeDefaultValue:Y().func,attributeValue:Y().any},st=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],rt=(0,a.forwardRef)(({options:t=st,attributeValue:e,attributeName:i,onChangeHandler:o,attributeObjectKey:l="",getAttributeDefaultValue:n,setAttributes:s,isResponsive:r=!0,attributeDefaultValue:b={}},c)=>{const d=lt(),[u,p]=(0,a.useState)(!1),m=(0,
57 +a.useRef)(null),h=()=>{p(!u)},g=t=>{m?.current&&!m?.current?.contains(t.target)&&p(!1)};(0,a.useEffect)(()=>(document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)),[]);return(0,I.jsxs)("div",{className:"ablocks-unit-select",ref:m,children:[(0,I.jsx)(X,{onClick:h,ref:c,label:(()=>{const i="function"==typeof n?n(r):void 0,o=b&&Object.keys(b).length>0?b:i,a=(0,M.Ic)(o,l,d);if(r){return(0,M.Ic)(e,l,d)||a}return e&&"object"==typeof e&&e[l]?e[l]:a||t?.[0]?.value||""})(),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"}),iconPosition:"right"}),(0,I.jsx)("div",{className:`ablocks-unit-select__dropdown-items ${u&&"ablocks-unit-select__dropdown--is-open"}`,children:t.map((t,a)=>(0,I.jsx)(X,{onClick:()=>{var a,c;a=t.value,c=d,o?o(a,r?l+c:l):((t,o)=>{r?s({[i]:(0,M.jI)(b||n(r),{...e,[l+o]:t})}):(0,M.Gv)(e)?s({[i]:{...e,[l]:t}}):s({[i]:t})})(a,c),h()},label:t.label},a))})]})});rt.propTypes=nt;const bt=rt,ct={attributeName:Y().string,
58 +deviceType:Y().string,attributeValue:Y().any,changeHandler:Y().func,setAttributes:Y().func,isResponsive:Y().bool,attributeObjectKeySuffix:Y().string,isDefaultLinked:Y().bool,isDisableLeftRight:Y().bool};function dt({attributeValue:t,attributeName:e="",deviceType:i="",changeHandler:o,setAttributes:a,isResponsive:l,attributeObjectKeySuffix:n="",isDefaultLinked:s=!0,isDisableLeftRight:r=!1}){const b=l&&i,d=e=>i=>{const o=t["common"+n+i];return(0,M.a4)(o)?o:t[e+n+i]},u=void 0!==t?.["isLinked"+n+i]?t?.["isLinked"+n+i]:s,p=t=>{const e=d(t)(i);return(0,M.a4)(e)?e:""},m=t=>{if(!b)return"";const e=(0,M.By)(i,d(t),{includeSelf:!1});return void 0===e?"":String(e)},h=(t,e)=>({...t,["top"+n+i]:e,["right"+n+i]:e,["bottom"+n+i]:e,["left"+n+i]:e}),g=(t,e)=>{o(t,u?"common"+n:e+n)};return(0,I.jsxs)("div",{className:"ablocks-control__fields",children:[(0,I.jsxs)("div",{className:"ablocks-control__field",children:[(0,I.jsx)(N.TextControl,{id:`ablocks-${e}-top`,
59 +className:"ablocks-dimension-control__input ablocks-dimension-control__input--top",type:"number",onChange:t=>g(t,"top"),placeholder:m("top"),value:p("top")}),(0,I.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-top`,children:(0,L.__)("Top","ablocks")})]}),(0,I.jsxs)("div",{className:"ablocks-control__field",children:[(0,I.jsx)(N.TextControl,{id:`ablocks-${e}-right`,className:"ablocks-dimension-control__input ablocks-dimension-control__input--right",type:"number",onChange:t=>g(t,"right"),placeholder:m("right"),value:r?"":p("right"),disabled:r}),(0,I.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-right`,children:(0,L.__)("Right","ablocks")})]}),(0,I.jsxs)("div",{className:"ablocks-control__field",children:[(0,I.jsx)(N.TextControl,{id:`ablocks-${e}-bottom`,className:"ablocks-dimension-control__input ablocks-dimension-control__input--bottom",type:"number",onChange:t=>g(t,"bottom"),placeholder:m("bottom"),value:p("bottom")
60 +}),(0,I.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-bottom`,children:(0,L.__)("Bottom","ablocks")})]}),(0,I.jsxs)("div",{className:"ablocks-control__field",children:[(0,I.jsx)(N.TextControl,{id:`ablocks-${e}-left`,className:"ablocks-dimension-control__input ablocks-dimension-control__input--left",type:"number",onChange:t=>g(t,"left"),placeholder:m("left"),value:r?"":p("left"),disabled:r}),(0,I.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-left`,children:(0,L.__)("Left","ablocks")})]}),(0,I.jsx)("div",{className:"ablocks-control__field ablocks-control__field--control",children:(0,I.jsx)(X,{className:u?"ablocks-btn-Linked":"ablocks-btn-unlinked",icon:(0,I.jsx)(F,{tooltipText:(0,L.__)("Link Value Together","ablocks"),position:"bottom-left",children:(0,I.jsx)("span",{className:"ablocks-icon "+(u?"ablocks-icon--link":"ablocks-icon--unlink")})}),onClick:()=>{let o={};if(u){const e=p("top");o=h(t,e),o["common"+n+i]=""
61 +}else{const e=["top","right","bottom","left"].map(p).find(M.a4)??"";o=h(t,""),o["common"+n+i]=e}o["isLinked"+n+i]=!u,a({[e]:(0,M.jI)((0,c.tJ)(i),o)})}})})]})}dt.propTypes=ct;const ut=dt,pt=({figmaPasteBtnClickHandler:t=()=>{},position:e="top"})=>(0,I.jsx)("div",{className:"ablocks-figma-styles-paster-component-wrapper",children:(0,I.jsx)(F,{tooltipText:(0,L.__)("paste figma styles","ablocks"),position:e,children:(0,I.jsx)("span",{role:"presentation",onClick:async()=>{try{if("http:"===window.location.protocol)return(0,M.An)({message:(0,L.__)('Error! cannot access copied data in "http" protocol. Please use "https"',"ablocks"),config:{id:"ablocks-notice-figma-paste-ssl-notice"}}),!1;const e=await(navigator.clipboard?.readText?.());t(e)}catch(t){console.error("Failed to read clipboard contents: ",t),(0,M.An)({message:(0,L.__)("Failed to read clipboard contents. more info: ","ablocks")+t,config:{id:"ablocks-notice-figma-paste-try-catch-error"}})}},
62 +className:"ablocks-icon ablocks-icon--paste figma-paste-btn"})})}),mt=t=>t.replace(/var\(\s*--[\w-]+,\s*([^\)]+)\)/g,"$1"),ht=(t,e)=>{const i="box"===e?/box-shadow\s*:\s*([^;]+);/:/text-shadow\s*:\s*([^;]+);/,o=t.match(i);if(!o)return null;let a=o[1].trim();const l={horizontal:0,vertical:0,blur:0,color:""};"box"===e&&(l.shadowType="outer_shadow",l.shadow="",l.spread=0,a.includes("inset")&&(l.shadowType="inner_shadow",a=a.replace("inset","").trim()));const n=a.match(/(-?\d+(?:px)?(?=\s|$))|rgba?\([^)]+\)|#[0-9A-Fa-f]{3,8}/g);if(!n)throw new Error("Invalid text-shadow format");const s=n.pop();l.color=s;const[r,b,c=0,d=0]=n;return l.horizontal=parseInt(r),l.vertical=parseInt(b),l.blur=parseInt(c),"box"===e&&(l.spread=parseInt(d),l.shadow=`${r} ${b} ${c} ${d} ${s}`),l},gt=t=>{
63 +const e={},i=[...t.matchAll(/border(?:-(top|right|bottom|left))?:\s*(\d*\.?\d+)([a-z%]*)\s*(solid|dotted|dashed|double|groove|ridge|inset|outset|none|hidden)\s*(#[0-9a-fA-F]{3,6}|rgba?\([\d\s.,%]+\)|hsla?\([\d\s.,%]+\)|var\([^)]+\s*,\s*([#a-zA-Z0-9(),.%\s]+)\))?/g)];let o=null;return i.forEach(t=>{const i=t[1],a=t[2],l=t[3],n=t[4],s=t[5]||t[6];o||(o=l),i?(e[`${i}Width`]=a,e.unitWidth=l,e.isLinkedWidth=!1):(e.commonWidth=a,e.unitWidth=l),e.borderStyle=n,s&&(e.borderColor=s)}),e?.borderColor&&(e.borderColor=e.borderColor.match(/#[0-9a-fA-F]{3,8}|rgba?\([\d\s.,%]+\)|hsla?\([\d\s.,%]+\)/)?.[0]),e},ft=t=>{const e={unitRadius:null,isLinkedRadius:null},i=/var\([^,]+,\s*([\d.]+(?:px|em|rem|%))\)/;function o(t){const e=t.match(i);return e?e[1]:t}const a=t.match(/border-radius:\s*(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?)(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?;/);if(a){
64 +const[t,i,l,n]=a,s=o(t),r=o(i||s),b=o(l||s),c=o(n||r),d=s.match(/(px|em|rem|%)/);return e.unitRadius=d?d[1]:null,i?(e.topRadius=s.replace(e.unitRadius,""),e.rightRadius=r.replace(e.unitRadius,""),e.bottomRadius=b.replace(e.unitRadius,""),e.leftRadius=c.replace(e.unitRadius,""),e.isLinkedRadius=!1):(e.commonRadius=s.replace(e.unitRadius,""),e.isLinkedRadius=!0),e}const l=[...t.matchAll(/border-(top-left|top-right|bottom-right|bottom-left)-radius:\s*(var\([^)]+\)|[\d.]+(?:px|em|rem|%));/g)];return l.length>0?(l.forEach(t=>{const i=t[1],a=o(t[2]),l=a.match(/(px|em|rem|%)/);switch(e.unitRadius=e.unitRadius||(l?l[1]:null),i){case"top-left":e.topRadius=a.replace(e.unitRadius,"");break;case"top-right":e.rightRadius=a.replace(e.unitRadius,"");break;case"bottom-right":e.bottomRadius=a.replace(e.unitRadius,"");break;case"bottom-left":e.leftRadius=a.replace(e.unitRadius,"")}}),e.isLinkedRadius=!1,e):e},yt=(t,e)=>{let i;switch(e){case"typography":{
65 +const e={},o=(t=mt(t)).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").trim().split(";").map(t=>t.trim()).filter(t=>t);o.forEach(t=>{let[i,o]=t.split(":").map(t=>t.trim().replace(/[\"\']/g,""));/font\-family/.test(i)&&o.includes(",")&&(o=o.split(",")[0]),[i].includes(i)&&i&&o&&(e[i]=(t=>{const e=t.match(/^(-?\d*\.?\d+)([a-z%]+)$/i);if(e){const[,t,i]=e;return{value:parseFloat(t),unit:i}}return t})(o))}),i=e}break;case"text-shadow":i=ht(t,"text");break;case"box-shadow":i=ht(t,"box");break;case"color-gradient":{const e=/(linear-gradient|radial-gradient|conic-gradient|repeating-linear-gradient|repeating-radial-gradient)\(([^;]*)\)/i,o=/(?:color|background(?:-image|-color)?)\s*:\s*(?:var\([^\)]+,\s*)?(#[0-9a-fA-F]{3,8}|rgba?\([^\)]+\)|hsla?\([^\)]+\))/i;let a="";const l=t.match(e);if(l)a=l[0];else{const e=t.match(o);e&&(a=e[1])}i=a}break;case"margin":case"padding":i=((t,e)=>{t=mt(t);const i=new RegExp(`${e}(?:-(top|right|bottom|left))?\\s*:\\s*(\\d+)(px|em|rem|%)?`,"g"),o={top:null,
66 +right:null,bottom:null,left:null};let a,l=null,n=[];for(;null!==(a=i.exec(t));){const i=a[1],s=a[2],r=a[3]||"px";if(l){if(l!==r)return null}else l=r;i?o[i]=s:n=t.match(new RegExp(`\\b${e}\\s*:\\s*(\\d+)(px|em|rem|%)?(\\s+\\d+(px|em|rem|%)?){0,3}`))[0].replace(new RegExp(`${e}\\s*:\\s*`),"").split(/\s+/)}if(n.length){const t=n.map(t=>`${parseInt(t)}`);switch(t.length){case 1:o.top=o.right=o.bottom=o.left=t[0];break;case 2:o.top=o.bottom=t[0],o.right=o.left=t[1];break;case 3:o.top=t[0],o.right=o.left=t[1],o.bottom=t[2];break;case 4:o.top=t[0],o.right=t[1],o.bottom=t[2],o.left=t[3]}}if(o.top===o.right&&o.right===o.bottom&&o.bottom===o.left)return{common:o.top,unit:l};const s={isLinked:!1,unit:l};return(o.top||0===o.top)&&(s.top=o.top),(o.right||0===o.right)&&(s.right=o.right),(o.bottom||0===o.bottom)&&(s.bottom=o.bottom),(o.left||0===o.left)&&(s.left=o.left),s})(t,e);break;case"border":i={...gt(t)||{},...ft(t)||{}};break;default:i={}}return i},Tt={isResponsive:Y().bool,label:Y().string,
67 +attributeName:Y().string,styleType:Y().string,attributeValue:Y().any,setAttributes:Y().func,onChangeHandler:Y().func,attributeObjectKeySuffix:Y().string,isDisableLeftRight:Y().bool},Ht=[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],Mt=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}];function xt(t){const{styleType:e,isResponsive:i=!0,attributeName:o,attributeValue:a,onChangeHandler:n,setAttributes:s,label:r="",attributeObjectKeySuffix:b="",isDisableLeftRight:d=!1}=t,u=lt(),p={attributeValue:a,deviceType:u,isResponsive:i,changeHandler:(t,e)=>{n?n(t,i?e+u:e):((t,e)=>{s({[o]:(0,M.jI)((0,c.tJ)(i),{...a,[e+(i?u:"")]:t})})})(t,e)},isDisableLeftRight:d},m=b.includes("Radius")?Mt:Ht,h=()=>e?(0,I.jsx)(pt,{figmaPasteBtnClickHandler:t=>{const i=yt(t,e);Object.values(i||{}).some(t=>t)?(s({[o]:i}),(0,M.An)({message:`${e} Style Successfully Pasted`,config:{id:"ablocks-notice-figma-paste-margin-padding-success-notice",
68 +type:"snackbar"}})):(0,M.An)({message:`Copy/Paste Failed: Wrong ${e} style`,config:{id:"ablocks-notice-figma-paste-margin-padding-error-notice",type:"snackbar"}})}}):(0,I.jsx)(I.Fragment,{});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-control ablocks-control--dimensions",children:[(0,I.jsxs)("div",{className:"ablocks-control__head",children:[r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:r,isResponsive:i}),(0,I.jsx)(h,{})]}),(0,I.jsx)(bt,{attributeName:o,attributeObjectKey:"unit"+b,attributeValue:a,setAttributes:s,getAttributeDefaultValue:c.tJ,options:m})]}),(0,I.jsx)(ut,{...p,attributeName:o,setAttributes:s,isDefaultLinked:a?.["isLinked"+b+(i?u:"")],attributeObjectKeySuffix:b})]})})}xt.propTypes=Tt;const kt={isResponsive:Y().bool,min:Y().number,max:Y().number,label:Y().string,attributeName:Y().string,attributeObjectKey:Y().string,attributeValue:Y().any,onChangeHandler:Y().func,isInline:Y().bool,hasUnit:Y().bool,unitOptions:Y().array,
69 +attributeDefaultValue:Y().any,autoSyncRange:Y().bool,attributeDataType:Y().string,unitDefaultValue:Y().string},vt=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}];function _t(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:r="",min:b=-1e3,max:c=1e3,attributeObjectKey:d="value",step:u,isInline:p=!0,hasUnit:m=!1,unitOptions:h=vt,attributeDefaultValue:g,unitDefaultValue:f="px",autoSyncRange:y=!0,attributeDataType:T=""}=t,H=lt(),x=(0,M.Bn)(g,i);let k;if(m&&!u){const t=o?.[e?d+"Unit"+H:d+"Unit"];let i="";""!==t&&void 0!==t||(i=(0,M.Ic)(o,"valueUnit",H)),k="em"===t||"rem"===t||"em"===i||"rem"===i?.1:1}const v=e?(0,M.Ic)(o,d,H,x):!e&&m?(0,M.Ic)(o,d):e||m||"object"!==T?o:(0,M.Ic)(o,d),_=m&&(()=>{let t;return t=e&&m?d+"Unit"+H:!e&&m?`${d}Unit`:!m&&e?d+H:d,o[t]?o[t]:(0,M.Ic)(o,`${d}${m?"Unit":""}`,H)||f})();let R=b,S="%"===_||"vw"===_?100:c;return y&&("px"===_?(S=c,
70 +R=0):"%"===_||"vw"===_||"vh"===_?(S=100,R=0):"rem"!==_&&"em"!==_||(S=10,R=.1)),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:s()("ablocks-control ablocks-control--range",{"ablocks-control--inline":p}),children:[(0,I.jsxs)("div",{className:"ablocks-control__head",children:[r&&(0,I.jsx)(at,{label:r,isResponsive:e}),m&&(0,I.jsx)(bt,{attributeName:i,attributeObjectKey:d+"Unit",attributeValue:o,setAttributes:n,attributeDefaultValue:x,options:h,isResponsive:e})]}),(0,I.jsx)(N.RangeControl,{value:v,onChange:t=>((t,l)=>{if(a){let o;o=e||"object"!==T?e?`${d}${l}`:i||d:d,a(t,o)}else((t,a)=>{n(e?{[i]:(0,M.jI)(x,{...o,[d+a]:t})}:!e&&m?{[i]:(0,M.jI)(x,{...o,[d]:t})}:e||m||"object"!==T?{[i]:t}:{[i]:(0,M.jI)(x,{...o,[d]:t})})})(t,l)})(t,H),min:R||0,max:S,step:u||k})]})})}_t.propTypes=kt;const Rt=(t=!1,e="value",i={})=>t?{[e]:"",[e+"Tablet"]:"",[e+"Mobile"]:"",...i}:{[e]:"",...i},St=[{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{
71 +label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"DIV",value:"div"},{label:"SPAN",value:"span"},{label:"P",value:"p"}],Wt={label:Y().string,isSearch:Y().bool,options:Y().array,isResponsive:Y().bool,onChangeHandler:Y().func,attributeValue:Y().oneOfType([Y().string,Y().object,Y().array]),attributeObjectKey:Y().string,isInline:Y().bool,isMulti:Y().bool,className:Y().string,disabled:Y().bool},Pt=t=>{const{label:e="",isSearch:i=!1,attributeValue:o="",onChangeHandler:l,attributeName:n,setAttributes:s,attributeObjectKey:r="",isResponsive:b=!1,options:c=[],isMulti:d=!1,className:u="",disabled:p=!1}=t,m=(0,a.useRef)(null),h=(0,a.useRef)(null),g=lt();let f;f=r?b?o[r+g]:o[r]:b?o+g:o;const[y,T]=(0,a.useState)(!1),[H,x]=(0,a.useState)(""),[k,v]=(0,a.useState)(f),_=(t,e)=>{l?l(t,b?r+e:r):R(t,e)},R=(t,e)=>{if(r){const i=b?r+e:r;return s({[n]:(0,M.jI)(Rt(b,r),{...o,[i]:t})})}return s({[n]:t})},S=(t,e)=>{if(!e?.isDisabled&&!p)if(d){const t=[...k];t.push(e?.value),_(t,g),v(t)}else x(""),
72 +_(e.value,g)};return(0,a.useEffect)(()=>{if(Array.isArray(f)&&Array.isArray(k)){const t=f?.length,e=k?.length;t===e&&f.every((t,e)=>t===k[e])||v(f)}else f!==k&&v(f)},[f,k]),(0,a.useEffect)(()=>{const t=t=>{m?.current&&!m?.current?.contains(t.target)&&T(!1)};if(document.addEventListener("mousedown",t),h.current){h.current.style.maxHeight="";const t=h.current.offsetHeight,e=m.current.getBoundingClientRect(),i=(t=>{let e=t?.parentElement;for(;e&&e!==document.body;){const t=window.getComputedStyle(e);if(("auto"===t.overflowY||"scroll"===t.overflowY)&&e.scrollHeight>e.clientHeight){const t=e.getBoundingClientRect();return{top:t.top,bottom:t.bottom}}e=e.parentElement}return{top:0,bottom:window.innerHeight}})(m.current),o=i.bottom-e.bottom,a=e.top-i.top,l=8;o<t&&a>o?(h.current.style.top=`-${t}px`,t>a-l&&(h.current.style.maxHeight=`${Math.max(a-l,60)}px`)):(h.current.style.top="100%",t>o-l&&(h.current.style.maxHeight=`${Math.max(o-l,60)}px`))}return()=>{
73 +document.removeEventListener("mousedown",t)}},[y,H,c]),(0,I.jsxs)("div",{className:"ablocks-control ablocks-custom-select"+(u?` ${u}`:""),children:[(0,I.jsx)(at,{label:e,isResponsive:b}),(0,I.jsxs)("div",{className:"ablocks-custom-select--container",ref:m,children:[(0,I.jsxs)("div",{role:"presentation",className:"ablocks-custom-select--inner-content"+(p?" disabled":""),onClick:()=>!p&&T(!y),onKeyDown:()=>{},children:[(0,I.jsxs)("div",{className:"ablocks-custom-select--box",children:[d?(0,I.jsx)("div",{className:"ablocks-custom-select--multi-value",children:(k?.length>0?c.filter(t=>k.includes(t.value))?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-multi-select--option",children:[(0,I.jsx)("span",{className:"ablocks-multi-select--option-label",children:t?.label}),(0,I.jsx)("span",{role:"presentation",className:"ablocks-multi-select--option-close",onClick:e=>((t,e)=>{t.stopPropagation();const i=k.filter((t,i)=>t!==e.value);_(i,g),v(i)})(e,t),onKeyDown:()=>{},children:(0,I.jsx)("span",{
74 +className:"ablocks-icon ablocks-icon--close"})})]},e)):(0,M.Ic)(o,r,g))||"select..."}):(0,I.jsx)("div",{className:"ablocks-custom-select--single-value",children:i&&H?.length>0?"":(()=>{const t=c?.find(t=>t.value===f)?.label,e=(0,M.Ic)(o,r,g);if(t)return t;const i=c?.find(t=>t.value===e)?.label;return i||void 0})()||c[0]?.label||"select..."}),i&&(0,I.jsx)("div",{className:"ablocks-custom-select--input-container",children:(0,I.jsx)("input",{className:"ablocks-custom-select--search-option",type:"text",value:H,onChange:t=>{x(t.target.value)}})})]}),(0,I.jsx)("div",{className:"ablocks-custom-select--indicator",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"})})]}),(0,I.jsx)("div",{role:"presentation",className:"ablocks-custom-select--options"+(y?" ablocks-custom-select--options--toggle":""),onClick:()=>{T(!y)},onKeyDown:()=>{},ref:h,children:d?c?.filter(t=>!k.includes(t.value)).map((t,e)=>(0,I.jsx)("span",{role:"presentation",
75 +className:"ablocks-custom-select--option",onClick:e=>S(0,t),onKeyDown:()=>{},children:t?.label},e)):(0,I.jsx)(I.Fragment,{children:c.filter(t=>t.label.toLowerCase().includes(H.toLowerCase()))?.map((t,e)=>(0,I.jsx)("span",{role:"presentation",className:"ablocks-custom-select--option"+(f===t.value&&c.findIndex(e=>e.value===t.value)===e?" ablocks-custom-select--option--active":""),onClick:e=>S(0,t),onKeyDown:()=>{},children:t?.label},e))})})]})]})};Pt.propTypes=Wt;const Ut=Pt,jt={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func},wt=t=>{const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a,label:n=""}=t,s=lt(),r=(0,p.tJ)(e),b="custom"===(e?(0,M.Ic)(o,"widthType",s):o.widthType);return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-width-control",children:[(0,I.jsx)(Ut,{label:n,isResponsive:e,options:p.v2,attributeValue:o,attributeObjectKey:"widthType",attributeName:i,setAttributes:a
76 +}),b&&(0,I.jsx)("div",{className:"ablocks-width-control--range-control",children:(0,I.jsx)(_t,{...t,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],label:(0,L.__)("Custom Width","ablocks"),hasUnit:!0,unitDefaultValue:"%",isInline:!1,onChangeHandler:(t,e="")=>a({[i]:(0,M.jI)(r,{...o,[e]:t})}),attributeName:i,attributeObjectKey:"customWidth",attributeDefaultValue:r,autoSyncRange:!0})})]})})};wt.propTypes=jt;const zt=wt,Ct={normal:Y().node.isRequired,hover:Y().node.isRequired};function At(t){const{normal:e="",hover:i=""}=t,o=[{name:"normal",render:e,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Normal","ablocks")})}),className:"ablocks-normal-hover-tab__item"},{name:"hover",render:i,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Hover","ablocks")})}),className:"ablocks-normal-hover-tab__item"}]
77 +;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.TabPanel,{className:"ablocks-normal-hover-tabs",activeClass:"ablocks-normal-hover-tab__item--active",tabs:o,children:t=>t.render})})}At.propTypes=Ct;var Lt=i(66087),Dt=i.n(Lt);const Nt={margin:Y().string,topMargin:Y().string,bottomMargin:Y().string};function It({margin:t="",topMargin:e="",bottomMargin:i=""}){return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("div",{className:"ablocks-component-separator",style:{marginTop:`${t||e}px`,marginBottom:`${t||i}px`}})})}It.propTypes=Nt;const Vt={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,setAttributes:Y().func,attributeValue:Y().any,attributeObjectKey:Y().string};function Ot(t){const{isResponsive:e=!0,label:i="",attributeName:o,attributeValue:a,setAttributes:n,onChangeHandler:s,attributeObjectKey:r=""}=t,b=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-toggle-control",children:[i&&(0,I.jsx)(at,{label:i,isResponsive:e}),(0,
78 +I.jsx)(N.ToggleControl,{className:"ablocks-components-toggle-control",checked:r?a[r]:a,onChange:t=>{return i=t,l=b,void(s?s(i,e?r+l:r):((t,i)=>{n(e?{[o]:{...a,[r+i]:t}}:""!==r?{[o]:{...a,[r]:t}}:{[o]:t})})(i,l));var i,l}})]})})}Ot.propTypes=Vt;const Yt=window.wp.element;function Xt({label:t="",isShowPrimaryLabel:e="",FigmaPasterComponent:i=()=>(0,I.jsx)(I.Fragment,{}),CustomToggler:o,isReset:a,handleReset:l,placement:n="left-end",children:s,className:r="",isVisible:b,toggleVisible:c}){const[d,u]=(0,Yt.useState)(null),p=(0,Yt.useRef)(null),m=(0,Yt.useRef)(!1),h=(0,Yt.useRef)(`ablocks-popover-${Math.floor(1e4*Math.random())}`).current;return(0,Yt.useEffect)(()=>{const t=t=>{
79 79 m.current?m.current=!1:!p.current||p.current.contains(t.target)||t.target.closest(".ablocks-component-popover-toggler-wrapper")||t.target.closest(".ablocks-control--gradient-active-color-popover-root")||t.target.closest(".ablocks-component-popover__color-button")||t.target.closest(".components-popover__content")||t.target.closest(".ablocks-box-shadow")||t.target.closest(".ablocks-pro-component-popover-toggler-wrapper")||c(!1)};return b?document.addEventListener("mousedown",t):document.removeEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[b,c]),(0,I.jsxs)("div",{className:"ablocks-component-popover",ref:u,children:[(0,I.jsxs)("div",{className:"ablocks-component-popover__field",children:[e&&(0,I.jsx)("span",{children:t}),(0,I.jsx)("div",{role:"presentation",className:"ablocks-component-popover-toggler-wrapper",onClick:()=>{m.current=!0,c(!b)},children:o&&(0,I.jsx)("div",{className:"ablocks-component-popover__custom-toggler-wrapper",children:(0,I.jsx)(o,{
80 80 isVisible:b,toggleVisible:c})})})]}),b&&(0,I.jsxs)(N.Popover,{className:`ablocks-component-popover__popover ${r} ${h}`,anchor:d,placement:n,ref:p,children:[(0,I.jsxs)("div",{className:"ablocks-component-popover__head",children:[(0,I.jsx)("h4",{className:"ablocks-component-popover__head-title",children:t}),(0,I.jsxs)("div",{className:"ablocks-component-popover__head-control",children:[(0,I.jsx)(i,{position:"left"}),a&&(0,I.jsx)(X,{onClick:l,icon:(0,I.jsx)(F,{tooltipText:(0,L.__)("Back To Default","ablocks"),position:"left",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"})}),preset:"transparent"}),(0,I.jsx)(X,{onClick:()=>c(!1),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),preset:"transparent"})]})]}),(0,I.jsx)("div",{className:"ablocks-component-popover__content",children:s})]})]})}const Bt=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(!1),n=(0,a.useRef)(null),{hover:s,resetHandler:r,attributeValue:b,label:c}=t
81 81 ;let d="rotate",u="rotate3D",p="rotateX",m="rotateY",h="rotateP";s&&(d="rotateH",u="rotate3DH",p="rotateXH",m="rotateYH",h="rotatePH"),(0,a.useEffect)(()=>{l(!!(b[d]||b[u]||b[p]||b[m]||b[h]))},[b[d],b[u],b[p],b[m],b[h]]);const g=()=>{const t=Z().map(t=>t.suffix),e={};t.forEach(t=>{e[`${d}${t}`]="",e[`${u}${t}`]=!1,e[`${p}${t}`]="",e[`${m}${t}`]="",e[`${h}${t}`]=""}),r(e),l(!1)},f={...t,min:-360,max:360};return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[c&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:c,isResponsive:!1})}),(0,I.jsx)("div",{className:"ablocks-control-color-gradient",children:(0,I.jsxs)("div",{className:"ablocks-component-popover",children:[(0,I.jsx)("div",{className:"ablocks-component-popover__field",children:(0,I.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:n,children:(0,I.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[o&&(0,I.jsx)(F,{
82 82 tooltipText:(0,L.__)("Back To Default","ablocks"),position:"top",children:(0,I.jsx)(X,{onClick:g,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,I.jsx)(X,{ref:n,onClick:()=>{i(!e)},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:e?"ablocks-component-popover__field--active":""})]})})}),e&&(0,I.jsxs)(Xt,{label:(0,L.__)("Rotate","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:g,isVisible:e,toggleVisible:i,anchorRef:n,children:[(0,I.jsx)(_t,{...f,label:(0,L.__)("Rotate","ablocks"),isResponsive:!0,isInline:!1,attributeObjectKey:d}),(0,I.jsx)(Ot,{...f,isResponsive:!1,label:(0,L.__)("3D Rotate","ablocks"),attributeObjectKey:u}),b[u]&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{...f,label:(0,L.__)("Rotate X","ablocks"),isResponsive:!0,attributeObjectKey:p,isInline:!1}),(0,I.jsx)(_t,{...f,label:(0,L.__)("Rotate Y","ablocks"),isResponsive:!0,attributeObjectKey:m,isInline:!1}),(0,
@@ -1826,42 +1826,42 @@
1826 1826 className:"solid"===g?"active":"",onClick:()=>f("solid"),onKeyDown:()=>{},children:(0,L.__)("Solid","ablocks")}),(0,I.jsx)("span",{role:"presentation",className:"brands"===g?"active":"",onClick:()=>f("brands"),onKeyDown:()=>{},children:(0,L.__)("Brands","ablocks")})]}),(0,I.jsx)("div",{className:"ablocks-icon-library--icons",children:(0,I.jsx)("h2",{className:"ablocks-icon-library--icons--total-icon",children:(0,L.__)("All Icons","ablocks")})}),(0,I.jsx)(zd,{changeHandler:t=>{l?l(t):(t=>{const i={};switch(t.substring(2,3)){case"r":i.data=Cd;break;case"s":i.data=Ld;break;case"b":i.data=Ad}const a=t.substring(7),l=i.data[a],n=`0 0 ${l[0]} ${l[1]}`,s=l[4];o({[e+"SvgPath"]:s,[e+"SvgViewBox"]:n,[e+"Class"]:t,[e+"ImageUrl"]:void 0,[e+"ImageID"]:void 0,[e+"ImageSize"]:void 0})})(t),p(!1)},searchIconQuery:m,modalIconType:g})]})]})})})]})}Yd.propTypes=Od;const Xd={label:Y().string,attributePrefix:Y().string,setAttributes:Y().func,attributes:Y().object,onChangeHandler:Y().func,
1827 1827 deleteHandler:Y().func,getIconClass:Y().func,isHoverColor:Y().bool};function Bd(t){const{setAttributes:e,attributes:i,attributePrefix:o="icon",isHoverColor:a=!1}=t,n=i[o+"Type"],s=i[o+"ImageUrl"],r="stacked"===n||"framed"===n;return(0,I.jsxs)(l().Fragment,{children:[a?(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[!s&&(0,I.jsx)(Ws,{label:(0,L.__)("Primary color","ablocks"),attributeName:o+"Color",attributeValue:i[o+"Color"],setAttributes:e}),n&&(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:o+"BgColor",attributeValue:i[o+"BgColor"],setAttributes:e})]}),hover:(0,I.jsxs)(I.Fragment,{children:[!s&&(0,I.jsx)(Ws,{label:(0,L.__)("Hover Primary color","ablocks"),attributeName:o+"HoverColor",attributeValue:i[o+"HoverColor"],setAttributes:e}),n&&(0,I.jsx)(Ws,{label:(0,L.__)("Hover Background color","ablocks"),attributeName:o+"HoverBgColor",attributeValue:i[o+"HoverBgColor"],setAttributes:e})]})}):(0,I.jsxs)(I.Fragment,{children:[!s&&(0,I.jsx)(Ws,{label:(0,
1828 1828 L.__)("Primary color","ablocks"),attributeName:o+"Color",attributeValue:i[o+"Color"],setAttributes:e}),n&&(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:o+"BgColor",attributeValue:i[o+"BgColor"],setAttributes:e})]}),(0,I.jsx)(At,{normal:(0,I.jsx)(_t,{label:(0,L.__)("Rotate","ablocks"),min:0,max:360,isInline:!1,isResponsive:!0,attributeName:o+"Rotated",attributeValue:i[o+"Rotated"],setAttributes:e,hasUnit:!0,unitOptions:[{value:"deg",label:"deg"}]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Rotate","ablocks"),min:0,max:360,isInline:!1,isResponsive:!0,attributeName:o+"RotateHover",attributeValue:i[o+"RotateHover"],setAttributes:e,hasUnit:!0,unitOptions:[{value:"deg",label:"deg"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,isInline:!1,isResponsive:!1,attributeName:o+"transitionDuration",attributeValue:i[o+"transitionDuration"]??"0",setAttributes:e})]})}),r&&(0,I.jsxs)(I.Fragment,{
1829 1829 children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:o+"Padding",attributeValue:i[o+"Padding"],setAttributes:e}),(0,I.jsx)(at,{label:"Border",isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:o+"Border",attributeValue:i[o+"Border"]||{},setAttributes:e,hasHover:!1}),(0,I.jsx)(at,{label:"Box shadow",isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:o+"BoxShadow",attributeValue:i[o+"BoxShadow"]||{},setAttributes:e})]})]})}function Ed(t){const{attributes:e,setAttributes:i}=t,{alignment:o,link:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-icon-block/",children:(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Jt,{
1830 -label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}]}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:a,setAttributes:i})]}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i,isHoverColor:!0})})})})})})}Bd.propTypes=Xd,Ed.propTypes={};const Fd=({attributePrefix:t="icon",attributes:e={},customIconData:i,style:o})=>{const a=i?i.path||"":e[t+"SvgPath"],l=i?i.viewBox||"":e[t+"SvgViewBox"],n=e[t+"ImageUrl"];return"Empty"!==e[t+"Class"]&&!!(n||l||a)&&(0,I.jsx)("div",{className:"ablocks-icon-wrap",children:n?(0,I.jsx)("img",{className:"ablocks-image-icon",src:n,alt:""}):(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l,className:"ablocks-svg-icon"+(l||a?"":" empty-svg"),style:o,
1831 -children:(0,I.jsx)("path",{d:a})})})},qd={UU:"ablocks/icon",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",
1832 -selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,
1833 -isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},
1834 -iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
1835 -topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",
1836 -rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",
1837 -unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",
1838 -imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",
1839 -imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",
1840 -scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",
1841 -flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",
1842 -shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function $d(t){const{attributes:e,setAttributes:i}=t,{alignment:o}=e,{block_id:a,link:n}=e,{linkTarget:s,noFollow:r,keyValue:b,href:c}=n||{};let d={};return s&&(d.target="_blank"),
1843 -d.rel=r?s?"nofollow noreferrer noopener":"nofollow":"noopener",b&&(d={...d,...(0,wb.jM)(b)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:a,name:qd.UU,attributes:e,typography:[],children:c?(0,I.jsx)("a",{...d,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})]})}$d.propTypes={};const Gd=(t={},e="")=>{const{alignment:i={}}=t,o={display:"flex"};return i["value"+e]&&(o["justify-content"]=i["value"+e]),o};function Zd(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:qd.UU,attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}Zd.propTypes={};function Kd(t){
1844 -const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:"ablocks/icon",attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}Kd.propTypes={},(0,M.xV)(qd.UU)&&(0,o.registerBlockType)(qd.UU,{title:(0,L.__)("Icon","ablocks"),attributes:qd.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
1845 -null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-container",Gd(i),Gd(i,"Tablet"),Gd(i,"Mobile"),e(t=>Gd(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover img.ablocks-image-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),
1846 -t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover svg.ablocks-svg-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.icon.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Ed,{...t}),(0,I.jsx)($d,{...t})]})},save:Zd,deprecated:[{attributes:{block_id:{type:"string",default:""},iconSvgPath:{type:"string",
1830 +label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}]}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:a,setAttributes:i})]}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i,isHoverColor:!0})})})})})})}Bd.propTypes=Xd,Ed.propTypes={};const Fd=({attributePrefix:t="icon",attributes:e={},customIconData:i,style:o,wrapperProps:a={}})=>{const l=i?i.path||"":e[t+"SvgPath"],n=i?i.viewBox||"":e[t+"SvgViewBox"],s=e[t+"ImageUrl"];return"Empty"!==e[t+"Class"]&&!!(s||n||l)&&(0,I.jsx)("div",{className:"ablocks-icon-wrap",...a,children:s?(0,I.jsx)("img",{className:"ablocks-image-icon",src:s,alt:""}):(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:n,
1831 +className:"ablocks-svg-icon"+(n||l?"":" empty-svg"),style:o,children:(0,I.jsx)("path",{d:l})})})},qd={UU:"ablocks/icon",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},iconSvgPath:{type:"string",
1847 1832 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
1848 -},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},
1849 -iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
1850 -topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",
1851 -rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",
1852 -unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",
1853 -imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",
1854 -imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",
1855 -scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",
1856 -flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",
1857 -shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:Kd}]});var Jd=i(17463);function Qd(t){const{attributes:e,setAttributes:i,context:o}=t,{buttonType:a,text:n,position:s,alignment:r,buttonSize:b,textShadow:c,typography:d,textColor:u,textColorH:p,background:m,backgroundH:h,padding:g,iconPosition:f,link:y,showIcon:T,iconSpace:H}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-button-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Button","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,
1858 -L.__)("Position","ablocks"),attributeName:"position",attributeValue:s,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"arrow-right"},{label:"stretch",value:"stretch",icon:"align-center"}],isInline:!1}),"stretch"===s?.value&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,options:[{label:(0,L.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("end","ablocks"),value:"end",icon:"right"},{label:"space-between",value:"space-between",icon:"justify"}],isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Link","ablocks"),value:"link"},{label:(0,L.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,
1859 -L.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,L.__)("Success","ablocks"),value:"#198754"},{label:(0,L.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,L.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:a||"default",attributeName:"buttonType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"text",attributeValue:n,setAttributes:i,isInline:!1,context:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:b||"sm",attributeName:"buttonSize",setAttributes:i}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:y,setAttributes:i}),"link"!==a&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:T,
1860 -setAttributes:i,attributeName:"showIcon",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:u||"#000000",setAttributes:i}),"link"!==a&&(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:m||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:p,setAttributes:i}),"link"!==a&&(0,I.jsx)(Ws,{label:(0,
1861 -L.__)("Background","ablocks"),isGradient:!0,attributeName:"backgroundH",attributeValue:h,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.transition||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),T&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{
1862 -children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:f||"left",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:H,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Jd.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}Qd.propTypes={};const tu={UU:"ablocks/button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Click here"},buttonType:{type:"string",default:"#ddd"},
1863 -buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},iconSvgPath:{type:"string",
1833 +},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",
1834 +rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},
1835 +iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",
1836 +customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",
1837 +unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",
1838 +hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",
1839 +imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",
1840 +externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",
1841 +xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{
1842 +mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{
1843 +type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function $d(t){const{attributes:e,setAttributes:i}=t,{alignment:o}=e,{block_id:a,link:n}=e,{linkTarget:s,noFollow:r,keyValue:b,href:c}=n||{};let d={};return s&&(d.target="_blank"),d.rel=r?s?"nofollow noreferrer noopener":"nofollow":"noopener",b&&(d={...d,...(0,wb.jM)(b)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsx)(Yb.A,{
1844 +blockId:a,name:qd.UU,attributes:e,typography:[],children:c?(0,I.jsx)("a",{...d,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})]})}$d.propTypes={};const Gd=(t={},e="")=>{const{alignment:i={}}=t,o={display:"flex"};return i["value"+e]&&(o["justify-content"]=i["value"+e]),o};function Zd(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:qd.UU,attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}Zd.propTypes={};function Kd(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"noopener",s&&(b={...b,...(0,
1845 +wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:"ablocks/icon",attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}Kd.propTypes={},(0,M.xV)(qd.UU)&&(0,o.registerBlockType)(qd.UU,{title:(0,L.__)("Icon","ablocks"),attributes:qd.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-container",Gd(i),Gd(i,"Tablet"),Gd(i,"Mobile"),e(t=>Gd(i,t))),
1846 +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover img.ablocks-image-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover svg.ablocks-svg-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.icon.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{
1847 +children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Ed,{...t}),(0,I.jsx)($d,{...t})]})},save:Zd,deprecated:[{attributes:{block_id:{type:"string",default:""},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",
1848 +source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",
1849 +valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,
1850 +isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,
1851 +isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",
1852 +topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",
1853 +imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",
1854 +imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",
1855 +offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",
1856 +scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{
1857 +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:Kd}]});var Jd=i(17463);function Qd(t){const{attributes:e,setAttributes:i,context:o}=t,{buttonType:a,text:n,position:s,alignment:r,buttonSize:b,textShadow:c,typography:d,textColor:u,textColorH:p,background:m,backgroundH:h,padding:g,iconPosition:f,link:y,showIcon:T,iconSpace:H}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-button-block/",
1858 +children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Button","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"position",attributeValue:s,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"arrow-right"},{label:"stretch",value:"stretch",icon:"align-center"}],isInline:!1}),"stretch"===s?.value&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,options:[{label:(0,L.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("end","ablocks"),value:"end",icon:"right"},{label:"space-between",value:"space-between",icon:"justify"}],isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{
1859 +label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Link","ablocks"),value:"link"},{label:(0,L.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,L.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,L.__)("Success","ablocks"),value:"#198754"},{label:(0,L.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,L.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:a||"default",attributeName:"buttonType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"text",attributeValue:n,setAttributes:i,isInline:!1,context:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:b||"sm",attributeName:"buttonSize",setAttributes:i}),(0,I.jsx)(zb,{label:(0,
1860 +L.__)("Link","ablocks"),attributeName:"link",attributeValue:y,setAttributes:i}),"link"!==a&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:T,setAttributes:i,attributeName:"showIcon",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:u||"#000000",setAttributes:i}),"link"!==a&&(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:m||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{
1861 +children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:p,setAttributes:i}),"link"!==a&&(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"backgroundH",attributeValue:h,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.transition||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,
1862 +setAttributes:i})]})})}),T&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:f||"left",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:H,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Jd.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}Qd.propTypes={};const tu={UU:"ablocks/button",uK:{block_id:{
1863 +type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Click here"},buttonType:{type:"string",default:"#ddd"},buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},iconSvgPath:{type:"string",
1864 1864 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
1865 1865 },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",
1866 1866 rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},
1867 1867 iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",
@@ -2359,9 +2359,9 @@
2359 2359 const e=""!==t.duration&&null!=t.duration?t.duration:600,i=""!==t.delay&&null!=t.delay?t.delay:0,o=kM[t.easing]||kM.easeIn;return`${SM(t)} ${e}ms ${o} ${i}ms ${(t=>{if("loop"===t.repeat)return"infinite";if("times"===t.repeat){const e=parseInt(t.times,10);return e>0?String(e):"1"}return"1"})(t)} both`},PM=(t,e)=>!(t.off&&t.off[e]),UM=t=>{const e={load:(0,L.__)("page load","ablocks"),scrollIn:(0,L.__)("scroll in","ablocks"),scrollOn:(0,L.__)("scroll","ablocks"),hover:(0,L.__)("hover","ablocks"),click:(0,L.__)("click","ablocks")},i=e[t.trigger]||e.load,o="out"===t.type?(0,L.__)("Out","ablocks"):(0,L.__)("In","ablocks");return`${(0,L.__)("On","ablocks")} ${i}: ${(t=>t?t.charAt(0).toUpperCase()+t.slice(1):"")(t.effect||"fade")} ${o}`},jM=(t,e)=>{const i=[];return t>0&&i.push(`(min-width:${t}px)`),e>0&&i.push(`(max-width:${e}px)`),i.join(" and ")},wM=t=>{const e=Array.isArray(t)?t:[],i=e.find(t=>"scrollOn"===t.trigger);return{scroll:e.some(t=>"scrollIn"===t.trigger),
2360 2360 click:e.some(t=>"click"===t.trigger),scrollOn:!!i,scrollStart:i?i.start??85:null,scrollEnd:i?i.end??15:null}};let zM=[],CM=null;const AM=new Set,LM=()=>AM.forEach(t=>t(zM)),DM=new Set,NM=t=>{zM="function"==typeof t?t(zM):t,LM()},IM=new Map;let VM=null,OM=Promise.resolve(),YM=0;const XM=new Set,BM=new Set,EM=()=>{const t={saving:YM>0||IM.size>0,failed:[...BM]};XM.forEach(e=>e(t))},FM=t=>!!t&&t.status>=200&&t.status<300&&!1!==t.data?.success,qM=(t,e)=>{if(e.deleted)return{action:"ablocks/global_classes/delete",id:t};const i={action:"ablocks/global_classes/save",id:t,label:e.label};return e.styles?i.styles=JSON.stringify(e.styles):i.css=e.css||"",i},$M=()=>{if(VM&&(clearTimeout(VM),VM=null),!IM.size)return OM;const t=[...IM.entries()];return IM.clear(),OM=t.reduce((t,[e,i])=>t.then(()=>{if(!IM.has(e))return YM+=1,EM(),((t,e)=>(0,M.In)(qM(t,e)).then(i=>!!FM(i)||new Promise(t=>setTimeout(t,2e3)).then(()=>(0,M.In)(qM(t,e)).then(FM))).catch(()=>!1))(e,i).then(t=>{var o;YM-=1,t?(BM.delete(e),
2361 2361 DM.delete(e)):(BM.add(e),o=(0,L.sprintf)(/* translators: %s: global class name. */ /* translators: %s: global class name. */
2362 2362 (0,L.__)("“%s” could not be saved — check your connection. Your changes are still here; edit it again to retry.","ablocks"),i.label||e),(0,r.dispatch)("core/notices")?.createErrorNotice?.(o,{id:"ablocks-global-classes-save",type:"snackbar"})),EM()})}),OM),EM(),OM},GM=(t,e)=>{IM.set(t,e),EM(),clearTimeout(VM),VM=setTimeout($M,400)},ZM=t=>{if(!t?.id)return;const{id:e}=t;DM.add(e),NM(i=>{const o=i.findIndex(t=>t.id===e);if(-1===o)return[...i,t];const a=i.slice();return a[o]={...a[o],...t},a}),GM(e,{label:t.label||e,styles:t.styles,css:t.css})};function KM(){const[t,e]=(0,a.useState)(zM);return(0,a.useEffect)(()=>(AM.add(e),CM||(CM=(0,M.In)({action:"ablocks/global_classes/get"}).then(t=>{const e=t?.data?.data;if(Array.isArray(e)){const t=new Set(e.map(t=>t.id));zM=[...e,...zM.filter(e=>DM.has(e.id)&&!t.has(e.id))],LM()}return zM}).catch(()=>zM)),()=>{AM.delete(e)}),[]),[t,NM]}if("undefined"!=typeof window&&window.self===window.top){let t=!1;(0,r.subscribe)(()=>{const e=!!(0,
2363 -r.select)("core/editor")?.isSavingPost?.();e&&!t&&IM.size&&$M(),t=e});const e=()=>{IM.size&&window.navigator?.sendBeacon&&(IM.forEach((t,e)=>{const i=new FormData;i.append("security",M.Ie),Object.entries(qM(e,t)).forEach(([t,e])=>i.append(t,e)),window.navigator.sendBeacon(M.$B,i)}),IM.clear())};window.addEventListener("pagehide",e),window.addEventListener("beforeunload",e)}const JM={"ablocks/atomic-flex":"flex","ablocks/atomic-grid":"grid"},QM={},tx={name:"",styles:QM},ex=/(^|\s)ablocks-s-[0-9a-z]+(?=\s|$)/,ix=(t,e)=>{const i=t=>{const i={};return Object.keys(t||{}).forEach(o=>{const a=e.get(o);if(void 0===a)return void(i[o]=t[o]);if(null===a)return;const l=t[o];if(!l||"object"!=typeof l)return;const n={};Object.keys(l).forEach(t=>{a.has(t)||(n[t]=l[t])}),i[o]=n}),i},o={};return Object.keys(t||{}).forEach(e=>{const a=t[e];if(e!==rH&&a&&"object"==typeof a){if(cH(e)){const t={};return Object.keys(a).forEach(e=>{t[e]=i(a[e])}),void(o[e]=t)}o[e]=i(a)}else o[e]=a}),o}
2363 +r.select)("core/editor")?.isSavingPost?.();e&&!t&&IM.size&&$M(),t=e});const e=()=>{IM.size&&window.navigator?.sendBeacon&&(IM.forEach((t,e)=>{const i=new FormData;i.append("security",(0,M.$g)()),Object.entries(qM(e,t)).forEach(([t,e])=>i.append(t,e)),window.navigator.sendBeacon(M.$B,i)}),IM.clear())};window.addEventListener("pagehide",e),window.addEventListener("beforeunload",e)}const JM={"ablocks/atomic-flex":"flex","ablocks/atomic-grid":"grid"},QM={},tx={name:"",styles:QM},ex=/(^|\s)ablocks-s-[0-9a-z]+(?=\s|$)/,ix=(t,e)=>{const i=t=>{const i={};return Object.keys(t||{}).forEach(o=>{const a=e.get(o);if(void 0===a)return void(i[o]=t[o]);if(null===a)return;const l=t[o];if(!l||"object"!=typeof l)return;const n={};Object.keys(l).forEach(t=>{a.has(t)||(n[t]=l[t])}),i[o]=n}),i},o={};return Object.keys(t||{}).forEach(e=>{const a=t[e];if(e!==rH&&a&&"object"==typeof a){if(cH(e)){const t={};return Object.keys(a).forEach(e=>{t[e]=i(a[e])}),void(o[e]=t)}o[e]=i(a)}else o[e]=a}),o}
2364 2364 ;function ox({attributes:t,setAttributes:e,clientId:i}){const{block_id:o,styles:l={},globalClasses:n=[],animations:s=[]}=t;(0,a.useLayoutEffect)(()=>{o&&o===i||e({block_id:i})},[o,i,e]);const{__unstableMarkNextChangeAsNotPersistent:b}=(0,r.useDispatch)("core/block-editor"),{className:c}=t;(0,a.useLayoutEffect)(()=>{if(!c||!ex.test(c))return;const t=c.split(/\s+/).filter(t=>t&&!ex.test(t)).join(" ");b?.(),e({className:t||void 0})},[c,e,b]);const d=t=>e({animations:t}),[u]=KM(),[p,m]=(0,a.useState)(()=>n.length?`gc:${n[0]}`:"local"),[h,g]=(0,a.useState)(""),[f,y]=(0,a.useState)(""),[T,H]=(0,a.useState)(null),[x,k]=(0,a.useState)(!1),{wpDevice:v,customDevice:_,RESPONSIVE_DEVICES:R}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||t("core/editor")?.getDeviceType?.()||"Desktop",customDevice:t(M.rb)?.getCustomDevice()||null,RESPONSIVE_DEVICES:t(M.rb)?.getDevices()||[]}),[]),{setCustomDevice:S}=(0,r.useDispatch)(M.rb),W=(0,r.useSelect)(t=>{
2365 2365 const e=t("core/block-editor"),o=e.getBlockRootClientId(i);return o?{name:e.getBlockName(o),styles:e.getBlockAttributes(o)?.styles||QM}:tx},[i]),P="Desktop"!==v?v:_||"Desktop",U=R.find(t=>t.id===P)||R[0]||{suffix:"",label:"Desktop",id:"Desktop"},j=U.suffix,w=t=>(0,r.dispatch)("core/edit-post")?.__experimentalSetPreviewDeviceType?.(t),z=(0,a.useRef)(!1),C=()=>document.querySelector(".block-editor-iframe__scale-container")||document.querySelector('iframe[name="editor-canvas"]');(0,a.useEffect)(()=>{const t=C();if(!t)return;const e="Desktop"!==P&&!$.includes(P)&&U.width>0,i=setTimeout(()=>{e?(t.style.width=U.width+"px",t.style.maxWidth="100%",t.style.boxSizing="border-box",t.style.margin="0 auto",t.style.transition="width 0.2s ease",z.current=!0):z.current&&(t.style.width="",t.style.maxWidth="",t.style.boxSizing="",t.style.margin="",z.current=!1)},60);return()=>clearTimeout(i)},[P,U.width]),(0,a.useEffect)(()=>()=>{if(z.current){const t=C();t&&(t.style.width="",t.style.maxWidth="",
2366 2366 t.style.boxSizing="",t.style.margin="")}},[]);const A=p.startsWith("gc:")?p.slice(3):null,L=A?u.find(t=>t.id===A):null,D=A?L?.styles:l,N=pH(D)?D:uH(),I=dH(U),V=Q(J(U)),O=HH(W.styles,I,"","display",V)||JM[W.name]||"",Y="flex"===O||"inline-flex"===O,X="grid"===O||"inline-grid"===O,B=Y||X,E=mH(N,I,h),F=E.typography||{},q=((t,e,i,o)=>{const a=[];for(const l of xH(e,o))for(const o of""===i?[""]:[i,""])l===e&&o===i||a.push(mH(t,l,o).typography);return a.reverse().reduce((t,e)=>e?TH(t,e):t,{})})(N,I,h,V),G=t=>{const i={...E};return Object.keys(t||{}).forEach(e=>{const o=t[e],a=E[e],l=o&&"object"==typeof o&&!Array.isArray(o)&&a&&"object"==typeof a&&!Array.isArray(a);i[e]=l?{...a,...o}:o}),(t=>{if(A&&!L)return;const i=HM(hH(N,I,h,t));if(A){ZM({id:A,label:L?.label||A,styles:i});const t=mH(i,I,h),o=(t,e)=>JSON.stringify(t)!==JSON.stringify(e),a=new Map;Z(t).forEach(({prop:e,members:i})=>{const l=E[e],n=t[e];if(null===i)return void(o(l,n)&&a.set(e,null));const s=[...i].filter(t=>o(l?.[t],n?.[t]))
2367 2367 ;s.length&&a.set(e,new Set(s))}),a.size&&e({styles:HM(ix(l,a))})}else e({styles:i})})(i)};(0,a.useEffect)(()=>{A&&!n.includes(A)&&(m("local"),g(""))},[A,n]);const Z=(t=mH(N,I,h))=>{if(!A)return[];const e=[];return Object.keys(t).forEach(i=>{const o=t[i],a=HH(l,I,h,i,V);if(!vH(o)||!vH(a))return;if(!o||!a||"object"!=typeof o||"object"!=typeof a||Array.isArray(o)||Array.isArray(a))return void e.push({prop:i,members:null});const n=new Set(Object.keys(o).filter(t=>!kH(t)&&vH(o[t])&&vH(a[t])));n.size&&e.push({prop:i,members:n})}),e},K=t=>e({globalClasses:[...new Set([t,...n])]}),tt=new Set(n),et=f.trim().toLowerCase(),it=u.filter(t=>!tt.has(t.id)).filter(t=>!et||(t.label||"").toLowerCase().includes(et)||t.id.includes(et)).slice(0,8),ot=u.some(t=>(t.label||"").toLowerCase()===et||t.id===et),at=bH.find(t=>t.key===h)?.label||"Normal";return{attributes:t,setAttributes:e,styles:l,currentStyles:N,s:E,t:F,inheritedTypography:q,activeState:h,setActiveState:g,setState:G,setTypography:t=>G({
@@ -2599,31 +2599,33 @@
2599 2599 fc.qD)(t?.inputTextShadow)}},W_=t=>({color:(0,Hs.qD)(t?.loadingSpinnerColor)}),P_=(t,e="")=>({background:(0,Hs.qD)(t?.buttonBgColor)}),U_=(t,e="")=>({background:(0,Hs.qD)(t?.buttonBgColorH)}),j_=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"";return{color:(0,Hs.qD)(t?.buttonTextColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.buttonTextStroke,e),...(0,fc.qD)(t?.buttonTextShadow),...(0,Eb.qD)({attributeValue:t.searchBtnWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:0,unitDefaultValue:"px",device:e})}},w_=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypographyH,{weight:"400"}),o=t.buttonTypographyHGlobal?t.buttonTypographyHGlobal:"";return{color:(0,Hs.qD)(t?.buttonTextColorH),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.buttonTextStrokeH,e),...(0,fc.qD)(t?.buttonTextShadowH)}},z_=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.iconWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",
2600 2600 defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e})});(0,M.xV)(h_.UU)&&(0,o.registerBlockType)(h_.UU,{attributes:h_.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--search"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block--search-form",y_(i),y_(i,"Tablet"),y_(i,"Mobile"),e(t=>y_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-form:hover",T_(i),T_(i,"Tablet"),T_(i,"Mobile"),e(t=>T_(i,t))),
2601 2601 t.addClassStyles("{{WRAPPER}} .ablocks-block--search-input",S_(i),S_(i,"Tablet"),S_(i,"Mobile"),e(t=>S_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-input::placeholder",S_(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button",P_(i),P_(i,"Tablet"),P_(i,"Mobile"),e(t=>P_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button:hover",U_(i),U_(i,"Tablet"),U_(i,"Mobile"),e(t=>U_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button > span",j_(i),j_(i,"Tablet"),j_(i,"Mobile"),e(t=>j_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button:hover > span",w_(i),w_(i,"Tablet"),w_(i,"Mobile"),e(t=>w_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button > span > svg",z_(i),z_(i,"Tablet"),z_(i,"Mobile"),e(t=>z_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result",H_(i),H_(i,"Tablet"),H_(i,"Mobile"),e(t=>H_(i,t))),
2602 2602 t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result:hover",M_(i),M_(i,"Tablet"),M_(i,"Mobile"),e(t=>M_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result__list",x_(i),x_(i,"Tablet"),x_(i,"Mobile"),e(t=>x_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result__list:hover",k_(i),k_(i,"Tablet"),k_(i,"Mobile"),e(t=>k_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result__list-thumbnail",R_(i),R_(i,"Tablet"),R_(i,"Mobile"),e(t=>R_(i,t))),t.addClassStyles("{{WRAPPER}} a.ablocks-block--search-result__list-title",v_(i),v_(i,"Tablet"),v_(i,"Mobile"),e(t=>v_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-search-block__spin",W_(i),W_(i),W_(i),e(t=>W_(i))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(m_,{...t}),(0,I.jsx)(f_,{...t})]})},save:()=>null});var C_=i(58509);const A_=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}},L_=t=>"px"===t?900:"%"===t?150:700
2603 -;function D_(t){const{attributes:e,setAttributes:i}=t,{verticalAlign:o,autoplayDelay:a,autoplay:n,reverseDirection:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,carouselHeight:p,slidesPerView:m,speed:h,effect:g,paginationType:f,paginationPositionY:y,paginationPositionX:T,paginationColor:H,paginationHoverColor:x,paginationActiveColor:k,paginationActiveHoverColor:v,paginationSize:_,paginationHoverSize:R,paginationActiveSize:S,paginationActiveHoverSize:W,navigationIconSize:P,navigationIconPositionY:U,navigationIconPositionNextX:j,navigationIconPositionPrevX:w,navigationIconColor:z,navigationIconBgColor:C,gap:A}=e,N=lt(),O=(0,M.Ic)(P,"valueUnit",N);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-carousel-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Carousel","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,
2604 -I.jsxs)(l().Fragment,{children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:"These feature will only works in frontend"})}),(0,I.jsx)(Ut,{label:(0,L.__)("Choose Effect","ablocks"),options:[{label:(0,L.__)("Slide","ablocks"),value:"slide"},{label:(0,L.__)("Fade","ablocks"),value:"fade"},{label:(0,L.__)("Cube","ablocks"),value:"cube"},{label:(0,L.__)("Flip","ablocks"),value:"flip"}],attributeName:"effect",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Reverse Direction","ablocks"),attributeValue:s,setAttributes:i,attributeName:"reverseDirection"}),"slide"===g&&(0,I.jsx)(_t,{label:(0,L.__)("Slides Per View","ablocks"),attributeValue:m,setAttributes:i,attributeName:"slidesPerView",min:1,step:1,max:10,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Po}),"slide"===g&&m["value"+N]>1&&(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeValue:A,setAttributes:i,attributeName:"gap",min:0,step:1,max:100,
2605 -isInline:!1,isResponsive:!0,attributeDefaultValue:C_.rQ}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Loop","ablocks"),attributeValue:e?.isLoop,setAttributes:i,attributeName:"isLoop"}),(0,I.jsx)(_t,{label:(0,L.__)("Speed (ms)","ablocks"),attributeValue:h,setAttributes:i,attributeName:"speed",step:50,min:0,max:5e3,isInline:!1,isResponsive:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Grab Cursor","ablocks"),attributeValue:c,setAttributes:i,attributeName:"grabCursor"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Mousewheel","ablocks"),attributeValue:d,setAttributes:i,attributeName:"mousewheel"})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Carousel Height","ablocks"),attributeName:"carouselHeight",attributeValue:p,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"}],min:0,max:["vh"].includes(p["valueUnit"+N])?100:1e3,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Qh}),(0,I.jsx)(Wb,{label:(0,
2606 -L.__)("Vertical Alignment","ablocks"),setAttributes:i,attributeName:"verticalAlign",attributeValue:o,options:[{label:(0,L.__)("Top","ablocks"),value:"start"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:(0,L.__)("Bottom","ablocks"),value:"end"}],isResponsive:!0,allowDeselect:!1})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Pagination","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Pagination","ablocks"),attributeValue:e?.pagination,setAttributes:i,attributeName:"pagination"}),e.pagination&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Pagination Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Border 1","ablocks"),value:"border1"},{label:(0,L.__)("Border 2","ablocks"),value:"border2"},{label:(0,L.__)("Border 3","ablocks"),value:"border3"}],attributeName:"paginationType",attributeValue:f,setAttributes:i}),(0,I.jsx)(Ot,{
2607 -isResponsive:!1,label:(0,L.__)("Pagination Clickable","ablocks"),attributeValue:e?.paginationClickable,setAttributes:i,attributeName:"paginationClickable"}),(0,I.jsx)(_t,{label:(0,L.__)("Position Y","ablocks"),attributeName:"paginationPositionY",attributeValue:y,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===y?.valueUnit?-250:-50,max:L_(y?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Vq,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Position X","ablocks"),attributeName:"paginationPositionX",attributeValue:T,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===T?.valueUnit?-250:-50,max:L_(T?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.a5,autoSyncRange:!1})]})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"paginationColor",
2608 -attributeValue:H,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"paginationActiveColor",attributeValue:k,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"paginationSize",attributeValue:_,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.g7}),(0,I.jsx)(_t,{label:(0,L.__)("Active Size","ablocks"),attributeName:"paginationActiveSize",attributeValue:S,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Is})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"paginationHoverColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"paginationActiveHoverColor",
2609 -attributeValue:v,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"paginationHoverSize",attributeValue:R,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Ud}),(0,I.jsx)(_t,{label:(0,L.__)("Active Size","ablocks"),attributeName:"paginationActiveHoverSize",attributeValue:W,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Qg})]})}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"paginationBorder",attributeValue:e?.paginationBorder,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Active Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activePaginationBorder",attributeValue:e?.activePaginationBorder,
2610 -setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Autoplay","ablocks"),initialOpen:!1,children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("These feature will only works in frontend","ablocks")})}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Autoplay","ablocks"),attributeValue:n,setAttributes:i,attributeName:"autoplay"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Autoplay Reverse","ablocks"),attributeValue:b,setAttributes:i,attributeName:"autoPlayReverse"}),n&&(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Autoplay Delay (ms)","ablocks"),attributeValue:a,setAttributes:i,attributeName:"autoplayDelay",min:0,step:100,max:25e3,isInline:!1,isResponsive:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Autoplay Pause On Hover","ablocks"),attributeValue:r,setAttributes:i,attributeName:"autoplayPauseOnHover"})]})]}),(0,I.jsxs)(V,{title:(0,L.__)("Navigation","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{
2611 -isResponsive:!1,label:(0,L.__)("Navigation","ablocks"),attributeValue:u,setAttributes:i,attributeName:"navigation"}),u&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Left Icon","ablocks"),attributes:e,attributePrefix:"leftIcon",setAttributes:i,legacySupport:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Right Icon","ablocks"),attributePrefix:"rightIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"navigationIconSize",attributeValue:P,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:A_(O),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Pu}),(0,I.jsx)(_t,{label:(0,L.__)("Position Y","ablocks"),attributeName:"navigationIconPositionY",attributeValue:U,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===U?.valueUnit?-250:-50,max:L_(U?.valueUnit||"%"),isInline:!1,
2612 -isResponsive:!0,attributeDefaultValue:C_.Yd,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Nav Next X","ablocks"),attributeName:"navigationIconPositionNextX",attributeValue:j,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===j?.valueUnit?-250:-50,max:L_(j?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Wu,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Nav Prev X","ablocks"),attributeName:"navigationIconPositionPrevX",attributeValue:w,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===w?.valueUnit?-250:-50,max:L_(w?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.qO,autoSyncRange:!1})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigationIconColor",attributeValue:z,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
2613 -L.__)("Background Color","ablocks"),attributeName:"navigationIconBgColor",attributeValue:C,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigationIconColorH",attributeValue:e?.navigationIconColorH,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"navigationIconBgColorH",attributeValue:e?.navigationIconBgColorH,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.navigationIconTransition||0,attributeName:"navigationIconTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"navigationIconPadding",attributeValue:e?.navigationIconPadding,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"navigationIconBorder",
2614 -attributeValue:e?.navigationIconBorder,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"navigationIconBoxShadow",attributeValue:e?.navigationIconBoxShadow,setAttributes:i})]})})]})]})})})}D_.propTypes={},D_.defaultProps={};const N_={UU:"ablocks/carousel",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},effect:{type:"string",default:"slide"},reverseDirection:{type:"boolean",default:!0},carouselSlideLength:{type:"number",default:1},isLoop:{type:"boolean",default:!1},autoplay:{type:"boolean",default:!0},autoPlayReverse:{type:"boolean",default:!1},autoplayDelay:{type:"number",default:3e3},autoplayProgress:{type:"boolean",default:!0},autoplayPauseOnHover:{type:"boolean",default:!0},speed:{type:"number",default:800},paginationType:{type:"string",default:"default"},pagination:{type:"boolean",default:!0},paginationClickable:{type:"boolean",
2615 -default:!0},navigation:{type:"boolean",default:!0},navigationIconColor:{type:"string",default:"#686868"},navigationIconColorH:{type:"string",default:""},navigationIconBgColor:{type:"string",default:"#e4e4e4"},navigationIconBgColorH:{type:"string",default:""},navigationIconTransition:{type:"number",default:""},paginationColor:{type:"string",default:"black"},paginationHoverColor:{type:"string",default:"black"},paginationActiveColor:{type:"string",default:"black"},paginationActiveHoverColor:{type:"string",default:"black"},grabCursor:{type:"boolean",default:!0},mousewheel:{type:"boolean",default:!0},verticalAlignment:{type:"string",default:"center"},verticalAlign:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},navigationIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",
2616 -rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",
2617 -leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},paginationBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",
2618 -unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",
2619 -rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},activePaginationBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",
2620 -topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",
2621 -unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},navigationIconPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},navigationIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},carouselHeight:{type:"object",default:{value:300,valueTablet:300,valueMobile:300,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationPositionX:{type:"object",default:{value:47,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},paginationPositionY:{type:"object",default:{value:100,valueTablet:"",
2622 -valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},paginationSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationHoverSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationActiveSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationActiveHoverSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},navigationIconSize:{type:"object",default:{value:35,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},slidesPerView:{type:"object",default:{value:1,valueTablet:1,valueMobile:1}},gap:{type:"object",default:{value:0,valueTablet:0,valueMobile:0}},navigationIconPositionY:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"%",
2623 -valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionNextX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionPrevX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},leftIconSvgPath:{type:"string",default:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"},leftIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftIconClass:{type:"string",default:"far fa-arrow-alt-circle-left"},leftIconImageUrl:{type:"string",default:""},leftIconImageID:{type:"number",default:0},leftIconImageSize:{type:"string",default:""},leftIconColor:{type:"string",default:"#69727d"},leftIconBgColor:{
2624 -type:"string",default:""},leftIconHoverColor:{type:"string",default:""},leftIconHoverBgColor:{type:"string",default:""},leftIconType:{type:"string",default:"default"},leftIconShape:{type:"string",default:"circle"},leftIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",
2625 -transitionDuration:""}},leftIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},leftIconSize:{type:"number",default:55},leftIconRotate:{type:"number",default:0},leftIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIcontransitionDuration:{type:"number",default:0},leftIconImageWidth:{type:"number",default:0},rightIconSvgPath:{type:"string",
2603 +;function D_(t){const{attributes:e,setAttributes:i,clientId:o}=t,{verticalAlign:a,autoplayDelay:n,autoplay:s,reverseDirection:b,autoplayPauseOnHover:c,autoPlayReverse:d,grabCursor:u,mousewheel:p,navigation:m,carouselHeight:h,slidesPerView:g,speed:f,effect:y,paginationType:T,paginationPositionY:H,paginationPositionX:x,paginationColor:k,paginationHoverColor:v,paginationActiveColor:_,paginationActiveHoverColor:R,paginationSize:S,paginationHoverSize:W,paginationActiveSize:P,paginationActiveHoverSize:U,navigationIconSize:j,navigationIconPositionY:w,navigationIconPositionNextX:z,navigationIconPositionPrevX:C,navigationIconColor:A,navigationIconBgColor:N,gap:O,slidesPerGroup:Y,centeredSlides:X,activeSlideOffset:B,paginationActiveWidth:E}=e,F=lt(),q=parseFloat((0,M.Ic)(g,"value",F,C_.Po.slidesPerView.default))||1,$=parseFloat((0,M.Ic)(Y,"value",F,C_.lC.slidesPerGroup.default))||1,G=(0,r.useSelect)(t=>t("core/block-editor").getBlockOrder(o).length,[o]),Z="slide"===y&&G<Math.ceil(q)+$,K=(0,
2604 +M.Ic)(j,"valueUnit",F);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-carousel-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Carousel","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("Autoplay, loop and transition effects preview on the frontend only.","ablocks")})}),(0,I.jsx)(Ut,{label:(0,L.__)("Choose Effect","ablocks"),options:[{label:(0,L.__)("Slide","ablocks"),value:"slide"},{label:(0,L.__)("Fade","ablocks"),value:"fade"},{label:(0,L.__)("Cube","ablocks"),value:"cube"},{label:(0,L.__)("Flip","ablocks"),value:"flip"}],attributeName:"effect",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Reverse Direction","ablocks"),attributeValue:b,setAttributes:i,attributeName:"reverseDirection"
2605 +}),"slide"===y&&(0,I.jsx)(_t,{label:(0,L.__)("Slides to Show","ablocks"),attributeValue:g,setAttributes:i,attributeName:"slidesPerView",min:1,step:.1,max:10,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Po}),"slide"===y&&(0,I.jsx)(_t,{label:(0,L.__)("Slides to Scroll","ablocks"),attributeValue:Y,setAttributes:i,attributeName:"slidesPerGroup",min:1,step:1,max:10,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.lC}),"slide"===y&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Centered Slides","ablocks"),attributeValue:X,setAttributes:i,attributeName:"centeredSlides"}),"slide"===y&&X&&(0,I.jsx)(_t,{label:(0,L.__)("Active Slide Offset","ablocks"),attributeValue:B,setAttributes:i,attributeName:"activeSlideOffset",hasUnit:!0,unitOptions:[{value:"px",label:"px"}],min:0,max:200,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.b0}),"slide"===y&&q>1&&(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeValue:O,setAttributes:i,attributeName:"gap",min:0,step:1,max:100,isInline:!1,
2606 +isResponsive:!0,attributeDefaultValue:C_.rQ}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Loop","ablocks"),attributeValue:e?.isLoop,setAttributes:i,attributeName:"isLoop"}),e?.isLoop&&Z&&(0,I.jsx)("p",{className:"components-base-control__help",children:(0,L.__)("Loop needs at least Slides to Show + Slides to Scroll slides; with fewer, the carousel will not loop.","ablocks")}),(0,I.jsx)(_t,{label:(0,L.__)("Speed (ms)","ablocks"),attributeValue:f,setAttributes:i,attributeName:"speed",step:50,min:0,max:5e3,isInline:!1,isResponsive:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Grab Cursor","ablocks"),attributeValue:u,setAttributes:i,attributeName:"grabCursor"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Mousewheel","ablocks"),attributeValue:p,setAttributes:i,attributeName:"mousewheel"})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Carousel Height","ablocks"),attributeName:"carouselHeight",attributeValue:h,setAttributes:i,hasUnit:!0,unitOptions:[{
2607 +value:"px",label:"px"},{value:"vh",label:"vh"}],min:0,max:["vh"].includes(h["valueUnit"+F])?100:1e3,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Qh}),(0,I.jsx)(Wb,{label:(0,L.__)("Vertical Alignment","ablocks"),setAttributes:i,attributeName:"verticalAlign",attributeValue:a,options:[{label:(0,L.__)("Top","ablocks"),value:"start"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:(0,L.__)("Bottom","ablocks"),value:"end"}],isResponsive:!0,allowDeselect:!1})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Pagination","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Pagination","ablocks"),attributeValue:e?.pagination,setAttributes:i,attributeName:"pagination"}),e.pagination&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Pagination Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Border 1","ablocks"),value:"border1"},{label:(0,
2608 +L.__)("Border 2","ablocks"),value:"border2"},{label:(0,L.__)("Border 3","ablocks"),value:"border3"}],attributeName:"paginationType",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Pagination Clickable","ablocks"),attributeValue:e?.paginationClickable,setAttributes:i,attributeName:"paginationClickable"}),(0,I.jsx)(_t,{label:(0,L.__)("Position Y","ablocks"),attributeName:"paginationPositionY",attributeValue:H,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===H?.valueUnit?-250:-50,max:L_(H?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Vq,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Position X","ablocks"),attributeName:"paginationPositionX",attributeValue:x,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===x?.valueUnit?-250:-50,max:L_(x?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.a5,autoSyncRange:!1})]})]}),
2609 +style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"paginationColor",attributeValue:k,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"paginationActiveColor",attributeValue:_,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"paginationSize",attributeValue:S,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.g7}),(0,I.jsx)(_t,{label:(0,L.__)("Active Size","ablocks"),attributeName:"paginationActiveSize",attributeValue:P,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Is}),"default"===T&&(0,I.jsx)(_t,{label:(0,L.__)("Active Width","ablocks"),
2610 +attributeName:"paginationActiveWidth",attributeValue:E,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.hG})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"paginationHoverColor",attributeValue:v,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"paginationActiveHoverColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"paginationHoverSize",attributeValue:W,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Ud}),(0,I.jsx)(_t,{label:(0,L.__)("Active Size","ablocks"),attributeName:"paginationActiveHoverSize",attributeValue:U,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"
2611 +}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Qg})]})}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"paginationBorder",attributeValue:e?.paginationBorder,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Active Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activePaginationBorder",attributeValue:e?.activePaginationBorder,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Autoplay","ablocks"),initialOpen:!1,children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("These feature will only works in frontend","ablocks")})}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Autoplay","ablocks"),attributeValue:s,setAttributes:i,attributeName:"autoplay"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Autoplay Reverse","ablocks"),attributeValue:d,setAttributes:i,attributeName:"autoPlayReverse"}),s&&(0,I.jsxs)(l().Fragment,{
2612 +children:[(0,I.jsx)(_t,{label:(0,L.__)("Autoplay Delay (ms)","ablocks"),attributeValue:n,setAttributes:i,attributeName:"autoplayDelay",min:0,step:100,max:25e3,isInline:!1,isResponsive:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Autoplay Pause On Hover","ablocks"),attributeValue:c,setAttributes:i,attributeName:"autoplayPauseOnHover"})]})]}),(0,I.jsxs)(V,{title:(0,L.__)("Navigation","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Navigation","ablocks"),attributeValue:m,setAttributes:i,attributeName:"navigation"}),m&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Left Icon","ablocks"),attributes:e,attributePrefix:"leftIcon",setAttributes:i,legacySupport:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Right Icon","ablocks"),attributePrefix:"rightIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"navigationIconSize",attributeValue:j,setAttributes:i,hasUnit:!0,
2613 +unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:A_(K),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Pu}),(0,I.jsx)(_t,{label:(0,L.__)("Position Y","ablocks"),attributeName:"navigationIconPositionY",attributeValue:w,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===w?.valueUnit?-250:-50,max:L_(w?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Yd,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Nav Next X","ablocks"),attributeName:"navigationIconPositionNextX",attributeValue:z,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===z?.valueUnit?-250:-50,max:L_(z?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Wu,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Nav Prev X","ablocks"),attributeName:"navigationIconPositionPrevX",attributeValue:C,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",
2614 +label:"%"},{value:"px",label:"px"}],min:"px"===C?.valueUnit?-250:-50,max:L_(C?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.qO,autoSyncRange:!1})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigationIconColor",attributeValue:A,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"navigationIconBgColor",attributeValue:N,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigationIconColorH",attributeValue:e?.navigationIconColorH,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"navigationIconBgColorH",attributeValue:e?.navigationIconBgColorH,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,
2615 +attributeValue:e?.navigationIconTransition||0,attributeName:"navigationIconTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"navigationIconPadding",attributeValue:e?.navigationIconPadding,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"navigationIconBorder",attributeValue:e?.navigationIconBorder,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"navigationIconBoxShadow",attributeValue:e?.navigationIconBoxShadow,setAttributes:i})]})})]})]})})})}D_.propTypes={},D_.defaultProps={};const N_={UU:"ablocks/carousel",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},effect:{type:"string",default:"slide"},reverseDirection:{type:"boolean",default:!0},carouselSlideLength:{type:"number",default:1},
2616 +centeredSlides:{type:"boolean",default:!1},isLoop:{type:"boolean",default:!1},autoplay:{type:"boolean",default:!0},autoPlayReverse:{type:"boolean",default:!1},autoplayDelay:{type:"number",default:3e3},autoplayProgress:{type:"boolean",default:!0},autoplayPauseOnHover:{type:"boolean",default:!0},speed:{type:"number",default:800},paginationType:{type:"string",default:"default"},pagination:{type:"boolean",default:!0},paginationClickable:{type:"boolean",default:!0},navigation:{type:"boolean",default:!0},navigationIconColor:{type:"string",default:"#686868"},navigationIconColorH:{type:"string",default:""},navigationIconBgColor:{type:"string",default:"#e4e4e4"},navigationIconBgColorH:{type:"string",default:""},navigationIconTransition:{type:"number",default:""},paginationColor:{type:"string",default:"black"},paginationHoverColor:{type:"string",default:"black"},paginationActiveColor:{type:"string",default:"black"},paginationActiveHoverColor:{type:"string",default:"black"},grabCursor:{
2617 +type:"boolean",default:!0},mousewheel:{type:"boolean",default:!0},verticalAlignment:{type:"string",default:"center"},verticalAlign:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},navigationIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",
2618 +rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},paginationBorder:{
2619 +type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",
2620 +commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},activePaginationBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",
2621 +topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",
2622 +leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},navigationIconPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},navigationIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",
2623 +presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},carouselHeight:{type:"object",default:{value:300,valueTablet:300,valueMobile:300,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationPositionX:{type:"object",default:{value:47,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},paginationPositionY:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},paginationSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationHoverSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationActiveSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationActiveHoverSize:{type:"object",default:{value:8,valueTablet:"",
2624 +valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},navigationIconSize:{type:"object",default:{value:35,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},slidesPerView:{type:"object",default:{value:1,valueTablet:1,valueMobile:1}},gap:{type:"object",default:{value:0,valueTablet:0,valueMobile:0}},slidesPerGroup:{type:"object",default:{value:1,valueTablet:1,valueMobile:1}},activeSlideOffset:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationActiveWidth:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionY:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionNextX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},
2625 +navigationIconPositionPrevX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},leftIconSvgPath:{type:"string",default:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"},leftIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftIconClass:{type:"string",default:"far fa-arrow-alt-circle-left"},leftIconImageUrl:{type:"string",default:""},leftIconImageID:{type:"number",default:0},leftIconImageSize:{type:"string",default:""},leftIconColor:{type:"string",default:"#69727d"},leftIconBgColor:{type:"string",default:""},leftIconHoverColor:{type:"string",default:""},leftIconHoverBgColor:{type:"string",default:""},leftIconType:{type:"string",default:"default"},leftIconShape:{
2626 +type:"string",default:"circle"},leftIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},leftIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",
2627 +shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},leftIconSize:{type:"number",default:55},leftIconRotate:{type:"number",default:0},leftIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIcontransitionDuration:{type:"number",default:0},leftIconImageWidth:{type:"number",default:0},rightIconSvgPath:{type:"string",
2626 2628 default:"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z"},rightIconSvgViewBox:{type:"string",default:"0 0 512 512"},rightIconClass:{type:"string",default:"far fa-arrow-alt-circle-right"},rightIconImageUrl:{type:"string",default:""},rightIconImageID:{type:"number",default:0},rightIconImageSize:{type:"string",default:""},rightIconColor:{type:"string",default:"#69727d"},rightIconBgColor:{type:"string",default:""},rightIconHoverColor:{type:"string",default:""},rightIconHoverBgColor:{type:"string",default:""},rightIconType:{type:"string",default:"default"},rightIconShape:{type:"string",default:"circle"},rightIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},rightIconBorder:{
2627 2629 type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},rightIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},rightIconSize:{type:"number",default:55},rightIconRotate:{
2628 2630 type:"number",default:0},rightIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},rightIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightIcontransitionDuration:{type:"number",default:0},rightIconImageWidth:{type:"number",default:0},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",
2629 2631 topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",
@@ -2632,27 +2634,29 @@
2632 2634 imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",
2633 2635 imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,
2634 2636 scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",
2635 2637 skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",
2636 -animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function I_(t={},e={}){const i=t=>null!=t&&""!==t,o=window.ABlocksGlobal||{},a=[{suffix:"Tablet",
2637 -max:parseInt(o.breakpoints?.tablet,10)||800},{suffix:"Mobile",max:parseInt(o.breakpoints?.mobile,10)||480},...(o.responsive_devices||[]).filter(t=>t?.suffix&&"Tablet"!==t.id&&"Mobile"!==t.id&&!(parseInt(t.min,10)>0)&&parseInt(t.max,10)>0).map(t=>({suffix:t.suffix,max:parseInt(t.max,10)}))].sort((t,e)=>e.max-t.max);let l=i(t?.value)?t.value:1,n=i(e?.value)?e.value:0;const s={[a[0].max+1]:{slidesPerView:l,spaceBetween:n}};return a.forEach((o,r)=>{const b=t?.["value"+o.suffix],c=e?.["value"+o.suffix];l=i(b)?b:l,n=i(c)?c:n;const d=a[r+1];s[d?d.max+1:0]={slidesPerView:l,spaceBetween:n}}),s}function V_(t){const{attributes:e,setAttributes:i,clientId:n}=t,s=(0,r.useDispatch)(),{block_id:b,alignment:c,navigation:d,carouselSlideLength:u,pagination:p,paginationClickable:m,paginationType:h}=e,{insertBlock:g}=wp.blockEditor?s("core/block-editor"):s("core/editor"),{children:f,...y}=(0,D.useInnerBlocksProps)({className:"swiper-wrapper"},{template:[["ablocks/carousel-child"]],renderAppender:!1}),T={
2638 -pagination:p,navigation:d,paginationClickable:m};(0,a.useEffect)(()=>{const t=function(t,e){if(!t)return null;const i=t?.querySelector(".ablocks-carousel-swiper"),o=t?.querySelector(".ablocks-carousel-navigation__button--prev"),a=t?.querySelector(".ablocks-carousel-navigation__button--next"),l=t?.querySelector(".ablocks-carousel-pagination"),n=i?.getAttribute("data-swiper-options"),s=i?.getAttribute("data-swiper-frontend-options"),r=JSON.parse(i?.getAttribute("data-swiper-slides-per-view")),b=JSON.parse(i?.getAttribute("data-swiper-gap")),c=t?.querySelector(".ablocks-carousel-autoplay-progress svg"),d=t?.querySelector(".ablocks-carousel-autoplay-progress span"),u=JSON.parse(n),p=JSON.parse(s),m={navigation:{nextEl:a,prevEl:o,disabledClass:"ablocks-carousel-navigation__button--disabled"},pagination:{el:l,clickable:!!u.paginationClickable}};return i?new Swiper(i,{observer:!0,observeParents:!0,...e?{}:{allowTouchMove:!1,simulateTouch:!1},...m,...p,
2639 -breakpoints:e&&"slide"===p?.effect?I_(r,b):{},on:{autoplayTimeLeft(t,e,i){c&&c.style.setProperty("--progress",1-i),d&&(d.textContent=`${Math.ceil(e/1e3)}s`)}}}):null}((0,M.bu)(`.ablocks-block-${b}`));return()=>{t&&!t.destroyed&&t.destroy(!0,!1)}},[p,m,d]);const H=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{H.current?"default"===h?i({paginationColor:"gray",paginationActiveColor:"#000000",paginationBorder:{...e.paginationBorder||{},commonWidth:"",borderStyle:""}}):("border1"===h||"border2"===h||"border3"===h)&&i({paginationColor:"#000000",paginationActiveColor:"#000000",paginationBorder:{...e.paginationBorder||{},commonWidth:"2",borderStyle:"solid"}}):H.current=!0},[h]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i})}),(0,I.jsxs)(Yb.A,{blockId:b,name:N_.UU,attributes:e,children:[(0,I.jsx)("div",{className:"swiper ablocks-carousel-swiper ","data-swiper-options":JSON.stringify(T),children:(0,I.jsxs)("div",{...y,
2640 -children:[f,(0,I.jsx)("div",{role:"presentation",onClick:()=>{const t=(0,o.createBlock)("ablocks/carousel-child");g(t,u,n),i({carouselSlideLength:u+1})},className:"swiper-slide ablocks-carousel-swiper-slide--custom",children:(0,I.jsx)("button",{className:"ablocks-carousel-swiper-slide--custom__btn",children:"Add new"})})]})}),p&&(0,I.jsx)("div",{className:"ablocks-carousel-pagination"}),d&&(0,I.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,I.jsx)(Fd,{attributePrefix:"leftIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,I.jsx)(Fd,{attributePrefix:"rightIcon",attributes:e})})]})]})]})}V_.propTypes={},V_.defaultProps={};const O_=(t,e="")=>{const{carouselHeight:i,verticalAlign:o}=t,a={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",
2641 -isResponsive:!0,defaultValue:300,hasUnit:!0,unitDefaultValue:"px",property:"min-height",device:e})};return o["value"+e]&&(a["align-items"]=o["value"+e]),a},Y_=(t,e="")=>{const{navigationIconPositionY:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:50,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"top",device:e})}},X_=(t,e="")=>{const{navigationIconPositionNextX:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:-3,hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",property:"right",device:e})}},B_=(t,e="")=>{const{navigationIconPositionPrevX:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:-3,hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",property:"left",device:e})}},E_=(t,e="")=>{const{navigationIconSize:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:35,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"font-size",device:e})}
2642 -},F_=(t,e="")=>{const{navigationIconColor:i,navigationIconBgColor:o}=t,a={};i&&(a.fill=(0,Hs.qD)(i)),o&&(a["background-color"]=(0,Hs.qD)(o));const l=(0,M.Zy)(t?.navigationIconPadding,{unit:"px"}),n=(0,M.Zy)(t.navigationIconBorder,{unitWidth:"px",unitRadius:"px"});return{...a,...(0,c.qD)(l,"navigationIconPadding",e),...(0,c.qD)(t?.navigationIconPadding,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t.navigationIconBoxShadow,e)}},q_=(t,e="")=>{const{navigationIconColorH:i,navigationIconBgColorH:o}=t,a={...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})},l={};i&&(l.fill=(0,Hs.qD)(o)),o&&(l["background-color"]=(0,Hs.qD)(o));const n=(0,M.Zy)(t.navigationIconBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...a,...l,...(0,y.a9)(n,e),...(0,H.a9)(t.navigationIconBoxShadow,e)}},$_=(t,e="")=>{const{paginationPositionY:i,paginationPositionX:o}=t,a=(0,M.Zy)(i,{value:100}),l=(0,M.Zy)(o,{value:47});return{...(0,
2643 -Eb.qD)({attributeValue:a,attributeObjectKey:"value",defaultValue:100,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"top",device:e}),...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",defaultValue:47,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"left",device:e})}},G_=(t,e="")=>{const{paginationColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,Hs.qD)(i),a["background-color"]="transparent"):"border2"===o&&(a["background-color"]=(0,Hs.qD)(i),a["border-color"]=(0,Hs.qD)(i))),"border3"===o){const{width:i,height:o}=Q_(t.paginationSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.paginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,
2644 -Eb.qD)({attributeValue:t.paginationSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.qD)(l,e)}},Z_=(t,e="")=>{const{paginationHoverColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,Hs.qD)(i),a["background-color"]=(0,Hs.qD)(i)):"border2"===o&&(a["background-color"]="transparent",a["border-color"]=(0,Hs.qD)(i))),"border3"===o){const{width:i,height:o}=Q_(t.paginationHoverSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.paginationHoverBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationHoverSize,attributeObjectKey:"value",defaultValue:8,
2645 -isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.a9)(l,e)}},K_=(t,e="")=>{const{paginationActiveColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["background-color"]=(0,Hs.qD)(i),a["border-color"]=(0,Hs.qD)(i)):"border2"===o&&(a["border-color"]=(0,Hs.qD)(i),a["background-color"]="transparent")),"border3"===o){const{width:i,height:o}=Q_(t.paginationActiveSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.activePaginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,
2646 -y.qD)(l,e)}},J_=(t,e="")=>{const{paginationActiveHoverColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,Hs.qD)(i),a["background-color"]="transparent"):"border2"===o&&(a["background-color"]=(0,Hs.qD)(i),a["border-color"]=(0,Hs.qD)(i))),"border3"===o){const{width:i,height:o}=Q_(t.paginationActiveHoverSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.activePaginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.a9)(l,e)}};function Q_(t,e=""){const i=(0,M.Zy)(t,{value:8,
2647 -valueUnit:"px"}),o="valueUnit"+e,a=Number(i["value"+e]??i.value??8),l=(i[o]??i.valueUnit??"px")||"px";return{height:`${a}${l}`,width:`${1.8*a}${l}`}}function tR(t){const{attributes:e}=t,{block_id:i,isLoop:o,autoplayDelay:a,reverseDirection:n,autoplay:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,speed:p,pagination:m,paginationClickable:h,effect:g,slidesPerView:f,gap:y,carouselSlideLength:T}=e,H={pagination:m,navigation:u,paginationClickable:h},x={effect:g,loop:o,grabCursor:c,mousewheel:d,speed:p};n&&(x.initialSlide=T-1),s&&(x.autoplay={delay:a,pauseOnMouseEnter:r,reverseDirection:b}),"fade"===g?x.fadeEffect={crossFade:!0}:"cube"===g&&(x.cubeEffect={shadow:!1,slideShadows:!0,shadowOffset:20,shadowScale:.94});const k=(0,M.Zy)(f,{value:1,valueMobile:1,valueTablet:1}),v=(0,M.Zy)(y,{value:0,valueMobile:0,valueTablet:0});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:N_.UU,attributes:e,children:[(0,I.jsx)("div",{
2648 -className:"swiper ablocks-carousel-swiper","data-swiper-options":JSON.stringify(H),"data-swiper-frontend-options":JSON.stringify(x),"data-swiper-slides-per-view":JSON.stringify(k),"data-swiper-gap":JSON.stringify(v),children:(0,I.jsx)("div",{className:"swiper-wrapper",children:(0,I.jsx)(D.InnerBlocks.Content,{})})}),m&&(0,I.jsx)("div",{className:"ablocks-carousel-pagination"}),u&&(0,I.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,I.jsx)(Fd,{attributePrefix:"leftIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,I.jsx)(Fd,{attributePrefix:"rightIcon",attributes:e})})]})]})})}tR.propTypes={},tR.defaultProps={};const eR={UU:"ablocks/carousel",uK:{block_id:{type:"string",default:""},effect:{type:"string",default:"slide"},reverseDirection:{type:"boolean",
2649 -default:!0},carouselSlideLength:{type:"number",default:1},isLoop:{type:"boolean",default:!1},autoplay:{type:"boolean",default:!0},autoPlayReverse:{type:"boolean",default:!1},autoplayDelay:{type:"number",default:3e3},autoplayProgress:{type:"boolean",default:!0},autoplayPauseOnHover:{type:"boolean",default:!0},speed:{type:"number",default:800},pagination:{type:"boolean",default:!0},paginationClickable:{type:"boolean",default:!0},navigation:{type:"boolean",default:!0},navigationIconColor:{type:"string",default:"#686868"},navigationIconColorH:{type:"string",default:""},navigationIconBgColor:{type:"string",default:"#e4e4e4"},navigationIconBgColorH:{type:"string",default:""},navigationIconTransition:{type:"number",default:""},paginationColor:{type:"string",default:"black"},paginationActiveColor:{type:"string",default:"black"},grabCursor:{type:"boolean",default:!0},mousewheel:{type:"boolean",default:!0},verticalAlignment:{type:"string",default:"center"},navigationIconBorder:{type:"object",
2650 -default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",
2651 -topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},navigationIconPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",
2652 -rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},carouselHeight:{type:"object",default:{value:300,valueTablet:300,valueMobile:300,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},navigationIconSize:{type:"object",default:{value:35,valueTablet:35,valueMobile:35,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},slidesPerView:{type:"object",default:{value:1,valueTablet:1,valueMobile:1}},gap:{type:"object",default:{value:0,valueTablet:0,valueMobile:0}},navigationIconPositionY:{type:"object",default:{value:50,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionNextX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionPrevX:{type:"object",default:{value:-3,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},leftIconSvgPath:{type:"string",
2653 -default:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"},leftIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftIconClass:{type:"string",default:"far fa-arrow-alt-circle-left"},leftIconImageUrl:{type:"string",default:""},leftIconImageID:{type:"number",default:0},leftIconImageSize:{type:"string",default:""},leftIconColor:{type:"string",default:"#69727d"},leftIconBgColor:{type:"string",default:""},leftIconType:{type:"string",default:"default"},leftIconShape:{type:"string",default:"circle"},leftIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftIconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftIconBorderWidth:{
2654 -type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftIconSize:{type:"number",default:55},leftIconRotate:{type:"number",default:0},leftIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIcontransitionDuration:{type:"number",default:0},leftIconImageWidth:{type:"number",default:0},rightIconSvgPath:{type:"string",
2638 +animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},I_={slidesPerView:["slidesPerView",1,t=>parseFloat(t)||1],spaceBetween:["gap",0,t=>parseFloat(t)||0],
2639 +slidesPerGroup:["slidesPerGroup",1,t=>Math.max(1,Math.round(parseFloat(t))||1)]},V_=(t,e)=>(!t.min||e>=t.min)&&(!t.max||e<=t.max);function O_(t={}){const e=function(){const t=window.ABlocksGlobal||{},e=parseInt(t.breakpoints?.tablet,10)||800,i=parseInt(t.breakpoints?.mobile,10)||480,o=t.responsive_devices?.length?t.responsive_devices:[{id:"Desktop",suffix:""},{id:"Tablet",suffix:"Tablet",width:e,max:e},{id:"Mobile",suffix:"Mobile",width:i,max:i}],a=t=>!t.min&&!t.max;return o.map(t=>({id:t.id,suffix:t.suffix||"",width:Number(t.width)||0,min:Number(t.min)||0,max:Number(t.max)||0})).sort((t,e)=>a(t)!==a(e)?a(t)?-1:1:e.width-t.width||String(t.id).localeCompare(String(e.id)))}(),i=e.find(t=>!t.min&&!t.max)||{suffix:""},o=e.filter(t=>t.min||t.max),a=new Set([0]);o.forEach(t=>{t.min&&a.add(t.min),t.max&&a.add(t.max+1)});const l={};return a.forEach(e=>{const a=[...o].reverse().find(t=>V_(t,e))||i;l[e]=(e=>{const a=[e];if(e!==i){const t=o.indexOf(e),l=e.max||e.min
2640 +;for(let e=t-1;e>=0;e--)V_(o[e],l)&&a.push(o[e]);a.push(i)}const l={};return Object.entries(I_).forEach(([e,[i,o,n]])=>{const s=a.find(e=>{return o=t[i]?.["value"+e.suffix],null!=o&&""!==o;var o});l[e]=n(s?t[i]["value"+s.suffix]:o)}),l})(a)}),l}const Y_=(t,e)=>{try{return JSON.parse(t?.getAttribute(e))||{}}catch(t){return{}}};function X_(t){const{attributes:e,setAttributes:i,clientId:n}=t,s=(0,r.useDispatch)(),{block_id:b,alignment:c,navigation:d,carouselSlideLength:u,pagination:p,paginationClickable:m,paginationType:h}=e,{insertBlock:g}=wp.blockEditor?s("core/block-editor"):s("core/editor"),{children:f,...y}=(0,D.useInnerBlocksProps)({className:"swiper-wrapper"},{template:[["ablocks/carousel-child"]],renderAppender:!1}),T={pagination:p,navigation:d,paginationClickable:m},H=lt(),x="slide"===e.effect,k=(t,i,o)=>{const a=parseFloat((0,M.Ic)(e[t],"value",H,i[t].default));return Number.isNaN(a)?o:a
2641 +},v=x?Math.max(1,k("slidesPerView",C_.Po,1)):1,_=x?k("gap",C_.rQ,0):0,R=x?Math.max(1,Math.round(k("slidesPerGroup",C_.lC,1))):1,S=x&&!!e.centeredSlides;(0,a.useEffect)(()=>{const t=function(t,e,i={}){if(!t)return null;const o=t?.querySelector(".ablocks-carousel-swiper"),a=t?.querySelector(".ablocks-carousel-navigation__button--prev"),l=t?.querySelector(".ablocks-carousel-navigation__button--next"),n=t?.querySelector(".ablocks-carousel-pagination"),s=o?.getAttribute("data-swiper-options"),r=o?.getAttribute("data-swiper-frontend-options"),b={slidesPerView:Y_(o,"data-swiper-slides-per-view"),gap:Y_(o,"data-swiper-gap"),slidesPerGroup:Y_(o,"data-swiper-slides-per-group")},c=t?.querySelector(".ablocks-carousel-autoplay-progress svg"),d=t?.querySelector(".ablocks-carousel-autoplay-progress span"),u=JSON.parse(s),p=JSON.parse(r),m={navigation:{nextEl:l,prevEl:a,disabledClass:"ablocks-carousel-navigation__button--disabled"},pagination:{el:n,clickable:!!u.paginationClickable}},h=e?{}:{
2642 +allowTouchMove:!1,simulateTouch:!1,...i};return o?new Swiper(o,{observer:!0,observeParents:!0,...h,...m,...p,breakpoints:e&&"slide"===p?.effect?O_(b):{},on:{autoplayTimeLeft(t,e,i){c&&c.style.setProperty("--progress",1-i),d&&(d.textContent=`${Math.ceil(e/1e3)}s`)}}}):null}((0,M.bu)(`.ablocks-block-${b}`),!1,{slidesPerView:v,spaceBetween:_,slidesPerGroup:R,centeredSlides:S});return()=>{t&&!t.destroyed&&t.destroy(!0,!1)}},[p,m,d,v,_,R,S]);const W=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{W.current?"default"===h?i({paginationColor:"gray",paginationActiveColor:"#000000",paginationBorder:{...e.paginationBorder||{},commonWidth:"",borderStyle:""}}):("border1"===h||"border2"===h||"border3"===h)&&i({paginationColor:"#000000",paginationActiveColor:"#000000",paginationBorder:{...e.paginationBorder||{},commonWidth:"2",borderStyle:"solid"}}):W.current=!0},[h]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i})}),(0,
2643 +I.jsxs)(Yb.A,{blockId:b,name:N_.UU,attributes:e,children:[(0,I.jsx)("div",{className:"swiper ablocks-carousel-swiper ","data-swiper-options":JSON.stringify(T),children:(0,I.jsxs)("div",{...y,children:[f,(0,I.jsx)("div",{role:"presentation",onClick:()=>{const t=(0,o.createBlock)("ablocks/carousel-child");g(t,u,n),i({carouselSlideLength:u+1})},className:"swiper-slide ablocks-carousel-swiper-slide--custom",children:(0,I.jsx)("button",{className:"ablocks-carousel-swiper-slide--custom__btn",children:"Add new"})})]})}),p&&(0,I.jsx)("div",{className:"ablocks-carousel-pagination"}),d&&(0,I.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,I.jsx)(Fd,{attributePrefix:"leftIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,I.jsx)(Fd,{attributePrefix:"rightIcon",
2644 +attributes:e})})]})]})]})}X_.propTypes={},X_.defaultProps={};const B_=(t,e="")=>{const{carouselHeight:i,verticalAlign:o}=t,a={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:300,hasUnit:!0,unitDefaultValue:"px",property:"min-height",device:e})};o["value"+e]&&(a["align-items"]=o["value"+e]);const l=E_(t,e);return l&&(a["padding-bottom"]=l),a},E_=(t,e="")=>"slide"===t.effect&&t.centeredSlides&&(0,Eb.qD)({attributeValue:t.activeSlideOffset,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"offset",device:e}).offset||"",F_=(t,e="")=>E_(t,e)?{transition:"transform 0.4s ease"}:{},q_=(t,e="")=>{const i=E_(t,e);return i?{transform:`translateY(${i})`}:{}},$_=(t,e="")=>{if("default"!==t.paginationType)return{};const{width:i}=(0,Eb.qD)({attributeValue:t.paginationActiveWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e});return i?{width:i,"border-radius":"9999px",
2645 +transition:"width 0.3s ease"}:{}},G_=(t,e="")=>{const{navigationIconPositionY:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:50,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"top",device:e})}},Z_=(t,e="")=>{const{navigationIconPositionNextX:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:-3,hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",property:"right",device:e})}},K_=(t,e="")=>{const{navigationIconPositionPrevX:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:-3,hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",property:"left",device:e})}},J_=(t,e="")=>{const{navigationIconSize:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:35,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"font-size",device:e})}},Q_=(t,e="")=>{const{navigationIconColor:i,navigationIconBgColor:o}=t,a={};i&&(a.fill=(0,Hs.qD)(i)),o&&(a["background-color"]=(0,
2646 +Hs.qD)(o));const l=(0,M.Zy)(t?.navigationIconPadding,{unit:"px"}),n=(0,M.Zy)(t.navigationIconBorder,{unitWidth:"px",unitRadius:"px"});return{...a,...(0,c.qD)(l,"navigationIconPadding",e),...(0,c.qD)(t?.navigationIconPadding,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t.navigationIconBoxShadow,e)}},tR=(t,e="")=>{const{navigationIconColorH:i,navigationIconBgColorH:o}=t,a={...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})},l={};i&&(l.fill=(0,Hs.qD)(o)),o&&(l["background-color"]=(0,Hs.qD)(o));const n=(0,M.Zy)(t.navigationIconBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...a,...l,...(0,y.a9)(n,e),...(0,H.a9)(t.navigationIconBoxShadow,e)}},eR=(t,e="")=>{const{paginationPositionY:i,paginationPositionX:o}=t,a=(0,M.Zy)(i,{value:100}),l=(0,M.Zy)(o,{value:47});return{...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",defaultValue:100,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"top",
2647 +device:e}),...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",defaultValue:47,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"left",device:e})}},iR=(t,e="")=>{const{paginationColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,Hs.qD)(i),a["background-color"]="transparent"):"border2"===o&&(a["background-color"]=(0,Hs.qD)(i),a["border-color"]=(0,Hs.qD)(i))),"border3"===o){const{width:i,height:o}=nR(t.paginationSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.paginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",
2648 +property:"height",device:e}),...(0,y.qD)(l,e)}},oR=(t,e="")=>{const{paginationHoverColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,Hs.qD)(i),a["background-color"]=(0,Hs.qD)(i)):"border2"===o&&(a["background-color"]="transparent",a["border-color"]=(0,Hs.qD)(i))),"border3"===o){const{width:i,height:o}=nR(t.paginationHoverSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.paginationHoverBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.a9)(l,e)}},aR=(t,e="")=>{
2649 +const{paginationActiveColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["background-color"]=(0,Hs.qD)(i),a["border-color"]=(0,Hs.qD)(i)):"border2"===o&&(a["border-color"]=(0,Hs.qD)(i),a["background-color"]="transparent")),"border3"===o){const{width:i,height:o}=nR(t.paginationActiveSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.activePaginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.qD)(l,e),...$_(t,e)}},lR=(t,e="")=>{const{paginationActiveHoverColor:i,paginationType:o}=t,a={}
2650 +;if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,Hs.qD)(i),a["background-color"]="transparent"):"border2"===o&&(a["background-color"]=(0,Hs.qD)(i),a["border-color"]=(0,Hs.qD)(i))),"border3"===o){const{width:i,height:o}=nR(t.paginationActiveHoverSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.activePaginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.a9)(l,e),...$_(t,e)}};function nR(t,e=""){const i=(0,M.Zy)(t,{value:8,valueUnit:"px"
2651 +}),o="valueUnit"+e,a=Number(i["value"+e]??i.value??8),l=(i[o]??i.valueUnit??"px")||"px";return{height:`${a}${l}`,width:`${1.8*a}${l}`}}function sR(t){const{attributes:e}=t,{block_id:i,isLoop:o,autoplayDelay:a,reverseDirection:n,autoplay:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,speed:p,pagination:m,paginationClickable:h,effect:g,slidesPerView:f,gap:y,slidesPerGroup:T,centeredSlides:H,carouselSlideLength:x}=e,k={pagination:m,navigation:u,paginationClickable:h},v={effect:g,loop:o,grabCursor:c,mousewheel:d,speed:p};H&&"slide"===g&&(v.centeredSlides=!0),n&&(v.initialSlide=x-1),s&&(v.autoplay={delay:a,pauseOnMouseEnter:r,reverseDirection:b}),"fade"===g?v.fadeEffect={crossFade:!0}:"cube"===g&&(v.cubeEffect={shadow:!1,slideShadows:!0,shadowOffset:20,shadowScale:.94});const _=(0,M.Zy)(f,{value:1,valueMobile:1,valueTablet:1}),R=(0,M.Zy)(y,{value:0,valueMobile:0,valueTablet:0}),S=Object.keys(T||{}).some(t=>!["",null,void 0,1,"1"].includes(T[t]));return(0,
2652 +I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:N_.UU,attributes:e,children:[(0,I.jsx)("div",{className:"swiper ablocks-carousel-swiper","data-swiper-options":JSON.stringify(k),"data-swiper-frontend-options":JSON.stringify(v),"data-swiper-slides-per-view":JSON.stringify(_),"data-swiper-gap":JSON.stringify(R),"data-swiper-slides-per-group":S?JSON.stringify(T):void 0,children:(0,I.jsx)("div",{className:"swiper-wrapper",children:(0,I.jsx)(D.InnerBlocks.Content,{})})}),m&&(0,I.jsx)("div",{className:"ablocks-carousel-pagination"}),u&&(0,I.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,I.jsx)(Fd,{attributePrefix:"leftIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,I.jsx)(Fd,{attributePrefix:"rightIcon",attributes:e})})]})]})})}sR.propTypes={},
2653 +sR.defaultProps={};const rR={UU:"ablocks/carousel",uK:{block_id:{type:"string",default:""},effect:{type:"string",default:"slide"},reverseDirection:{type:"boolean",default:!0},carouselSlideLength:{type:"number",default:1},isLoop:{type:"boolean",default:!1},autoplay:{type:"boolean",default:!0},autoPlayReverse:{type:"boolean",default:!1},autoplayDelay:{type:"number",default:3e3},autoplayProgress:{type:"boolean",default:!0},autoplayPauseOnHover:{type:"boolean",default:!0},speed:{type:"number",default:800},pagination:{type:"boolean",default:!0},paginationClickable:{type:"boolean",default:!0},navigation:{type:"boolean",default:!0},navigationIconColor:{type:"string",default:"#686868"},navigationIconColorH:{type:"string",default:""},navigationIconBgColor:{type:"string",default:"#e4e4e4"},navigationIconBgColorH:{type:"string",default:""},navigationIconTransition:{type:"number",default:""},paginationColor:{type:"string",default:"black"},paginationActiveColor:{type:"string",default:"black"},
2654 +grabCursor:{type:"boolean",default:!0},mousewheel:{type:"boolean",default:!0},verticalAlignment:{type:"string",default:"center"},navigationIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",
2655 +unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},navigationIconPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",
2656 +top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},carouselHeight:{type:"object",default:{value:300,valueTablet:300,valueMobile:300,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},navigationIconSize:{type:"object",default:{value:35,valueTablet:35,valueMobile:35,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},slidesPerView:{type:"object",default:{value:1,valueTablet:1,valueMobile:1}},gap:{type:"object",default:{value:0,valueTablet:0,valueMobile:0}},navigationIconPositionY:{type:"object",default:{value:50,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionNextX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionPrevX:{type:"object",default:{value:-3,valueUnit:"%",valueUnitTablet:"",
2657 +valueUnitMobile:""}},leftIconSvgPath:{type:"string",default:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"},leftIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftIconClass:{type:"string",default:"far fa-arrow-alt-circle-left"},leftIconImageUrl:{type:"string",default:""},leftIconImageID:{type:"number",default:0},leftIconImageSize:{type:"string",default:""},leftIconColor:{type:"string",default:"#69727d"},leftIconBgColor:{type:"string",default:""},leftIconType:{type:"string",default:"default"},leftIconShape:{type:"string",default:"circle"},leftIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftIconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",
2658 +bottom:"",left:"",unit:"px"}},leftIconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftIconSize:{type:"number",default:55},leftIconRotate:{type:"number",default:0},leftIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIcontransitionDuration:{type:"number",default:0},leftIconImageWidth:{type:"number",default:0},rightIconSvgPath:{type:"string",
2655 2659 default:"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z"},rightIconSvgViewBox:{type:"string",default:"0 0 512 512"},rightIconClass:{type:"string",default:"far fa-arrow-alt-circle-right"},rightIconImageUrl:{type:"string",default:""},rightIconImageID:{type:"number",default:0},rightIconImageSize:{type:"string",default:""},rightIconColor:{type:"string",default:"#69727d"},rightIconBgColor:{type:"string",default:""},rightIconType:{type:"string",default:"default"},rightIconShape:{type:"string",default:"circle"},rightIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},rightIconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},
2656 2660 rightIconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},rightIconSize:{type:"number",default:55},rightIconRotate:{type:"number",default:0},rightIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},rightIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightIcontransitionDuration:{type:"number",default:0},rightIconImageWidth:{type:"number",default:0},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",
2657 2661 unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",
2658 2662 unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",
@@ -2660,48 +2664,48 @@
2660 2664 imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",
2661 2665 imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",
2662 2666 offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",
2663 2667 scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",
2664 -yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function iR(t){const{attributes:e}=t,{block_id:i,isLoop:o,autoplayDelay:a,reverseDirection:n,autoplay:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,speed:p,pagination:m,paginationClickable:h,effect:g,slidesPerView:f,gap:y,carouselSlideLength:T}=e,H={pagination:m,navigation:u,paginationClickable:h},x={effect:g,loop:o,grabCursor:c,mousewheel:d,speed:p}
2665 -;n&&(x.initialSlide=T-1),s&&(x.autoplay={delay:a,pauseOnMouseEnter:r,reverseDirection:b}),"fade"===g?x.fadeEffect={crossFade:!0}:"cube"===g&&(x.cubeEffect={shadow:!1,slideShadows:!0,shadowOffset:20,shadowScale:.94});const k=(0,M.Zy)(f,{value:1,valueMobile:1,valueTablet:1}),v=(0,M.Zy)(y,{value:0,valueMobile:0,valueTablet:0});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:eR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"swiper ablocks-carousel-swiper","data-swiper-options":JSON.stringify(H),"data-swiper-frontend-options":JSON.stringify(x),"data-swiper-slides-per-view":JSON.stringify(k),"data-swiper-gap":JSON.stringify(v),children:(0,I.jsx)("div",{className:"swiper-wrapper",children:(0,I.jsx)(D.InnerBlocks.Content,{})})}),m&&(0,I.jsx)("div",{className:"ablocks-carousel-pagination"}),u&&(0,I.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,I.jsx)("div",{
2666 -className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,I.jsx)(Fd,{attributePrefix:"leftIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,I.jsx)(Fd,{attributePrefix:"rightIcon",attributes:e})})]})]})})}iR.propTypes={},iR.defaultProps={},(0,M.xV)(N_.UU)&&(0,o.registerBlockType)(N_.UU,{title:(0,L.__)("Carousel","ablocks"),attributes:N_.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-carousel"}),edit:function(t){const{attributes:e,setAttributes:i,clientId:o,isSelected:l}=t,{block_id:n}=e;(0,a.useEffect)(()=>{n&&n===o||i({block_id:o}),e?.blockVersion||i({blockVersion:2})},[n,o]),(0,a.useEffect)(()=>{(!e?.verticalAlign||""!==e?.verticalAlignment&&e?.verticalAlign?.value!==e?.verticalAlignment)&&i({verticalAlign:{value:e?.verticalAlignment||"",valueTablet:"",valueMobile:""},verticalAlignment:""})},[]);const s=(0,a.useMemo)(()=>{
2667 -if(!e?.verticalAlign)return"";let t=null;if(t?2!==e?.blockVersion||t instanceof A?2===e?.blockVersion||t instanceof C||(t=new C(e,o)):t=new A(e,o):t=2===e?.blockVersion?new A(e,o):new C(e,o),null===t)return"";const i=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-carousel-swiper .swiper-wrapper ",O_(e),O_(e,"Tablet"),O_(e,"Mobile"),i(t=>O_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button",Y_(e),Y_(e,"Tablet"),Y_(e,"Mobile"),i(t=>Y_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button--next",X_(e),X_(e,"Tablet"),X_(e,"Mobile"),i(t=>X_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button--prev",B_(e),B_(e,"Tablet"),B_(e,"Mobile"),i(t=>B_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-icon-wrap",E_(e),E_(e,"Tablet"),E_(e,"Mobile"),i(t=>E_(e,t))),
2668 -t.addClassStyles("{{WRAPPER}} .ablocks-carousel-pagination",$_(e),$_(e,"Tablet"),$_(e,"Mobile"),i(t=>$_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active",K_(e),K_(e,"Tablet"),K_(e,"Mobile"),i(t=>K_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active:hover",J_(e),J_(e,"Tablet"),J_(e,"Mobile"),i(t=>J_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet",G_(e),G_(e,"Tablet"),G_(e,"Mobile"),i(t=>G_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet:hover",Z_(e),Z_(e,"Tablet"),Z_(e,"Mobile"),i(t=>Z_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-svg-icon",F_(e),F_(e,"Tablet"),F_(e,"Mobile"),i(t=>F_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-svg-icon:hover",q_(e),q_(e,"Tablet"),q_(e,"Mobile"),i(t=>q_(e,t))),t.generateCSS()},[e]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),l&&(0,
2669 -I.jsx)(D_,{...t}),(0,I.jsx)(V_,{...t})]})},save:tR,deprecated:[{attributes:eR.uK,save:iR}]});const oR={UU:"ablocks/carousel-child",$t:["ablocks/carousel"],uK:{block_id:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",
2670 -customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,
2671 -isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",
2672 -hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",
2673 -imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",
2674 -videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",
2675 -yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",
2676 -customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,
2677 -delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};var aR=i(17618),lR=i(50506);const nR={name:Y().string,blockId:Y().string,typography:Y().array,innerBlocksProps:Y().object,tagName:Y().string,setTagInTop:Y().bool,className:Y().string,allowQuickEdit:Y().bool,blockProps:Y().object};function sR({blockId:t="",children:e,attributes:i={},tagName:o="div",className:a="",name:l="",allowQuickEdit:n=!1,blockProps:r={}}){const{overflow:b}=i,c={className:(0,oc.Z)({name:l,blockId:t,
2678 -className:s()(a,`ablocks-block--child-${t} ablocks-block--child`,i?.className)}),...r},d=(0,D.useBlockProps)(c),u=o||"div";return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(lR.A,{}),(0,I.jsxs)(u,{...d,children:[n&&(0,I.jsx)(aR.A,{blockId:t,name:l,overflow:b}),e]})]})}function rR(t){const{attributes:e,clientId:i}=t,{block_id:a}=e,l=(0,D.useBlockProps)(),n={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(i).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},s=(0,D.useInnerBlocksProps)(l,{...n});return(0,I.jsx)("div",{className:"swiper-slide ablocks-carousel-swiper-slide",children:(0,I.jsx)(sR,{blockId:a,name:oR.UU,attributes:e,children:(0,I.jsx)("div",{...s})})})}function bR(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,
2679 -I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Carousel Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Carousel blocks settings for customizing slides effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}sR.propTypes=nR,rR.propTypes={},rR.defaultProps={},bR.propTypes={};const cR={name:Y().string,blockId:Y().string,tagName:Y().string,blockProps:Y().object};function dR({blockId:t,name:e,children:i,attributes:o,className:a,tagName:n="div",blockProps:r={}}){const b={...D.useBlockProps.save({...r}),className:(0,oc.Z)({name:e,blockId:t,className:s()(a,o?.className)})};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(n,{...b,children:i})})}function uR(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)("div",{className:"swiper-slide ablocks-carousel-swiper-slide",children:(0,I.jsx)(dR,{blockId:i,name:oR.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}
2680 -dR.propTypes=cR,uR.propTypes={},uR.defaultProps={},(0,M.xV)(oR.UU,oR.$t[0])&&(0,o.registerBlockType)(oR.UU,{title:(0,L.__)("Carousel Child","ablocks"),attributes:oR.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-carousel"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;return(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]),(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(bR,{...t}),(0,I.jsx)(rR,{...t})]})},save:uR});var pR=i(62055);function mR(t){const{attributes:e,setAttributes:i,context:o}=t,{leftLabel:a,rightLabel:n,alignment:s,toggleDirection:r,space:b,gap:c,toggleWidth:d,toggleHeight:u,toggleColorState:p,toggleActiveColor:m,toggleActiveBgColor:h,toggleNormalColor:g,toggleNormalBgColor:f,labelTypography:y,labelColorState:T,labelNormalColor:H,labelActiveColor:M,toggleBarBgColor:x,toggleBarPadding:k,toggleBarBorder:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,
2681 -I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/add-and-customize-ablocks-toggle-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Toggle","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Wb,{label:(0,L.__)("Direction","ablocks"),options:[{label:(0,L.__)("Horizontal","ablocks"),value:"row"},{label:(0,L.__)("Vertical","ablocks"),value:"column"}],attributeName:"toggleDirection",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Space","ablocks"),attributeName:"space",attributeValue:b,setAttributes:i,min:0,max:500,step:1,isInline:!1,attributeDefaultValue:pR.xe}),(0,
2682 -I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"gap",attributeValue:c,setAttributes:i,min:0,max:100,step:1,isInline:!1,attributeDefaultValue:pR.rQ})]})}),(0,I.jsx)(V,{title:(0,L.__)("Toggle Label","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Left Label","ablocks"),attributeName:"leftLabel",attributeValue:a,setAttributes:i,context:o}),(0,I.jsx)(Kl,{label:(0,L.__)("Right Label","ablocks"),attributeName:"rightLabel",attributeValue:n,setAttributes:i,context:o})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Wb,{setAttributes:i,attributeName:"labelColorState",attributeValue:T,options:[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Active","ablocks"),value:"active"}],isResponsive:!1,allowDeselect:!1}),"normal"===T&&(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelNormalColor",attributeValue:H,setAttributes:i}),"active"===T&&(0,I.jsx)(Ws,{label:(0,
2683 -L.__)("Color","ablocks"),attributeName:"labelActiveColor",attributeValue:M,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Toggle Control","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Toggle Width","ablocks"),attributeName:"toggleWidth",attributeValue:d,setAttributes:i,isResponsive:!1,min:0,max:200,step:1,isInline:!1,attributeDefaultValue:pR.vS}),(0,I.jsx)(_t,{label:(0,L.__)("Toggle Height","ablocks"),attributeName:"toggleHeight",attributeValue:u,setAttributes:i,isResponsive:!1,min:0,max:100,step:1,isInline:!1,attributeDefaultValue:pR.A6})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{setAttributes:i,attributeName:"toggleColorState",attributeValue:p,options:[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,
2684 -L.__)("Active","ablocks"),value:"active"}],isResponsive:!1,allowDeselect:!1}),"normal"===p&&(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"toggleNormalColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"toggleNormalBgColor",attributeValue:f,setAttributes:i})]}),"active"===p&&(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"toggleActiveColor",attributeValue:m,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"toggleActiveBgColor",attributeValue:h,setAttributes:i})]})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Toggle Bar","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"toggleBarBgColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{
2685 -attributeName:"toggleBarBorder",attributeValue:v,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"toggleBarPadding",attributeValue:k,setAttributes:i})]})]})})})}mR.propTypes={};const hR={UU:"ablocks/toggle",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isSwitch:{type:"boolean",default:!1},leftLabel:{type:"string",default:"Monthly"},rightLabel:{type:"string",default:"Yearly"},toggleBarBgColor:{type:"string",default:""},labelNormalColor:{type:"string",default:"black"},labelActiveColor:{type:"string",default:"#562DD4"},toggleNormalColor:{type:"string",default:"white"},toggleNormalBgColor:{type:"string",default:"#562DD4"},toggleActiveColor:{type:"string",default:"white"},toggleActiveBgColor:{type:"string",default:"#d4552d"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object",
2686 -default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},toggleBarPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},toggleBarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",
2687 -borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",
2688 -leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},toggleDirection:{type:"string",default:"row"},labelColorState:{type:"string",default:"normal"},toggleColorState:{type:"string",default:"normal"},space:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},gap:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},toggleWidth:{type:"number",
2689 -default:60},toggleHeight:{type:"number",default:28},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",
2690 -borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",
2691 -topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",
2692 -vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",
2693 -imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",
2694 -zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",
2695 -rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",
2696 -maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",
2697 -loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function gR(t){const{attributes:e,setAttributes:i,clientId:o,isSelected:n}=t,{block_id:b,isSwitch:c,leftLabel:d,rightLabel:u,toggleWidth:p,toggleHeight:m}=e,{isDynamicEnabled:h,data:g}=id({attributeValue:d}),{isDynamicEnabled:f,data:y}=id({attributeValue:u}),T=(0,D.useBlockProps)(),H=[["ablocks/toggle-child"],["ablocks/toggle-child"]],{innerBlocksProps:x,children:k}=(0,D.useInnerBlocksProps)(T,{template:H,allowedBlocks:H,renderAppender:!1}),v=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]);return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${b}`);if(2===v.length&&null!==t){
2698 -const e=t.querySelectorAll(".ablocks-toggle__child");c?(e[1].style.display="block",e[0].style.display="none"):(e[0].style.display="block",e[1].style.display="none")}},[v,n,c,b]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:b,name:hR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${p}px`,"--ablocks-toggle-switch-height":`${m}px`},children:(0,I.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left",{"ablocks-toggle__label--active":!c}),children:(0,I.jsxs)("span",{children:[" ",h?g:d," "]})}),(0,I.jsxs)("label",{className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${b}`,children:[(0,I.jsx)("input",{id:`switch-toggle-${b}`,checked:c,type:"checkbox",className:"ablocks-toggle__checkbox",onChange:t=>i({isSwitch:t.target.checked}),"aria-label":(0,
2699 -L.sprintf)(/* translators: 1: left toggle label, 2: right toggle label */ /* translators: 1: left toggle label, 2: right toggle label */
2700 -(0,L.__)("Toggle switch between %1$s and %2$s","ablocks"),d,u)}),(0,I.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--right",{"ablocks-toggle__label--active":c}),children:(0,I.jsx)("span",{children:f?y:u})})]})}),(0,I.jsxs)("div",{...x,children:[" ",k," "]})]})})}gR.propTypes={};const fR=(t,e="")=>{const{toggleDirection:i,gap:o}=t,a={...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,property:"gap",unitDefaultValue:"px",device:e})};return i&&(a["flex-direction"]=i),a},yR=(t,e="")=>{const{toggleBarBgColor:i,toggleBarPadding:o,toggleBarBorder:a,space:l}=t,n=(0,M.Zy)(a,{unitWidth:"px",unitRadius:"px"}),s=(0,M.Zy)(o,{unit:"px"}),r={...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,property:"margin-bottom",unitDefaultValue:"px",device:e}),...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,
2701 -c.qD)(s,"padding",e),...(0,y.qD)(n,e)};return i&&(r["background-color"]=(0,Hs.qD)(i)),r},TR=(t,e="")=>{const i=(0,M.Zy)(t?.toggleBarBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},HR=(t,e="")=>{const{labelTypography:i}=t,o=(0,M.Zy)(i,{weight:"400"}),a=t.labelTypographyGlobal?t.labelTypographyGlobal:"",l={...(0,U.qD)(o,e,a)};return{color:(0,Hs.qD)(t?.labelNormalColor),...l}};function MR(t){const{attributes:e}=t,{block_id:i,isSwitch:o,leftLabel:a,rightLabel:n,toggleWidth:r,toggleHeight:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:hR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${r}px`,"--ablocks-toggle-switch-height":`${b}px`},children:(0,I.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left"),children:(0,I.jsxs)("span",{children:[" ",a," "]})}),(0,I.jsxs)("label",{
2668 +yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function bR(t){const{attributes:e}=t,{block_id:i,isLoop:o,autoplayDelay:a,reverseDirection:n,autoplay:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,speed:p,pagination:m,paginationClickable:h,effect:g,slidesPerView:f,gap:y,carouselSlideLength:T}=e,H={pagination:m,navigation:u,paginationClickable:h},x={effect:g,loop:o,grabCursor:c,mousewheel:d,speed:p}
2669 +;n&&(x.initialSlide=T-1),s&&(x.autoplay={delay:a,pauseOnMouseEnter:r,reverseDirection:b}),"fade"===g?x.fadeEffect={crossFade:!0}:"cube"===g&&(x.cubeEffect={shadow:!1,slideShadows:!0,shadowOffset:20,shadowScale:.94});const k=(0,M.Zy)(f,{value:1,valueMobile:1,valueTablet:1}),v=(0,M.Zy)(y,{value:0,valueMobile:0,valueTablet:0});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:rR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"swiper ablocks-carousel-swiper","data-swiper-options":JSON.stringify(H),"data-swiper-frontend-options":JSON.stringify(x),"data-swiper-slides-per-view":JSON.stringify(k),"data-swiper-gap":JSON.stringify(v),children:(0,I.jsx)("div",{className:"swiper-wrapper",children:(0,I.jsx)(D.InnerBlocks.Content,{})})}),m&&(0,I.jsx)("div",{className:"ablocks-carousel-pagination"}),u&&(0,I.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,I.jsx)("div",{
2670 +className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,I.jsx)(Fd,{attributePrefix:"leftIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,I.jsx)(Fd,{attributePrefix:"rightIcon",attributes:e})})]})]})})}bR.propTypes={},bR.defaultProps={},(0,M.xV)(N_.UU)&&(0,o.registerBlockType)(N_.UU,{title:(0,L.__)("Carousel","ablocks"),attributes:N_.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-carousel"}),edit:function(t){const{attributes:e,setAttributes:i,clientId:o,isSelected:l}=t,{block_id:n}=e;(0,a.useEffect)(()=>{n&&n===o||i({block_id:o}),e?.blockVersion||i({blockVersion:2})},[n,o]),(0,a.useEffect)(()=>{(!e?.verticalAlign||""!==e?.verticalAlignment&&e?.verticalAlign?.value!==e?.verticalAlignment)&&i({verticalAlign:{value:e?.verticalAlignment||"",valueTablet:"",valueMobile:""},verticalAlignment:""})},[]);const s=(0,a.useMemo)(()=>{
2671 +if(!e?.verticalAlign)return"";let t=null;if(t?2!==e?.blockVersion||t instanceof A?2===e?.blockVersion||t instanceof C||(t=new C(e,o)):t=new A(e,o):t=2===e?.blockVersion?new A(e,o):new C(e,o),null===t)return"";const i=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-carousel-swiper .swiper-wrapper ",B_(e),B_(e,"Tablet"),B_(e,"Mobile"),i(t=>B_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-swiper > .swiper-wrapper > .swiper-slide",F_(e),F_(e,"Tablet"),F_(e,"Mobile"),i(t=>F_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-swiper > .swiper-wrapper > .swiper-slide-active",q_(e),q_(e,"Tablet"),q_(e,"Mobile"),i(t=>q_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button",G_(e),G_(e,"Tablet"),G_(e,"Mobile"),i(t=>G_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button--next",Z_(e),Z_(e,"Tablet"),Z_(e,"Mobile"),i(t=>Z_(e,t))),
2672 +t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button--prev",K_(e),K_(e,"Tablet"),K_(e,"Mobile"),i(t=>K_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-icon-wrap",J_(e),J_(e,"Tablet"),J_(e,"Mobile"),i(t=>J_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-pagination",eR(e),eR(e,"Tablet"),eR(e,"Mobile"),i(t=>eR(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active",aR(e),aR(e,"Tablet"),aR(e,"Mobile"),i(t=>aR(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active:hover",lR(e),lR(e,"Tablet"),lR(e,"Mobile"),i(t=>lR(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet",iR(e),iR(e,"Tablet"),iR(e,"Mobile"),i(t=>iR(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet:hover",oR(e),oR(e,"Tablet"),oR(e,"Mobile"),i(t=>oR(e,t))),
2673 +t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-svg-icon",Q_(e),Q_(e,"Tablet"),Q_(e,"Mobile"),i(t=>Q_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-svg-icon:hover",tR(e),tR(e,"Tablet"),tR(e,"Mobile"),i(t=>tR(e,t))),t.generateCSS()},[e]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),l&&(0,I.jsx)(D_,{...t}),(0,I.jsx)(X_,{...t})]})},save:sR,deprecated:[{attributes:rR.uK,save:bR}]});const cR={UU:"ablocks/carousel-child",$t:["ablocks/carousel"],uK:{block_id:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",
2674 +bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",
2675 +commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",
2676 +leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",
2677 +imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",
2678 +imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",
2679 +offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",
2680 +scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",
2681 +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};var dR=i(17618),uR=i(50506);const pR={name:Y().string,blockId:Y().string,
2682 +typography:Y().array,innerBlocksProps:Y().object,tagName:Y().string,setTagInTop:Y().bool,className:Y().string,allowQuickEdit:Y().bool,blockProps:Y().object};function mR({blockId:t="",children:e,attributes:i={},tagName:o="div",className:a="",name:l="",allowQuickEdit:n=!1,blockProps:r={}}){const{overflow:b}=i,c={className:(0,oc.Z)({name:l,blockId:t,className:s()(a,`ablocks-block--child-${t} ablocks-block--child`,i?.className)}),...r},d=(0,D.useBlockProps)(c),u=o||"div";return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(uR.A,{}),(0,I.jsxs)(u,{...d,children:[n&&(0,I.jsx)(dR.A,{blockId:t,name:l,overflow:b}),e]})]})}function hR(t){const{attributes:e,clientId:i}=t,{block_id:a}=e,l=(0,D.useBlockProps)(),n={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(i).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},s=(0,D.useInnerBlocksProps)(l,{...n});return(0,I.jsx)("div",{
2683 +className:"swiper-slide ablocks-carousel-swiper-slide",children:(0,I.jsx)(mR,{blockId:a,name:cR.UU,attributes:e,children:(0,I.jsx)("div",{...s})})})}function gR(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Carousel Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Carousel blocks settings for customizing slides effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}mR.propTypes=pR,hR.propTypes={},hR.defaultProps={},gR.propTypes={};const fR={name:Y().string,blockId:Y().string,tagName:Y().string,blockProps:Y().object};function yR({blockId:t,name:e,children:i,attributes:o,className:a,tagName:n="div",blockProps:r={}}){const b={
2684 +...D.useBlockProps.save({...r}),className:(0,oc.Z)({name:e,blockId:t,className:s()(a,o?.className)})};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(n,{...b,children:i})})}function TR(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)("div",{className:"swiper-slide ablocks-carousel-swiper-slide",children:(0,I.jsx)(yR,{blockId:i,name:cR.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}yR.propTypes=fR,TR.propTypes={},TR.defaultProps={},(0,M.xV)(cR.UU,cR.$t[0])&&(0,o.registerBlockType)(cR.UU,{title:(0,L.__)("Carousel Child","ablocks"),attributes:cR.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-carousel"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;return(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]),(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(gR,{...t}),(0,I.jsx)(hR,{...t})]})},save:TR});var HR=i(62055);function MR(t){
2685 +const{attributes:e,setAttributes:i,context:o}=t,{leftLabel:a,rightLabel:n,alignment:s,toggleDirection:r,space:b,gap:c,toggleWidth:d,toggleHeight:u,toggleColorState:p,toggleActiveColor:m,toggleActiveBgColor:h,toggleNormalColor:g,toggleNormalBgColor:f,labelTypography:y,labelColorState:T,labelNormalColor:H,labelActiveColor:M,toggleBarBgColor:x,toggleBarPadding:k,toggleBarBorder:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/add-and-customize-ablocks-toggle-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Toggle","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),
2686 +value:"right",icon:"right"}]}),(0,I.jsx)(Wb,{label:(0,L.__)("Direction","ablocks"),options:[{label:(0,L.__)("Horizontal","ablocks"),value:"row"},{label:(0,L.__)("Vertical","ablocks"),value:"column"}],attributeName:"toggleDirection",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Space","ablocks"),attributeName:"space",attributeValue:b,setAttributes:i,min:0,max:500,step:1,isInline:!1,attributeDefaultValue:HR.xe}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"gap",attributeValue:c,setAttributes:i,min:0,max:100,step:1,isInline:!1,attributeDefaultValue:HR.rQ})]})}),(0,I.jsx)(V,{title:(0,L.__)("Toggle Label","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Left Label","ablocks"),attributeName:"leftLabel",attributeValue:a,setAttributes:i,context:o}),(0,I.jsx)(Kl,{label:(0,L.__)("Right Label","ablocks"),attributeName:"rightLabel",attributeValue:n,
2687 +setAttributes:i,context:o})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Wb,{setAttributes:i,attributeName:"labelColorState",attributeValue:T,options:[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Active","ablocks"),value:"active"}],isResponsive:!1,allowDeselect:!1}),"normal"===T&&(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelNormalColor",attributeValue:H,setAttributes:i}),"active"===T&&(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelActiveColor",attributeValue:M,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Toggle Control","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Toggle Width","ablocks"),attributeName:"toggleWidth",attributeValue:d,setAttributes:i,
2688 +isResponsive:!1,min:0,max:200,step:1,isInline:!1,attributeDefaultValue:HR.vS}),(0,I.jsx)(_t,{label:(0,L.__)("Toggle Height","ablocks"),attributeName:"toggleHeight",attributeValue:u,setAttributes:i,isResponsive:!1,min:0,max:100,step:1,isInline:!1,attributeDefaultValue:HR.A6})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{setAttributes:i,attributeName:"toggleColorState",attributeValue:p,options:[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Active","ablocks"),value:"active"}],isResponsive:!1,allowDeselect:!1}),"normal"===p&&(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"toggleNormalColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"toggleNormalBgColor",attributeValue:f,setAttributes:i})]}),"active"===p&&(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"toggleActiveColor",attributeValue:m,
2689 +setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"toggleActiveBgColor",attributeValue:h,setAttributes:i})]})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Toggle Bar","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"toggleBarBgColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"toggleBarBorder",attributeValue:v,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"toggleBarPadding",attributeValue:k,setAttributes:i})]})]})})})}MR.propTypes={};const xR={UU:"ablocks/toggle",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isSwitch:{type:"boolean",default:!1},leftLabel:{type:"string",default:"Monthly"},rightLabel:{type:"string",default:"Yearly"},toggleBarBgColor:{type:"string",default:""},labelNormalColor:{
2690 +type:"string",default:"black"},labelActiveColor:{type:"string",default:"#562DD4"},toggleNormalColor:{type:"string",default:"white"},toggleNormalBgColor:{type:"string",default:"#562DD4"},toggleActiveColor:{type:"string",default:"white"},toggleActiveBgColor:{type:"string",default:"#d4552d"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",
2691 +wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},toggleBarPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},toggleBarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",
2692 +commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",
2693 +topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},toggleDirection:{type:"string",default:"row"},labelColorState:{type:"string",default:"normal"},toggleColorState:{type:"string",default:"normal"},space:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},gap:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},toggleWidth:{type:"number",default:60},toggleHeight:{type:"number",default:28},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",
2694 +topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",
2695 +topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",
2696 +rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",
2697 +imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",
2698 +imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,
2699 +scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",
2700 +skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",
2701 +animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function kR(t){
2702 +const{attributes:e,setAttributes:i,clientId:o,isSelected:n}=t,{block_id:b,isSwitch:c,leftLabel:d,rightLabel:u,toggleWidth:p,toggleHeight:m}=e,{isDynamicEnabled:h,data:g}=id({attributeValue:d}),{isDynamicEnabled:f,data:y}=id({attributeValue:u}),T=(0,D.useBlockProps)(),H=[["ablocks/toggle-child"],["ablocks/toggle-child"]],{innerBlocksProps:x,children:k}=(0,D.useInnerBlocksProps)(T,{template:H,allowedBlocks:H,renderAppender:!1}),v=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]);return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${b}`);if(2===v.length&&null!==t){const e=t.querySelectorAll(".ablocks-toggle__child");c?(e[1].style.display="block",e[0].style.display="none"):(e[0].style.display="block",e[1].style.display="none")}},[v,n,c,b]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:b,name:xR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${p}px`,"--ablocks-toggle-switch-height":`${m}px`
2703 +},children:(0,I.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left",{"ablocks-toggle__label--active":!c}),children:(0,I.jsxs)("span",{children:[" ",h?g:d," "]})}),(0,I.jsxs)("label",{className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${b}`,children:[(0,I.jsx)("input",{id:`switch-toggle-${b}`,checked:c,type:"checkbox",className:"ablocks-toggle__checkbox",onChange:t=>i({isSwitch:t.target.checked}),"aria-label":(0,L.sprintf)(/* translators: 1: left toggle label, 2: right toggle label */ /* translators: 1: left toggle label, 2: right toggle label */
2704 +(0,L.__)("Toggle switch between %1$s and %2$s","ablocks"),d,u)}),(0,I.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--right",{"ablocks-toggle__label--active":c}),children:(0,I.jsx)("span",{children:f?y:u})})]})}),(0,I.jsxs)("div",{...x,children:[" ",k," "]})]})})}kR.propTypes={};const vR=(t,e="")=>{const{toggleDirection:i,gap:o}=t,a={...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,property:"gap",unitDefaultValue:"px",device:e})};return i&&(a["flex-direction"]=i),a},_R=(t,e="")=>{const{toggleBarBgColor:i,toggleBarPadding:o,toggleBarBorder:a,space:l}=t,n=(0,M.Zy)(a,{unitWidth:"px",unitRadius:"px"}),s=(0,M.Zy)(o,{unit:"px"}),r={...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,property:"margin-bottom",unitDefaultValue:"px",device:e}),...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,
2705 +c.qD)(s,"padding",e),...(0,y.qD)(n,e)};return i&&(r["background-color"]=(0,Hs.qD)(i)),r},RR=(t,e="")=>{const i=(0,M.Zy)(t?.toggleBarBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},SR=(t,e="")=>{const{labelTypography:i}=t,o=(0,M.Zy)(i,{weight:"400"}),a=t.labelTypographyGlobal?t.labelTypographyGlobal:"",l={...(0,U.qD)(o,e,a)};return{color:(0,Hs.qD)(t?.labelNormalColor),...l}};function WR(t){const{attributes:e}=t,{block_id:i,isSwitch:o,leftLabel:a,rightLabel:n,toggleWidth:r,toggleHeight:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:xR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${r}px`,"--ablocks-toggle-switch-height":`${b}px`},children:(0,I.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left"),children:(0,I.jsxs)("span",{children:[" ",a," "]})}),(0,I.jsxs)("label",{
2702 2706 className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${i}`,children:[(0,I.jsx)("input",{id:`switch-toggle-${i}`,checked:o,type:"checkbox",className:"ablocks-toggle__checkbox","aria-label":(0,L.sprintf)(/* translators: 1: left toggle label, 2: right toggle label */ /* translators: 1: left toggle label, 2: right toggle label */
2703 -(0,L.__)("Toggle switch between %1$s and %2$s","ablocks"),a,n)}),(0,I.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,I.jsx)("div",{className:"ablocks-toggle__label ablocks-toggle__label--right",children:(0,I.jsx)("span",{children:n})})]})}),(0,I.jsx)(D.InnerBlocks.Content,{})]})})}MR.propTypes={};const xR={UU:"ablocks/toggle",uK:{block_id:{type:"string",default:""},isSwitch:{type:"boolean",default:!1},leftLabel:{type:"string",default:"Monthly"},rightLabel:{type:"string",default:"Yearly"},toggleBarBgColor:{type:"string",default:""},labelNormalColor:{type:"string",default:"black"},labelActiveColor:{type:"string",default:"#562DD4"},toggleNormalColor:{type:"string",default:"white"},toggleNormalBgColor:{type:"string",default:"#562DD4"},toggleActiveColor:{type:"string",default:"white"},toggleActiveBgColor:{type:"string",default:"#d4552d"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},labelTypography:{type:"object",
2707 +(0,L.__)("Toggle switch between %1$s and %2$s","ablocks"),a,n)}),(0,I.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,I.jsx)("div",{className:"ablocks-toggle__label ablocks-toggle__label--right",children:(0,I.jsx)("span",{children:n})})]})}),(0,I.jsx)(D.InnerBlocks.Content,{})]})})}WR.propTypes={};const PR={UU:"ablocks/toggle",uK:{block_id:{type:"string",default:""},isSwitch:{type:"boolean",default:!1},leftLabel:{type:"string",default:"Monthly"},rightLabel:{type:"string",default:"Yearly"},toggleBarBgColor:{type:"string",default:""},labelNormalColor:{type:"string",default:"black"},labelActiveColor:{type:"string",default:"#562DD4"},toggleNormalColor:{type:"string",default:"white"},toggleNormalBgColor:{type:"string",default:"#562DD4"},toggleActiveColor:{type:"string",default:"white"},toggleActiveBgColor:{type:"string",default:"#d4552d"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},labelTypography:{type:"object",
2704 2708 default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},toggleBarPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},toggleBarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",
2705 2709 borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",
2706 2710 leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},toggleDirection:{type:"string",default:"row"},labelColorState:{type:"string",default:"normal"},toggleColorState:{type:"string",default:"normal"},space:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},gap:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},toggleWidth:{type:"number",
2707 2711 default:60},toggleHeight:{type:"number",default:28},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",
@@ -2710,21 +2714,21 @@
2710 2714 vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",
2711 2715 imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",
2712 2716 zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",
2713 2717 rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",
2714 -maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function kR(t){
2715 -const{attributes:e}=t,{block_id:i,isSwitch:o,leftLabel:a,rightLabel:n,toggleWidth:r,toggleHeight:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:xR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${r}px`,"--ablocks-toggle-switch-height":`${b}px`},children:(0,I.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left"),children:(0,I.jsxs)("span",{children:[" ",a," "]})}),(0,I.jsxs)("label",{className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${i}`,children:[(0,I.jsx)("input",{id:`switch-toggle-${i}`,checked:o,type:"checkbox",className:"ablocks-toggle__checkbox"}),(0,I.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,I.jsx)("div",{className:"ablocks-toggle__label ablocks-toggle__label--right",children:(0,I.jsx)("span",{children:n})})]})}),(0,
2716 -I.jsx)(D.InnerBlocks.Content,{})]})})}function vR(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Toggle Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the toggle settings to customize collapsible content easily.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}kR.propTypes={},(0,M.xV)(hR.UU)&&(0,o.registerBlockType)(hR.UU,{title:(0,L.__)("Toggle","ablocks"),attributes:hR.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-toggle"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,
2717 -a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar",yR(i),yR(i,"Tablet"),yR(i,"Mobile"),e(t=>yR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar:hover",TR(i),TR(i,"Tablet",TR(i,"Mobile"))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar-wrapper",fR(i),fR(i,"Tablet"),fR(i,"Mobile"),e(t=>fR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__label",HR(i),HR(i,"Tablet"),HR(i,"Mobile"),e(t=>HR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__label--active",(t=>({color:(0,Hs.qD)(t?.labelActiveColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__slider",(t=>({background:(0,Hs.qD)(t?.toggleNormalBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__slider:before",(t=>({
2718 -background:(0,Hs.qD)(t?.toggleNormalColor)}))(i)),t.addClassStyles("{{WRAPPER}} input.ablocks-toggle__checkbox:checked + .ablocks-toggle__slider",(t=>({background:(0,Hs.qD)(t?.toggleActiveBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} input.ablocks-toggle__checkbox:checked + .ablocks-toggle__slider:before",(t=>({background:(0,Hs.qD)(t?.toggleActiveColor)}))(i)),(0,b.applyFilters)("ablocks.toggle.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(mR,{...t}),(0,I.jsx)(gR,{...t})]})},save:MR,deprecated:[{attributes:xR.uK,save:kR}]}),vR.propTypes={};const _R={UU:"ablocks/toggle-child",$t:["ablocks/toggle"],uK:{block_id:{type:"string",default:""}}};function RR(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{template:[["ablocks/container"]],allowedBlocks:["ablocks/container"],renderAppender:!1});return(0,I.jsx)("div",{className:"ablocks-toggle__child ablocks-toggle__child--editor",
2719 -children:(0,I.jsx)(sR,{blockId:i,name:_R.UU,attributes:e,children:(0,I.jsx)("div",{...o})})})}function SR(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(dR,{blockId:i,name:_R.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})}RR.propTypes={},SR.propTypes={};const WR={UU:"ablocks/toggle-child",uK:{block_id:{type:"string",default:""}}};function PR(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(dR,{blockId:i,name:WR.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})}PR.propTypes={},(0,M.xV)(_R.UU,_R.$t[0])&&(0,o.registerBlockType)(_R.UU,{title:(0,L.__)("Toggle child","ablocks"),attributes:_R.uK,edit:function(t){const{isSelected:e}=t;return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(vR,{...t}),(0,I.jsx)(RR,{...t})]})},save:SR,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-toggle"}),deprecated:[{attributes:WR.uK,save:PR}]});var UR=i(69701);function jR(t){
2718 +maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function UR(t){
2719 +const{attributes:e}=t,{block_id:i,isSwitch:o,leftLabel:a,rightLabel:n,toggleWidth:r,toggleHeight:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:PR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${r}px`,"--ablocks-toggle-switch-height":`${b}px`},children:(0,I.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left"),children:(0,I.jsxs)("span",{children:[" ",a," "]})}),(0,I.jsxs)("label",{className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${i}`,children:[(0,I.jsx)("input",{id:`switch-toggle-${i}`,checked:o,type:"checkbox",className:"ablocks-toggle__checkbox"}),(0,I.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,I.jsx)("div",{className:"ablocks-toggle__label ablocks-toggle__label--right",children:(0,I.jsx)("span",{children:n})})]})}),(0,
2720 +I.jsx)(D.InnerBlocks.Content,{})]})})}function jR(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Toggle Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the toggle settings to customize collapsible content easily.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}UR.propTypes={},(0,M.xV)(xR.UU)&&(0,o.registerBlockType)(xR.UU,{title:(0,L.__)("Toggle","ablocks"),attributes:xR.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-toggle"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,
2721 +a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar",_R(i),_R(i,"Tablet"),_R(i,"Mobile"),e(t=>_R(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar:hover",RR(i),RR(i,"Tablet",RR(i,"Mobile"))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar-wrapper",vR(i),vR(i,"Tablet"),vR(i,"Mobile"),e(t=>vR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__label",SR(i),SR(i,"Tablet"),SR(i,"Mobile"),e(t=>SR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__label--active",(t=>({color:(0,Hs.qD)(t?.labelActiveColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__slider",(t=>({background:(0,Hs.qD)(t?.toggleNormalBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__slider:before",(t=>({
2722 +background:(0,Hs.qD)(t?.toggleNormalColor)}))(i)),t.addClassStyles("{{WRAPPER}} input.ablocks-toggle__checkbox:checked + .ablocks-toggle__slider",(t=>({background:(0,Hs.qD)(t?.toggleActiveBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} input.ablocks-toggle__checkbox:checked + .ablocks-toggle__slider:before",(t=>({background:(0,Hs.qD)(t?.toggleActiveColor)}))(i)),(0,b.applyFilters)("ablocks.toggle.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(MR,{...t}),(0,I.jsx)(kR,{...t})]})},save:WR,deprecated:[{attributes:PR.uK,save:UR}]}),jR.propTypes={};const wR={UU:"ablocks/toggle-child",$t:["ablocks/toggle"],uK:{block_id:{type:"string",default:""}}};function zR(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{template:[["ablocks/container"]],allowedBlocks:["ablocks/container"],renderAppender:!1});return(0,I.jsx)("div",{className:"ablocks-toggle__child ablocks-toggle__child--editor",
2723 +children:(0,I.jsx)(mR,{blockId:i,name:wR.UU,attributes:e,children:(0,I.jsx)("div",{...o})})})}function CR(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(yR,{blockId:i,name:wR.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})}zR.propTypes={},CR.propTypes={};const AR={UU:"ablocks/toggle-child",uK:{block_id:{type:"string",default:""}}};function LR(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(yR,{blockId:i,name:AR.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})}LR.propTypes={},(0,M.xV)(wR.UU,wR.$t[0])&&(0,o.registerBlockType)(wR.UU,{title:(0,L.__)("Toggle child","ablocks"),attributes:wR.uK,edit:function(t){const{isSelected:e}=t;return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(jR,{...t}),(0,I.jsx)(zR,{...t})]})},save:CR,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-toggle"}),deprecated:[{attributes:AR.uK,save:LR}]});var DR=i(69701);function NR(t){
2720 2724 const{attributes:e,setAttributes:i}=t,{headingTag:o,allowMultiple:a,iconPosition:n,iconColor:s,iconColorH:r,iconActiveColor:b,headerTextColor:c,headerTextColorH:d,headerTextActiveColor:u,headerTypography:p,headerTextShadow:m,headerTextStroke:h,showIcon:g,headerPadding:f,headerBackgroundColor:y,headerBackgroundColorH:T,headerBackgroundActiveColor:H,bodyBackground:M,bodyBackgroundH:x,bodyPadding:k}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-accordion-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Accordion","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow multiple open at a time","ablocks"),attributeValue:a,setAttributes:i,attributeName:"allowMultiple"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable FAQ Schema (SEO)","ablocks"),
2721 -attributeValue:e?.enableFaqSchema,setAttributes:i,attributeName:"enableFaqSchema"}),(0,I.jsx)(As,{label:(0,L.__)("Initial Open","ablocks"),attributeName:"initialOpen",attributeValue:e?.initialOpen,setAttributes:i,isInline:!0}),(0,I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)("This feature works on the frontend only.","ablocks")})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Item Space","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"itemSpace",attributeValue:e.itemSpace,hasUnit:!1,setAttributes:i,attributeDefaultValue:UR.eY}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i})]})})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Accordion Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Heading Tag","ablocks"),options:St,
2725 +attributeValue:e?.enableFaqSchema,setAttributes:i,attributeName:"enableFaqSchema"}),(0,I.jsx)(As,{label:(0,L.__)("Initial Open","ablocks"),attributeName:"initialOpen",attributeValue:e?.initialOpen,setAttributes:i,isInline:!0}),(0,I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)("This feature works on the frontend only.","ablocks")})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Item Space","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"itemSpace",attributeValue:e.itemSpace,hasUnit:!1,setAttributes:i,attributeDefaultValue:DR.eY}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i})]})})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Accordion Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Heading Tag","ablocks"),options:St,
2722 2726 isSearch:!0,attributeName:"headingTag",attributeValue:o,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"headerTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"headerTextShadow",attributeValue:m,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"headerTextStroke",attributeValue:h,setAttributes:i,isResponsive:!0}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"headerTextColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"headerBackgroundColor",attributeValue:y,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,
2723 2727 L.__)("Color","ablocks"),attributeName:"headerTextColorH",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"headerBackgroundColorH",attributeValue:T,setAttributes:i})]})}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"headerTextActiveColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Background","ablocks"),attributeName:"headerBackgroundActiveColor",attributeValue:H,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"headerPadding",attributeValue:f,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,I.jsx)(It,{})]})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Toggle Icon","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{
2724 -isResponsive:!1,label:(0,L.__)("Show Icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"showIcon"}),g&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Icon Position","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Both Of Side","ablocks"),value:"both"}],attributeValue:n||"right",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:UR.RK}),("left"===n||"both"===n)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"iconSpace",attributeValue:e.iconSpace,setAttributes:i,attributeDefaultValue:UR.eT}),(0,I.jsx)(Yd,{label:(0,L.__)("Left Active Icon","ablocks"),
2728 +isResponsive:!1,label:(0,L.__)("Show Icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"showIcon"}),g&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Icon Position","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Both Of Side","ablocks"),value:"both"}],attributeValue:n||"right",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:DR.RK}),("left"===n||"both"===n)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"iconSpace",attributeValue:e.iconSpace,setAttributes:i,attributeDefaultValue:DR.eT}),(0,I.jsx)(Yd,{label:(0,L.__)("Left Active Icon","ablocks"),
2725 2729 attributePrefix:"leftActiveIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Left Close Icon","ablocks"),attributePrefix:"leftCloseIcon",attributes:e,setAttributes:i,legacySupport:!0})]}),("both"===n||"right"===n)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Right Active Icon","ablocks"),attributePrefix:"rightActiveIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Right Close Icon","ablocks"),attributePrefix:"rightCloseIcon",attributes:e,setAttributes:i,legacySupport:!0})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:s,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColorH",attributeValue:r,setAttributes:i})})
2726 -}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"iconActiveColor",attributeValue:b,setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Accordion Content","ablocks"),initialOpen:!1,children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"bodyPadding",attributeValue:k,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackground",attributeValue:M,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackgroundH",attributeValue:x,setAttributes:i})})})]})]})})})}jR.propTypes={};const wR={UU:"ablocks/accordion",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},allowMultiple:{type:"boolean",default:!1},enableFaqSchema:{type:"boolean",default:!1},initialOpen:{type:"number",default:1},iconColor:{
2730 +}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"iconActiveColor",attributeValue:b,setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Accordion Content","ablocks"),initialOpen:!1,children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"bodyPadding",attributeValue:k,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackground",attributeValue:M,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackgroundH",attributeValue:x,setAttributes:i})})})]})]})})})}NR.propTypes={};const IR={UU:"ablocks/accordion",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},allowMultiple:{type:"boolean",default:!1},enableFaqSchema:{type:"boolean",default:!1},initialOpen:{type:"number",default:1},iconColor:{
2727 2731 type:"string",default:"#000000"},iconColorH:{type:"string",default:""},iconActiveColor:{type:"string",default:""},headerTextColor:{type:"string",default:"#000000"},headerTextColorH:{type:"string",default:""},headerTextActiveColor:{type:"string",default:""},bodyBackgroundH:{type:"string",default:""},bodyBackground:{type:"string",default:"#F9F9F9"},headingTag:{type:"string",default:"p"},iconPosition:{type:"string",default:"right"},showIcon:{type:"boolean",default:!0},headerBackgroundActiveColor:{type:"string",default:""},headerBackgroundColorH:{type:"string",default:""},headerBackgroundColor:{type:"string",default:"#F9F9F9"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},headerTypographyGlobal:{type:"string",default:""},headerTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",
2728 2732 wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headerTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},headerTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},itemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",
2729 2733 bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,
2730 2734 isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},headerPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},bodyPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
@@ -2747,17 +2751,17 @@
2747 2751 imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",
2748 2752 imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",
2749 2753 offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",
2750 2754 scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",
2751 -animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},zR=({insertButtonBlock:t})=>(0,I.jsx)(D.BlockControls,{group:"block",
2752 -children:(0,I.jsx)(N.Toolbar,{children:(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion-child"}),label:(0,L.__)("Add Accordion","ablocks"),onClick:t})})}),CR=class{constructor(t,e=!0,i={}){this.accordion=t,this.editor=e;const o=this.getDataSettings();this.settings={...this.getDefaultSettings(),...o,...i},this.elements=this.getElements(),this.eventListeners=[],this.isAnimating=!1,this.bindEvents(),this.defaultActiveTab()}getDefaultSettings(){return{selectors:{tabTitle:".ablocks-block--single-accordion",tabContent:".ablocks-block--single-accordion__body"},classes:{activeItem:"ablocks-block--single-accordion-is-selected"},toggleSelf:!0,hidePrevious:!0,autoExpand:!0,allowMultiple:!1,initialOpen:0}}getDataSettings(){return{allowMultiple:"true"===this.accordion.getAttribute("data-multiple"),initialOpen:parseInt(this.accordion.getAttribute("data-initial-open"))||0}}getElements(){const{tabTitle:t,tabContent:e}=this.settings.selectors
2755 +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},VR=({insertButtonBlock:t})=>(0,I.jsx)(D.BlockControls,{group:"block",
2756 +children:(0,I.jsx)(N.Toolbar,{children:(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion-child"}),label:(0,L.__)("Add Accordion","ablocks"),onClick:t})})}),OR=class{constructor(t,e=!0,i={}){this.accordion=t,this.editor=e;const o=this.getDataSettings();this.settings={...this.getDefaultSettings(),...o,...i},this.elements=this.getElements(),this.eventListeners=[],this.isAnimating=!1,this.bindEvents(),this.defaultActiveTab()}getDefaultSettings(){return{selectors:{tabTitle:".ablocks-block--single-accordion",tabContent:".ablocks-block--single-accordion__body"},classes:{activeItem:"ablocks-block--single-accordion-is-selected"},toggleSelf:!0,hidePrevious:!0,autoExpand:!0,allowMultiple:!1,initialOpen:0}}getDataSettings(){return{allowMultiple:"true"===this.accordion.getAttribute("data-multiple"),initialOpen:parseInt(this.accordion.getAttribute("data-initial-open"))||0}}getElements(){const{tabTitle:t,tabContent:e}=this.settings.selectors
2753 2757 ;return{tabTitles:this.queryElements(t),tabContents:this.queryElements(e)}}queryElements(t){return Array.from(this.accordion.querySelectorAll(t))}bindEvents(){this.elements.tabTitles.forEach(t=>{const e=t.querySelector(".ablocks-block--single-accordion__heading"),i=e=>{e.preventDefault(),this.isAnimating||this.changeActiveTab(t.getAttribute("data-id-acc"))};e.addEventListener("click",i),this.eventListeners.push({element:e,handler:i})})}isActiveTab(t){const{activeItem:e}=this.settings.classes,i=this.elements.tabTitles.find(e=>e.getAttribute("data-id-acc")===t);return i&&i.classList.contains(e)}changeActiveTab(t){const e=this.isActiveTab(t),{toggleSelf:i,allowMultiple:o}=this.settings;o?e?this.deactivateTab(t):this.activateTab(t):((!1===this.editor&&!0===i||!e)&&this.deactivateAllTabs(),e||this.activateTab(t))}deactivateAllTabs(){const{activeItem:t}=this.settings.classes;this.elements.tabTitles.forEach(e=>{if(e.classList.contains(t)){const t=e.getAttribute("data-id-acc")
2754 2758 ;this.deactivateTab(t)}})}deactivateTab(t){const{activeItem:e}=this.settings.classes,i=this.elements.tabTitles.find(e=>e.getAttribute("data-id-acc")===t);i&&(i.classList.remove(e),this.slideUp(t))}activateTab(t){const{activeItem:e}=this.settings.classes,i=this.elements.tabTitles.find(e=>e.getAttribute("data-id-acc")===t);i&&(i.classList.add(e),this.slideDown(t))}removeListeners(){this.eventListeners.forEach(({element:t,handler:e})=>{t.removeEventListener("click",e)}),this.eventListeners=[]}defaultActiveTab(){const{initialOpen:t}=this.settings;t>0&&this.activateTab((t-1).toString())}slideDown(t){const e=this.elements.tabContents.find(e=>e.parentElement.getAttribute("data-id-acc")===t),i=e.scrollHeight;this.isAnimating=!0,e.style.height="0px",e.style.display="block",e.style.transition="height 0.4s ease, visibility 0.4s ease",setTimeout(()=>{e.style.height=`${i}px`},10),setTimeout(()=>{e.style.height="auto",e.style.transition="",this.isAnimating=!1},400)}slideUp(t){
2755 -const e=this.elements.tabContents.find(e=>e.parentElement.getAttribute("data-id-acc")===t);this.isAnimating=!0,e.style.height=`${e.scrollHeight}px`,e.style.transition="height 0.4s ease, visibility 0.4s ease",setTimeout(()=>{e.style.height="0px"},10),setTimeout(()=>{e.style.display="none",e.style.transition="",this.isAnimating=!1},400)}};function AR(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s}=e,b=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(i),[i]),c=(0,D.useBlockProps)();(0,a.useEffect)(()=>{let t;if(b.length>0){const e=(0,M.bu)(`.ablocks-block-${s}.ablocks-block--accordion`);null!==e&&(t=new CR(e))}return()=>{t&&t.removeListeners()}},[b,s]);const{updateBlockAttributes:d}=(0,r.useDispatch)("core/block-editor");function u(){const t=b.length,e=(0,o.createBlock)("ablocks/single-accordion",{},[(0,o.createBlock)("ablocks/paragraph",{
2759 +const e=this.elements.tabContents.find(e=>e.parentElement.getAttribute("data-id-acc")===t);this.isAnimating=!0,e.style.height=`${e.scrollHeight}px`,e.style.transition="height 0.4s ease, visibility 0.4s ease",setTimeout(()=>{e.style.height="0px"},10),setTimeout(()=>{e.style.display="none",e.style.transition="",this.isAnimating=!1},400)}};function YR(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s}=e,b=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(i),[i]),c=(0,D.useBlockProps)();(0,a.useEffect)(()=>{let t;if(b.length>0){const e=(0,M.bu)(`.ablocks-block-${s}.ablocks-block--accordion`);null!==e&&(t=new OR(e))}return()=>{t&&t.removeListeners()}},[b,s]);const{updateBlockAttributes:d}=(0,r.useDispatch)("core/block-editor");function u(){const t=b.length,e=(0,o.createBlock)("ablocks/single-accordion",{},[(0,o.createBlock)("ablocks/paragraph",{
2756 2760 paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."})]);(0,r.dispatch)("core/block-editor").insertBlock(e,t,i)}(0,a.useEffect)(()=>{n&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(i);t.length>0&&t.forEach(t=>{const i=t.clientId;d(i,{parentAttributes:e})})})()},[e]);const p=(0,D.useInnerBlocksProps)(c,{template:[["ablocks/single-accordion",{},[["ablocks/paragraph",{paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]],["ablocks/single-accordion",{},[["ablocks/paragraph",{paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]],["ablocks/single-accordion",{},[["ablocks/paragraph",{
2757 -paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]]],allowedBlocks:["ablocks/single-accordion"],templateLock:!1,renderAppender:()=>(0,I.jsxs)("button",{className:"ablocks-block-accordion-appender-button",type:"button",onClick:u,children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),(0,I.jsx)("span",{children:(0,L.__)("Add Accordion","ablocks")})]})});return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(zR,{insertButtonBlock:u}),(0,I.jsx)(Yb.A,{blockId:s,name:wR.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)("div",{...p})})]})}AR.propTypes={};const LR=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemSpace,attributeObjectKey:"value",isResponsive:!1,defaultValue:10,property:"margin-bottom",hasUnit:!1,unitDefaultValue:"px",device:e})},o=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{...i,
2758 -...(0,y.qD)(o,e)}},DR=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},NR=(t,e="")=>{const i=t.headerTypographyGlobal?t.headerTypographyGlobal:"",o={...(0,Eb.qD)({attributeValue:t.iconSpace,attributeObjectKey:"value",isResponsive:!1,defaultValue:10,property:"margin-left",device:e})},a=(0,M.Zy)(t.headerTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.headerTextColor),...o,...(0,U.qD)(a,e,i),...(0,Mc.qD)(t?.headerTextStroke,e),...(0,fc.qD)(t?.headerTextShadow)}},IR=t=>({color:(0,Hs.qD)(t?.headerTextColorH)}),VR=t=>({color:(0,Hs.qD)(t?.headerTextActiveColor)}),OR=(t,e="")=>{const i=(0,M.Zy)(t.headerPadding,{unit:"px"}),o=(0,M.Zy)(t.headerBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}},YR=(t,e="")=>{const i=(0,M.Zy)(t.headerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColorH),...(0,y.a9)(i,e)}
2759 -},XR=t=>({background:(0,Hs.qD)(t?.headerBackgroundActiveColor)}),BR=(t,e="")=>{const i=(0,M.Zy)(t.bodyPadding,{unit:"px"});return{background:(0,Hs.qD)(t?.bodyBackground),...(0,c.qD)(i,"padding",e)}},ER=t=>({background:(0,Hs.qD)(t?.bodyBackgroundH)});function FR(t){const{attributes:e}=t,{block_id:i,allowMultiple:o,initialOpen:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:wR.UU,attributes:e,blockProps:{"data-multiple":o,"data-initial-open":a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}FR.propTypes={};const qR={UU:"ablocks/accordion",uK:{block_id:{type:"string",default:""},allowMultiple:{type:"boolean",default:!1},initialOpen:{type:"number",default:1},iconColor:{type:"string",default:"#000000"},iconColorH:{type:"string",default:""},iconActiveColor:{type:"string",default:""},headerTextColor:{type:"string",default:"#000000"},headerTextColorH:{type:"string",default:""},headerTextActiveColor:{type:"string",default:""},bodyBackgroundH:{type:"string",default:""
2761 +paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]]],allowedBlocks:["ablocks/single-accordion"],templateLock:!1,renderAppender:()=>(0,I.jsxs)("button",{className:"ablocks-block-accordion-appender-button",type:"button",onClick:u,children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),(0,I.jsx)("span",{children:(0,L.__)("Add Accordion","ablocks")})]})});return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(VR,{insertButtonBlock:u}),(0,I.jsx)(Yb.A,{blockId:s,name:IR.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)("div",{...p})})]})}YR.propTypes={};const XR=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemSpace,attributeObjectKey:"value",isResponsive:!1,defaultValue:10,property:"margin-bottom",hasUnit:!1,unitDefaultValue:"px",device:e})},o=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{...i,
2762 +...(0,y.qD)(o,e)}},BR=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},ER=(t,e="")=>{const i=t.headerTypographyGlobal?t.headerTypographyGlobal:"",o={...(0,Eb.qD)({attributeValue:t.iconSpace,attributeObjectKey:"value",isResponsive:!1,defaultValue:10,property:"margin-left",device:e})},a=(0,M.Zy)(t.headerTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.headerTextColor),...o,...(0,U.qD)(a,e,i),...(0,Mc.qD)(t?.headerTextStroke,e),...(0,fc.qD)(t?.headerTextShadow)}},FR=t=>({color:(0,Hs.qD)(t?.headerTextColorH)}),qR=t=>({color:(0,Hs.qD)(t?.headerTextActiveColor)}),$R=(t,e="")=>{const i=(0,M.Zy)(t.headerPadding,{unit:"px"}),o=(0,M.Zy)(t.headerBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}},GR=(t,e="")=>{const i=(0,M.Zy)(t.headerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColorH),...(0,y.a9)(i,e)}
2763 +},ZR=t=>({background:(0,Hs.qD)(t?.headerBackgroundActiveColor)}),KR=(t,e="")=>{const i=(0,M.Zy)(t.bodyPadding,{unit:"px"});return{background:(0,Hs.qD)(t?.bodyBackground),...(0,c.qD)(i,"padding",e)}},JR=t=>({background:(0,Hs.qD)(t?.bodyBackgroundH)});function QR(t){const{attributes:e}=t,{block_id:i,allowMultiple:o,initialOpen:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:IR.UU,attributes:e,blockProps:{"data-multiple":o,"data-initial-open":a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}QR.propTypes={};const tS={UU:"ablocks/accordion",uK:{block_id:{type:"string",default:""},allowMultiple:{type:"boolean",default:!1},initialOpen:{type:"number",default:1},iconColor:{type:"string",default:"#000000"},iconColorH:{type:"string",default:""},iconActiveColor:{type:"string",default:""},headerTextColor:{type:"string",default:"#000000"},headerTextColorH:{type:"string",default:""},headerTextActiveColor:{type:"string",default:""},bodyBackgroundH:{type:"string",default:""
2760 2764 },bodyBackground:{type:"string",default:"#F9F9F9"},headingTag:{type:"string",default:"p"},iconPosition:{type:"string",default:"right"},showIcon:{type:"boolean",default:!0},headerBackgroundActiveColor:{type:"string",default:""},headerBackgroundColorH:{type:"string",default:""},headerBackgroundColor:{type:"string",default:"#F9F9F9"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},headerTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",
2761 2765 wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headerTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},headerTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},itemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",
2762 2766 leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",
2763 2767 leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},headerPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},bodyPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},headerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",
@@ -2776,17 +2780,17 @@
2776 2780 imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",
2777 2781 imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",
2778 2782 offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",
2779 2783 offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",
2780 -yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function $R(t){const{attributes:e}=t,{block_id:i,allowMultiple:o,initialOpen:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:qR.UU,attributes:e,blockProps:{"data-multiple":o,"data-initial-open":a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}$R.propTypes={},(0,M.xV)(wR.UU)&&(0,o.registerBlockType)(wR.UU,{title:(0,L.__)("Accordion","ablocks"),
2781 -attributes:wR.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion",LR(i),LR(i,"Tablet"),LR(i,"Mobile"),e(t=>LR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion:hover",DR(i),DR(i,"Tablet"),DR(i,"Mobile"),e(t=>DR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading .ablocks-block-accordion-title",NR(i),NR(i,"Tablet"),NR(i,"Mobile"),e(t=>NR(i,t))),
2782 -t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover .ablocks-block-accordion-title",IR(i),IR(i),IR(i),e(t=>IR(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected .ablocks-block-accordion-title",VR(i),VR(i),VR(i),e(t=>VR(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading",OR(i),OR(i,"Tablet"),OR(i,"Mobile"),e(t=>OR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover",YR(i),YR(i,"Tablet"),YR(i,"Mobile"),e(t=>YR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected .ablocks-block--single-accordion__heading",XR(i),XR(i),XR(i),e(t=>XR(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading svg.ablocks-svg-icon",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,defaultValue:30,property:"font-size",device:e})};return{fill:(0,Hs.qD)(t?.iconColor),...i}})(i)),
2783 -t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover svg.ablocks-svg-icon",(t=>({fill:(0,Hs.qD)(t?.iconColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected svg.ablocks-svg-icon",(t=>({fill:(0,Hs.qD)(t?.iconActiveColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content",BR(i),BR(i,"Tablet"),BR(i,"Mobile"),e(t=>BR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content:hover",ER(i),ER(i),ER(i),e(t=>ER(i))),(0,b.applyFilters)("ablocks.accordion.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(jR,{...t}),(0,I.jsx)(AR,{...t})]})},save:FR,deprecated:[{attributes:qR.uK,save:$R}],icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion"})});var GR=i(80518);function ZR(t){
2784 +yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function eS(t){const{attributes:e}=t,{block_id:i,allowMultiple:o,initialOpen:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:tS.UU,attributes:e,blockProps:{"data-multiple":o,"data-initial-open":a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}eS.propTypes={},(0,M.xV)(IR.UU)&&(0,o.registerBlockType)(IR.UU,{title:(0,L.__)("Accordion","ablocks"),
2785 +attributes:IR.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion",XR(i),XR(i,"Tablet"),XR(i,"Mobile"),e(t=>XR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion:hover",BR(i),BR(i,"Tablet"),BR(i,"Mobile"),e(t=>BR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading .ablocks-block-accordion-title",ER(i),ER(i,"Tablet"),ER(i,"Mobile"),e(t=>ER(i,t))),
2786 +t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover .ablocks-block-accordion-title",FR(i),FR(i),FR(i),e(t=>FR(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected .ablocks-block-accordion-title",qR(i),qR(i),qR(i),e(t=>qR(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading",$R(i),$R(i,"Tablet"),$R(i,"Mobile"),e(t=>$R(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover",GR(i),GR(i,"Tablet"),GR(i,"Mobile"),e(t=>GR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected .ablocks-block--single-accordion__heading",ZR(i),ZR(i),ZR(i),e(t=>ZR(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading svg.ablocks-svg-icon",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,defaultValue:30,property:"font-size",device:e})};return{fill:(0,Hs.qD)(t?.iconColor),...i}})(i)),
2787 +t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover svg.ablocks-svg-icon",(t=>({fill:(0,Hs.qD)(t?.iconColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected svg.ablocks-svg-icon",(t=>({fill:(0,Hs.qD)(t?.iconActiveColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content",KR(i),KR(i,"Tablet"),KR(i,"Mobile"),e(t=>KR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content:hover",JR(i),JR(i),JR(i),e(t=>JR(i))),(0,b.applyFilters)("ablocks.accordion.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(NR,{...t}),(0,I.jsx)(YR,{...t})]})},save:QR,deprecated:[{attributes:tS.uK,save:eS}],icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion"})});var iS=i(80518);function oS(t){
2784 2788 const{attributes:e,setAttributes:i}=t,{headerTextColor:o,headerTextColorH:a,headerBackgroundColor:n,headerBackgroundColorH:s,headerPadding:r,headerTypography:b,headerTextShadow:c,headerTextStroke:d,iconColor:u,iconColorH:p,bodyBackgroundH:m,bodyBackground:h,bodyPadding:g,accordionTitle:f,headerBackgroundActiveColor:y,headerTextActiveColor:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Accordion Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Customize accordion block settings to your design and content needs.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,
2785 -docs_url:"https://ablocks.pro/docs/ablocks-accordion-block/",children:[(0,I.jsxs)(V,{title:(0,L.__)("Single Accordion","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Item Space","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"itemSpace",hasUnit:!1,attributeValue:e.itemSpace,setAttributes:i,attributeDefaultValue:GR.eY}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i})]}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Accordion Title","ablocks"),attributeName:"accordionTitle",attributeValue:f,setAttributes:i,isInline:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"headerTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,
2789 +docs_url:"https://ablocks.pro/docs/ablocks-accordion-block/",children:[(0,I.jsxs)(V,{title:(0,L.__)("Single Accordion","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Item Space","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"itemSpace",hasUnit:!1,attributeValue:e.itemSpace,setAttributes:i,attributeDefaultValue:iS.eY}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i})]}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Accordion Title","ablocks"),attributeName:"accordionTitle",attributeValue:f,setAttributes:i,isInline:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"headerTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,
2786 2790 I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"headerTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"headerTextStroke",attributeValue:d,setAttributes:i,isResponsive:!0}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"headerTextColor",attributeValue:o,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"headerBackgroundColor",attributeValue:n,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"headerTextColorH",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"headerBackgroundColorH",attributeValue:s,setAttributes:i})]})}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ws,{
2787 -label:(0,L.__)("Active Color","ablocks"),attributeName:"headerTextActiveColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Background","ablocks"),attributeName:"headerBackgroundActiveColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"headerPadding",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:GR.RK}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,
2788 -I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:u,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColorH",attributeValue:p,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Content","ablocks"),initialOpen:!1,children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"bodyPadding",attributeValue:g,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackground",attributeValue:h,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackgroundH",attributeValue:m,setAttributes:i})})})]})]})]})})}ZR.propTypes={};const KR={UU:"ablocks/single-accordion",$t:["ablocks/accordion"],uK:{block_id:{type:"string",default:""},accordionId:{
2791 +label:(0,L.__)("Active Color","ablocks"),attributeName:"headerTextActiveColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Background","ablocks"),attributeName:"headerBackgroundActiveColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"headerPadding",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:iS.RK}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,
2792 +I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:u,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColorH",attributeValue:p,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Content","ablocks"),initialOpen:!1,children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"bodyPadding",attributeValue:g,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackground",attributeValue:h,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackgroundH",attributeValue:m,setAttributes:i})})})]})]})]})})}oS.propTypes={};const aS={UU:"ablocks/single-accordion",$t:["ablocks/accordion"],uK:{block_id:{type:"string",default:""},accordionId:{
2789 2793 type:"number",default:0},accordionTitle:{type:"string",default:""},headerTextColor:{type:"string",default:""},headerTextColorH:{type:"string",default:""},headerTextActiveColor:{type:"string",default:""},headerBackgroundActiveColor:{type:"string",default:""},headerBackgroundColorH:{type:"string",default:""},headerBackgroundColor:{type:"string",default:""},iconColor:{type:"string",default:""},iconColorH:{type:"string",default:""},bodyBackgroundH:{type:"string",default:""},bodyBackground:{type:"string",default:""},parentAttributes:{type:"object",default:{iconPosition:"right",headingTag:"p",showIcon:!0,leftCloseIconClass:"far fa-arrow-alt-circle-up",leftActiveIconClass:"far fa-arrow-alt-circle-down",rightActiveIconClass:"fas fa-minus",rightCloseIconClass:"fas fa-plus"}},iconSize:{type:"number",default:""},itemSpace:{type:"number",default:""},leftCloseIconSvgPath:{type:"string",
2790 2794 default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z"},leftCloseIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftCloseIconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},leftCloseIconImageUrl:{type:"string",default:""},leftCloseIconImageID:{type:"number",default:0},leftCloseIconImageSize:{type:"string",default:""},leftCloseIconColor:{type:"string",default:"#69727d"},leftCloseIconBgColor:{type:"string",default:""},leftCloseIconHoverColor:{type:"string",default:""},leftCloseIconHoverBgColor:{type:"string",default:""},leftCloseIconType:{type:"string",default:"default"},leftCloseIconShape:{type:"string",default:"circle"},leftCloseIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",
2791 2795 left:"",unit:"px"}},leftCloseIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},leftCloseIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},leftCloseIconSize:{
2792 2796 type:"number",default:55},leftCloseIconRotate:{type:"number",default:0},leftCloseIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftCloseIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftCloseIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftCloseIcontransitionDuration:{type:"number",default:0},leftCloseIconImageWidth:{type:"number",default:0},leftActiveIconSvgPath:{type:"string",default:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-32-316v116h-67c-10.7 0-16 12.9-8.5 20.5l99 99c4.7 4.7 12.3 4.7 17 0l99-99c7.6-7.6 2.2-20.5-8.5-20.5h-67V140c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12z"},leftActiveIconSvgViewBox:{type:"string",
@@ -2809,32 +2813,32 @@
2809 2813 imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",
2810 2814 imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",
2811 2815 offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",
2812 2816 scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",
2813 -animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function JR(t){
2814 -const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,accordionTitle:s,accordionId:b,parentAttributes:c}=e,d=(0,D.useBlockProps)({className:"ablocks-block ablocks-block--single-accordion__body-content"}),u=(0,D.useInnerBlocksProps)(d,{templateLock:!1}),{iconPosition:p,headingTag:m,showIcon:h,leftCloseIconClass:g,leftActiveIconClass:f,rightActiveIconClass:y,rightCloseIconClass:T}=c||{},H=(0,r.select)("core/block-editor").getBlockRootClientId(o),M=(0,r.select)("core/block-editor").getBlockIndex(o,H),x=(c?Object.keys(c).length:0)>7?c:e;(0,a.useEffect)(()=>{const t={};if(-1!==M&&M!==b&&(t.accordionId=M),!s){const e=-1!==M?M:b;t.accordionTitle=`Accordion Title ${e+1}`}Object.keys(t).length>0&&i(t)},[M]);const k=h&&("left"===p||"both"===p)&&f,v=h&&("left"===p||"both"===p)&&g,_=h&&("right"===p||"both"===p)&&y,R=h&&("right"===p||"both"===p)&&T;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sR,{blockId:n,name:KR.UU,attributes:e,blockProps:{"data-id-acc":b},children:[(0,I.jsxs)("div",{
2817 +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function lS(t){
2818 +const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,accordionTitle:s,accordionId:b,parentAttributes:c}=e,d=(0,D.useBlockProps)({className:"ablocks-block ablocks-block--single-accordion__body-content"}),u=(0,D.useInnerBlocksProps)(d,{templateLock:!1}),{iconPosition:p,headingTag:m,showIcon:h,leftCloseIconClass:g,leftActiveIconClass:f,rightActiveIconClass:y,rightCloseIconClass:T}=c||{},H=(0,r.select)("core/block-editor").getBlockRootClientId(o),M=(0,r.select)("core/block-editor").getBlockIndex(o,H),x=(c?Object.keys(c).length:0)>7?c:e;(0,a.useEffect)(()=>{const t={};if(-1!==M&&M!==b&&(t.accordionId=M),!s){const e=-1!==M?M:b;t.accordionTitle=`Accordion Title ${e+1}`}Object.keys(t).length>0&&i(t)},[M]);const k=h&&("left"===p||"both"===p)&&f,v=h&&("left"===p||"both"===p)&&g,_=h&&("right"===p||"both"===p)&&y,R=h&&("right"===p||"both"===p)&&T;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(mR,{blockId:n,name:aS.UU,attributes:e,blockProps:{"data-id-acc":b},children:[(0,I.jsxs)("div",{
2815 2819 className:"ablocks-block--single-accordion__heading",children:[(0,I.jsxs)("div",{className:"ablocks-block--single-accordion__heading-rightSide",children:[k&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"leftActiveIcon",attributes:x})}),v&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"leftCloseIcon",attributes:x})}),(0,I.jsx)($c,{tagName:m,identifier:"accordionTitle",value:e.accordionTitle,withoutInteractiveFormatting:!0,placeholder:e.accordionTitle,className:"ablocks-block-accordion-title",onChange:t=>i({accordionTitle:t})})]}),_&&(0,I.jsx)("div",{className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"rightActiveIcon",attributes:x})}),R&&(0,I.jsx)("div",{
2816 -className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"rightCloseIcon",attributes:x})})]}),(0,I.jsx)("div",{className:"ablocks-block--single-accordion__body",children:(0,I.jsx)("div",{...u})})]})})}JR.propTypes={};const QR=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemSpace,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,unitDefaultValue:"px",property:"margin-bottom",device:e})},o=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},tS=(t,e="")=>{const i=(0,M.Zy)(t.headerTypography,{weight:"400"}),o=t.headerTypographyGlobal?t.headerTypographyGlobal:"";return{color:(0,Hs.qD)(t?.headerTextColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.headerTextStroke,e),...(0,fc.qD)(t?.headerTextShadow)}},eS=t=>({color:(0,Hs.qD)(t?.headerTextColorH)}),iS=t=>({color:(0,Hs.qD)(t?.headerTextActiveColor)}),oS=(t,e="")=>{const i=(0,M.Zy)(t.headerPadding,{unit:"px"
2817 -}),o=(0,M.Zy)(t.headerBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}},aS=(t,e="")=>{const i=(0,M.Zy)(t.headerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColorH),...(0,y.a9)(i,e)}},lS=t=>({background:(0,Hs.qD)(t?.headerBackgroundActiveColor)}),nS=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},sS=(t,e="")=>{const i=(0,M.Zy)(t.bodyPadding,{unit:"px"});return{background:(0,Hs.qD)(t?.bodyBackground),...(0,c.qD)(i,"padding",e)}},rS=t=>({background:(0,Hs.qD)(t?.bodyBackgroundH)});function bS(t){const{attributes:e}=t,{block_id:i,accordionTitle:o,accordionId:a,parentAttributes:n}=e,{headingTag:s,iconPosition:r,showIcon:b,rightActiveIconClass:c,rightCloseIconClass:d,leftCloseIconClass:u,leftActiveIconClass:p}=n||{},m=D.useBlockProps.save({className:"ablocks-block--single-accordion__body-content"
2818 -}),h=D.useInnerBlocksProps.save(m),g=(n?Object.keys(n).length:0)>7?n:e,f=b&&("left"===r||"both"===r)&&p,y=b&&("left"===r||"both"===r)&&u,T=b&&("right"===r||"both"===r)&&c,H=b&&("right"===r||"both"===r)&&d;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(dR,{blockId:i,name:KR.UU,attributes:e,blockProps:{"data-id-acc":a},children:[(0,I.jsxs)("div",{className:"ablocks-block--single-accordion__heading",children:[(0,I.jsxs)("div",{className:"ablocks-block--single-accordion__heading-rightSide",children:[f&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"leftActiveIcon",attributes:g})}),y&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"leftCloseIcon",attributes:g})}),(0,I.jsx)(D.RichText.Content,{tagName:s,className:"ablocks-block-accordion-title",withoutInteractiveFormatting:!0,value:o})]}),T&&(0,I.jsx)("div",{
2819 -className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"rightActiveIcon",attributes:g})}),H&&(0,I.jsx)("div",{className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"rightCloseIcon",attributes:g})})]}),(0,I.jsx)("div",{className:"ablocks-block--single-accordion__body",children:(0,I.jsx)("div",{...h})})]})})}bS.propTypes={},(0,M.xV)(KR.UU,KR.$t[0])&&(0,o.registerBlockType)(KR.UU,{title:(0,L.__)("Single Accordion","ablocks"),attributes:KR.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion",QR(i),QR(i,"Tablet"),QR(i,"Mobile"),t.customDeviceMap(t=>QR(i,t))),
2820 -t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion:hover",nS(i),nS(i,"Tablet"),nS(i,"Mobile"),t.customDeviceMap(t=>nS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading .ablocks-block-accordion-title",tS(i),tS(i,"Tablet"),tS(i,"Mobile"),t.customDeviceMap(t=>tS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover .ablocks-block-accordion-title",eS(i),eS(i),eS(i),t.customDeviceMap(t=>eS(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion-is-selected .ablocks-block-accordion-title",iS(i),iS(i),iS(i),t.customDeviceMap(t=>iS(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading",oS(i),oS(i,"Tablet"),oS(i,"Mobile"),t.customDeviceMap(t=>oS(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion-is-selected .ablocks-block--single-accordion__heading",lS(i),lS(i),lS(i),t.customDeviceMap(t=>lS(i))),
2821 -t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover",aS(i),aS(i,"Tablet"),aS(i,"Mobile"),t.customDeviceMap(t=>aS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading svg.ablocks-svg-icon",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,property:"font-size",device:e})};return t?.iconColor&&(i.fill=`${(0,Hs.qD)(t?.iconColor)} !important`),{...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover svg.ablocks-svg-icon",(t=>{const e={};return t?.iconColorH&&(e.fill=`${(0,Hs.qD)(t?.iconColorH)} !important`),{...e}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content",sS(i),sS(i,"Tablet"),sS(i,"Mobile"),t.customDeviceMap(t=>sS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content:hover",rS(i),rS(i),rS(i),t.customDeviceMap(t=>rS(i))),(0,
2822 -b.applyFilters)("ablocks.single-accordion.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(ZR,{...t}),(0,I.jsx)(JR,{...t})]})},save:bS,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion-child"})});const cS={normal:Y().node.isRequired,active:Y().node.isRequired};function dS(t){const{normal:e="",active:i=""}=t,o=[{name:"normal",render:e,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Normal","ablocks")})}),className:"ablocks-normal-active-tab__item"},{name:"active",render:i,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Active","ablocks")})}),className:"ablocks-normal-active-tab__item"}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.TabPanel,{className:"ablocks-normal-active-tabs",activeClass:"ablocks-normal-active-tab__item--active",tabs:o,children:t=>t.render})})}
2823 -dS.propTypes=cS;var uS=i(41111);const pS=[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"}],mS=[{label:(0,L.__)("Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],hS=[{label:(0,L.__)("Start","ablocks"),value:"start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"end",icon:(0,I.jsx)("span",{
2824 -className:"ablocks-icon ablocks-icon--align-end"})}],gS=((0,L.__)("Circle","ablocks"),(0,L.__)("Square","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"}]);function fS(t){
2820 +className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"rightCloseIcon",attributes:x})})]}),(0,I.jsx)("div",{className:"ablocks-block--single-accordion__body",children:(0,I.jsx)("div",{...u})})]})})}lS.propTypes={};const nS=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemSpace,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,unitDefaultValue:"px",property:"margin-bottom",device:e})},o=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},sS=(t,e="")=>{const i=(0,M.Zy)(t.headerTypography,{weight:"400"}),o=t.headerTypographyGlobal?t.headerTypographyGlobal:"";return{color:(0,Hs.qD)(t?.headerTextColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.headerTextStroke,e),...(0,fc.qD)(t?.headerTextShadow)}},rS=t=>({color:(0,Hs.qD)(t?.headerTextColorH)}),bS=t=>({color:(0,Hs.qD)(t?.headerTextActiveColor)}),cS=(t,e="")=>{const i=(0,M.Zy)(t.headerPadding,{unit:"px"
2821 +}),o=(0,M.Zy)(t.headerBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}},dS=(t,e="")=>{const i=(0,M.Zy)(t.headerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColorH),...(0,y.a9)(i,e)}},uS=t=>({background:(0,Hs.qD)(t?.headerBackgroundActiveColor)}),pS=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},mS=(t,e="")=>{const i=(0,M.Zy)(t.bodyPadding,{unit:"px"});return{background:(0,Hs.qD)(t?.bodyBackground),...(0,c.qD)(i,"padding",e)}},hS=t=>({background:(0,Hs.qD)(t?.bodyBackgroundH)});function gS(t){const{attributes:e}=t,{block_id:i,accordionTitle:o,accordionId:a,parentAttributes:n}=e,{headingTag:s,iconPosition:r,showIcon:b,rightActiveIconClass:c,rightCloseIconClass:d,leftCloseIconClass:u,leftActiveIconClass:p}=n||{},m=D.useBlockProps.save({className:"ablocks-block--single-accordion__body-content"
2822 +}),h=D.useInnerBlocksProps.save(m),g=(n?Object.keys(n).length:0)>7?n:e,f=b&&("left"===r||"both"===r)&&p,y=b&&("left"===r||"both"===r)&&u,T=b&&("right"===r||"both"===r)&&c,H=b&&("right"===r||"both"===r)&&d;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(yR,{blockId:i,name:aS.UU,attributes:e,blockProps:{"data-id-acc":a},children:[(0,I.jsxs)("div",{className:"ablocks-block--single-accordion__heading",children:[(0,I.jsxs)("div",{className:"ablocks-block--single-accordion__heading-rightSide",children:[f&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"leftActiveIcon",attributes:g})}),y&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"leftCloseIcon",attributes:g})}),(0,I.jsx)(D.RichText.Content,{tagName:s,className:"ablocks-block-accordion-title",withoutInteractiveFormatting:!0,value:o})]}),T&&(0,I.jsx)("div",{
2823 +className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"rightActiveIcon",attributes:g})}),H&&(0,I.jsx)("div",{className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"rightCloseIcon",attributes:g})})]}),(0,I.jsx)("div",{className:"ablocks-block--single-accordion__body",children:(0,I.jsx)("div",{...h})})]})})}gS.propTypes={},(0,M.xV)(aS.UU,aS.$t[0])&&(0,o.registerBlockType)(aS.UU,{title:(0,L.__)("Single Accordion","ablocks"),attributes:aS.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion",nS(i),nS(i,"Tablet"),nS(i,"Mobile"),t.customDeviceMap(t=>nS(i,t))),
2824 +t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion:hover",pS(i),pS(i,"Tablet"),pS(i,"Mobile"),t.customDeviceMap(t=>pS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading .ablocks-block-accordion-title",sS(i),sS(i,"Tablet"),sS(i,"Mobile"),t.customDeviceMap(t=>sS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover .ablocks-block-accordion-title",rS(i),rS(i),rS(i),t.customDeviceMap(t=>rS(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion-is-selected .ablocks-block-accordion-title",bS(i),bS(i),bS(i),t.customDeviceMap(t=>bS(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading",cS(i),cS(i,"Tablet"),cS(i,"Mobile"),t.customDeviceMap(t=>cS(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion-is-selected .ablocks-block--single-accordion__heading",uS(i),uS(i),uS(i),t.customDeviceMap(t=>uS(i))),
2825 +t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover",dS(i),dS(i,"Tablet"),dS(i,"Mobile"),t.customDeviceMap(t=>dS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading svg.ablocks-svg-icon",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,property:"font-size",device:e})};return t?.iconColor&&(i.fill=`${(0,Hs.qD)(t?.iconColor)} !important`),{...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover svg.ablocks-svg-icon",(t=>{const e={};return t?.iconColorH&&(e.fill=`${(0,Hs.qD)(t?.iconColorH)} !important`),{...e}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content",mS(i),mS(i,"Tablet"),mS(i,"Mobile"),t.customDeviceMap(t=>mS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content:hover",hS(i),hS(i),hS(i),t.customDeviceMap(t=>hS(i))),(0,
2826 +b.applyFilters)("ablocks.single-accordion.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(oS,{...t}),(0,I.jsx)(lS,{...t})]})},save:gS,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion-child"})});const fS={normal:Y().node.isRequired,active:Y().node.isRequired};function yS(t){const{normal:e="",active:i=""}=t,o=[{name:"normal",render:e,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Normal","ablocks")})}),className:"ablocks-normal-active-tab__item"},{name:"active",render:i,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Active","ablocks")})}),className:"ablocks-normal-active-tab__item"}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.TabPanel,{className:"ablocks-normal-active-tabs",activeClass:"ablocks-normal-active-tab__item--active",tabs:o,children:t=>t.render})})}
2827 +yS.propTypes=fS;var TS=i(41111);const HS=[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"}],MS=[{label:(0,L.__)("Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],xS=[{label:(0,L.__)("Start","ablocks"),value:"start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"end",icon:(0,I.jsx)("span",{
2828 +className:"ablocks-icon ablocks-icon--align-end"})}],kS=((0,L.__)("Circle","ablocks"),(0,L.__)("Square","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"}]);function vS(t){
2825 2829 const{attributes:e,setAttributes:i}=t,{subTitleTypography:o,subTitleTextColor:a,subTitleTextActiveColor:n,showTitle:s,showSubTitle:r,iconPosition:b,tabsMenuPositioning:c,tabsMenuDirection:d,showIcon:u,titleTypography:p,titleTextColor:m,tabBackgroundColor:h,contentBackgroundColor:g,titleTextActiveColor:f,tabActiveBackgroundColor:y,menuContentPadding:T,spacing:H,tabsGap:x,tabsWidth:k,tabsWidthType:v,tabWrap:_,tabsContentWidthType:R,contentGap:S,contentWidth:W,progressBarColor:P,tabsChangingEffect:U,activeColorOptions:j,tabIcons:w,tabIconsClasses:z,clickedTabIndex:C,enableHoverSwitch:A}=e,O=lt(),Y=(0,M.Ic)(e?.tabsMenuPositioning,"value",O);return(0,M.Ic)(e?.tabsWidthType,"value",O),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-tabs-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Tab Menu","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{
2826 -children:[(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Menu Position","ablocks"),options:pS,attributeName:"tabsMenuPositioning",attributeValue:c,setAttributes:i}),("top"===Y||"bottom"===Y)&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Menu Direction","ablocks"),options:[{label:(0,L.__)("Row","ablocks"),value:"row"},{label:(0,L.__)("Column","ablocks"),value:"column"}],attributeName:"tabsMenuDirection",attributeValue:d,setAttributes:i})}),("top"===Y||"bottom"===Y)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Menu Alignment","ablocks"),options:mS,attributeName:"tabMenuAlignment",attributeValue:e.tabMenuAlignment,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Menu Content Alignment","ablocks"),options:hS,attributeName:"menuContentAlignment",attributeValue:e.menuContentAlignment,setAttributes:i}),("top"===Y||"bottom"===Y)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Wrap","ablocks"),options:[{label:(0,L.__)("Wrap","ablocks"),value:"wrap",icon:(0,
2830 +children:[(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Menu Position","ablocks"),options:HS,attributeName:"tabsMenuPositioning",attributeValue:c,setAttributes:i}),("top"===Y||"bottom"===Y)&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Menu Direction","ablocks"),options:[{label:(0,L.__)("Row","ablocks"),value:"row"},{label:(0,L.__)("Column","ablocks"),value:"column"}],attributeName:"tabsMenuDirection",attributeValue:d,setAttributes:i})}),("top"===Y||"bottom"===Y)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Menu Alignment","ablocks"),options:MS,attributeName:"tabMenuAlignment",attributeValue:e.tabMenuAlignment,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Menu Content Alignment","ablocks"),options:xS,attributeName:"menuContentAlignment",attributeValue:e.menuContentAlignment,setAttributes:i}),("top"===Y||"bottom"===Y)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Wrap","ablocks"),options:[{label:(0,L.__)("Wrap","ablocks"),value:"wrap",icon:(0,
2827 2831 I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap"})},{label:(0,L.__)("No Wrap","ablocks"),value:"nowrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--no-wrap"})},{label:(0,L.__)("Wrap Reverse","ablocks"),value:"wrap-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap ablocks-icon-rotate-180-deg"}),tooltipPosition:"top-left"}],attributeName:"tabWrap",attributeValue:_,setAttributes:i}),(0,I.jsx)(As,{label:(0,L.__)("Initial Open","ablocks"),attributeName:"initialOpen",attributeValue:e?.initialOpen,setAttributes:i,isInline:!0}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Hover Switch","ablocks"),attributeValue:A,setAttributes:i,attributeName:"enableHoverSwitch"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Title","ablocks"),attributeValue:e?.showTitle,setAttributes:i,attributeName:"showTitle"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Sub Title","ablocks"),attributeValue:e?.showSubTitle,setAttributes:i,
2828 2832 attributeName:"showSubTitle"}),r&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Only Active Sub Title","ablocks"),attributeValue:e?.showActiveSubTitle,setAttributes:i,attributeName:"showActiveSubTitle"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Icon","ablocks"),attributeValue:u,setAttributes:i,attributeName:"showIcon"}),(0,I.jsx)(Ut,{label:(0,L.__)("Active Color Options","ablocks"),options:[{label:(0,L.__)("Background","ablocks"),value:"background"},{label:(0,L.__)("Border","ablocks"),value:"border"}],isSearch:!0,attributeName:"activeColorOptions",attributeValue:j,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Tabs Change Effect","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Enable Auto Change","ablocks"),value:"enableAutoChange"}],isSearch:!0,attributeName:"tabsChangingEffect",attributeValue:U,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),
2829 -attributeName:"tabMenusBackgroundColor",attributeValue:e?.tabMenusBackgroundColor,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"tabMenusPadding",attributeValue:e?.tabMenusPadding,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"tabMenusMargin",attributeValue:e?.tabMenusMargin,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"tabMenusBorder",attributeValue:e?.tabMenusBorder,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"tabsGap",attributeValue:x,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:0,max:100,isInline:!1,attributeDefaultValue:uS.Pf}),r&&(0,I.jsx)(_t,{label:(0,L.__)("Content Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"contentGap",attributeValue:S,
2830 -setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:0,max:100,isInline:!1,attributeDefaultValue:uS.ij}),"left"===Y||"right"===Y?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Tabs Menu Width","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"tabsWidth",attributeValue:k,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"%",label:"%"}],step:1,min:30,max:70,isInline:!1,attributeDefaultValue:uS.Ld}),(0,I.jsx)(_t,{label:(0,L.__)("Content Width","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"contentWidth",attributeValue:W,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"%",label:"%"}],step:1,min:30,max:70,isInline:!1,attributeDefaultValue:uS.MS})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Tab Parent Width","ablocks"),options:[{label:(0,L.__)("Auto","ablocks"),value:"auto"},{label:(0,L.__)("Full","ablocks"),
2831 -value:"100%"}],attributeName:"tabsWidthType",attributeValue:v,setAttributes:i}),(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Tab Child Width","ablocks"),options:[{label:(0,L.__)("Auto","ablocks"),value:"auto"},{label:(0,L.__)("Full","ablocks"),value:"100%"}],attributeName:"tabsContentWidthType",attributeValue:R,setAttributes:i})]}),(0,I.jsx)(at,{label:(0,L.__)("Each Tab Menu","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Menu Padding","ablocks"),isResponsive:!0,attributeName:"menuContentPadding",attributeValue:T,setAttributes:i}),(0,I.jsx)(dS,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"tabBackgroundColor",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Content Background Color","ablocks"),attributeName:"contentBackgroundColor",attributeValue:g,setAttributes:i})]})}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0
2832 -}),(0,I.jsx)(Us,{attributeName:"menuContentBorder",attributeValue:e?.menuContentBorder,setAttributes:i}),"border"===j?(0,I.jsx)(Ws,{label:(0,L.__)("Active Border Color","ablocks"),attributeName:"activeBorderColor",attributeValue:e?.activeBorderColor,setAttributes:i}):(0,I.jsx)(Ws,{label:(0,L.__)("Active Background Color","ablocks"),attributeName:"tabActiveBackgroundColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),s&&(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Title Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(dS,{normal:(0,
2833 -I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleTextColor",attributeValue:m,setAttributes:i})}),active:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleTextActiveColor",attributeValue:f,setAttributes:i})})})]})}),r&&(0,I.jsx)(V,{title:(0,L.__)("Subtitle","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"subTitleTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Subtitle Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(dS,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subTitleTextColor",attributeValue:a,setAttributes:i})}),active:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subTitleTextActiveColor",attributeValue:n,setAttributes:i})})})]})
2834 -}),u&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,onChangeHandler:t=>((t,e)=>{let o=[];switch(t.substring(2,3)){case"r":o=Cd;break;case"s":o=Ld;break;case"b":o=Ad}const a=o[t.substring(7)],l=`0 0 ${a[0]} ${a[1]}`,n=a[4],s=w||[],r=z||[],b=[...s.slice(0,e)||[],{path:n,viewBox:l},...s.slice(e+1)||[]],c=[...r.slice(0,e)||[],t,...r.slice(e+1)||[]];i({tabIcons:b,tabIconsClasses:c})})(t,C),deleteHandler:()=>(t=>{const e=w||[],o=z||[],a=[...e.slice(0,t)||[],{path:"",viewBox:""},...e.slice(t+1)||[]],l=[...o.slice(0,t)||[],"",...o.slice(t+1)||[]];i({tabIcons:a,tabIconsClasses:l})})(C),getIconClass:()=>z?.[C],legacySupport:!0,legacyIconSizeSupport:!0,viewSupport:!0}),(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Icon Position","ablocks"),options:gS,attributeName:"iconPosition",attributeValue:b,setAttributes:i})]}),style:(0,
2835 -I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Bd,{attributes:e,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"iconPositionMargin",attributeValue:e?.iconPositionMargin,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),isResponsive:!1,hasUnit:!0,attributeName:"spacing",attributeValue:H,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1,attributeDefaultValue:uS.CB})]})})}),"enableAutoChange"===U&&(0,I.jsx)(V,{title:(0,L.__)("Auto Change Style","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Active Duration","ablocks"),attributeName:"activeDuration",attributeValue:e?.activeDuration,setAttributes:i,isInline:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"progressBarColor",attributeValue:P,setAttributes:i})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Tab Content","ablocks"),
2836 -initialOpen:!1,children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:e?.contentPadding,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"contentMargin",attributeValue:e?.contentMargin,setAttributes:i}),(0,I.jsx)(Us,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]})]})})})}fS.propTypes={};const yS={UU:"ablocks/tabs",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},className:{type:"string",default:""},tabIcons:{type:"array",default:[]},tabIconsClasses:{type:"array",default:[]},clickedTabIndex:{type:"number",default:0},tabMenusBackgroundColor:{type:"string",default:""},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array",
2833 +attributeName:"tabMenusBackgroundColor",attributeValue:e?.tabMenusBackgroundColor,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"tabMenusPadding",attributeValue:e?.tabMenusPadding,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"tabMenusMargin",attributeValue:e?.tabMenusMargin,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"tabMenusBorder",attributeValue:e?.tabMenusBorder,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"tabsGap",attributeValue:x,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:0,max:100,isInline:!1,attributeDefaultValue:TS.Pf}),r&&(0,I.jsx)(_t,{label:(0,L.__)("Content Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"contentGap",attributeValue:S,
2834 +setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:0,max:100,isInline:!1,attributeDefaultValue:TS.ij}),"left"===Y||"right"===Y?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Tabs Menu Width","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"tabsWidth",attributeValue:k,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"%",label:"%"}],step:1,min:30,max:70,isInline:!1,attributeDefaultValue:TS.Ld}),(0,I.jsx)(_t,{label:(0,L.__)("Content Width","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"contentWidth",attributeValue:W,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"%",label:"%"}],step:1,min:30,max:70,isInline:!1,attributeDefaultValue:TS.MS})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Tab Parent Width","ablocks"),options:[{label:(0,L.__)("Auto","ablocks"),value:"auto"},{label:(0,L.__)("Full","ablocks"),
2835 +value:"100%"}],attributeName:"tabsWidthType",attributeValue:v,setAttributes:i}),(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Tab Child Width","ablocks"),options:[{label:(0,L.__)("Auto","ablocks"),value:"auto"},{label:(0,L.__)("Full","ablocks"),value:"100%"}],attributeName:"tabsContentWidthType",attributeValue:R,setAttributes:i})]}),(0,I.jsx)(at,{label:(0,L.__)("Each Tab Menu","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Menu Padding","ablocks"),isResponsive:!0,attributeName:"menuContentPadding",attributeValue:T,setAttributes:i}),(0,I.jsx)(yS,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"tabBackgroundColor",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Content Background Color","ablocks"),attributeName:"contentBackgroundColor",attributeValue:g,setAttributes:i})]})}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0
2836 +}),(0,I.jsx)(Us,{attributeName:"menuContentBorder",attributeValue:e?.menuContentBorder,setAttributes:i}),"border"===j?(0,I.jsx)(Ws,{label:(0,L.__)("Active Border Color","ablocks"),attributeName:"activeBorderColor",attributeValue:e?.activeBorderColor,setAttributes:i}):(0,I.jsx)(Ws,{label:(0,L.__)("Active Background Color","ablocks"),attributeName:"tabActiveBackgroundColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),s&&(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Title Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(yS,{normal:(0,
2837 +I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleTextColor",attributeValue:m,setAttributes:i})}),active:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleTextActiveColor",attributeValue:f,setAttributes:i})})})]})}),r&&(0,I.jsx)(V,{title:(0,L.__)("Subtitle","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"subTitleTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Subtitle Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(yS,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subTitleTextColor",attributeValue:a,setAttributes:i})}),active:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subTitleTextActiveColor",attributeValue:n,setAttributes:i})})})]})
2838 +}),u&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,onChangeHandler:t=>((t,e)=>{let o=[];switch(t.substring(2,3)){case"r":o=Cd;break;case"s":o=Ld;break;case"b":o=Ad}const a=o[t.substring(7)],l=`0 0 ${a[0]} ${a[1]}`,n=a[4],s=w||[],r=z||[],b=[...s.slice(0,e)||[],{path:n,viewBox:l},...s.slice(e+1)||[]],c=[...r.slice(0,e)||[],t,...r.slice(e+1)||[]];i({tabIcons:b,tabIconsClasses:c})})(t,C),deleteHandler:()=>(t=>{const e=w||[],o=z||[],a=[...e.slice(0,t)||[],{path:"",viewBox:""},...e.slice(t+1)||[]],l=[...o.slice(0,t)||[],"",...o.slice(t+1)||[]];i({tabIcons:a,tabIconsClasses:l})})(C),getIconClass:()=>z?.[C],legacySupport:!0,legacyIconSizeSupport:!0,viewSupport:!0}),(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Icon Position","ablocks"),options:kS,attributeName:"iconPosition",attributeValue:b,setAttributes:i})]}),style:(0,
2839 +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Bd,{attributes:e,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"iconPositionMargin",attributeValue:e?.iconPositionMargin,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),isResponsive:!1,hasUnit:!0,attributeName:"spacing",attributeValue:H,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1,attributeDefaultValue:TS.CB})]})})}),"enableAutoChange"===U&&(0,I.jsx)(V,{title:(0,L.__)("Auto Change Style","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Active Duration","ablocks"),attributeName:"activeDuration",attributeValue:e?.activeDuration,setAttributes:i,isInline:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"progressBarColor",attributeValue:P,setAttributes:i})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Tab Content","ablocks"),
2840 +initialOpen:!1,children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:e?.contentPadding,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"contentMargin",attributeValue:e?.contentMargin,setAttributes:i}),(0,I.jsx)(Us,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]})]})})})}vS.propTypes={};const _S={UU:"ablocks/tabs",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},className:{type:"string",default:""},tabIcons:{type:"array",default:[]},tabIconsClasses:{type:"array",default:[]},clickedTabIndex:{type:"number",default:0},tabMenusBackgroundColor:{type:"string",default:""},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array",
2837 2841 default:["Subtitle 1 Content: This tab provides general information about our company","Subtitle 2 Content: This tab provides general information about our company","Subtitle 3 Content: This tab provides general information about our company"]},tabActive:{type:"number",default:0},previousTotalBlock:{type:"number",default:3},tabsMenuPosition:{type:"string",default:"left"},tabsMenuPositionTablet:{type:"string",default:""},tabsMenuPositionMobile:{type:"string",default:""},initialOpen:{type:"number",default:1},activeDuration:{type:"number",default:5e3},activeColorOptions:{type:"string",default:"background"},enableHoverSwitch:{type:"boolean",default:!1},tabMenuAlign:{type:"string",default:""},tabMenuAlignTablet:{type:"string",default:""},tabMenuAlignMobile:{type:"string",default:""},menuContentAlign:{type:"string",default:"center"},menuContentAlignTablet:{type:"string",default:""},menuContentAlignMobile:{type:"string",default:""},tabBackgroundColor:{type:"string",default:"#F9F9F9"},
2838 2842 contentBackgroundColor:{type:"string",default:""},tabActiveBackgroundColor:{type:"string",default:"#61CE70"},titleTextColor:{type:"string",default:"#13191B"},titleTextActiveColor:{type:"string",default:"#0A0909"},subTitleTextColor:{type:"string",default:"#3A3A3A "},subTitleTextActiveColor:{type:"string",default:"#3A3A3A"},activeBorderColor:{type:"string",default:"#61CE70"},showTitle:{type:"boolean",default:!0},showSubTitle:{type:"boolean",default:!1},showActiveSubTitle:{type:"boolean",default:!1},tabsChangingEffect:{type:"string",default:"default"},showIcon:{type:"boolean",default:!1},progressBarColor:{type:"string",default:"#13191B"},iconColor:{type:"string",default:"#69727d"},iconActiveColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconBackground:{type:"string",default:"#FFFFFF"},iconActiveBackground:{type:"string",default:"#E5E5EC"},size:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",
2839 2843 valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},tabsWidth:{type:"object",default:{value:30,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},contentWidth:{type:"object",default:{value:70,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},tabsGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSvgPath:{type:"string",
2840 2844 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
@@ -2856,28 +2860,28 @@
2856 2860 imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",
2857 2861 imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",
2858 2862 scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",
2859 2863 skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",
2860 -shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},TS=class{constructor(t,e=!0,i={}){this.tabs=t,this.tabsHeight=this.tabs.getBoundingClientRect().height,this.tabsTopHeight=this.tabs.getBoundingClientRect().top+window.scrollY
2864 +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},RS=class{constructor(t,e=!0,i={}){this.tabs=t,this.tabsHeight=this.tabs.getBoundingClientRect().height,this.tabsTopHeight=this.tabs.getBoundingClientRect().top+window.scrollY
2861 2865 ;const o=this.getDataSettings();this.autoChangeInterval=null,this.editor=e,this.progressInterval=null,this.settings={...this.getDefaultSettings(),...o,...i},this.elements=this.getElements(),this.eventListeners=[],this.bindEvents(),this.defaultActiveTab(),!1===this.editor&&this.settings.autoChange&&this.startAutoChange(),!1===this.editor&&this.settings.scrollChange&&"top"!==this.settings.tabMenuPosition&&"bottom"!==this.settings.tabMenuPosition&&this.startScrollChange(),window.addEventListener("beforeunload",()=>{this.stopAutoChange()}),document.addEventListener("visibilitychange",this.handleVisibilityChange.bind(this))}getDefaultSettings(){return{selectors:{tabTitle:".ablocks-block-tabs__tab",tabContent:".ablocks-block--tabs-child",progressBar:".ablocks-block-tabs__progressbar"},classes:{activeTitle:"ablocks-block-tabs__tab--active",activeContent:"has-child-selected"},toggleSelf:!0,hidePrevious:!0,autoExpand:!0,initialOpen:0,autoChange:!1,activeDuration:1e4,enableHoverSwitch:!1}}
2862 2866 getDataSettings(){return{initialOpen:parseInt(this.tabs.getAttribute("data-initial-open"))||0,autoChange:"true"===this.tabs.getAttribute("data-enable-auto-change"),scrollChange:"true"===this.tabs.getAttribute("data-enable-scroll-change"),enableHoverSwitch:"true"===this.tabs.getAttribute("data-enable-hover-switch"),tabMenuPosition:this.tabs.getAttribute("data-tab-menu-position"),activeDuration:parseInt(this.tabs.getAttribute("data-tab-active-duration"))||1e4}}getElements(){const{tabTitle:t,tabContent:e}=this.settings.selectors;return{tabTitles:this.queryElements(t),tabContents:this.queryElements(e)}}queryElements(t){return Array.from(this.tabs.querySelectorAll(t))}bindEvents(){this.elements.tabTitles.forEach(t=>{const e=t.getAttribute("data-tab");if(this.settings.enableHoverSwitch){const i=()=>{this.changeActiveTab(e)};t.addEventListener("mouseenter",i),this.eventListeners.push({element:t,handler:i})}else{const i=t=>{t.preventDefault(),this.changeActiveTab(e)}
2863 2867 ;t.addEventListener("click",i),this.eventListeners.push({element:t,handler:i})}})}changeActiveTab(t){this.isActiveTab(t)||(this.deactivateAllTabs(),this.activateTab(t),!1===this.editor&&this.settings.autoChange&&(clearInterval(this.autoChangeInterval),this.startAutoChange()))}isActiveTab(t){const{activeTitle:e}=this.settings.classes,i=this.elements.tabTitles.find(e=>e.getAttribute("data-tab")===t);return i&&i.classList.contains(e)}deactivateAllTabs(){this.elements.tabTitles.forEach(t=>{const e=t.getAttribute("data-tab");this.deactivateTab(e)})}deactivateTab(t){const{activeTitle:e,activeContent:i}=this.settings.classes,o=this.elements.tabTitles.find(e=>e.getAttribute("data-tab")===t),a=this.elements.tabContents.find(e=>e.getAttribute("data-tab-id")===t);o&&o.classList.remove(e),a&&(a.classList.remove(i),a.style.display="none")}activateTab(t){if(null===t)return;const{activeTitle:e,activeContent:i}=this.settings.classes,o=this.elements.tabTitles.find(e=>e.getAttribute("data-tab")===t)
2864 2868 ;this.deactivateAllTabs();const a=this.elements.tabContents[t],l=this.elements.tabTitles[t].querySelector(this.settings.selectors.progressBar);o&&o.classList.add(e),o&&(a.classList.add(i),a.style.display="block"),this.startProgressBar(l)}removeListeners(){this.eventListeners.forEach(({element:t,handler:e})=>{t.removeEventListener("click",e),t.removeEventListener("mouseenter",e)}),this.eventListeners=[]}defaultActiveTab(){const{initialOpen:t}=this.settings,{activeTitle:e,activeContent:i}=this.settings.classes,o=this.elements.tabTitles.findIndex(t=>t.classList.contains(e)),a=this.elements.tabContents.findIndex(t=>t.classList.contains(i));(t>0&&-1===o||t>0&&-1===a)&&this.activateTab((t-1).toString())}startProgressBar(t){if(!t)return;clearInterval(this.progressInterval),t.style.width="0%";let e=0;this.progressInterval=setInterval(()=>{e+=1,t.style.width=`${e}%`,e>=100&&clearInterval(this.progressInterval)},this.settings.activeDuration/100)}startAutoChange(){
2865 -this.autoChangeInterval=setInterval(()=>{const t=(this.getActiveTabIndex()+1)%this.elements.tabTitles.length;this.changeActiveTab(t.toString())},this.settings.activeDuration)}startScrollChange(){const t=()=>{const t=window.scrollY+window.innerHeight;let e=null;this.elements.tabTitles.forEach((i,o)=>{const a=i.getBoundingClientRect().top+window.scrollY;t>a&&(e=o)}),null!==e&&this.changeActiveTab(e.toString())};window.addEventListener("scroll",t),this.eventListeners.push({element:window,handler:t})}getActiveTabIndex(){const{activeTitle:t}=this.settings.classes,e=this.elements.tabTitles.findIndex(e=>e.classList.contains(t));return-1!==e?e:0}stopAutoChange(){this.autoChangeInterval&&(clearInterval(this.autoChangeInterval),this.autoChangeInterval=null)}handleVisibilityChange(){document.hidden?this.stopAutoChange():!1===this.editor&&this.settings.autoChange&&this.startAutoChange()}},HS=({index:t,onRemove:e,onMoveUp:i,onMoveDown:o,tabHeaders:a})=>(0,I.jsxs)(N.ToolbarGroup,{
2866 -children:[0!==t&&(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Move tab up","ablocks"),children:(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--direction-row-reversed",onClick:()=>i(t,a.length),disabled:0===t})}),t!==a.length-1&&(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Move tab down","ablocks"),children:(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--direction-row-horizontal",onClick:()=>o(t,a.length),disabled:t===a.length-1})}),(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Remove tab","ablocks"),children:(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--close",onClick:()=>e(t)})})]}),MS=t=>{const{attributes:e,setAttributes:i,clientId:n}=t,{insertBlock:s,removeBlock:b}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{getBlockOrder:c}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,
2867 -r.select)("core/editor"),{block_id:d,tabHeaders:u,tabSubTitles:p,tabActive:m,previousTotalBlock:h,initialOpen:g,showTitle:f,showSubTitle:y,showIcon:T,iconPosition:H,tabPositionChange:x,enableAutoChange:k,tabIcons:v,clickedTabIndex:_,enableHoverSwitch:R}=e,[S,W]=(0,a.useState)(null),P=lt(),U=(0,r.useSelect)(t=>t("core/block-editor").getBlockOrder(n),[n]),{moveBlockToPosition:j}=(0,r.useDispatch)("core/block-editor");(0,a.useEffect)(()=>{if(U.length>0){const t=(0,M.bu)(`.ablocks-block-${d} .ablocks-block-tabs`);if(null!==t){const e=new TS(t);return h!==U.length&&(i({previousTotalBlock:U.length}),e.changeActiveTab(m.toString())),()=>{e.removeListeners()}}}},[U,m,d,R]),(0,a.useEffect)(()=>{if(!0===x){const t=(0,M.bu)(`.ablocks-block-${d} .ablocks-block-tabs`);if(null!==t){const e=new TS(t);return i({tabPositionChange:!1}),e.changeActiveTab(m.toString()),()=>{e.removeListeners()}}}},[x]);const w=t=>{((t,e,i,o,a,l,n)=>{if(a<0||a>=l.length)return;t(i(o)[a],!1);const s=[...l],r=[...n]
2868 -;s.splice(a,1),r.splice(a,1),e({tabHeaders:s,tabSubTitles:r,tabActive:0})})(b,i,c,n,t,u,p)},z=(t,e)=>{t!==e-1&&V(t,t+1)},C=t=>{t<0||V(t,t-1)},A=(t,e)=>{j(t,n,n,parseInt(e))},V=async(t,e)=>{await(async(t,e,i,o,a,l,n)=>{if(t===e||e<0||e>=i.length)return;const{getBlock:s}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor"),b=s(n),c=[...i],d=c[t];c[t]=c[e],c[e]=d;const u=[...o],p=u[t];u[t]=u[e],u[e]=p,l(b.innerBlocks[t].clientId,e),a({tabHeaders:c,tabSubTitles:u,tabActive:e,tabPositionChange:!0})})(t,e,u,p,i,A,n)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:d,name:yS.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:"ablocks-block-tabs","data-initial-open":g,"data-enable-hover-switch":R,children:[(0,I.jsxs)("ul",{className:"ablocks-block-tabs__tab-panel",children:[u.map((t,e)=>(0,I.jsxs)("li",{
2869 -className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${T&&`ablocks-block-tabs__tab-menu-${H["value"+P]}`}`,"data-tab":e,onClick:()=>i({clickedTabIndex:e}),onMouseEnter:()=>W(e),onMouseLeave:()=>W(null),children:[(0,I.jsx)("div",{className:"ablocks-block-tabs__tab-controls",children:S===e&&(0,I.jsx)(HS,{index:e,onRemove:w,onMoveUp:C,onMoveDown:z,tabHeaders:u})}),T&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(Fd,{customIconData:v?.[e]})}),(0,I.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[f&&(0,I.jsx)(D.RichText,{tagName:"h2",value:t,onChange:t=>((t,e)=>{((t,e,i,o)=>{const a=[...e];a[o]=i,t({tabHeaders:a})})(i,u,t,e)})(t,e),placeholder:(0,L.__)("Title…","ablocks"),allowedFormats:["core/bold","core/italic"],className:"ablocks-block-tabs__tab-menu-title"}),y&&(0,I.jsx)(D.RichText,{tagName:"p",value:p[e],onChange:t=>((t,e)=>{((t,e,i,o)=>{const a=[...e];a[o]=i,t({tabSubTitles:a})})(i,p,t,e)})(t,e),placeholder:(0,
2869 +this.autoChangeInterval=setInterval(()=>{const t=(this.getActiveTabIndex()+1)%this.elements.tabTitles.length;this.changeActiveTab(t.toString())},this.settings.activeDuration)}startScrollChange(){const t=()=>{const t=window.scrollY+window.innerHeight;let e=null;this.elements.tabTitles.forEach((i,o)=>{const a=i.getBoundingClientRect().top+window.scrollY;t>a&&(e=o)}),null!==e&&this.changeActiveTab(e.toString())};window.addEventListener("scroll",t),this.eventListeners.push({element:window,handler:t})}getActiveTabIndex(){const{activeTitle:t}=this.settings.classes,e=this.elements.tabTitles.findIndex(e=>e.classList.contains(t));return-1!==e?e:0}stopAutoChange(){this.autoChangeInterval&&(clearInterval(this.autoChangeInterval),this.autoChangeInterval=null)}handleVisibilityChange(){document.hidden?this.stopAutoChange():!1===this.editor&&this.settings.autoChange&&this.startAutoChange()}},SS=({index:t,onRemove:e,onMoveUp:i,onMoveDown:o,tabHeaders:a})=>(0,I.jsxs)(N.ToolbarGroup,{
2870 +children:[0!==t&&(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Move tab up","ablocks"),children:(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--direction-row-reversed",onClick:()=>i(t,a.length),disabled:0===t})}),t!==a.length-1&&(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Move tab down","ablocks"),children:(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--direction-row-horizontal",onClick:()=>o(t,a.length),disabled:t===a.length-1})}),(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Remove tab","ablocks"),children:(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--close",onClick:()=>e(t)})})]}),WS=t=>{const{attributes:e,setAttributes:i,clientId:n}=t,{insertBlock:s,removeBlock:b}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{getBlockOrder:c}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,
2871 +r.select)("core/editor"),{block_id:d,tabHeaders:u,tabSubTitles:p,tabActive:m,previousTotalBlock:h,initialOpen:g,showTitle:f,showSubTitle:y,showIcon:T,iconPosition:H,tabPositionChange:x,enableAutoChange:k,tabIcons:v,clickedTabIndex:_,enableHoverSwitch:R}=e,[S,W]=(0,a.useState)(null),P=lt(),U=(0,r.useSelect)(t=>t("core/block-editor").getBlockOrder(n),[n]),{moveBlockToPosition:j}=(0,r.useDispatch)("core/block-editor");(0,a.useEffect)(()=>{if(U.length>0){const t=(0,M.bu)(`.ablocks-block-${d} .ablocks-block-tabs`);if(null!==t){const e=new RS(t);return h!==U.length&&(i({previousTotalBlock:U.length}),e.changeActiveTab(m.toString())),()=>{e.removeListeners()}}}},[U,m,d,R]),(0,a.useEffect)(()=>{if(!0===x){const t=(0,M.bu)(`.ablocks-block-${d} .ablocks-block-tabs`);if(null!==t){const e=new RS(t);return i({tabPositionChange:!1}),e.changeActiveTab(m.toString()),()=>{e.removeListeners()}}}},[x]);const w=t=>{((t,e,i,o,a,l,n)=>{if(a<0||a>=l.length)return;t(i(o)[a],!1);const s=[...l],r=[...n]
2872 +;s.splice(a,1),r.splice(a,1),e({tabHeaders:s,tabSubTitles:r,tabActive:0})})(b,i,c,n,t,u,p)},z=(t,e)=>{t!==e-1&&V(t,t+1)},C=t=>{t<0||V(t,t-1)},A=(t,e)=>{j(t,n,n,parseInt(e))},V=async(t,e)=>{await(async(t,e,i,o,a,l,n)=>{if(t===e||e<0||e>=i.length)return;const{getBlock:s}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor"),b=s(n),c=[...i],d=c[t];c[t]=c[e],c[e]=d;const u=[...o],p=u[t];u[t]=u[e],u[e]=p,l(b.innerBlocks[t].clientId,e),a({tabHeaders:c,tabSubTitles:u,tabActive:e,tabPositionChange:!0})})(t,e,u,p,i,A,n)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:d,name:_S.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:"ablocks-block-tabs","data-initial-open":g,"data-enable-hover-switch":R,children:[(0,I.jsxs)("ul",{className:"ablocks-block-tabs__tab-panel",children:[u.map((t,e)=>(0,I.jsxs)("li",{
2873 +className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${T&&`ablocks-block-tabs__tab-menu-${H["value"+P]}`}`,"data-tab":e,onClick:()=>i({clickedTabIndex:e}),onMouseEnter:()=>W(e),onMouseLeave:()=>W(null),children:[(0,I.jsx)("div",{className:"ablocks-block-tabs__tab-controls",children:S===e&&(0,I.jsx)(SS,{index:e,onRemove:w,onMoveUp:C,onMoveDown:z,tabHeaders:u})}),T&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(Fd,{customIconData:v?.[e]})}),(0,I.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[f&&(0,I.jsx)(D.RichText,{tagName:"h2",value:t,onChange:t=>((t,e)=>{((t,e,i,o)=>{const a=[...e];a[o]=i,t({tabHeaders:a})})(i,u,t,e)})(t,e),placeholder:(0,L.__)("Title…","ablocks"),allowedFormats:["core/bold","core/italic"],className:"ablocks-block-tabs__tab-menu-title"}),y&&(0,I.jsx)(D.RichText,{tagName:"p",value:p[e],onChange:t=>((t,e)=>{((t,e,i,o)=>{const a=[...e];a[o]=i,t({tabSubTitles:a})})(i,p,t,e)})(t,e),placeholder:(0,
2870 2874 L.__)("Subtitle…","ablocks"),allowedFormats:["core/bold","core/italic"],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),k&&(0,I.jsx)("div",{className:"ablocks-block-tabs__progressbar ablocks-block-tabs__progressbar-editor"})]},e)),(0,I.jsx)("li",{className:"ablocks-block-tabs__tab ablocks-block-tabs__add-tab",role:"presentation",tabIndex:"0",onClick:()=>{((t,e,i,a,l)=>{t((0,o.createBlock)("ablocks/tabs-child"),i.length,l),e({tabHeaders:[...i,(0,L.__)("New Tab","ablocks")],tabSubTitles:[...a,(0,L.__)("New Subtitle Content: This tab provides general information about our company","ablocks")],tabActive:i.length})})(s,i,u,p,n)},children:(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Add tab","ablocks"),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})]}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/tabs-child"],["ablocks/tabs-child"],["ablocks/tabs-child"]],templateLock:!1,
2871 -allowedBlocks:["ablocks/tabs-child"],renderAppender:!1})})]})})})},xS=(t,e="")=>{const i={},o=t?.tabsMenuPositioning["value"+e];return"top"===o?i["flex-direction"]="column":"bottom"===o?i["flex-direction"]="column-reverse":"left"===o?i["flex-direction"]="row":"right"===o&&(i["flex-direction"]="row-reverse"),i},kS=(t,e="")=>{const i={},o=t?.tabMenuAlignment["value"+e],a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"top"!==a&&"bottom"!==a||("row"===t?.tabsMenuDirection["value"+e]?i["justify-content"]=o:"column"===t?.tabsMenuDirection["value"+e]&&(i["align-items"]=o),o&&"auto"===t?.tabsWidthType["value"+e]&&("flex-start"===o?i["margin-right"]="auto":"center"===o&&(i["margin-inline"]="auto"),"flex-end"===o&&(i["margin-left"]="auto"))),"left"===a||"right"===a?i["flex-direction"]="column":"top"!==a&&"bottom"!==a||(i["flex-direction"]=(0,M.Ic)(t?.tabsMenuDirection,"value",e),t?.tabWrap["value"+e]&&(i["flex-wrap"]=t.tabWrap["value"+e]));const l=(0,M.Zy)(t?.tabMenusPadding,{unit:"px"}),n=(0,
2872 -M.Zy)(t?.tabMenusMargin,{unit:"px"}),s=(0,M.Zy)(t?.tabMenusBorder,{unitWidth:"px",unitRadius:"px"});return{...i,background:(0,Hs.qD)(t?.tabMenusBackgroundColor),...(0,c.qD)(n,"margin",e),...(0,c.qD)(l,"padding",e),...(0,y.qD)(s,e),...(0,Eb.qD)({attributeValue:t.tabsGap,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})}},vS=(t,e="")=>{const i=(0,M.Zy)(t?.tabMenusBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},_S=(t,e="")=>{const i={display:"flex"},o=(0,M.Ic)(t?.iconPosition,"value",e),a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"top"!==a&&"bottom"!==a||"100%"!==t?.tabsContentWidthType["value"+e]||(i.width="100%"),"top"===o&&(i["flex-direction"]="column !important",t?.menuContentAlignment["value"+e]&&(i["align-items"]=t?.menuContentAlignment["value"+e])),"bottom"===o&&(i["flex-direction"]="column-reverse !important",
2873 -t?.menuContentAlignment["value"+e]&&(i["align-items"]=t?.menuContentAlignment["value"+e])),"left"===o&&(i["flex-direction"]="row !important",i["align-items"]="center",t?.menuContentAlignment["value"+e]&&(i["justify-content"]=t?.menuContentAlignment["value"+e])),"right"===o&&(i["flex-direction"]="row-reverse !important",i["align-items"]="center",t?.menuContentAlignment["value"+e]&&(i["justify-content"]=t?.menuContentAlignment["value"+e]));const l=(0,M.Zy)(t?.menuContentPadding,{unit:"px"}),n=(0,M.Zy)(t?.menuContentBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.tabBackgroundColor),...i,...(0,y.qD)(t?.menuContentBorder,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e)}},RS=(t,e="")=>{const i={};return"background"===t?.activeColorOptions?i["background-color"]=`${(0,Hs.qD)(t?.tabActiveBackgroundColor)} !important`:"border"===t?.activeColorOptions&&(i["border-color"]=`${(0,Hs.qD)(t?.activeBorderColor)} !important`),i},SS=(t,e="")=>{
2874 -const i=(0,M.Zy)(t?.menuContentBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},WS=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleTextColor),...(0,U.qD)(i,e,o)}},PS=t=>{const e={};return t?.titleTextActiveColor&&(e.color=`${(0,Hs.qD)(t?.titleTextActiveColor)} !important`),{...e}},US=(t,e="")=>{const i={};!0===t?.showActiveSubTitle&&(i.display="none");const o=(0,M.Ic)(t?.tabsContentWidthType,"value",e),a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"Mobile"===e?i.width="100%":"top"!==a&&"bottom"!==a||"auto"!==o||(i["max-width"]="160px");const l=(0,M.Zy)(t.subTitleTypography,{weight:"400"}),n=t.subTitleTypographyGlobal?t.subTitleTypographyGlobal:"";return l&&Object.assign(i,(0,U.qD)(l,e,n)),t?.subTitleTextColor&&(i.color=(0,Hs.qD)(t?.subTitleTextColor)),i},jS=t=>{const e={};return!0===t?.showActiveSubTitle&&(e.display="block"),
2875 -t?.subTitleTextActiveColor&&(e.color=`${(0,Hs.qD)(t?.subTitleTextActiveColor)} !important`),e},wS=(t,e="")=>{const i=(0,M.Zy)(t?.contentPadding,{unit:"px"}),o=(0,M.Zy)(t?.contentMargin,{unit:"px"}),a=(0,M.Zy)(t?.contentBorder,{unitWidth:"px",unitRadius:"px"}),l={...(0,c.qD)(o,"margin",e),...(0,c.qD)(i,"padding",e),...(0,y.qD)(a,e)};return"Mobile"===e?l["max-width"]="100%":"top"===t?.tabsMenuPositioning["value"+e]||"bottom"===t?.tabsMenuPositioning["value"+e]?l["max-width"]="100% !important":"left"!==t?.tabsMenuPositioning["value"+e]&&"right"!==t?.tabsMenuPositioning["value"+e]||(l["flex-grow"]=3),l},zS=(t,e="")=>{const i=(0,M.Zy)(t?.contentBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},CS=(t,e="")=>{const i=(0,M.Zy)(t?.iconPositionMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},AS=t=>({background:(0,Hs.qD)(t?.progressBarColor)}),LS=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.contentGap,attributeObjectKey:"value",defaultValue:2,isResponsive:!0,
2876 -hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})};return t?.menuContentAlignment["value"+e]&&(i["text-align"]=t?.menuContentAlignment["value"+e]),i},DS=(t,e="")=>{const i=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);if("top"===i||"bottom"===i){const i={};return i.width=(0,M.Ic)(t?.tabsWidthType,"value",e),i}if("left"===i||"right"===i)return{...(0,Eb.qD)({attributeValue:t.tabsWidth,attributeObjectKey:"value",defaultValue:30,isResponsive:!0,hasUnit:!0,property:"width",unitDefaultValue:"%",device:e})}},NS=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.contentWidth,attributeObjectKey:"value",defaultValue:70,isResponsive:!0,hasUnit:!0,property:"max-width",unitDefaultValue:"%",device:e})};return"top"!==t?.tabsMenuPositioning["value"+e]&&"bottom"!==t?.tabsMenuPositioning["value"+e]||(i["max-width"]="100% !important"),{background:(0,Hs.qD)(t?.contentBackgroundColor),...i}},IS=(t,e="")=>{let i={};return"left"===t?.iconPosition["value"+e]?i={...(0,Eb.qD)({attributeValue:t.spacing,
2877 -attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-right",unitDefaultValue:"px"})}:"right"===t?.iconPosition["value"+e]?i={...(0,Eb.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-left",unitDefaultValue:"px"})}:"bottom"===t?.iconPosition["value"+e]?i={...(0,Eb.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-top",unitDefaultValue:"px"})}:"top"===t?.iconPosition["value"+e]&&(i={...(0,Eb.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-bottom",unitDefaultValue:"px"})}),i};function VS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,tabsMenuPositioning:u,tabsChangingEffect:p,tabIcons:m,enableHoverSwitch:h}=e;return(0,I.jsx)(sc,{blockId:i,name:yS.UU,
2875 +allowedBlocks:["ablocks/tabs-child"],renderAppender:!1})})]})})})},PS=(t,e="")=>{const i={},o=t?.tabsMenuPositioning["value"+e];return"top"===o?i["flex-direction"]="column":"bottom"===o?i["flex-direction"]="column-reverse":"left"===o?i["flex-direction"]="row":"right"===o&&(i["flex-direction"]="row-reverse"),i},US=(t,e="")=>{const i={},o=t?.tabMenuAlignment["value"+e],a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"top"!==a&&"bottom"!==a||("row"===t?.tabsMenuDirection["value"+e]?i["justify-content"]=o:"column"===t?.tabsMenuDirection["value"+e]&&(i["align-items"]=o),o&&"auto"===t?.tabsWidthType["value"+e]&&("flex-start"===o?i["margin-right"]="auto":"center"===o&&(i["margin-inline"]="auto"),"flex-end"===o&&(i["margin-left"]="auto"))),"left"===a||"right"===a?i["flex-direction"]="column":"top"!==a&&"bottom"!==a||(i["flex-direction"]=(0,M.Ic)(t?.tabsMenuDirection,"value",e),t?.tabWrap["value"+e]&&(i["flex-wrap"]=t.tabWrap["value"+e]));const l=(0,M.Zy)(t?.tabMenusPadding,{unit:"px"}),n=(0,
2876 +M.Zy)(t?.tabMenusMargin,{unit:"px"}),s=(0,M.Zy)(t?.tabMenusBorder,{unitWidth:"px",unitRadius:"px"});return{...i,background:(0,Hs.qD)(t?.tabMenusBackgroundColor),...(0,c.qD)(n,"margin",e),...(0,c.qD)(l,"padding",e),...(0,y.qD)(s,e),...(0,Eb.qD)({attributeValue:t.tabsGap,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})}},jS=(t,e="")=>{const i=(0,M.Zy)(t?.tabMenusBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},wS=(t,e="")=>{const i={display:"flex"},o=(0,M.Ic)(t?.iconPosition,"value",e),a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"top"!==a&&"bottom"!==a||"100%"!==t?.tabsContentWidthType["value"+e]||(i.width="100%"),"top"===o&&(i["flex-direction"]="column !important",t?.menuContentAlignment["value"+e]&&(i["align-items"]=t?.menuContentAlignment["value"+e])),"bottom"===o&&(i["flex-direction"]="column-reverse !important",
2877 +t?.menuContentAlignment["value"+e]&&(i["align-items"]=t?.menuContentAlignment["value"+e])),"left"===o&&(i["flex-direction"]="row !important",i["align-items"]="center",t?.menuContentAlignment["value"+e]&&(i["justify-content"]=t?.menuContentAlignment["value"+e])),"right"===o&&(i["flex-direction"]="row-reverse !important",i["align-items"]="center",t?.menuContentAlignment["value"+e]&&(i["justify-content"]=t?.menuContentAlignment["value"+e]));const l=(0,M.Zy)(t?.menuContentPadding,{unit:"px"}),n=(0,M.Zy)(t?.menuContentBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.tabBackgroundColor),...i,...(0,y.qD)(t?.menuContentBorder,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e)}},zS=(t,e="")=>{const i={};return"background"===t?.activeColorOptions?i["background-color"]=`${(0,Hs.qD)(t?.tabActiveBackgroundColor)} !important`:"border"===t?.activeColorOptions&&(i["border-color"]=`${(0,Hs.qD)(t?.activeBorderColor)} !important`),i},CS=(t,e="")=>{
2878 +const i=(0,M.Zy)(t?.menuContentBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},AS=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleTextColor),...(0,U.qD)(i,e,o)}},LS=t=>{const e={};return t?.titleTextActiveColor&&(e.color=`${(0,Hs.qD)(t?.titleTextActiveColor)} !important`),{...e}},DS=(t,e="")=>{const i={};!0===t?.showActiveSubTitle&&(i.display="none");const o=(0,M.Ic)(t?.tabsContentWidthType,"value",e),a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"Mobile"===e?i.width="100%":"top"!==a&&"bottom"!==a||"auto"!==o||(i["max-width"]="160px");const l=(0,M.Zy)(t.subTitleTypography,{weight:"400"}),n=t.subTitleTypographyGlobal?t.subTitleTypographyGlobal:"";return l&&Object.assign(i,(0,U.qD)(l,e,n)),t?.subTitleTextColor&&(i.color=(0,Hs.qD)(t?.subTitleTextColor)),i},NS=t=>{const e={};return!0===t?.showActiveSubTitle&&(e.display="block"),
2879 +t?.subTitleTextActiveColor&&(e.color=`${(0,Hs.qD)(t?.subTitleTextActiveColor)} !important`),e},IS=(t,e="")=>{const i=(0,M.Zy)(t?.contentPadding,{unit:"px"}),o=(0,M.Zy)(t?.contentMargin,{unit:"px"}),a=(0,M.Zy)(t?.contentBorder,{unitWidth:"px",unitRadius:"px"}),l={...(0,c.qD)(o,"margin",e),...(0,c.qD)(i,"padding",e),...(0,y.qD)(a,e)};return"Mobile"===e?l["max-width"]="100%":"top"===t?.tabsMenuPositioning["value"+e]||"bottom"===t?.tabsMenuPositioning["value"+e]?l["max-width"]="100% !important":"left"!==t?.tabsMenuPositioning["value"+e]&&"right"!==t?.tabsMenuPositioning["value"+e]||(l["flex-grow"]=3),l},VS=(t,e="")=>{const i=(0,M.Zy)(t?.contentBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},OS=(t,e="")=>{const i=(0,M.Zy)(t?.iconPositionMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},YS=t=>({background:(0,Hs.qD)(t?.progressBarColor)}),XS=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.contentGap,attributeObjectKey:"value",defaultValue:2,isResponsive:!0,
2880 +hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})};return t?.menuContentAlignment["value"+e]&&(i["text-align"]=t?.menuContentAlignment["value"+e]),i},BS=(t,e="")=>{const i=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);if("top"===i||"bottom"===i){const i={};return i.width=(0,M.Ic)(t?.tabsWidthType,"value",e),i}if("left"===i||"right"===i)return{...(0,Eb.qD)({attributeValue:t.tabsWidth,attributeObjectKey:"value",defaultValue:30,isResponsive:!0,hasUnit:!0,property:"width",unitDefaultValue:"%",device:e})}},ES=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.contentWidth,attributeObjectKey:"value",defaultValue:70,isResponsive:!0,hasUnit:!0,property:"max-width",unitDefaultValue:"%",device:e})};return"top"!==t?.tabsMenuPositioning["value"+e]&&"bottom"!==t?.tabsMenuPositioning["value"+e]||(i["max-width"]="100% !important"),{background:(0,Hs.qD)(t?.contentBackgroundColor),...i}},FS=(t,e="")=>{let i={};return"left"===t?.iconPosition["value"+e]?i={...(0,Eb.qD)({attributeValue:t.spacing,
2881 +attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-right",unitDefaultValue:"px"})}:"right"===t?.iconPosition["value"+e]?i={...(0,Eb.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-left",unitDefaultValue:"px"})}:"bottom"===t?.iconPosition["value"+e]?i={...(0,Eb.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-top",unitDefaultValue:"px"})}:"top"===t?.iconPosition["value"+e]&&(i={...(0,Eb.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-bottom",unitDefaultValue:"px"})}),i};function qS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,tabsMenuPositioning:u,tabsChangingEffect:p,tabIcons:m,enableHoverSwitch:h}=e;return(0,I.jsx)(sc,{blockId:i,name:_S.UU,
2878 2882 attributes:e,children:(0,I.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===p,"data-enable-scroll-change":"enableScrollChange"===p,"data-tab-active-duration":b,"data-tab-menu-position":u?.value,"data-enable-hover-switch":h,children:[(0,I.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,e)=>(0,I.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":e,children:[c&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(Fd,{customIconData:m?.[e]})}),(0,I.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"p",value:d[e],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===p&&(0,I.jsx)("div",{
2879 -className:"ablocks-block-tabs__progressbar"})]},e))}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})})}VS.propTypes={};const OS={UU:"ablocks/tabs",uK:{block_id:{type:"string",default:""},className:{type:"string",default:""},tabIcons:{type:"array",default:[]},tabIconsClasses:{type:"array",default:[]},clickedTabIndex:{type:"number",default:0},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array",default:["Subtitle 1 Content: This tab provides general information about our company","Subtitle 2 Content: This tab provides general information about our company","Subtitle 3 Content: This tab provides general information about our company"]},tabActive:{type:"number",default:0},previousTotalBlock:{type:"number",default:3},tabsMenuPosition:{type:"string",default:"left"},tabsMenuPositionTablet:{type:"string",default:""},tabsMenuPositionMobile:{type:"string",
2883 +className:"ablocks-block-tabs__progressbar"})]},e))}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})})}qS.propTypes={};const $S={UU:"ablocks/tabs",uK:{block_id:{type:"string",default:""},className:{type:"string",default:""},tabIcons:{type:"array",default:[]},tabIconsClasses:{type:"array",default:[]},clickedTabIndex:{type:"number",default:0},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array",default:["Subtitle 1 Content: This tab provides general information about our company","Subtitle 2 Content: This tab provides general information about our company","Subtitle 3 Content: This tab provides general information about our company"]},tabActive:{type:"number",default:0},previousTotalBlock:{type:"number",default:3},tabsMenuPosition:{type:"string",default:"left"},tabsMenuPositionTablet:{type:"string",default:""},tabsMenuPositionMobile:{type:"string",
2880 2884 default:""},initialOpen:{type:"number",default:1},activeDuration:{type:"number",default:5e3},activeColorOptions:{type:"string",default:"background"},tabMenuAlign:{type:"string",default:""},tabMenuAlignTablet:{type:"string",default:""},tabMenuAlignMobile:{type:"string",default:""},menuContentAlign:{type:"string",default:"center"},menuContentAlignTablet:{type:"string",default:""},menuContentAlignMobile:{type:"string",default:""},tabBackgroundColor:{type:"string",default:"#F9F9F9"},tabActiveBackgroundColor:{type:"string",default:"#61CE70"},titleTextColor:{type:"string",default:"#13191B"},titleTextActiveColor:{type:"string",default:"#0A0909"},subTitleTextColor:{type:"string",default:"#74777C"},subTitleTextActiveColor:{type:"string",default:"#74777C"},contentBackgroundColor:{type:"string",default:"#ffffff00"},activeBorderColor:{type:"string",default:"#61CE70"},showTitle:{type:"boolean",default:!0},showSubTitle:{type:"boolean",default:!1},showActiveSubTitle:{type:"boolean",default:!1},
2881 2885 tabsChangingEffect:{type:"string",default:"default"},showIcon:{type:"boolean",default:!1},progressBarColor:{type:"string",default:"#13191B"},iconColor:{type:"string",default:"#69727d"},iconActiveColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconBackground:{type:"string",default:"#FFFFFF"},iconActiveBackground:{type:"string",default:"#E5E5EC"},size:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},tabsWidth:{type:"object",default:{value:30,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},contentWidth:{type:"object",default:{value:70,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},tabsGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",
2882 2886 valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSvgPath:{type:"string",
2883 2887 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
@@ -2895,18 +2899,18 @@
2895 2899 imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",
2896 2900 imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",
2897 2901 offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",
2898 2902 offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",
2899 -yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}},YS=({attributePrefix:t="icon",attributes:e={},customIconData:i,style:o})=>{const a=i?i.path||"":e[t+"SvgPath"],l=i?i.viewBox||"":e[t+"SvgViewBox"],n=e[t+"ImageUrl"];return!!(n||l||a)&&(0,I.jsx)("div",{className:"ablocks-icon-wrap",children:n?(0,I.jsx)("img",{className:"ablocks-image-icon",src:n,alt:""}):(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l,
2900 -className:"ablocks-svg-icon"+(l||a?"":" empty-svg"),style:o,children:(0,I.jsx)("path",{d:a})})})};function XS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,enableAutoChange:u,enableScrollChange:p,tabsMenuPosition:m,tabsChangingEffect:h}=e;return(0,I.jsx)(dc,{blockId:i,name:OS.UU,attributes:e,children:(0,I.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===h,"data-enable-scroll-change":"enableScrollChange"===h,"data-tab-active-duration":b,"data-tab-menu-position":m,children:[(0,I.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,i)=>(0,I.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":i,children:[c&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(YS,{attributes:e})}),(0,I.jsxs)("div",{
2901 -className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"p",value:d[i],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===h&&(0,I.jsx)("div",{className:"ablocks-block-tabs__progressbar"})]},i))}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})})}XS.propTypes={};function BS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,tabsMenuPositioning:u,tabsChangingEffect:p,tabIcons:m}=e;return(0,I.jsx)(hc,{blockId:i,name:OS.UU,attributes:e,children:(0,I.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===p,"data-enable-scroll-change":"enableScrollChange"===p,"data-tab-active-duration":b,
2902 -"data-tab-menu-position":u?.value,children:[(0,I.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,e)=>(0,I.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":e,children:[c&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(Fd,{customIconData:m?.[e]})}),(0,I.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"p",value:d[e],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===p&&(0,I.jsx)("div",{className:"ablocks-block-tabs__progressbar"})]},e))}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})})}function ES(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{
2903 -className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Tabs Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the tabs settings to organize and customize content easily.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}BS.propTypes={},(0,M.xV)(yS.UU)&&(0,o.registerBlockType)(yS.UU,{title:(0,L.__)("Tabs","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-tab"}),attributes:yS.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]),(0,a.useEffect)(()=>{if(i.tabsMenuDirection||o({tabsMenuDirection:{value:"row",valueTablet:"",valueMobile:""}}),i.tabsWidthType||o({tabsWidthType:{value:"auto",valueTablet:"",
2904 -valueMobile:""}}),!i.tabMenusPadding||!i.tabMenusMargin){const t=i._padding;Object.keys(t).forEach(e=>{t[e]=""}),i.tabMenusPadding||o({tabMenusPadding:t}),i.tabMenusMargin||o({tabMenusMargin:t})}if(!i.tabMenusBorder){const t=i._border;Object.keys(t).forEach(e=>{t[e]=""}),o({tabMenusBorder:t})}},[]);const s=!(i.tabsMenuDirection&&i.tabsWidthType&&i.tabMenusPadding&&i.tabMenusMargin&&i.tabMenusBorder),r=(0,a.useMemo)(()=>{if(s)return"";let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs",xS(i),xS(i,"Tablet"),xS(i,"Mobile"),e(t=>xS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel",kS(i),kS(i,"Tablet"),kS(i,"Mobile"),e(t=>kS(i,t))),
2905 -t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel:hover",vS(i),vS(i,"Tablet"),vS(i,"Mobile"),e(t=>vS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab",_S(i),_S(i,"Tablet"),_S(i,"Mobile"),e(t=>_S(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active",RS(i),RS(i,"Tablet"),RS(i,"Mobile"),e(t=>RS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab:hover",SS(i),SS(i,"Tablet"),SS(i,"Mobile"),e(t=>SS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-title",WS(i),WS(i,"Tablet"),WS(i,"Mobile"),e(t=>WS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__tab-menu-title",PS(i),PS(i),PS(i),e(t=>PS(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-subtitle",US(i),US(i,"Tablet"),US(i,"Mobile"),e(t=>US(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__tab-menu-subtitle",jS(i),jS(i),jS(i),e(t=>jS(i))),
2906 -t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel",DS(i),DS(i,"Tablet"),DS(i,"Mobile"),e(t=>DS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body",NS(i),NS(i,"Tablet"),NS(i,"Mobile"),e(t=>NS(i,t))),!1===i?.showActiveSubTitle?t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon",CS(i),CS(i,"Tablet"),CS(i,"Mobile"),e(t=>CS(i,t))):t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__icon",CS(i),CS(i,"Tablet"),CS(i,"Mobile"),e(t=>CS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__progressbar",AS(i),AS(i),AS(i),e(t=>AS(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),
2907 -t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap",IS(i),IS(i,"Tablet"),IS(i,"Mobile"),e(t=>IS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon",(t=>{const e={};return t?.titleTextActiveColor&&(e.fill=(0,Hs.qD)(t?.titleTextActiveColor)),e})(i)),
2908 -t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body",wS(i),wS(i,"Tablet"),wS(i,"Mobile"),e(t=>wS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body:hover",zS(i),zS(i,"Tablet"),zS(i,"Mobile"),e(t=>zS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-content",LS(i),LS(i,"Tablet"),LS(i,"Mobile"),e(t=>LS(i,t))),(0,b.applyFilters)("ablocks.tabs.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(fS,{...t}),(0,I.jsx)(MS,{...t})]})},save:VS,deprecated:[{attributes:{block_id:{type:"string",default:""},className:{type:"string",default:""},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array",
2903 +yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}},GS=({attributePrefix:t="icon",attributes:e={},customIconData:i,style:o})=>{const a=i?i.path||"":e[t+"SvgPath"],l=i?i.viewBox||"":e[t+"SvgViewBox"],n=e[t+"ImageUrl"];return!!(n||l||a)&&(0,I.jsx)("div",{className:"ablocks-icon-wrap",children:n?(0,I.jsx)("img",{className:"ablocks-image-icon",src:n,alt:""}):(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l,
2904 +className:"ablocks-svg-icon"+(l||a?"":" empty-svg"),style:o,children:(0,I.jsx)("path",{d:a})})})};function ZS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,enableAutoChange:u,enableScrollChange:p,tabsMenuPosition:m,tabsChangingEffect:h}=e;return(0,I.jsx)(dc,{blockId:i,name:$S.UU,attributes:e,children:(0,I.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===h,"data-enable-scroll-change":"enableScrollChange"===h,"data-tab-active-duration":b,"data-tab-menu-position":m,children:[(0,I.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,i)=>(0,I.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":i,children:[c&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(GS,{attributes:e})}),(0,I.jsxs)("div",{
2905 +className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"p",value:d[i],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===h&&(0,I.jsx)("div",{className:"ablocks-block-tabs__progressbar"})]},i))}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})})}ZS.propTypes={};function KS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,tabsMenuPositioning:u,tabsChangingEffect:p,tabIcons:m}=e;return(0,I.jsx)(hc,{blockId:i,name:$S.UU,attributes:e,children:(0,I.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===p,"data-enable-scroll-change":"enableScrollChange"===p,"data-tab-active-duration":b,
2906 +"data-tab-menu-position":u?.value,children:[(0,I.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,e)=>(0,I.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":e,children:[c&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(Fd,{customIconData:m?.[e]})}),(0,I.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"p",value:d[e],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===p&&(0,I.jsx)("div",{className:"ablocks-block-tabs__progressbar"})]},e))}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})})}function JS(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{
2907 +className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Tabs Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the tabs settings to organize and customize content easily.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}KS.propTypes={},(0,M.xV)(_S.UU)&&(0,o.registerBlockType)(_S.UU,{title:(0,L.__)("Tabs","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-tab"}),attributes:_S.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]),(0,a.useEffect)(()=>{if(i.tabsMenuDirection||o({tabsMenuDirection:{value:"row",valueTablet:"",valueMobile:""}}),i.tabsWidthType||o({tabsWidthType:{value:"auto",valueTablet:"",
2908 +valueMobile:""}}),!i.tabMenusPadding||!i.tabMenusMargin){const t=i._padding;Object.keys(t).forEach(e=>{t[e]=""}),i.tabMenusPadding||o({tabMenusPadding:t}),i.tabMenusMargin||o({tabMenusMargin:t})}if(!i.tabMenusBorder){const t=i._border;Object.keys(t).forEach(e=>{t[e]=""}),o({tabMenusBorder:t})}},[]);const s=!(i.tabsMenuDirection&&i.tabsWidthType&&i.tabMenusPadding&&i.tabMenusMargin&&i.tabMenusBorder),r=(0,a.useMemo)(()=>{if(s)return"";let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs",PS(i),PS(i,"Tablet"),PS(i,"Mobile"),e(t=>PS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel",US(i),US(i,"Tablet"),US(i,"Mobile"),e(t=>US(i,t))),
2909 +t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel:hover",jS(i),jS(i,"Tablet"),jS(i,"Mobile"),e(t=>jS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab",wS(i),wS(i,"Tablet"),wS(i,"Mobile"),e(t=>wS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active",zS(i),zS(i,"Tablet"),zS(i,"Mobile"),e(t=>zS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab:hover",CS(i),CS(i,"Tablet"),CS(i,"Mobile"),e(t=>CS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-title",AS(i),AS(i,"Tablet"),AS(i,"Mobile"),e(t=>AS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__tab-menu-title",LS(i),LS(i),LS(i),e(t=>LS(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-subtitle",DS(i),DS(i,"Tablet"),DS(i,"Mobile"),e(t=>DS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__tab-menu-subtitle",NS(i),NS(i),NS(i),e(t=>NS(i))),
2910 +t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel",BS(i),BS(i,"Tablet"),BS(i,"Mobile"),e(t=>BS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body",ES(i),ES(i,"Tablet"),ES(i,"Mobile"),e(t=>ES(i,t))),!1===i?.showActiveSubTitle?t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon",OS(i),OS(i,"Tablet"),OS(i,"Mobile"),e(t=>OS(i,t))):t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__icon",OS(i),OS(i,"Tablet"),OS(i,"Mobile"),e(t=>OS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__progressbar",YS(i),YS(i),YS(i),e(t=>YS(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),
2911 +t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap",FS(i),FS(i,"Tablet"),FS(i,"Mobile"),e(t=>FS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon",(t=>{const e={};return t?.titleTextActiveColor&&(e.fill=(0,Hs.qD)(t?.titleTextActiveColor)),e})(i)),
2912 +t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body",IS(i),IS(i,"Tablet"),IS(i,"Mobile"),e(t=>IS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body:hover",VS(i),VS(i,"Tablet"),VS(i,"Mobile"),e(t=>VS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-content",XS(i),XS(i,"Tablet"),XS(i,"Mobile"),e(t=>XS(i,t))),(0,b.applyFilters)("ablocks.tabs.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(vS,{...t}),(0,I.jsx)(WS,{...t})]})},save:qS,deprecated:[{attributes:{block_id:{type:"string",default:""},className:{type:"string",default:""},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array",
2909 2913 default:["Subtitle 1 Content: This tab provides general information about our company","Subtitle 2 Content: This tab provides general information about our company","Subtitle 3 Content: This tab provides general information about our company"]},tabActive:{type:"number",default:0},previousTotalBlock:{type:"number",default:3},tabsMenuPosition:{type:"string",default:"left"},tabsMenuPositionTablet:{type:"string",default:"left"},tabsMenuPositionMobile:{type:"string",default:"left"},initialOpen:{type:"number",default:1},activeDuration:{type:"number",default:5e3},tabMenuAlign:{type:"string",default:""},tabMenuAlignTablet:{type:"string",default:""},tabMenuAlignMobile:{type:"string",default:""},menuContentAlign:{type:"string",default:"center"},menuContentAlignTablet:{type:"string",default:""},menuContentAlignMobile:{type:"string",default:""},tabBackgroundColor:{type:"string",default:"#F9F9F9"},tabActiveBackgroundColor:{type:"string",default:"#61CE70"},titleTextColor:{type:"string",
2910 2914 default:"#13191B"},titleTextActiveColor:{type:"string",default:"#0A0909"},subTitleTextColor:{type:"string",default:"#74777C"},subTitleTextActiveColor:{type:"string",default:"#74777C"},contentBackgroundColor:{type:"string",default:"#FFFFFF"},activeBorderColor:{type:"string",default:"transparent"},showTitle:{type:"boolean",default:!0},showSubTitle:{type:"boolean",default:!1},showActiveSubTitle:{type:"boolean",default:!1},tabsChangingEffect:{type:"string",default:"default"},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},progressBarColor:{type:"string",default:"#13191B"},iconColor:{type:"string",default:"#69727d"},iconActiveColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconBackground:{type:"string",default:"#FFFFFF"},iconActiveBackground:{type:"string",default:"#E5E5EC"},size:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",
2911 2915 valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},tabsGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSvgPath:{type:"string",
2912 2916 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
@@ -2923,20 +2927,20 @@
2923 2927 type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",
2924 2928 imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{
2925 2929 type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",
2926 2930 rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",
2927 -scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1}},save:XS},{attributes:OS.uK,save:t=>(0,I.jsx)(BS,{...t})}]}),ES.propTypes={};const FS={UU:"ablocks/tabs-child",
2928 -$t:["ablocks/tabs"],uK:{block_id:{type:"string",default:""},tabId:{type:"number",default:0}}};function qS(t){const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,tabId:b}=e,c=(0,r.useSelect)(t=>t("core/block-editor").getBlockIndex(n));(0,a.useEffect)(()=>{b!==c&&i({tabId:c})},[c,n]);const d={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(n).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:s,name:FS.UU,attributes:e,blockProps:{"data-tab-id":b},children:(0,I.jsx)(D.InnerBlocks,{...d})})})}qS.propTypes={};const $S=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)});function GS(t){const{attributes:e}=t,{block_id:i,tabId:o}=e;return(0,I.jsx)(dR,{blockId:i,name:FS.UU,attributes:e,blockProps:{"data-tab-id":o},children:(0,I.jsx)(D.InnerBlocks.Content,{})})}GS.propTypes={},(0,M.xV)(FS.UU,FS.$t[0])&&(0,o.registerBlockType)(FS.UU,{
2929 -title:(0,L.__)("Tabs Child","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-tab-child"}),attributes:FS.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",$S(i),$S(i,"Tablet"),$S(i,"Mobile"),t.customDeviceMap(t=>$S(i,t))),(0,b.applyFilters)("ablocks.tabs-child.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(ES,{...t}),(0,I.jsx)(qS,{...t})]})},save:GS});const ZS=[{label:(0,L.__)("New","ablocks"),value:"new"},{label:(0,L.__)("Legacy","ablocks"),value:"legacy"}],KS=(0,Eb.D$)({attributeName:"modalWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:100,defaultValueMobile:80,hasUnit:!0,unitDefaultValue:"px"});(0,Eb.D$)({attributeName:"bg_transition",
2930 -attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:100,defaultValueMobile:80,hasUnit:!0,unitDefaultValue:"px"});function JS(t){const{attributes:e,setAttributes:i}=t,{course_id:o,start_btn_typography:a,start_btn_color:n,enroll_btn_color:s,start_btn_bg_color:b,enroll_btn_bg_color:c,start_btn_color_hover:d,enroll_btn_color_hover:u,start_btn_bg_hover_color:p,enroll_btn_bg_hover_color:m,start_btn_padding:h,enroll_btn_padding:g,start_btn_border:f,enroll_btn_border:y,enroll_btn_typography:T,layout:H,modalWidth:M,massage_title_bg:x,massage_title_color:k,massage_title_hover_bg:v,massage_title_hover_color:_,list_color:R,list_hover_color:S,price_hover_color:W,price_color:P,massage_title_typography:U,list_typography:j,price_typography:w,price_title_typography:z,price_title_hover_color:C,price_title_color:A,info_bg:N,info_bg_hover:O,info_color:Y,info_color_hover:X,bgTransition:B,info_typography:E}=e,F=(0,
2931 -r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),q=F?F.filter(t=>{const e=t.meta?.academy_course_type;return"free"===e||"paid"===e||"rcp_membership"===e}):[],$=q?q.map(t=>({label:t.title?.rendered,value:t.id})):[];return $.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Enroll Form Option","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{options:ZS,label:(0,L.__)("Select Layout","ablocks"),attributeValue:H,attributeName:"layout",setAttributes:i}),(0,I.jsx)(Ut,{options:$,label:(0,L.__)("Select Course","ablocks"),attributeValue:o,attributeName:"course_id",setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Enroll Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"enroll_btn_typography",attributeValue:T,
2931 +scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1}},save:ZS},{attributes:$S.uK,save:t=>(0,I.jsx)(KS,{...t})}]}),JS.propTypes={};const QS={UU:"ablocks/tabs-child",
2932 +$t:["ablocks/tabs"],uK:{block_id:{type:"string",default:""},tabId:{type:"number",default:0}}};function tW(t){const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,tabId:b}=e,c=(0,r.useSelect)(t=>t("core/block-editor").getBlockIndex(n));(0,a.useEffect)(()=>{b!==c&&i({tabId:c})},[c,n]);const d={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(n).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(mR,{blockId:s,name:QS.UU,attributes:e,blockProps:{"data-tab-id":b},children:(0,I.jsx)(D.InnerBlocks,{...d})})})}tW.propTypes={};const eW=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)});function iW(t){const{attributes:e}=t,{block_id:i,tabId:o}=e;return(0,I.jsx)(yR,{blockId:i,name:QS.UU,attributes:e,blockProps:{"data-tab-id":o},children:(0,I.jsx)(D.InnerBlocks.Content,{})})}iW.propTypes={},(0,M.xV)(QS.UU,QS.$t[0])&&(0,o.registerBlockType)(QS.UU,{
2933 +title:(0,L.__)("Tabs Child","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-tab-child"}),attributes:QS.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",eW(i),eW(i,"Tablet"),eW(i,"Mobile"),t.customDeviceMap(t=>eW(i,t))),(0,b.applyFilters)("ablocks.tabs-child.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(JS,{...t}),(0,I.jsx)(tW,{...t})]})},save:iW});const oW=[{label:(0,L.__)("New","ablocks"),value:"new"},{label:(0,L.__)("Legacy","ablocks"),value:"legacy"}],aW=(0,Eb.D$)({attributeName:"modalWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:100,defaultValueMobile:80,hasUnit:!0,unitDefaultValue:"px"});(0,Eb.D$)({attributeName:"bg_transition",
2934 +attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:100,defaultValueMobile:80,hasUnit:!0,unitDefaultValue:"px"});function lW(t){const{attributes:e,setAttributes:i}=t,{course_id:o,start_btn_typography:a,start_btn_color:n,enroll_btn_color:s,start_btn_bg_color:b,enroll_btn_bg_color:c,start_btn_color_hover:d,enroll_btn_color_hover:u,start_btn_bg_hover_color:p,enroll_btn_bg_hover_color:m,start_btn_padding:h,enroll_btn_padding:g,start_btn_border:f,enroll_btn_border:y,enroll_btn_typography:T,layout:H,modalWidth:M,massage_title_bg:x,massage_title_color:k,massage_title_hover_bg:v,massage_title_hover_color:_,list_color:R,list_hover_color:S,price_hover_color:W,price_color:P,massage_title_typography:U,list_typography:j,price_typography:w,price_title_typography:z,price_title_hover_color:C,price_title_color:A,info_bg:N,info_bg_hover:O,info_color:Y,info_color_hover:X,bgTransition:B,info_typography:E}=e,F=(0,
2935 +r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),q=F?F.filter(t=>{const e=t.meta?.academy_course_type;return"free"===e||"paid"===e||"rcp_membership"===e}):[],$=q?q.map(t=>({label:t.title?.rendered,value:t.id})):[];return $.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Enroll Form Option","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{options:oW,label:(0,L.__)("Select Layout","ablocks"),attributeValue:H,attributeName:"layout",setAttributes:i}),(0,I.jsx)(Ut,{options:$,label:(0,L.__)("Select Course","ablocks"),attributeValue:o,attributeName:"course_id",setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Enroll Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"enroll_btn_typography",attributeValue:T,
2932 2936 setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"enroll_btn_color",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"enroll_btn_bg_color",attributeValue:c,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"enroll_btn_color_hover",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"enroll_btn_bg_hover_color",attributeValue:m,setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"enroll_btn_padding",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,
2933 2937 I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"enroll_btn_border",attributeValue:y,setAttributes:i})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Price Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"price_typography",attributeValue:w,setAttributes:i,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"price_color",attributeValue:P,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"price_hover_color",attributeValue:W,setAttributes:i})})}),(0,I.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,L.__)("Price Title","ablocks")}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"price_title_typography",attributeValue:z,setAttributes:i,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{
2934 2938 children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"price_title_color",attributeValue:A,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"price_title_hover_color",attributeValue:C,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Enroll Info Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"info_typography",attributeValue:E,setAttributes:i,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"info_color",attributeValue:Y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"info_bg",attributeValue:N,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"info_color_hover",attributeValue:X,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
2935 -L.__)("Background Color","ablocks"),attributeName:"info_bg_hover",attributeValue:O,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:B,attributeName:"bgTransition",setAttributes:i})]})})]}),"new"===H?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(V,{title:(0,L.__)("Prerequisites Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Modal Width","ablocks"),min:0,max:500,step:1,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:M,attributeName:"modalWidth",setAttributes:i,attributeDefaultValue:KS}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"massage_title_typography",attributeValue:U,setAttributes:i,isResponsive:!1,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeName:"massage_title_bg",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
2939 +L.__)("Background Color","ablocks"),attributeName:"info_bg_hover",attributeValue:O,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:B,attributeName:"bgTransition",setAttributes:i})]})})]}),"new"===H?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(V,{title:(0,L.__)("Prerequisites Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Modal Width","ablocks"),min:0,max:500,step:1,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:M,attributeName:"modalWidth",setAttributes:i,attributeDefaultValue:aW}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"massage_title_typography",attributeValue:U,setAttributes:i,isResponsive:!1,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeName:"massage_title_bg",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
2936 2940 L.__)("Color","ablocks"),attributeName:"massage_title_color",attributeValue:k,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeName:"massage_title_hover_bg",attributeValue:v,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"massage_title_hover_color",attributeValue:_,setAttributes:i})]})})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Prerequisites List Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"list_typography",attributeValue:j,setAttributes:i,isResponsive:!1,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"list_color",attributeValue:R,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"list_hover_color",attributeValue:S,setAttributes:i})})})]})]}):(0,I.jsx)(I.Fragment,{children:(0,
2937 2941 I.jsxs)(V,{title:(0,L.__)("Start Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"start_btn_typography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"start_btn_color",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"start_btn_bg_color",attributeValue:b,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"start_btn_color_hover",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"start_btn_bg_hover_color",attributeValue:p,setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
2938 -isResponsive:!0,attributeName:"start_btn_padding",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"start_btn_border",attributeValue:f,setAttributes:i})]})})]})})})}(0,U.D$)("start_btn_typography",!0),(0,U.D$)("price_title_typography",!0),(0,U.D$)("massage_title_typography",!0),(0,U.D$)("list_typography",!0),(0,U.D$)("price_typography",!0),(0,U.D$)("info_typography",!0),(0,y.D$)("start_btn_border",!0),(0,y.D$)("enroll_btn_border",!0),(0,c.D$)("start_btn_padding",!0),(0,c.D$)("enroll_btn_padding",!0),_r.Ay,JS.propTypes={};const QS=window.wp.serverSideRender;var tW=i.n(QS);const eW=({children:t,disabled:e=!0})=>(0,I.jsx)("div",{"aria-disabled":e,style:{position:"relative"},onClick:t=>{e&&(t.preventDefault(),t.stopPropagation())},onSubmit:t=>{e&&(t.preventDefault(),t.stopPropagation())},children:t}),iW={UU:"ablocks/academy-enroll-form",uK:{block_id:{type:"string",
2942 +isResponsive:!0,attributeName:"start_btn_padding",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"start_btn_border",attributeValue:f,setAttributes:i})]})})]})})})}(0,U.D$)("start_btn_typography",!0),(0,U.D$)("price_title_typography",!0),(0,U.D$)("massage_title_typography",!0),(0,U.D$)("list_typography",!0),(0,U.D$)("price_typography",!0),(0,U.D$)("info_typography",!0),(0,y.D$)("start_btn_border",!0),(0,y.D$)("enroll_btn_border",!0),(0,c.D$)("start_btn_padding",!0),(0,c.D$)("enroll_btn_padding",!0),_r.Ay,lW.propTypes={};const nW=window.wp.serverSideRender;var sW=i.n(nW);const rW=({children:t,disabled:e=!0})=>(0,I.jsx)("div",{"aria-disabled":e,style:{position:"relative"},onClick:t=>{e&&(t.preventDefault(),t.stopPropagation())},onSubmit:t=>{e&&(t.preventDefault(),t.stopPropagation())},children:t}),bW={UU:"ablocks/academy-enroll-form",uK:{block_id:{type:"string",
2939 2943 default:""},blockVersion:{type:"number",default:2},course_id:{type:"number",default:0},layout:{type:"string",default:"legacy"},start_btn_color:{type:"string",default:"#fff"},enroll_btn_color:{type:"string",default:"#fff"},start_btn_color_hover:{type:"string",default:"#fff"},enroll_btn_color_hover:{type:"string",default:"#fff"},start_btn_bg_color:{type:"string",default:"#7B68EE"},enroll_btn_bg_color:{type:"string",default:"#7B68EE"},start_btn_bg_hover_color:{type:"string",default:"#6F5DD6"},enroll_btn_bg_hover_color:{type:"string",default:"#6F5DD6"},massage_title_bg:{type:"string",default:""},massage_title_color:{type:"string",default:""},massage_title_hover_bg:{type:"string",default:""},massage_title_hover_color:{type:"string",default:""},list_color:{type:"string",default:""},list_hover_color:{type:"string",default:""},price_hover_color:{type:"string",default:"#111"},price_color:{type:"string",default:"#111"},price_title_hover_color:{type:"string",default:"#111"},price_title_color:{
2940 2944 type:"string",default:"#111"},info_color_hover:{type:"string",default:"#7b68ee"},info_color:{type:"string",default:"#7b68ee"},info_bg_hover:{type:"string",default:"#eae8fa"},info_bg:{type:"string",default:"#eae8fa"},start_btn_typographyGlobal:{type:"string",default:""},start_btn_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},price_typographyGlobal:{type:"string",default:""},price_typography:{type:"object",default:{fontFamily:"",
2941 2945 weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},price_title_typographyGlobal:{type:"string",default:""},price_title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",
2942 2946 lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},list_typographyGlobal:{type:"string",default:""},list_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},massage_title_typographyGlobal:{type:"string",default:""},
@@ -2953,31 +2957,31 @@
2953 2957 imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",
2954 2958 imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",
2955 2959 skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",
2956 2960 yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",
2957 -shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function oW(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:iW.UU,attributes:e,typography:[{fontFamily:e.start_btn_typography?.fontFamily,weight:e.start_btn_typography?.weight},{fontFamily:e.enroll_btn_typography?.fontFamily,
2958 -weight:e.enroll_btn_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-enroll-form",httpMethod:"POST",attributes:{...e,postId:i.postId,course_id:e.product_id?e.product_id:i.postId}})})})})}oW.propTypes={};const aW=(t,e="")=>{const i=(0,M.Zy)(t.start_btn_typography,{weight:"400"}),o=t.start_btn_typographyGlobal?t.start_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.start_btn_color),background:(0,Hs.qD)(t?.start_btn_bg_color),...(0,U.qD)(i,e,o),...(0,c.qD)(t?.start_btn_padding,"padding",e),...(0,y.qD)(t?.start_btn_border,e)}},lW=(t,e="")=>({color:(0,Hs.qD)(t?.start_btn_color_hover),background:(0,Hs.qD)(t?.start_btn_bg_hover_color),...(0,y.a9)(t?.start_btn_border,e)}),nW=(t,e="")=>{const i=(0,M.Zy)(t.enroll_btn_typography,{weight:"400"}),o=t.enroll_btn_typographyGlobal?t.enroll_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.enroll_btn_color),background:(0,Hs.qD)(t?.enroll_btn_bg_color),...(0,U.qD)(i,e,o),...(0,
2959 -c.qD)(t?.enroll_btn_padding,"padding",e),...(0,y.qD)(t?.enroll_btn_border,e)}},sW=(t,e="")=>({color:(0,Hs.qD)(t?.enroll_btn_color_hover),background:(0,Hs.qD)(t?.enroll_btn_bg_hover_color),...(0,y.a9)(t?.enroll_btn_border,e)}),rW=(t,e="")=>{const i=(0,M.Zy)(t?.massage_title_typography??"",{weight:"400"}),o=t.massage_title_typographyGlobal?t.massage_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.massage_title_color),background:(0,Hs.qD)(t?.massage_title_bg),...(0,U.qD)(i,e,o)}},bW=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.modalWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:150,unitDefaultValue:"px",property:"width",device:e})}),cW=(t,e="")=>{const i=(0,M.Zy)(t?.list_typography,"",{weight:"400"}),o=t.list_typographyGlobal?t.list_typographyGlobal:"";return{"text-decoration":"none",color:(0,Hs.qD)(t?.list_color),...(0,U.qD)(i,e,o)}},dW=(t,e="")=>({color:(0,Hs.qD)(t?.list_hover_color)}),uW=(t,e="")=>{const i=(0,M.Zy)(t?.price_typography,"",{weight:"400"
2960 -}),o=t.price_typographyGlobal?t.price_typographyGlobal:"";return{color:(0,Hs.qD)(t?.price_color),...(0,U.qD)(i,e,o)}},pW=(t,e="")=>{const i={};return i.color=t?.price_title_hover_color??"",i},mW=(t,e="")=>{const i={};i.color=t?.price_title_color??"";const o=(0,M.Zy)(t?.price_title_typography,"",{weight:"400"});return{...i,...(0,U.qD)(o,e)}},hW=(t,e="")=>{const i={};i.color=t?.info_color??"#7b68ee",i.background=t?.info_bg??"#eae8fa";const o=(0,M.Zy)(t?.info_typography,"",{weight:"400"});return{...i,...(0,U.qD)(o,e)}},gW=(t,e="")=>{const i={};return i.background=t?.info_bg_hover??"#eae8fa",i.color=t?.info_color_hover??"#7b68ee",{...i,...(0,Eb.qD)({attributeValue:t?.bgTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}};(0,M.xV)(iW.UU,"","academy_lms")&&(0,o.registerBlockType)(iW.UU,{title:(0,L.__)("Enroll Form","ablocks"),attributes:iW.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",
2961 -src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__continue a,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__continue .academy-btn,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__continue a",aW(i),aW(i,"Tablet"),aW(i,"Mobile"),e(t=>aW(i,t))),
2962 -t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__continue a:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__continue .academy-btn:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__continue a:hover",lW(i),lW(i,"Tablet"),lW(i,"Mobile"),e(t=>lW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__enroll-form button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite-button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode .academy-course-enroll-form .academy-btn--bg-purple,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__enroll-form .academy-btn,\n\t\t\t{{WRAPPER}} .academy-add-to-cart-button button,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__add-to-cart form button,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__complete-form .academy-btn",nW(i),nW(i,"Tablet"),nW(i,"Mobile"),e(t=>nW(i,t))),
2963 -t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__enroll-form button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite-button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode .academy-course-enroll-form .academy-btn--bg-purple:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__enroll-form .academy-btn:hover,\n\t\t\t{{WRAPPER}} .academy-add-to-cart-button button:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__add-to-cart form button:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__complete-form .academy-btn:hover",sW(i,""),sW(i,"Tablet"),sW(i,"Mobile"),e(t=>sW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite .academy-shortcode-prerequisites-message",rW(i),rW(i,"Tablet"),rW(i,"Mobile"),e(t=>rW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite",bW(i),bW(i,"Tablet"),bW(i,"Mobile"),e(t=>bW(i,t))),
2964 -t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite .academy-shortcode-prerequisites-lists a",cW(i),cW(i,"Tablet"),cW(i,"Mobile"),e(t=>cW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__prerequisites .academy-prerequisites-lists li a:hover",dW(i,""),dW(i,"Tablet"),dW(i,"Mobile"),e(t=>dW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__price,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-type,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-price del,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-price ins",uW(i,""),uW(i,"Tablet"),uW(i,"Mobile"),e(t=>uW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__head .title",mW(i,""),mW(i,"Tablet"),mW(i,"Mobile"),e(t=>mW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__head .title:hover",pW(i,""),pW(i,"Tablet"),pW(i,"Mobile"),e(t=>pW(i,t))),
2965 -t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__enrolled-info",hW(i,""),hW(i,"Tablet"),hW(i,"Mobile"),e(t=>hW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__enrolled-info:hover",gW(i,""),gW(i,"Tablet"),gW(i,"Mobile"),e(t=>gW(i,t))),(0,b.applyFilters)("ablocks.academy-enroll-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(JS,{...t}),(0,I.jsx)(oW,{...t})]})},save:()=>null});const fW={label:Y().string,isGradient:Y().bool,attributeName:Y().string,attributeValue:Y().string,setAttributes:Y().func,onChangeHandler:Y().func,resetHandler:Y().func},yW=t=>{const{label:e="",attributeName:i="",attributeValue:o,setAttributes:l={},onChangeHandler:n,is12Hour:s=!0}=t,[r,b]=(0,a.useState)(!1);return(0,I.jsxs)("div",{className:"ablocks-controls ablocks-control-date-time-picker",children:[(0,I.jsxs)("div",{className:" ablocks-date-time-picker",style:{display:"flex"},children:[(0,I.jsx)(at,{
2966 -label:e,isResponsive:!1}),(0,I.jsx)("div",{className:"ablocks-date-time-picker__btn",children:(0,I.jsx)("button",{onClick:()=>{b(!0)},disabled:r,children:new Date(o).toLocaleString()})})]}),(0,I.jsx)(Xt,{label:e,isShowPrimaryLabel:!1,isVisible:r,toggleVisible:t=>{b(t)},children:(0,I.jsx)(N.DateTimePicker,{onChange:t=>{n?n(t):(t=>{l({[i]:t})})(t)},currentDate:o,is12Hour:s,__nextRemoveResetButton:!0,__nextRemoveHelpButton:!0})})]})};yW.propTypes=fW;const TW=yW,HW=((0,L.__)("None","ablocks"),(0,L.__)("Hide","ablocks"),(0,L.__)("Show Message","ablocks"),(0,L.__)("Show Message & Hide Countdown","ablocks"),(0,L.__)("Redirect","ablocks"),[{label:(0,L.__)(":","ablocks"),value:":"},{label:(0,L.__)("/","ablocks"),value:"/"},{label:(0,L.__)("?","ablocks"),value:"?"},{label:(0,L.__)("|","ablocks"),value:"|"}]),MW=((0,L.__)("Transparent","ablocks"),(0,L.__)("Color","ablocks"),[{label:(0,L.__)("Top","ablocks"),value:"column-reverse"},{label:(0,L.__)("Right","ablocks"),value:"row"},{label:(0,
2967 -L.__)("Bottom","ablocks"),value:"column"},{label:(0,L.__)("Left","ablocks"),value:"row-reverse"}]),xW=[{label:(0,L.__)("Row","ablocks"),value:"row",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,L.__)("Column","ablocks"),value:"column",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,L.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,L.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],kW=[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:(0,
2968 -I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,L.__)("Space Around","ablocks"),value:"space-around",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{label:(0,L.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],vW=[{label:(0,L.__)("Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:(0,
2969 -I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"}],_W=[{label:(0,L.__)("Wrap","ablocks"),value:"wrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap"})},{label:(0,L.__)("No Wrap","ablocks"),value:"nowrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--no-wrap"})},{label:(0,L.__)("Wrap Reverse","ablocks"),value:"wrap-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap ablocks-icon-rotate-180-deg"}),tooltipPosition:"top-left"}];var RW=i(60766);function SW(t){
2970 -const{attributes:e,setAttributes:i,context:o}=t,{targetTime:a,showDay:n,showHour:s,showMinute:r,showSecond:b,dayLabel:c,hourLabel:d,minuteLabel:u,secondLabel:p,orient:m,alignment:h,justificationAlign:g,wrapping:f,labelPosition:y,labelColor:T,labelBgColor:H,labelTypography:M,showLabels:x,separator:k,showSeparator:v,separatorColor:_,separatorTypography:R,numberColor:S,numberBgColor:W,numberTypography:P,boxSize:U,boxRowGap:j,boxColumnGap:w,numberAndLabelGap:z,boxBackgroundColor:C,padding:A,evergreen:N,evergreenDays:O,evergreenHours:Y,evergreenMinutes:X,evergreenRestart:B}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-countdown-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Countdown","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Direction","ablocks"),options:xW,attributeName:"orient",
2971 -attributeValue:m,setAttributes:i}),("row"===m?.value||"row-reverse"===m?.value)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Justify","ablocks"),options:kW,attributeName:"justificationAlign",attributeValue:g,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Align Items","ablocks"),options:vW,attributeName:"alignment",attributeValue:h,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Wrap","ablocks"),options:_W,attributeName:"wrapping",attributeValue:f,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Rows Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"boxRowGap",attributeValue:j,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:RW.Gt}),(0,I.jsx)(_t,{label:(0,L.__)("Columns Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"boxColumnGap",attributeValue:w,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",
2972 -label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:RW.Q8}),(0,I.jsx)(Ot,{label:(0,L.__)("Evergreen Timer","ablocks"),attributeValue:N,setAttributes:i,attributeName:"evergreen",isResponsive:!1}),N?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Days","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenDays",attributeValue:O,setAttributes:i,min:0,max:365,step:1,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Hours","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenHours",attributeValue:Y,setAttributes:i,min:0,max:23,step:1,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Minutes","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenMinutes",attributeValue:X,setAttributes:i,min:0,max:59,step:1,isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Restart After Expiry","ablocks"),attributeValue:B,setAttributes:i,attributeName:"evergreenRestart",isResponsive:!1})]}):(0,I.jsx)(TW,{label:(0,L.__)("Select Date","ablocks"),setAttributes:i,
2961 +shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function cW(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:bW.UU,attributes:e,typography:[{fontFamily:e.start_btn_typography?.fontFamily,weight:e.start_btn_typography?.weight},{fontFamily:e.enroll_btn_typography?.fontFamily,
2962 +weight:e.enroll_btn_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-enroll-form",httpMethod:"POST",attributes:{...e,postId:i.postId,course_id:e.product_id?e.product_id:i.postId}})})})})}cW.propTypes={};const dW=(t,e="")=>{const i=(0,M.Zy)(t.start_btn_typography,{weight:"400"}),o=t.start_btn_typographyGlobal?t.start_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.start_btn_color),background:(0,Hs.qD)(t?.start_btn_bg_color),...(0,U.qD)(i,e,o),...(0,c.qD)(t?.start_btn_padding,"padding",e),...(0,y.qD)(t?.start_btn_border,e)}},uW=(t,e="")=>({color:(0,Hs.qD)(t?.start_btn_color_hover),background:(0,Hs.qD)(t?.start_btn_bg_hover_color),...(0,y.a9)(t?.start_btn_border,e)}),pW=(t,e="")=>{const i=(0,M.Zy)(t.enroll_btn_typography,{weight:"400"}),o=t.enroll_btn_typographyGlobal?t.enroll_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.enroll_btn_color),background:(0,Hs.qD)(t?.enroll_btn_bg_color),...(0,U.qD)(i,e,o),...(0,
2963 +c.qD)(t?.enroll_btn_padding,"padding",e),...(0,y.qD)(t?.enroll_btn_border,e)}},mW=(t,e="")=>({color:(0,Hs.qD)(t?.enroll_btn_color_hover),background:(0,Hs.qD)(t?.enroll_btn_bg_hover_color),...(0,y.a9)(t?.enroll_btn_border,e)}),hW=(t,e="")=>{const i=(0,M.Zy)(t?.massage_title_typography??"",{weight:"400"}),o=t.massage_title_typographyGlobal?t.massage_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.massage_title_color),background:(0,Hs.qD)(t?.massage_title_bg),...(0,U.qD)(i,e,o)}},gW=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.modalWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:150,unitDefaultValue:"px",property:"width",device:e})}),fW=(t,e="")=>{const i=(0,M.Zy)(t?.list_typography,"",{weight:"400"}),o=t.list_typographyGlobal?t.list_typographyGlobal:"";return{"text-decoration":"none",color:(0,Hs.qD)(t?.list_color),...(0,U.qD)(i,e,o)}},yW=(t,e="")=>({color:(0,Hs.qD)(t?.list_hover_color)}),TW=(t,e="")=>{const i=(0,M.Zy)(t?.price_typography,"",{weight:"400"
2964 +}),o=t.price_typographyGlobal?t.price_typographyGlobal:"";return{color:(0,Hs.qD)(t?.price_color),...(0,U.qD)(i,e,o)}},HW=(t,e="")=>{const i={};return i.color=t?.price_title_hover_color??"",i},MW=(t,e="")=>{const i={};i.color=t?.price_title_color??"";const o=(0,M.Zy)(t?.price_title_typography,"",{weight:"400"});return{...i,...(0,U.qD)(o,e)}},xW=(t,e="")=>{const i={};i.color=t?.info_color??"#7b68ee",i.background=t?.info_bg??"#eae8fa";const o=(0,M.Zy)(t?.info_typography,"",{weight:"400"});return{...i,...(0,U.qD)(o,e)}},kW=(t,e="")=>{const i={};return i.background=t?.info_bg_hover??"#eae8fa",i.color=t?.info_color_hover??"#7b68ee",{...i,...(0,Eb.qD)({attributeValue:t?.bgTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}};(0,M.xV)(bW.UU,"","academy_lms")&&(0,o.registerBlockType)(bW.UU,{title:(0,L.__)("Enroll Form","ablocks"),attributes:bW.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",
2965 +src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__continue a,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__continue .academy-btn,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__continue a",dW(i),dW(i,"Tablet"),dW(i,"Mobile"),e(t=>dW(i,t))),
2966 +t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__continue a:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__continue .academy-btn:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__continue a:hover",uW(i),uW(i,"Tablet"),uW(i,"Mobile"),e(t=>uW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__enroll-form button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite-button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode .academy-course-enroll-form .academy-btn--bg-purple,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__enroll-form .academy-btn,\n\t\t\t{{WRAPPER}} .academy-add-to-cart-button button,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__add-to-cart form button,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__complete-form .academy-btn",pW(i),pW(i,"Tablet"),pW(i,"Mobile"),e(t=>pW(i,t))),
2967 +t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__enroll-form button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite-button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode .academy-course-enroll-form .academy-btn--bg-purple:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__enroll-form .academy-btn:hover,\n\t\t\t{{WRAPPER}} .academy-add-to-cart-button button:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__add-to-cart form button:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__complete-form .academy-btn:hover",mW(i,""),mW(i,"Tablet"),mW(i,"Mobile"),e(t=>mW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite .academy-shortcode-prerequisites-message",hW(i),hW(i,"Tablet"),hW(i,"Mobile"),e(t=>hW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite",gW(i),gW(i,"Tablet"),gW(i,"Mobile"),e(t=>gW(i,t))),
2968 +t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite .academy-shortcode-prerequisites-lists a",fW(i),fW(i,"Tablet"),fW(i,"Mobile"),e(t=>fW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__prerequisites .academy-prerequisites-lists li a:hover",yW(i,""),yW(i,"Tablet"),yW(i,"Mobile"),e(t=>yW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__price,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-type,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-price del,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-price ins",TW(i,""),TW(i,"Tablet"),TW(i,"Mobile"),e(t=>TW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__head .title",MW(i,""),MW(i,"Tablet"),MW(i,"Mobile"),e(t=>MW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__head .title:hover",HW(i,""),HW(i,"Tablet"),HW(i,"Mobile"),e(t=>HW(i,t))),
2969 +t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__enrolled-info",xW(i,""),xW(i,"Tablet"),xW(i,"Mobile"),e(t=>xW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__enrolled-info:hover",kW(i,""),kW(i,"Tablet"),kW(i,"Mobile"),e(t=>kW(i,t))),(0,b.applyFilters)("ablocks.academy-enroll-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(lW,{...t}),(0,I.jsx)(cW,{...t})]})},save:()=>null});const vW={label:Y().string,isGradient:Y().bool,attributeName:Y().string,attributeValue:Y().string,setAttributes:Y().func,onChangeHandler:Y().func,resetHandler:Y().func},_W=t=>{const{label:e="",attributeName:i="",attributeValue:o,setAttributes:l={},onChangeHandler:n,is12Hour:s=!0}=t,[r,b]=(0,a.useState)(!1);return(0,I.jsxs)("div",{className:"ablocks-controls ablocks-control-date-time-picker",children:[(0,I.jsxs)("div",{className:" ablocks-date-time-picker",style:{display:"flex"},children:[(0,I.jsx)(at,{
2970 +label:e,isResponsive:!1}),(0,I.jsx)("div",{className:"ablocks-date-time-picker__btn",children:(0,I.jsx)("button",{onClick:()=>{b(!0)},disabled:r,children:new Date(o).toLocaleString()})})]}),(0,I.jsx)(Xt,{label:e,isShowPrimaryLabel:!1,isVisible:r,toggleVisible:t=>{b(t)},children:(0,I.jsx)(N.DateTimePicker,{onChange:t=>{n?n(t):(t=>{l({[i]:t})})(t)},currentDate:o,is12Hour:s,__nextRemoveResetButton:!0,__nextRemoveHelpButton:!0})})]})};_W.propTypes=vW;const RW=_W,SW=((0,L.__)("None","ablocks"),(0,L.__)("Hide","ablocks"),(0,L.__)("Show Message","ablocks"),(0,L.__)("Show Message & Hide Countdown","ablocks"),(0,L.__)("Redirect","ablocks"),[{label:(0,L.__)(":","ablocks"),value:":"},{label:(0,L.__)("/","ablocks"),value:"/"},{label:(0,L.__)("?","ablocks"),value:"?"},{label:(0,L.__)("|","ablocks"),value:"|"}]),WW=((0,L.__)("Transparent","ablocks"),(0,L.__)("Color","ablocks"),[{label:(0,L.__)("Top","ablocks"),value:"column-reverse"},{label:(0,L.__)("Right","ablocks"),value:"row"},{label:(0,
2971 +L.__)("Bottom","ablocks"),value:"column"},{label:(0,L.__)("Left","ablocks"),value:"row-reverse"}]),PW=[{label:(0,L.__)("Row","ablocks"),value:"row",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,L.__)("Column","ablocks"),value:"column",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,L.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,L.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],UW=[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:(0,
2972 +I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,L.__)("Space Around","ablocks"),value:"space-around",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{label:(0,L.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],jW=[{label:(0,L.__)("Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:(0,
2973 +I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"}],wW=[{label:(0,L.__)("Wrap","ablocks"),value:"wrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap"})},{label:(0,L.__)("No Wrap","ablocks"),value:"nowrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--no-wrap"})},{label:(0,L.__)("Wrap Reverse","ablocks"),value:"wrap-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap ablocks-icon-rotate-180-deg"}),tooltipPosition:"top-left"}];var zW=i(60766);function CW(t){
2974 +const{attributes:e,setAttributes:i,context:o}=t,{targetTime:a,showDay:n,showHour:s,showMinute:r,showSecond:b,dayLabel:c,hourLabel:d,minuteLabel:u,secondLabel:p,orient:m,alignment:h,justificationAlign:g,wrapping:f,labelPosition:y,labelColor:T,labelBgColor:H,labelTypography:M,showLabels:x,separator:k,showSeparator:v,separatorColor:_,separatorTypography:R,numberColor:S,numberBgColor:W,numberTypography:P,boxSize:U,boxRowGap:j,boxColumnGap:w,numberAndLabelGap:z,boxBackgroundColor:C,padding:A,evergreen:N,evergreenDays:O,evergreenHours:Y,evergreenMinutes:X,evergreenRestart:B}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-countdown-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Countdown","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Direction","ablocks"),options:PW,attributeName:"orient",
2975 +attributeValue:m,setAttributes:i}),("row"===m?.value||"row-reverse"===m?.value)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Justify","ablocks"),options:UW,attributeName:"justificationAlign",attributeValue:g,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Align Items","ablocks"),options:jW,attributeName:"alignment",attributeValue:h,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Wrap","ablocks"),options:wW,attributeName:"wrapping",attributeValue:f,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Rows Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"boxRowGap",attributeValue:j,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:zW.Gt}),(0,I.jsx)(_t,{label:(0,L.__)("Columns Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"boxColumnGap",attributeValue:w,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",
2976 +label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:zW.Q8}),(0,I.jsx)(Ot,{label:(0,L.__)("Evergreen Timer","ablocks"),attributeValue:N,setAttributes:i,attributeName:"evergreen",isResponsive:!1}),N?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Days","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenDays",attributeValue:O,setAttributes:i,min:0,max:365,step:1,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Hours","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenHours",attributeValue:Y,setAttributes:i,min:0,max:23,step:1,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Minutes","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenMinutes",attributeValue:X,setAttributes:i,min:0,max:59,step:1,isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Restart After Expiry","ablocks"),attributeValue:B,setAttributes:i,attributeName:"evergreenRestart",isResponsive:!1})]}):(0,I.jsx)(RW,{label:(0,L.__)("Select Date","ablocks"),setAttributes:i,
2973 2977 attributeValue:a,attributeName:"targetTime"}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Day","ablocks"),attributeValue:n,setAttributes:i,attributeName:"showDay",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Hour","ablocks"),attributeValue:s,setAttributes:i,attributeName:"showHour",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Minute","ablocks"),attributeValue:r,setAttributes:i,attributeName:"showMinute",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Second","ablocks"),attributeValue:b,setAttributes:i,attributeName:"showSecond",isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Separator","ablocks"),attributeValue:v,setAttributes:i,attributeName:"showSeparator",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Labels","ablocks"),attributeValue:x,setAttributes:i,attributeName:"showLabels",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Box Size","ablocks"),isResponsive:!0,hasUnit:!0,
2974 -attributeName:"boxSize",attributeValue:U,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:1e3,isInline:!1,attributeDefaultValue:RW.Vo,autoSyncRange:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Label Position","ablocks"),options:MW,attributeName:"labelPosition",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Number and Label Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"numberAndLabelGap",attributeValue:z,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:RW.Vg}),(0,I.jsx)(It,{margin:"30"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"boxBorder",attributeValue:e?.boxBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
2978 +attributeName:"boxSize",attributeValue:U,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:1e3,isInline:!1,attributeDefaultValue:zW.Vo,autoSyncRange:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Label Position","ablocks"),options:WW,attributeName:"labelPosition",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Number and Label Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"numberAndLabelGap",attributeValue:z,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:zW.Vg}),(0,I.jsx)(It,{margin:"30"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"boxBorder",attributeValue:e?.boxBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
2975 2979 isResponsive:!0,attributeName:"padding",attributeValue:A,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"boxBackgroundColor",attributeValue:C,setAttributes:i,isGradient:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:e.boxShadow,setAttributes:i,attributeName:"boxShadow"})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Label","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Days","ablocks"),attributeValue:c,setAttributes:i,attributeName:"dayLabel",isResponsive:!1,context:o}),(0,I.jsx)(Kl,{label:(0,L.__)("Hours","ablocks"),attributeValue:d,setAttributes:i,attributeName:"hourLabel",isResponsive:!1,context:o}),(0,I.jsx)(Kl,{label:(0,L.__)("Minute","ablocks"),attributeValue:u,setAttributes:i,attributeName:"minuteLabel",isResponsive:!1,context:o}),(0,I.jsx)(Kl,{label:(0,L.__)("Second","ablocks"),attributeValue:p,setAttributes:i,
2976 2980 attributeName:"secondLabel",isResponsive:!1,context:o})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"labelBgColor",attributeValue:H,setAttributes:i,isGradient:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Number","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"numberColor",attributeValue:S,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"numberBgColor",attributeValue:W,setAttributes:i,isGradient:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"numberTypography",attributeValue:P,setAttributes:i,isResponsive:!0,attributes:e})]}),v&&(0,I.jsx)(V,{
2977 -title:(0,L.__)("Separator","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wb,{isInline:!1,label:(0,L.__)("Separator","ablocks"),options:HW,attributeName:"separator",attributeValue:k,setAttributes:i,isResponsive:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"separatorColor",attributeValue:_,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"separatorTypography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})})})}SW.propTypes={};const WW=new Map,PW=function(t){if(!t)return;const e=t.getAttribute("data-block-id")||t.className;WW.has(e)&&(clearInterval(WW.get(e)),WW.delete(e))
2981 +title:(0,L.__)("Separator","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wb,{isInline:!1,label:(0,L.__)("Separator","ablocks"),options:SW,attributeName:"separator",attributeValue:k,setAttributes:i,isResponsive:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"separatorColor",attributeValue:_,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"separatorTypography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})})})}CW.propTypes={};const AW=new Map,LW=function(t){if(!t)return;const e=t.getAttribute("data-block-id")||t.className;AW.has(e)&&(clearInterval(AW.get(e)),AW.delete(e))
2978 2982 ;const i="true"===t.getAttribute("data-evergreen"),o=parseInt(t.getAttribute("data-evergreen-days")||"0",10),a=parseInt(t.getAttribute("data-evergreen-hours")||"0",10),l=parseInt(t.getAttribute("data-evergreen-minutes")||"0",10),n="true"===t.getAttribute("data-evergreen-restart"),s=t.getAttribute("data-evergreen-version")||"",r="ablocks_evergreen_"+e,b="ablocks_evergreen_version_"+e,c=(e,i,o,a)=>{const l={day:t.querySelector(".ablocks-countdown__item--day .ablocks-countdown-value"),hour:t.querySelector(".ablocks-countdown__item--hour .ablocks-countdown-value"),minute:t.querySelector(".ablocks-countdown__item--minute .ablocks-countdown-value"),second:t.querySelector(".ablocks-countdown__item--second .ablocks-countdown-value")};l.day&&(l.day.innerHTML=e),l.hour&&(l.hour.innerHTML=i),l.minute&&(l.minute.innerHTML=o),l.second&&(l.second.innerHTML=a)},d=()=>{try{const u=(i?(()=>{localStorage.getItem(b)!==s&&(localStorage.removeItem(r),localStorage.setItem(b,s))
2979 -;const t=localStorage.getItem(r);if(t){const e=parseInt(t,10);if(!isNaN(e)){if(e>Date.now())return e;if(!n)return e}}const e=1e3*(24*o*60*60+60*a*60+60*l),i=Date.now()+e;return localStorage.setItem(r,i.toString()),localStorage.setItem(b,s),i})():new Date(t.getAttribute("data-target-time")).getTime())-Date.now();if(u<=0){if(clearInterval(WW.get(e)),WW.delete(e),c("00","00","00","00"),i&&n){localStorage.removeItem(r);const t=setInterval(d,1e3);WW.set(e,t)}return}const p=Math.floor(u/1e3%60).toString().padStart(2,"0"),m=Math.floor(u/6e4%60).toString().padStart(2,"0"),h=Math.floor(u/36e5%24).toString().padStart(2,"0"),g=Math.floor(u/864e5).toString().padStart(2,"0");c(g,h,m,p)}catch(t){console.error(t)}};d();const u=setInterval(d,1e3);WW.set(e,u)},UW={UU:"ablocks/countdown",uK:{alignment:{type:"object",default:{value:"stretch",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",
2983 +;const t=localStorage.getItem(r);if(t){const e=parseInt(t,10);if(!isNaN(e)){if(e>Date.now())return e;if(!n)return e}}const e=1e3*(24*o*60*60+60*a*60+60*l),i=Date.now()+e;return localStorage.setItem(r,i.toString()),localStorage.setItem(b,s),i})():new Date(t.getAttribute("data-target-time")).getTime())-Date.now();if(u<=0){if(clearInterval(AW.get(e)),AW.delete(e),c("00","00","00","00"),i&&n){localStorage.removeItem(r);const t=setInterval(d,1e3);AW.set(e,t)}return}const p=Math.floor(u/1e3%60).toString().padStart(2,"0"),m=Math.floor(u/6e4%60).toString().padStart(2,"0"),h=Math.floor(u/36e5%24).toString().padStart(2,"0"),g=Math.floor(u/864e5).toString().padStart(2,"0");c(g,h,m,p)}catch(t){console.error(t)}};d();const u=setInterval(d,1e3);AW.set(e,u)},DW={UU:"ablocks/countdown",uK:{alignment:{type:"object",default:{value:"stretch",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",
2980 2984 presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},boxBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",
2981 2985 unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},actionMessageTypographyGlobal:{type:"string",default:""},actionMessageTypography:{type:"object",default:{
2982 2986 fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",
2983 2987 lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},numberTypographyGlobal:{type:"string",default:""},numberTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},separatorTypographyGlobal:{type:"string",default:""},separatorTypography:{
@@ -2991,16 +2995,16 @@
2991 2995 imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",
2992 2996 imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",
2993 2997 offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",
2994 2998 scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",
2995 -animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},jW=({label:t,value:e,children:i,showLabel:o})=>(0,I.jsxs)("div",{
2996 -className:s()("ablocks-countdown__item",`ablocks-countdown__item--${t}`),children:[(0,I.jsxs)("div",{className:"ablocks-countdown-value",children:[" ",e," "]}),o&&(0,I.jsxs)("div",{className:"ablocks-countdown-label",children:[" ",i," "]})]}),wW=({children:t})=>(0,I.jsxs)("div",{className:"ablocks-countdown__separator",children:[" ",t," "]});function zW(t){const{attributes:e,setAttributes:i}=t,{alignment:o,targetTime:n,dayLabel:s,hourLabel:r,minuteLabel:b,secondLabel:c,block_id:d,action:u,actionMessage:p,actionRedirectURL:m,showSeparator:h,separator:g,showDay:f,showHour:y,showMinute:T,showSecond:H,showLabels:x,evergreen:k,evergreenDays:v,evergreenHours:_,evergreenMinutes:R,evergreenRestart:S}=e,{isDynamicEnabled:W,data:P}=id({attributeValue:s}),{isDynamicEnabled:U,data:j}=id({attributeValue:r}),{isDynamicEnabled:w,data:z}=id({attributeValue:b}),{isDynamicEnabled:C,data:A}=id({attributeValue:c});let L;(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${d} `);PW(t)
2997 -},[d,n,u,f,y,T,H,k,v,_,R,S]),L=k?1e3*(24*(v||0)*60*60+60*(_||0)*60+60*(R||0)):new Date(n).getTime()-Date.now();const N=Math.max(Math.floor(L/1e3%60),0),V=Math.max(Math.floor(L/6e4%60),0),O=Math.max(Math.floor(L/36e5%24),0),Y=Math.max(Math.floor(L/864e5),0),X=t=>{switch(t){case"day":return y||T||H;case"hour":return T||H;case"minute":return H;default:return!1}};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsxs)(Yb.A,{blockId:d,name:UW.UU,attributes:e,blockProps:{"data-target-time":n,"data-action":u,"data-action-message":p,"data-action-redirect-url":m,"data-evergreen":k?"true":"false","data-evergreen-days":v||0,"data-evergreen-hours":_||0,"data-evergreen-minutes":R||0,"data-evergreen-restart":S?"true":"false","data-block-id":d,"data-evergreen-version":`${v}-${_}-${R}`},children:[f&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"day",value:Y,showLabel:x,children:W?P:s}),h&&X("day")&&(0,
2998 -I.jsx)(wW,{children:g})]}),y&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"hour",value:O,showLabel:x,children:U?j:r}),h&&X("hour")&&(0,I.jsx)(wW,{children:g})]}),T&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"minute",value:V,showLabel:x,children:w?z:b}),h&&X("minute")&&(0,I.jsx)(wW,{children:g})]}),H&&(0,I.jsx)(jW,{label:"second",value:N,showLabel:x,children:C?A:c})]})]})}zW.propTypes={};const CW=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),AW=(t,e="")=>{const{boxSize:i,boxRowGap:o,boxColumnGap:a}=t,l=(0,M.Zy)(t.mapHeight,{value:130,valueUnit:"px"}),n={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"min-height",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,unitDefaultValue:"px",property:"row-gap",device:e}),...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,unitDefaultValue:"px",
2999 -property:"column-gap",device:e})};return t?.orient?.["value"+e]&&(n["flex-direction"]=t.orient["value"+e]),t?.justificationAlign?.["value"+e]&&(n["justify-content"]=t.justificationAlign["value"+e]),t?.alignment?.["value"+e]&&(n["align-items"]=t.alignment["value"+e]),t?.wrapping?.["value"+e]&&(n["flex-wrap"]=t?.wrapping?.["value"+e]),n},LW=(t,e="")=>{const{orient:i,boxSize:o,numberAndLabelGap:a,boxBackgroundColor:l,labelPosition:n}=t,s=(0,Hs.qD)(l),r=n||"",b=(0,M.Zy)(t?.boxBorder,{unitWidth:"px",unitRadius:"px"}),d=(0,M.Zy)(t?.padding,{unit:"px"}),u="value"+e,p=i?.[u]??i?.value;let m={};m="column"===p||"column-reverse"===p?(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:130,unitDefaultValue:"px",property:"width",device:e}):{width:"130px"};const h={...m,...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:5,unitDefaultValue:"px",property:"gap",device:e}),...(0,H.qD)(t?.boxShadow,"box-shadow",e),...(0,y.qD)(b,e),...(0,
3000 -c.qD)(d,"padding",e)};return s&&(h.background=s),r&&(h["flex-direction"]=r),h},DW=(t,e="")=>{const i=(0,M.Zy)(t?.boxBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},NW=(t,e="")=>{const i={};"column"!==t?.labelPosition&&"column-reverse"!==t?.labelPosition||(i.width="100%",i.flex="1 1 30%",i.display="flex",i["justify-content"]="center",i["align-items"]="center");const o=(0,M.Zy)(t.labelTypography,{weight:"400"}),a=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.labelColor),background:(0,Hs.qD)(t?.labelBgColor),...(0,U.qD)(o,e,a),...i}},IW=(t,e="")=>{const i={};"column"!==t?.labelPosition&&"column-reverse"!==t?.labelPosition||(i.width="100%",i.flex="1 1 70%",i.display="flex",i["justify-content"]="center",i["align-items"]="center");const o=(0,M.Zy)(t.numberTypography,{weight:"400"}),a=t.numberTypographyGlobal?t.numberTypographyGlobal:"";return{color:(0,Hs.qD)(t?.numberColor),background:(0,Hs.qD)(t?.numberBgColor),
3001 -...(0,U.qD)(o,e,a),...i}},VW=(t,e)=>{const{separatorColor:i,separatorTypography:o}=t,a=(0,M.Zy)(o,{weight:"400"}),l=t.separatorTypographyGlobal?t.separatorTypographyGlobal:"",n={...(0,U.qD)(a,e,l)};return i&&(n.color=(0,Hs.qD)(i)),n};function OW(t){const{attributes:e}=t,{targetTime:i,dayLabel:o,hourLabel:a,minuteLabel:n,secondLabel:s,block_id:r,action:b,actionMessage:c,actionRedirectURL:d,showSeparator:u,separator:p,showDay:m,showHour:h,showMinute:g,showSecond:f,showLabels:y,evergreen:T,evergreenDays:H,evergreenHours:M,evergreenMinutes:x,evergreenRestart:k}=e,v=t=>{switch(t){case"day":return h||g||f;case"hour":return g||f;case"minute":return f;default:return!1}};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:r,name:UW.UU,attributes:e,blockProps:{"data-target-time":i,"data-action":b,"data-action-message":c,"data-action-redirect-url":d,"data-evergreen":T?"true":"false","data-evergreen-days":H||0,"data-evergreen-hours":M||0,"data-evergreen-minutes":x||0,
3002 -"data-evergreen-restart":k?"true":"false","data-block-id":r,"data-evergreen-version":`${H}-${M}-${x}`},children:[m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"day",value:"00",showLabel:y,children:o}),u&&v("day")&&(0,I.jsx)(wW,{children:p})]}),h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"hour",value:"00",showLabel:y,children:a}),u&&v("hour")&&(0,I.jsx)(wW,{children:p})]}),g&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"minute",value:"00",showLabel:y,children:n}),u&&v("minute")&&(0,I.jsx)(wW,{children:p})]}),f&&(0,I.jsx)(jW,{label:"second",value:"00",showLabel:y,children:s})]})})}OW.propTypes={};const YW={UU:"ablocks/countdown",uK:{alignment:{type:"object",default:{value:"stretch",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",
2999 +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},NW=({label:t,value:e,children:i,showLabel:o})=>(0,I.jsxs)("div",{
3000 +className:s()("ablocks-countdown__item",`ablocks-countdown__item--${t}`),children:[(0,I.jsxs)("div",{className:"ablocks-countdown-value",children:[" ",e," "]}),o&&(0,I.jsxs)("div",{className:"ablocks-countdown-label",children:[" ",i," "]})]}),IW=({children:t})=>(0,I.jsxs)("div",{className:"ablocks-countdown__separator",children:[" ",t," "]});function VW(t){const{attributes:e,setAttributes:i}=t,{alignment:o,targetTime:n,dayLabel:s,hourLabel:r,minuteLabel:b,secondLabel:c,block_id:d,action:u,actionMessage:p,actionRedirectURL:m,showSeparator:h,separator:g,showDay:f,showHour:y,showMinute:T,showSecond:H,showLabels:x,evergreen:k,evergreenDays:v,evergreenHours:_,evergreenMinutes:R,evergreenRestart:S}=e,{isDynamicEnabled:W,data:P}=id({attributeValue:s}),{isDynamicEnabled:U,data:j}=id({attributeValue:r}),{isDynamicEnabled:w,data:z}=id({attributeValue:b}),{isDynamicEnabled:C,data:A}=id({attributeValue:c});let L;(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${d} `);LW(t)
3001 +},[d,n,u,f,y,T,H,k,v,_,R,S]),L=k?1e3*(24*(v||0)*60*60+60*(_||0)*60+60*(R||0)):new Date(n).getTime()-Date.now();const N=Math.max(Math.floor(L/1e3%60),0),V=Math.max(Math.floor(L/6e4%60),0),O=Math.max(Math.floor(L/36e5%24),0),Y=Math.max(Math.floor(L/864e5),0),X=t=>{switch(t){case"day":return y||T||H;case"hour":return T||H;case"minute":return H;default:return!1}};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsxs)(Yb.A,{blockId:d,name:DW.UU,attributes:e,blockProps:{"data-target-time":n,"data-action":u,"data-action-message":p,"data-action-redirect-url":m,"data-evergreen":k?"true":"false","data-evergreen-days":v||0,"data-evergreen-hours":_||0,"data-evergreen-minutes":R||0,"data-evergreen-restart":S?"true":"false","data-block-id":d,"data-evergreen-version":`${v}-${_}-${R}`},children:[f&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(NW,{label:"day",value:Y,showLabel:x,children:W?P:s}),h&&X("day")&&(0,
3002 +I.jsx)(IW,{children:g})]}),y&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(NW,{label:"hour",value:O,showLabel:x,children:U?j:r}),h&&X("hour")&&(0,I.jsx)(IW,{children:g})]}),T&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(NW,{label:"minute",value:V,showLabel:x,children:w?z:b}),h&&X("minute")&&(0,I.jsx)(IW,{children:g})]}),H&&(0,I.jsx)(NW,{label:"second",value:N,showLabel:x,children:C?A:c})]})]})}VW.propTypes={};const OW=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),YW=(t,e="")=>{const{boxSize:i,boxRowGap:o,boxColumnGap:a}=t,l=(0,M.Zy)(t.mapHeight,{value:130,valueUnit:"px"}),n={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"min-height",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,unitDefaultValue:"px",property:"row-gap",device:e}),...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,unitDefaultValue:"px",
3003 +property:"column-gap",device:e})};return t?.orient?.["value"+e]&&(n["flex-direction"]=t.orient["value"+e]),t?.justificationAlign?.["value"+e]&&(n["justify-content"]=t.justificationAlign["value"+e]),t?.alignment?.["value"+e]&&(n["align-items"]=t.alignment["value"+e]),t?.wrapping?.["value"+e]&&(n["flex-wrap"]=t?.wrapping?.["value"+e]),n},XW=(t,e="")=>{const{orient:i,boxSize:o,numberAndLabelGap:a,boxBackgroundColor:l,labelPosition:n}=t,s=(0,Hs.qD)(l),r=n||"",b=(0,M.Zy)(t?.boxBorder,{unitWidth:"px",unitRadius:"px"}),d=(0,M.Zy)(t?.padding,{unit:"px"}),u="value"+e,p=i?.[u]??i?.value;let m={};m="column"===p||"column-reverse"===p?(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:130,unitDefaultValue:"px",property:"width",device:e}):{width:"130px"};const h={...m,...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:5,unitDefaultValue:"px",property:"gap",device:e}),...(0,H.qD)(t?.boxShadow,"box-shadow",e),...(0,y.qD)(b,e),...(0,
3004 +c.qD)(d,"padding",e)};return s&&(h.background=s),r&&(h["flex-direction"]=r),h},BW=(t,e="")=>{const i=(0,M.Zy)(t?.boxBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},EW=(t,e="")=>{const i={};"column"!==t?.labelPosition&&"column-reverse"!==t?.labelPosition||(i.width="100%",i.flex="1 1 30%",i.display="flex",i["justify-content"]="center",i["align-items"]="center");const o=(0,M.Zy)(t.labelTypography,{weight:"400"}),a=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.labelColor),background:(0,Hs.qD)(t?.labelBgColor),...(0,U.qD)(o,e,a),...i}},FW=(t,e="")=>{const i={};"column"!==t?.labelPosition&&"column-reverse"!==t?.labelPosition||(i.width="100%",i.flex="1 1 70%",i.display="flex",i["justify-content"]="center",i["align-items"]="center");const o=(0,M.Zy)(t.numberTypography,{weight:"400"}),a=t.numberTypographyGlobal?t.numberTypographyGlobal:"";return{color:(0,Hs.qD)(t?.numberColor),background:(0,Hs.qD)(t?.numberBgColor),
3005 +...(0,U.qD)(o,e,a),...i}},qW=(t,e)=>{const{separatorColor:i,separatorTypography:o}=t,a=(0,M.Zy)(o,{weight:"400"}),l=t.separatorTypographyGlobal?t.separatorTypographyGlobal:"",n={...(0,U.qD)(a,e,l)};return i&&(n.color=(0,Hs.qD)(i)),n};function $W(t){const{attributes:e}=t,{targetTime:i,dayLabel:o,hourLabel:a,minuteLabel:n,secondLabel:s,block_id:r,action:b,actionMessage:c,actionRedirectURL:d,showSeparator:u,separator:p,showDay:m,showHour:h,showMinute:g,showSecond:f,showLabels:y,evergreen:T,evergreenDays:H,evergreenHours:M,evergreenMinutes:x,evergreenRestart:k}=e,v=t=>{switch(t){case"day":return h||g||f;case"hour":return g||f;case"minute":return f;default:return!1}};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:r,name:DW.UU,attributes:e,blockProps:{"data-target-time":i,"data-action":b,"data-action-message":c,"data-action-redirect-url":d,"data-evergreen":T?"true":"false","data-evergreen-days":H||0,"data-evergreen-hours":M||0,"data-evergreen-minutes":x||0,
3006 +"data-evergreen-restart":k?"true":"false","data-block-id":r,"data-evergreen-version":`${H}-${M}-${x}`},children:[m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(NW,{label:"day",value:"00",showLabel:y,children:o}),u&&v("day")&&(0,I.jsx)(IW,{children:p})]}),h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(NW,{label:"hour",value:"00",showLabel:y,children:a}),u&&v("hour")&&(0,I.jsx)(IW,{children:p})]}),g&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(NW,{label:"minute",value:"00",showLabel:y,children:n}),u&&v("minute")&&(0,I.jsx)(IW,{children:p})]}),f&&(0,I.jsx)(NW,{label:"second",value:"00",showLabel:y,children:s})]})})}$W.propTypes={};const GW={UU:"ablocks/countdown",uK:{alignment:{type:"object",default:{value:"stretch",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",
3003 3007 transitionDuration:"0"}},boxBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,
3004 3008 commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},actionMessageTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",
3005 3009 letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},labelTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",
3006 3010 wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},numberTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},separatorTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",
@@ -3013,30 +3017,30 @@
3013 3017 imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",
3014 3018 imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",
3015 3019 offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",
3016 3020 offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",
3017 -yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function XW(t){const{attributes:e}=t,{targetTime:i,dayLabel:o,hourLabel:a,minuteLabel:n,secondLabel:s,block_id:r,action:b,actionMessage:c,actionRedirectURL:d,showSeparator:u,separator:p,showDay:m,showHour:h,showMinute:g,showSecond:f,showLabels:y}=e,T=t=>{switch(t){case"day":return h||g||f;case"hour":return g||f;case"minute":return f;default:return!1}};return(0,
3018 -I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:r,name:YW.UU,attributes:e,blockProps:{"data-target-time":i,"data-action":b,"data-action-message":c,"data-action-redirect-url":d},children:[m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"day",value:"00",showLabel:y,children:o}),u&&T("day")&&(0,I.jsx)(wW,{children:p})]}),h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"hour",value:"00",showLabel:y,children:a}),u&&T("hour")&&(0,I.jsx)(wW,{children:p})]}),g&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"minute",value:"00",showLabel:y,children:n}),u&&T("minute")&&(0,I.jsx)(wW,{children:p})]}),f&&(0,I.jsx)(jW,{label:"second",value:"00",showLabel:y,children:s})]})})}XW.propTypes={},(0,M.xV)(UW.UU)&&(0,o.registerBlockType)(UW.UU,{title:(0,L.__)("Countdown","ablocks"),attributes:UW.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-countdown"}),edit:function(t){
3019 -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{targetTime:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",CW(i),CW(i,"Tablet"),CW(i,"Mobile"),e(t=>CW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",AW(i),AW(i,"Tablet"),AW(i,"Mobile"),e(t=>AW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item",LW(i),LW(i,"Tablet"),LW(i,"Mobile"),e(t=>LW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item:hover",DW(i),DW(i,"Tablet"),DW(i,"Mobile"),e(t=>DW(i,t))),
3020 -t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item .ablocks-countdown-label",NW(i),NW(i,"Tablet"),NW(i,"Mobile"),e(t=>NW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item .ablocks-countdown-value",IW(i),IW(i,"Tablet"),IW(i,"Mobile"),e(t=>IW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__separator",VW(i),VW(i,"Tablet"),VW(i,"Mobile"),e(t=>VW(i,t))),(0,b.applyFilters)("ablocks.countdown.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,a.useEffect)(()=>{const t=new Date;t.setDate(t.getDate()+2),n||o({targetTime:t.toISOString()})},[l,n]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(SW,{...t}),(0,I.jsx)(zW,{...t})]})},save:OW,deprecated:[{attributes:YW.uK,save:XW}]});var BW=i(81905);const EW=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:sT,type:"mask-style",
3021 -optionalStyleControls:["size","gap"]},{label:"arrows",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:hT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:gT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}],FW=((0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,
3022 -L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Icon","ablocks"),value:"Icon"},{label:(0,L.__)("Shapes","ablocks"),value:"Shapes"},{label:(0,L.__)("Emoji","ablocks"),value:"Emoji"}]),qW=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Square","ablocks"),value:"solid"},{label:(0,L.__)("Circle","ablocks"),value:"dotted"},{label:(0,L.__)("Double","ablocks"),value:"double"},{label:(0,L.__)("Ridge","ablocks"),value:"ridge"},{label:(0,L.__)("Inset","ablocks"),value:"inset"},{label:(0,L.__)("Outset","ablocks"),value:"outset"}],$W=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}};function GW(t){
3023 -const{attributes:e,setAttributes:i,clientId:a}=t,{block_id:n,listsDirection:s,emoji:b,shapeType:c,shapeColor:d,shapeSize:u,markerType:p,iconAlignment:m,columnGap:h,innerGap:g,alignment:f,advanceListItemTextSize:y,listTextShadow:T,listTypography:H,textColor:x,advanceListItemTextTag:k,listTextStroke:v,dropCaps:_,dropCapsTextColor:R,allowDivider:S,dividerType:W,dividerPatternUrl:P,color:U,weight:j,width:w,size:z}=e,{updateBlockAttributes:C}=(0,r.useDispatch)("core/block-editor"),A=lt(),N=(0,M.Ic)(g,"valueUnit",A),O=EW?.find(t=>t.value===P),Y=O?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:z,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:BW.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:j,isInline:!1,
3024 -min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:BW.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advance-lists-block/",children:[(0,I.jsxs)(V,{title:(0,L.__)("Advance lists","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Hd,{label:(0,L.__)("Layout","ablocks"),options:[{label:(0,L.__)("Vertical","ablocks"),value:"row"},{label:(0,L.__)("Horizontal","ablocks"),value:"column"}],isResponsive:!0,attributeName:"listsDirection",attributeValue:s,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),options:[{label:"flex-start",value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"end",icon:"right"}],attributeName:"alignment",attributeValue:f,setAttributes:i,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Marker type","ablocks"),options:FW,attributeName:"markerType",
3025 -attributeValue:p,setAttributes:i}),"column"===s["value"+A]&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow divider","ablocks"),attributeValue:S,setAttributes:i,attributeName:"allowDivider"}),(0,I.jsx)(_t,{label:"row"===s["value"+A]?(0,L.__)("Column gap","ablocks"):(0,L.__)("Row Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"columnGap",attributeValue:h,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:BW.Dv}),(0,I.jsx)(_t,{label:(0,L.__)("Inner Gap","ablocks"),min:0,max:$W(N),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"innerGap",attributeValue:g,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:BW.WS}),(0,I.jsxs)("button",{className:"ablocks-advance-list-add-button",onClick:()=>{const t=(0,
3021 +yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function ZW(t){const{attributes:e}=t,{targetTime:i,dayLabel:o,hourLabel:a,minuteLabel:n,secondLabel:s,block_id:r,action:b,actionMessage:c,actionRedirectURL:d,showSeparator:u,separator:p,showDay:m,showHour:h,showMinute:g,showSecond:f,showLabels:y}=e,T=t=>{switch(t){case"day":return h||g||f;case"hour":return g||f;case"minute":return f;default:return!1}};return(0,
3022 +I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:r,name:GW.UU,attributes:e,blockProps:{"data-target-time":i,"data-action":b,"data-action-message":c,"data-action-redirect-url":d},children:[m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(NW,{label:"day",value:"00",showLabel:y,children:o}),u&&T("day")&&(0,I.jsx)(IW,{children:p})]}),h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(NW,{label:"hour",value:"00",showLabel:y,children:a}),u&&T("hour")&&(0,I.jsx)(IW,{children:p})]}),g&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(NW,{label:"minute",value:"00",showLabel:y,children:n}),u&&T("minute")&&(0,I.jsx)(IW,{children:p})]}),f&&(0,I.jsx)(NW,{label:"second",value:"00",showLabel:y,children:s})]})})}ZW.propTypes={},(0,M.xV)(DW.UU)&&(0,o.registerBlockType)(DW.UU,{title:(0,L.__)("Countdown","ablocks"),attributes:DW.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-countdown"}),edit:function(t){
3023 +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{targetTime:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",OW(i),OW(i,"Tablet"),OW(i,"Mobile"),e(t=>OW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",YW(i),YW(i,"Tablet"),YW(i,"Mobile"),e(t=>YW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item",XW(i),XW(i,"Tablet"),XW(i,"Mobile"),e(t=>XW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item:hover",BW(i),BW(i,"Tablet"),BW(i,"Mobile"),e(t=>BW(i,t))),
3024 +t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item .ablocks-countdown-label",EW(i),EW(i,"Tablet"),EW(i,"Mobile"),e(t=>EW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item .ablocks-countdown-value",FW(i),FW(i,"Tablet"),FW(i,"Mobile"),e(t=>FW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__separator",qW(i),qW(i,"Tablet"),qW(i,"Mobile"),e(t=>qW(i,t))),(0,b.applyFilters)("ablocks.countdown.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,a.useEffect)(()=>{const t=new Date;t.setDate(t.getDate()+2),n||o({targetTime:t.toISOString()})},[l,n]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(CW,{...t}),(0,I.jsx)(VW,{...t})]})},save:$W,deprecated:[{attributes:GW.uK,save:ZW}]});var KW=i(81905);const JW=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:sT,type:"mask-style",
3025 +optionalStyleControls:["size","gap"]},{label:"arrows",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:hT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:gT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}],QW=((0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,
3026 +L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Icon","ablocks"),value:"Icon"},{label:(0,L.__)("Shapes","ablocks"),value:"Shapes"},{label:(0,L.__)("Emoji","ablocks"),value:"Emoji"}]),tP=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Square","ablocks"),value:"solid"},{label:(0,L.__)("Circle","ablocks"),value:"dotted"},{label:(0,L.__)("Double","ablocks"),value:"double"},{label:(0,L.__)("Ridge","ablocks"),value:"ridge"},{label:(0,L.__)("Inset","ablocks"),value:"inset"},{label:(0,L.__)("Outset","ablocks"),value:"outset"}],eP=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}};function iP(t){
3027 +const{attributes:e,setAttributes:i,clientId:a}=t,{block_id:n,listsDirection:s,emoji:b,shapeType:c,shapeColor:d,shapeSize:u,markerType:p,iconAlignment:m,columnGap:h,innerGap:g,alignment:f,advanceListItemTextSize:y,listTextShadow:T,listTypography:H,textColor:x,advanceListItemTextTag:k,listTextStroke:v,dropCaps:_,dropCapsTextColor:R,allowDivider:S,dividerType:W,dividerPatternUrl:P,color:U,weight:j,width:w,size:z}=e,{updateBlockAttributes:C}=(0,r.useDispatch)("core/block-editor"),A=lt(),N=(0,M.Ic)(g,"valueUnit",A),O=JW?.find(t=>t.value===P),Y=O?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:z,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:KW.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:j,isInline:!1,
3028 +min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:KW.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advance-lists-block/",children:[(0,I.jsxs)(V,{title:(0,L.__)("Advance lists","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Hd,{label:(0,L.__)("Layout","ablocks"),options:[{label:(0,L.__)("Vertical","ablocks"),value:"row"},{label:(0,L.__)("Horizontal","ablocks"),value:"column"}],isResponsive:!0,attributeName:"listsDirection",attributeValue:s,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),options:[{label:"flex-start",value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"end",icon:"right"}],attributeName:"alignment",attributeValue:f,setAttributes:i,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Marker type","ablocks"),options:QW,attributeName:"markerType",
3029 +attributeValue:p,setAttributes:i}),"column"===s["value"+A]&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow divider","ablocks"),attributeValue:S,setAttributes:i,attributeName:"allowDivider"}),(0,I.jsx)(_t,{label:"row"===s["value"+A]?(0,L.__)("Column gap","ablocks"):(0,L.__)("Row Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"columnGap",attributeValue:h,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:KW.Dv}),(0,I.jsx)(_t,{label:(0,L.__)("Inner Gap","ablocks"),min:0,max:eP(N),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"innerGap",attributeValue:g,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:KW.WS}),(0,I.jsxs)("button",{className:"ablocks-advance-list-add-button",onClick:()=>{const t=(0,
3026 3030 r.select)("core/block-editor").getBlocks(a),i=(0,o.createBlock)("ablocks/advance-list-item");(0,r.dispatch)("core/block-editor").insertBlock(i,t.length,n),(()=>{const t=(0,r.select)("core/block-editor").getBlocks(a);t.length>0&&t.forEach(t=>{let i={markerType:p,allowDivider:S,alignment:f,listsDirection:s,innerGap:g,advanceListItemTextSize:y,textColor:x,advanceListItemTextTag:k,dropCaps:_,dropCapsTextColor:R,dividerType:W};i=((t,i)=>(["iconAlignment","emoji","shapeType","shapeColor","shapeSize"].forEach(o=>{!1===t.includes(o)&&(i[o]=e[o])}),i))(t.attributes.changedAttributes,i);const o=t.clientId;C(o,i)})})()},children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),(0,L.__)("Create new item","ablocks")]})]}),(()=>{if("Emoji"===p)return(0,I.jsx)(V,{title:(0,L.__)("Emoji","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["Emoji"===p&&(0,I.jsx)(Kl,{label:(0,L.__)("Emoji","ablocks"),attributeName:"emoji",attributeValue:b,
3027 3031 setAttributes:i,isInline:!1}),"none"!==p&&(0,I.jsx)(Jt,{label:(0,L.sprintf)(
3028 3032 // translators: %s marker type
3029 3033 // translators: %s marker type
3030 -(0,L.__)("%s Position","ablocks"),p),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:m,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:BW.LO})})})});if("none"===p);else if("Shapes"===p)return(0,I.jsx)(V,{title:p,initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Select Shape","ablocks"),options:qW,attributeName:"shapeType",attributeValue:c,setAttributes:i}),"none"!==p&&(0,I.jsx)(Jt,{label:(0,L.sprintf)(
3034 +(0,L.__)("%s Position","ablocks"),p),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:m,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:KW.LO})})})});if("none"===p);else if("Shapes"===p)return(0,I.jsx)(V,{title:p,initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Select Shape","ablocks"),options:tP,attributeName:"shapeType",attributeValue:c,setAttributes:i}),"none"!==p&&(0,I.jsx)(Jt,{label:(0,L.sprintf)(
3031 3035 // translators: %s marker type
3032 3036 // translators: %s marker type
3033 -(0,L.__)("%s Position","ablocks"),p),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:m,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"shapeColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:BW.LO})]})})})})(),(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"advanceListItemTextTag",attributeValue:k,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),isResponsive:!1,
3037 +(0,L.__)("%s Position","ablocks"),p),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:m,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"shapeColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:KW.LO})]})})})})(),(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"advanceListItemTextTag",attributeValue:k,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),isResponsive:!1,
3034 3038 options:[{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra Large","ablocks"),value:"xl"}],attributeValue:y||"md",attributeName:"advanceListItemTextSize",setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:"Drop caps",attributeValue:e.dropCaps,setAttributes:i,attributeName:"dropCaps"}),_&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"dropCapsTextColor",attributeValue:R,setAttributes:i})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"listTextShadow",attributeValue:T,setAttributes:i,
3035 -isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"listTextStroke",attributeValue:v,setAttributes:i,isResponsive:!0})]})})}),S&&"column"===s["value"+A]?(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:EW,attributeName:"dividerPatternUrl",attributeValue:P,onChangeHandler:t=>{const e=EW?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:w,setAttributes:i,hasUnit:!1,step:1,min:1,max:100,isInline:!1,attributeDefaultValue:BW.VL})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:U,setAttributes:i}),(0,I.jsx)(It,{}),Y]})})}):null]})})})}GW.propTypes={};var ZW=i(80777);const KW={name:Y().string,blockId:Y().string,
3036 -typography:Y().array,blockProps:Y().object},JW={},QW=t=>{const e=t?.fontFamily,i=t?.weight||"400",o=JW[e];e&&!o?.includes(i)&&(o?i&&o.push(i):JW[e]=i?[i]:[])};function tP({name:t,blockId:e,children:i,attributes:o={},typography:l,className:n="",blockProps:r={},context:c={}}){const d=(0,a.useRef)(null),u=d?.current,{_hide_on_desktop:p,_hide_on_tablet:m,_hide_on_mobile:h,_animation:g,overflow:f}=o;let y=(0,b.applyFilters)("ablocks.global.render_container_classes",{},o),T=(0,b.applyFilters)("ablocks.global.render_container_attributes",{},o),H=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:c,attributeValue:o?.className});const x=g?.animationType&&"none"!==g?.animationType||g?.animationTypeTablet&&"none"!==g?.animationTypeTablet||g?.animationTypeMobile&&"none"!==g?.animationTypeMobile,k={className:(0,oc.Z)({name:t,blockId:e,className:s()(n,H,{"ablocks-invisible":x,...y}),_hide_on_desktop:p,_hide_on_tablet:m,_hide_on_mobile:h}),...r},v={...x?g:{},...T}
3037 -;Dt().isEmpty(v)||(k["data-settings"]=JSON.stringify(v));const _=(0,D.useBlockProps)(k);if(Array.isArray(l))for(const t of l)QW(t);else for(const t in o)/typography/i.test(t)&&QW(o[t]);(0,a.useEffect)(()=>{Object.keys(JW).length>0&&(0,U.Kx)(JW,u)},Object.keys(JW).concat(Object.values(JW).reduce((t,e)=>t.concat(e),[])).concat(u)),(0,a.useEffect)(()=>{new ZW.A((0,M.bu)(`.ablocks-block-${e}`))},[g?.animationType,g?.animationTypeTablet,g?.animationTypeMobile]);const{videoSource:R,vimeoURL:S,youtubeURL:W,introPortrait:P,introTitle:j,introByline:w,videoPlayOnce:z=!1,fallbackImageUrl:C="",preload:A="",videoUrl:L="",videoStartTime:N="",videoEndTime:V="",externalLink:O=!1,selfHostedURL:Y="",videoPrivacyMode:X}=o?._background||{};let B;const E=(0,oc.U)(N,V),F="color"===o?._background?.backgroundTypeH&&""!==o?._background?.backgroundColorH||"image"===o?._background?.backgroundTypeH&&""!==o?._background?.backgroundImageH;if("none"!==R)switch(R){case"selfHosted":B=(0,I.jsx)("video",{src:(O?Y:L)+E,
3038 -autoPlay:!0,muted:!0,loop:!z,preload:A,controls:!1,controlsList:"",className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F})});break;case"youtube":B=(0,I.jsx)(ac.A,{block_id:e,autoplay:!0,mute:!0,loop:!z,youtubeURL:W,videoStartTime:N,videoEndTime:V,externalLink:O,selfHostedURL:Y,playerControl:!1,privacyMode:X,className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F}),isBackground:!0});break;case"vimeo":B=(0,I.jsx)(lc.A,{block_id:e,autoplay:!0,mute:!0,loop:!z,vimeoURL:S,privacyMode:X,videoStartTime:N,introPortrait:P,introTitle:j,introByline:w,isBackground:!0,className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F})});break;default:B=void 0}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(lR.A,{}),(0,I.jsxs)("div",{..._,children:[(0,I.jsx)(aR.A,{blockId:e,name:t,overflow:f}),"video"===o?._background?.backgroundType&&B,(0,I.jsx)("div",{className:"ablocks-block-container",ref:d,children:i})]})]})}tP.propTypes=KW;const eP={
3039 +isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"listTextStroke",attributeValue:v,setAttributes:i,isResponsive:!0})]})})}),S&&"column"===s["value"+A]?(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:JW,attributeName:"dividerPatternUrl",attributeValue:P,onChangeHandler:t=>{const e=JW?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:w,setAttributes:i,hasUnit:!1,step:1,min:1,max:100,isInline:!1,attributeDefaultValue:KW.VL})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:U,setAttributes:i}),(0,I.jsx)(It,{}),Y]})})}):null]})})})}iP.propTypes={};var oP=i(80777);const aP={name:Y().string,blockId:Y().string,
3040 +typography:Y().array,blockProps:Y().object},lP={},nP=t=>{const e=t?.fontFamily,i=t?.weight||"400",o=lP[e];e&&!o?.includes(i)&&(o?i&&o.push(i):lP[e]=i?[i]:[])};function sP({name:t,blockId:e,children:i,attributes:o={},typography:l,className:n="",blockProps:r={},context:c={}}){const d=(0,a.useRef)(null),u=d?.current,{_hide_on_desktop:p,_hide_on_tablet:m,_hide_on_mobile:h,_animation:g,overflow:f}=o;let y=(0,b.applyFilters)("ablocks.global.render_container_classes",{},o),T=(0,b.applyFilters)("ablocks.global.render_container_attributes",{},o),H=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:c,attributeValue:o?.className});const x=g?.animationType&&"none"!==g?.animationType||g?.animationTypeTablet&&"none"!==g?.animationTypeTablet||g?.animationTypeMobile&&"none"!==g?.animationTypeMobile,k={className:(0,oc.Z)({name:t,blockId:e,className:s()(n,H,{"ablocks-invisible":x,...y}),_hide_on_desktop:p,_hide_on_tablet:m,_hide_on_mobile:h}),...r},v={...x?g:{},...T}
3041 +;Dt().isEmpty(v)||(k["data-settings"]=JSON.stringify(v));const _=(0,D.useBlockProps)(k);if(Array.isArray(l))for(const t of l)nP(t);else for(const t in o)/typography/i.test(t)&&nP(o[t]);(0,a.useEffect)(()=>{Object.keys(lP).length>0&&(0,U.Kx)(lP,u)},Object.keys(lP).concat(Object.values(lP).reduce((t,e)=>t.concat(e),[])).concat(u)),(0,a.useEffect)(()=>{new oP.A((0,M.bu)(`.ablocks-block-${e}`))},[g?.animationType,g?.animationTypeTablet,g?.animationTypeMobile]);const{videoSource:R,vimeoURL:S,youtubeURL:W,introPortrait:P,introTitle:j,introByline:w,videoPlayOnce:z=!1,fallbackImageUrl:C="",preload:A="",videoUrl:L="",videoStartTime:N="",videoEndTime:V="",externalLink:O=!1,selfHostedURL:Y="",videoPrivacyMode:X}=o?._background||{};let B;const E=(0,oc.U)(N,V),F="color"===o?._background?.backgroundTypeH&&""!==o?._background?.backgroundColorH||"image"===o?._background?.backgroundTypeH&&""!==o?._background?.backgroundImageH;if("none"!==R)switch(R){case"selfHosted":B=(0,I.jsx)("video",{src:(O?Y:L)+E,
3042 +autoPlay:!0,muted:!0,loop:!z,preload:A,controls:!1,controlsList:"",className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F})});break;case"youtube":B=(0,I.jsx)(ac.A,{block_id:e,autoplay:!0,mute:!0,loop:!z,youtubeURL:W,videoStartTime:N,videoEndTime:V,externalLink:O,selfHostedURL:Y,playerControl:!1,privacyMode:X,className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F}),isBackground:!0});break;case"vimeo":B=(0,I.jsx)(lc.A,{block_id:e,autoplay:!0,mute:!0,loop:!z,vimeoURL:S,privacyMode:X,videoStartTime:N,introPortrait:P,introTitle:j,introByline:w,isBackground:!0,className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F})});break;default:B=void 0}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(uR.A,{}),(0,I.jsxs)("div",{..._,children:[(0,I.jsx)(dR.A,{blockId:e,name:t,overflow:f}),"video"===o?._background?.backgroundType&&B,(0,I.jsx)("div",{className:"ablocks-block-container",ref:d,children:i})]})]})}sP.propTypes=aP;const rP={
3039 3043 UU:"ablocks/advance-lists",uK:{block_id:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",default:"black"},emoji:{type:"string",default:"👍"},allowDivider:{type:"boolean",default:!1},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:"#0f2aff"},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:"#000000"},dividerPatternUrl:{type:"string",default:"solid"},dividerType:{type:"string",default:"css-style"},color:{type:"string",default:"black"},alignment:{type:"object",default:{value:"start",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string",
3040 3044 default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",
3041 3045 unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{
3042 3046 type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",
@@ -3048,12 +3052,12 @@
3048 3052 imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{
3049 3053 zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,
3050 3054 rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",
3051 3055 maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,
3052 -easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},iP=({handleNewMenuItem:t})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{icon:"plus",label:(0,L.__)("Add item","ablocks"),onClick:t})});function oP(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s,iconAlignment:b,emoji:c,shapeType:d,shapeColor:u,shapeSize:p,alignment:m,markerType:h,allowDivider:g,listsDirection:f,innerGap:y,advanceListItemTextSize:T,textColor:H,advanceListItemTextTag:M,dropCaps:x,dropCapsTextColor:k,dividerType:v}=e,{updateBlockAttributes:_}=(0,r.useDispatch)("core/block-editor"),R=()=>{const t=(0,r.select)("core/block-editor").getBlocks(i)
3053 -;t.length>0&&t.forEach(t=>{let i={markerType:h,allowDivider:g,alignment:m,listsDirection:f,innerGap:y,advanceListItemTextSize:T,textColor:H,advanceListItemTextTag:M,dropCaps:x,dropCapsTextColor:k,dividerType:v};i=((t,i)=>(["iconAlignment","emoji","shapeType","shapeColor","shapeSize"].forEach(o=>{!1===t.includes(o)&&(i[o]=e[o])}),i))(t.attributes.changedAttributes,i);const o=t.clientId;_(o,i)})};return(0,a.useEffect)(()=>{n&&R()},[b,c,d,u,p,h,g,m,f,y,T,H,M,x,k,v]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(iP,{handleNewMenuItem:()=>{const t=(0,r.select)("core/block-editor").getBlocks(i),e=(0,o.createBlock)("ablocks/advance-list-item");(0,r.dispatch)("core/block-editor").insertBlock(e,t.length,s),R()}}),(0,I.jsx)(tP,{blockId:s,name:eP.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/advance-list-item",{}],["ablocks/advance-list-item",{}],["ablocks/advance-list-item",{}]],
3054 -allowedBlocks:["ablocks/advance-list-item"]})})]})}oP.propTypes={};const aP=(t,e="")=>{const i=[];return t.listsDirection["value"+e]&&(i["flex-direction"]=t.listsDirection["value"+e]),{...i,...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,Zt.qD)(t?.alignment,"row"===t.listsDirection["value"+e]?"justify-content":"align-items",e),...(0,Eb.qD)({attributeValue:t?.columnGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:null,hasUnit:!0,unitDefaultValue:"px",device:e})}},lP=(t,e="")=>{const i=(0,M.Zy)(t.listTypography,{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.listTextStroke,e),...(0,fc.qD)(t?.listTextShadow)}},nP=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)}),sP=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),
3055 -t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Eb.qD)({attributeValue:t?.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:100,hasUnit:!1,unitDefaultValue:"%",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}};function rP(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:eP.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}rP.propTypes={};const bP={UU:"ablocks/advance-lists",uK:{block_id:{
3056 +easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},bP=({handleNewMenuItem:t})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{icon:"plus",label:(0,L.__)("Add item","ablocks"),onClick:t})});function cP(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s,iconAlignment:b,emoji:c,shapeType:d,shapeColor:u,shapeSize:p,alignment:m,markerType:h,allowDivider:g,listsDirection:f,innerGap:y,advanceListItemTextSize:T,textColor:H,advanceListItemTextTag:M,dropCaps:x,dropCapsTextColor:k,dividerType:v}=e,{updateBlockAttributes:_}=(0,r.useDispatch)("core/block-editor"),R=()=>{const t=(0,r.select)("core/block-editor").getBlocks(i)
3057 +;t.length>0&&t.forEach(t=>{let i={markerType:h,allowDivider:g,alignment:m,listsDirection:f,innerGap:y,advanceListItemTextSize:T,textColor:H,advanceListItemTextTag:M,dropCaps:x,dropCapsTextColor:k,dividerType:v};i=((t,i)=>(["iconAlignment","emoji","shapeType","shapeColor","shapeSize"].forEach(o=>{!1===t.includes(o)&&(i[o]=e[o])}),i))(t.attributes.changedAttributes,i);const o=t.clientId;_(o,i)})};return(0,a.useEffect)(()=>{n&&R()},[b,c,d,u,p,h,g,m,f,y,T,H,M,x,k,v]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(bP,{handleNewMenuItem:()=>{const t=(0,r.select)("core/block-editor").getBlocks(i),e=(0,o.createBlock)("ablocks/advance-list-item");(0,r.dispatch)("core/block-editor").insertBlock(e,t.length,s),R()}}),(0,I.jsx)(sP,{blockId:s,name:rP.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/advance-list-item",{}],["ablocks/advance-list-item",{}],["ablocks/advance-list-item",{}]],
3058 +allowedBlocks:["ablocks/advance-list-item"]})})]})}cP.propTypes={};const dP=(t,e="")=>{const i=[];return t.listsDirection["value"+e]&&(i["flex-direction"]=t.listsDirection["value"+e]),{...i,...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,Zt.qD)(t?.alignment,"row"===t.listsDirection["value"+e]?"justify-content":"align-items",e),...(0,Eb.qD)({attributeValue:t?.columnGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:null,hasUnit:!0,unitDefaultValue:"px",device:e})}},uP=(t,e="")=>{const i=(0,M.Zy)(t.listTypography,{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.listTextStroke,e),...(0,fc.qD)(t?.listTextShadow)}},pP=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)}),mP=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),
3059 +t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Eb.qD)({attributeValue:t?.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:100,hasUnit:!1,unitDefaultValue:"%",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}};function hP(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:rP.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}hP.propTypes={};const gP={UU:"ablocks/advance-lists",uK:{block_id:{
3056 3060 type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",default:"black"},emoji:{type:"string",default:"👍"},allowDivider:{type:"boolean",default:!1},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:"#0f2aff"},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:"#000000"},dividerPatternUrl:{type:"string",default:"solid"},dividerType:{type:"string",default:"css-style"},color:{type:"string",default:"black"},alignment:{type:"object",default:{value:"start",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string",default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",
3057 3061 source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,
3058 3062 isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},
3059 3063 iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",
@@ -3065,13 +3069,13 @@
3065 3069 imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",
3066 3070 rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",
3067 3071 offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",
3068 3072 xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},
3069 -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function cP(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:bP.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}cP.propTypes={},(0,M.xV)(eP.UU)&&(0,o.registerBlockType)(eP.UU,{title:(0,L.__)("Advance lists","ablocks"),attributes:eP.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-lists .ablocks-block-container .block-editor-inner-blocks .block-editor-block-list__layout",aP(i),aP(i,"Tablet"),aP(i,"Mobile"),t.customDeviceMap(t=>aP(i,t))),
3070 -t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text",lP(i),lP(i,"Tablet"),lP(i,"Mobile"),t.customDeviceMap(t=>lP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text-drop-caps::first-letter",nP(i),nP(i),nP(i),t.customDeviceMap(t=>nP(i))),t.addClassStyles("{{WRAPPER}} .ablocks-advance-list-item-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),sP(i),sP(i,"Tablet"),sP(i,"Mobile"),t.customDeviceMap(t=>sP(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(GW,{...t}),(0,I.jsx)(oP,{...t})]})},save:rP,deprecated:[{attributes:bP.uK,save:cP}]});const dP=[{label:(0,L.__)("dashed","ablocks"),type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:(0,L.__)("square","ablocks"),value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("slashes","ablocks"),value:sT,type:"mask-style",
3073 +_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function fP(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:gP.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}fP.propTypes={},(0,M.xV)(rP.UU)&&(0,o.registerBlockType)(rP.UU,{title:(0,L.__)("Advance lists","ablocks"),attributes:rP.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-lists .ablocks-block-container .block-editor-inner-blocks .block-editor-block-list__layout",dP(i),dP(i,"Tablet"),dP(i,"Mobile"),t.customDeviceMap(t=>dP(i,t))),
3074 +t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text",uP(i),uP(i,"Tablet"),uP(i,"Mobile"),t.customDeviceMap(t=>uP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text-drop-caps::first-letter",pP(i),pP(i),pP(i),t.customDeviceMap(t=>pP(i))),t.addClassStyles("{{WRAPPER}} .ablocks-advance-list-item-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),mP(i),mP(i,"Tablet"),mP(i,"Mobile"),t.customDeviceMap(t=>mP(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(iP,{...t}),(0,I.jsx)(cP,{...t})]})},save:hP,deprecated:[{attributes:gP.uK,save:fP}]});const yP=[{label:(0,L.__)("dashed","ablocks"),type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:(0,L.__)("square","ablocks"),value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("slashes","ablocks"),value:sT,type:"mask-style",
3071 3075 optionalStyleControls:["size","gap"]},{label:(0,L.__)("arrows","ablocks"),value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("pluses","ablocks"),value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("dots","ablocks"),value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("solid","ablocks"),type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:(0,L.__)("firTree","ablocks"),value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("halfRound","ablocks"),value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("leaves","ablocks"),value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("stripes","ablocks"),value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("tress","ablocks"),value:hT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("tribal","ablocks"),value:gT,
3072 -type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("x","ablocks"),value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}];(0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");var uP=i(22478);(0,L.__)("None","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Shapes","ablocks"),(0,L.__)("Emoji","ablocks");const pP=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Square","ablocks"),value:"solid"},{label:(0,L.__)("Circle","ablocks"),value:"dotted"},{label:(0,L.__)("Double","ablocks"),value:"double"},{label:(0,L.__)("Ridge","ablocks"),value:"ridge"},{label:(0,L.__)("Inset","ablocks"),value:"inset"},{label:(0,L.__)("Outset","ablocks"),value:"outset"}];function mP(t){
3073 -const{attributes:e,setAttributes:i}=t,{markerType:o,shapeType:a,shapeColor:n,shapeSize:s,listsDirection:r,allowDivider:b,isLastChild:c,emoji:d,iconAlignment:u,advanceListItemTextSize:p,listTextShadow:m,listTypography:h,textColor:g,advanceListItemText:f,advanceListItemTextTag:y,listTextStroke:T,dropCaps:H,dropCapsTextColor:M,dividerPatternUrl:x,color:k,weight:v,width:_,size:R,link:S}=e,W=lt(),P=dP?.find(t=>t.value===x),U=P?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:uP.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:v,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:uP.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,
3076 +type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("x","ablocks"),value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}];(0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");var TP=i(22478);(0,L.__)("None","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Shapes","ablocks"),(0,L.__)("Emoji","ablocks");const HP=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Square","ablocks"),value:"solid"},{label:(0,L.__)("Circle","ablocks"),value:"dotted"},{label:(0,L.__)("Double","ablocks"),value:"double"},{label:(0,L.__)("Ridge","ablocks"),value:"ridge"},{label:(0,L.__)("Inset","ablocks"),value:"inset"},{label:(0,L.__)("Outset","ablocks"),value:"outset"}];function MP(t){
3077 +const{attributes:e,setAttributes:i}=t,{markerType:o,shapeType:a,shapeColor:n,shapeSize:s,listsDirection:r,allowDivider:b,isLastChild:c,emoji:d,iconAlignment:u,advanceListItemTextSize:p,listTextShadow:m,listTypography:h,textColor:g,advanceListItemText:f,advanceListItemTextTag:y,listTextStroke:T,dropCaps:H,dropCapsTextColor:M,dividerPatternUrl:x,color:k,weight:v,width:_,size:R,link:S}=e,W=lt(),P=yP?.find(t=>t.value===x),U=P?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:TP.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:v,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:TP.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,
3074 3078 I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Advance list Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the advance list settings to customize its styles effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advance-lists-block/",children:["Icon"===o?(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),"none"!==o&&(0,I.jsx)(Jt,{label:(0,L.sprintf)(
3075 3079 // translators: %s marker type
3076 3080 // translators: %s marker type
3077 3081 (0,L.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})})}):"Emoji"===o?(0,I.jsx)(V,{title:(0,L.__)("Emoji","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["Emoji"===o&&(0,I.jsx)(Kl,{label:(0,L.__)("Emoji","ablocks"),attributeName:"emoji",attributeValue:d,setAttributes:i,isInline:!1}),"none"!==o&&(0,I.jsx)(Jt,{label:(0,L.sprintf)(
@@ -3076,15 +3080,15 @@
3076 3080 // translators: %s marker type
3077 3081 (0,L.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})})}):"Emoji"===o?(0,I.jsx)(V,{title:(0,L.__)("Emoji","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["Emoji"===o&&(0,I.jsx)(Kl,{label:(0,L.__)("Emoji","ablocks"),attributeName:"emoji",attributeValue:d,setAttributes:i,isInline:!1}),"none"!==o&&(0,I.jsx)(Jt,{label:(0,L.sprintf)(
3078 3082 // translators: %s marker type
3079 3083 // translators: %s marker type
3080 -(0,L.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:uP.LO})})})}):"none"!==o?(0,I.jsx)(V,{title:o,initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Select Shape","ablocks"),options:pP,attributeName:"shapeType",attributeValue:a,setAttributes:i}),"none"!==o&&(0,I.jsx)(Jt,{label:(0,L.sprintf)(
3084 +(0,L.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:TP.LO})})})}):"none"!==o?(0,I.jsx)(V,{title:o,initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Select Shape","ablocks"),options:HP,attributeName:"shapeType",attributeValue:a,setAttributes:i}),"none"!==o&&(0,I.jsx)(Jt,{label:(0,L.sprintf)(
3081 3085 // translators: %s marker type
3082 3086 // translators: %s marker type
3083 -(0,L.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"shapeColor",attributeValue:n,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:uP.LO})]})})}):void 0,(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{attributeName:"advanceListItemText",attributeValue:f,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:S,
3087 +(0,L.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"shapeColor",attributeValue:n,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:TP.LO})]})})}):void 0,(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{attributeName:"advanceListItemText",attributeValue:f,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:S,
3084 3088 setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"advanceListItemTextTag",attributeValue:y,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra Large","ablocks"),value:"xl"}],attributeValue:p||"md",attributeName:"advanceListItemTextSize",setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Drop caps","ablocks"),attributeValue:e.dropCaps,setAttributes:i,attributeName:"dropCaps"}),H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"dropCapsTextColor",attributeValue:M,setAttributes:i})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:g,setAttributes:i}),(0,
3085 -I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"listTextShadow",attributeValue:m,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"listTextStroke",attributeValue:T,setAttributes:i,isResponsive:!0})]})})}),b&&!c&&"column"===r["value"+W]?(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:dP,attributeName:"dividerPatternUrl",attributeValue:x,onChangeHandler:t=>{const e=dP?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:_,setAttributes:i,hasUnit:!1,step:1,min:1,max:100,isInline:!1,attributeDefaultValue:uP.VL
3086 -})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:k,setAttributes:i}),(0,I.jsx)(It,{}),U]})})}):null]})]})})}mP.propTypes={};const hP=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],gP={UU:"ablocks/advance-list-item",$t:["ablocks/advance-lists"],uK:{block_id:{type:"string",default:""},changedAttributes:{type:"array",default:[]},device:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",default:"black"},markerColor:{type:"string",default:""},allowDivider:{type:"boolean",default:!1},isLastChild:{type:"boolean",default:!1},emoji:{type:"string",default:"👍"},advanceListItemText:{type:"string",
3089 +I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"listTextShadow",attributeValue:m,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"listTextStroke",attributeValue:T,setAttributes:i,isResponsive:!0})]})})}),b&&!c&&"column"===r["value"+W]?(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:yP,attributeName:"dividerPatternUrl",attributeValue:x,onChangeHandler:t=>{const e=yP?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:_,setAttributes:i,hasUnit:!1,step:1,min:1,max:100,isInline:!1,attributeDefaultValue:TP.VL
3090 +})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:k,setAttributes:i}),(0,I.jsx)(It,{}),U]})})}):null]})]})})}MP.propTypes={};const xP=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],kP={UU:"ablocks/advance-list-item",$t:["ablocks/advance-lists"],uK:{block_id:{type:"string",default:""},changedAttributes:{type:"array",default:[]},device:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",default:"black"},markerColor:{type:"string",default:""},allowDivider:{type:"boolean",default:!1},isLastChild:{type:"boolean",default:!1},emoji:{type:"string",default:"👍"},advanceListItemText:{type:"string",
3087 3091 source:"html",selector:".ablocks-advance-list-item-text",default:"Task Checklist"},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:""},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:""},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},iconSvgPath:{type:"string",default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{
3088 3092 type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",
3089 3093 isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",
3090 3094 default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",
@@ -3096,15 +3100,15 @@
3096 3100 imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",
3097 3101 offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,
3098 3102 scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",
3099 3103 yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],
3100 -items:{type:"object"}}}},fP=({allowDivider:t,dividerType:e,listsDirection:i,deviceType:o})=>{if(t&&"column"===i["value"+o])return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function yP(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,listsDirection:b,alignment:c,iconAlignment:d,emoji:u,shapeType:p,shapeColor:m,shapeSize:h,advanceListItemText:g,markerType:f,isLastChild:y,allowDivider:T,advanceListItemTextTag:H,dropCaps:M,advanceListItemTextSize:x,dividerType:k,dividerPatternUrl:v,color:_,size:R,weight:S,link:W={}}=e,{href:P="",linkTarget:U,noFollow:j,keyValue:w}=W;let z={className:"ablocks-advance-list-item-link"};P&&(z.href=P),U&&(z.target="_blank"),z.rel=j?U?"nofollow noreferrer noopener":"nofollow":"noopener",w&&(z={...z,...(0,wb.jM)(w)});const C=lt();(0,a.useEffect)(()=>{i({device:C})},[C]);const A=(0,
3104 +items:{type:"object"}}}},vP=({allowDivider:t,dividerType:e,listsDirection:i,deviceType:o})=>{if(t&&"column"===i["value"+o])return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function _P(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,listsDirection:b,alignment:c,iconAlignment:d,emoji:u,shapeType:p,shapeColor:m,shapeSize:h,advanceListItemText:g,markerType:f,isLastChild:y,allowDivider:T,advanceListItemTextTag:H,dropCaps:M,advanceListItemTextSize:x,dividerType:k,dividerPatternUrl:v,color:_,size:R,weight:S,link:W={}}=e,{href:P="",linkTarget:U,noFollow:j,keyValue:w}=W;let z={className:"ablocks-advance-list-item-link"};P&&(z.href=P),U&&(z.target="_blank"),z.rel=j?U?"nofollow noreferrer noopener":"nofollow":"noopener",w&&(z={...z,...(0,wb.jM)(w)});const C=lt();(0,a.useEffect)(()=>{i({device:C})},[C]);const A=(0,
3101 3105 r.useSelect)(t=>{const{getBlockIndex:e,getBlockCount:i,getBlockRootClientId:a}=t("core/block-editor"),l=a(o);return e(o,l)===i(l)-1},[o]);(0,a.useEffect)(()=>{i({isLastChild:A})},[A]);const N=(0,r.useSelect)(t=>{const{getBlockParents:e}=t("core/block-editor"),i=e(o).length;if(i>1){const a=e(o)?.[i-1];return t("core/block-editor").getBlockAttributes(a)}const a=e(o)?.[0];return t("core/block-editor").getBlockAttributes(a)},[o]);(0,a.useEffect)(()=>{const t=Array.isArray(e.changedAttributes)?[...e.changedAttributes]:[];["emoji","shapeType","shapeColor"].forEach(i=>{""!==e[i]&&e[i]!==N?.[i]&&(t.includes(i)||t.push(i))}),i({changedAttributes:t})},[u,p,m]),(0,a.useEffect)(()=>{const t=Array.isArray(e.changedAttributes)?[...e.changedAttributes]:[],o=["value","valueMobile","valueTablet"];["shapeSize","iconAlignment"].forEach(i=>{o.forEach(o=>{e[i]?.[o]&&N?.[i]?.[o]&&e[i][o]!==N[i][o]&&!t.includes(i)&&t.push(i)})}),i({changedAttributes:t})},[h,d]),(0,a.useEffect)(()=>{v&&""===_&&i({
3102 -color:N.color}),"mask-style"===k?v&&null===R&&i({size:N.size}):v&&null===S&&i({weight:N.weight})},[v]);const V=lt();return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i,options:hP})}),(0,I.jsxs)(tP,{blockId:n,name:gP.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[(0,I.jsxs)("a",{...z,children:["Icon"===f?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===f?(0,I.jsx)(D.RichText,{tagName:"span",value:u,className:"emoji advance-list-item-marker"}):"none"!==f?(0,I.jsx)("span",{className:`advance-list-item-${p} advance-list-item-marker`}):void 0,(0,I.jsx)($c,{tagName:H,value:g,className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${x}`,{"ablocks-advance-list-item-text-drop-caps":M}),onChange:t=>i({advanceListItemText:t}),placeholder:(0,L.__)("Add your paragraph text","ablocks")})]}),!y&&(0,I.jsx)(fP,{allowDivider:T,dividerType:k,listsDirection:b,
3103 -deviceType:V})]})]})}yP.propTypes={};const TP=(t,e="")=>({...[],...(0,Zt.qD)(t?.alignment,"justify-items",e),...(0,Eb.qD)({attributeValue:t?.innerGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:null,hasUnit:!0,unitDefaultValue:"px",device:e})}),HP=(t,e="")=>{const i=[];i.margin="auto";const o=(0,M.Ic)(t?.iconAlignment,"value",e);return"row"===o?i.order=1:"row-reverse"===o&&(i.order=2),i},MP=(t,e="")=>{const i=[];return t.shapeColor&&"Shapes"===t.markerType&&(i["border-color"]=`${(0,Hs.qD)(t?.shapeColor)} !important`),t.shapeSize["value"+e]&&("Emoji"===t.markerType?i["font-size"]=t.shapeSize["value"+e]+"px":"inset"===t.shapeType||"outset"===t.shapeType||"ridge"===t.shapeType?i.border=`${t.shapeSize["value"+e]}px ${t.shapeType}`:(i["border-bottom"]=`${t.shapeSize["value"+e]}px ${t.shapeType}`,i.width=t.shapeSize["value"+e]+"px")),i},xP=(t,e="")=>{const i={},o=(0,M.Ic)(t?.iconAlignment,"value",e);"row"===o?i.order=2:"row-reverse"===o&&(i.order=1);const a=(0,
3104 -M.Zy)(t.listTypography,{weight:"400"}),l=t.listTypographyGlobal?t.listTypographyGlobal:"";return{...i,color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(a,e,l),...(0,Mc.qD)(t?.listTextStroke,e),...(0,fc.qD)(t?.listTextShadow)}},kP=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)}),vP=(t,e="")=>{const i={order:3};return"row"===t.listsDirection["value"+e]?i.display="none":i.display="block",t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Zt.qD)(t?.alignment,"justify-self",e),...(0,Eb.qD)({attributeValue:t?.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:null,hasUnit:!1,unitDefaultValue:"%",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",
3105 -defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}},_P=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function RP(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m,link:h={}}=e,{href:g="",linkTarget:f,noFollow:y,keyValue:T}=h;let H={className:"ablocks-advance-list-item-link"};g&&(H.href=g),f&&(H.target="_blank"),H.rel=y?f?"nofollow noreferrer noopener":"nofollow":"noopener",T&&(H={...H,...(0,wb.jM)(T)})
3106 -;const M=/<a[\s>]/i.test(a||""),x=M?"div":"a",k=M?{className:"ablocks-advance-list-item-link"}:H;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:gP.UU,attributes:e,children:[(0,I.jsxs)(x,{...k,children:["Icon"===n?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===n?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,I.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,I.jsx)(D.RichText.Content,{tagName:d,value:a,className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})})]}),!c&&(0,I.jsx)(_P,{allowDivider:b,dividerType:m})]})})}RP.propTypes={};const SP={UU:"ablocks/advance-list-item",uK:{block_id:{type:"string",default:""},changedAttributes:{type:"array",default:[]},device:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",
3106 +color:N.color}),"mask-style"===k?v&&null===R&&i({size:N.size}):v&&null===S&&i({weight:N.weight})},[v]);const V=lt();return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i,options:xP})}),(0,I.jsxs)(sP,{blockId:n,name:kP.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[(0,I.jsxs)("a",{...z,children:["Icon"===f?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===f?(0,I.jsx)(D.RichText,{tagName:"span",value:u,className:"emoji advance-list-item-marker"}):"none"!==f?(0,I.jsx)("span",{className:`advance-list-item-${p} advance-list-item-marker`}):void 0,(0,I.jsx)($c,{tagName:H,value:g,className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${x}`,{"ablocks-advance-list-item-text-drop-caps":M}),onChange:t=>i({advanceListItemText:t}),placeholder:(0,L.__)("Add your paragraph text","ablocks")})]}),!y&&(0,I.jsx)(vP,{allowDivider:T,dividerType:k,listsDirection:b,
3107 +deviceType:V})]})]})}_P.propTypes={};const RP=(t,e="")=>({...[],...(0,Zt.qD)(t?.alignment,"justify-items",e),...(0,Eb.qD)({attributeValue:t?.innerGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:null,hasUnit:!0,unitDefaultValue:"px",device:e})}),SP=(t,e="")=>{const i=[];i.margin="auto";const o=(0,M.Ic)(t?.iconAlignment,"value",e);return"row"===o?i.order=1:"row-reverse"===o&&(i.order=2),i},WP=(t,e="")=>{const i=[];return t.shapeColor&&"Shapes"===t.markerType&&(i["border-color"]=`${(0,Hs.qD)(t?.shapeColor)} !important`),t.shapeSize["value"+e]&&("Emoji"===t.markerType?i["font-size"]=t.shapeSize["value"+e]+"px":"inset"===t.shapeType||"outset"===t.shapeType||"ridge"===t.shapeType?i.border=`${t.shapeSize["value"+e]}px ${t.shapeType}`:(i["border-bottom"]=`${t.shapeSize["value"+e]}px ${t.shapeType}`,i.width=t.shapeSize["value"+e]+"px")),i},PP=(t,e="")=>{const i={},o=(0,M.Ic)(t?.iconAlignment,"value",e);"row"===o?i.order=2:"row-reverse"===o&&(i.order=1);const a=(0,
3108 +M.Zy)(t.listTypography,{weight:"400"}),l=t.listTypographyGlobal?t.listTypographyGlobal:"";return{...i,color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(a,e,l),...(0,Mc.qD)(t?.listTextStroke,e),...(0,fc.qD)(t?.listTextShadow)}},UP=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)}),jP=(t,e="")=>{const i={order:3};return"row"===t.listsDirection["value"+e]?i.display="none":i.display="block",t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Zt.qD)(t?.alignment,"justify-self",e),...(0,Eb.qD)({attributeValue:t?.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:null,hasUnit:!1,unitDefaultValue:"%",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",
3109 +defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}},wP=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function zP(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m,link:h={}}=e,{href:g="",linkTarget:f,noFollow:y,keyValue:T}=h;let H={className:"ablocks-advance-list-item-link"};g&&(H.href=g),f&&(H.target="_blank"),H.rel=y?f?"nofollow noreferrer noopener":"nofollow":"noopener",T&&(H={...H,...(0,wb.jM)(T)})
3110 +;const M=/<a[\s>]/i.test(a||""),x=M?"div":"a",k=M?{className:"ablocks-advance-list-item-link"}:H;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:kP.UU,attributes:e,children:[(0,I.jsxs)(x,{...k,children:["Icon"===n?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===n?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,I.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,I.jsx)(D.RichText.Content,{tagName:d,value:a,className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})})]}),!c&&(0,I.jsx)(wP,{allowDivider:b,dividerType:m})]})})}zP.propTypes={};const CP={UU:"ablocks/advance-list-item",uK:{block_id:{type:"string",default:""},changedAttributes:{type:"array",default:[]},device:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",
3107 3111 default:"black"},markerColor:{type:"string",default:""},allowDivider:{type:"boolean",default:!1},isLastChild:{type:"boolean",default:!1},emoji:{type:"string",default:"👍"},advanceListItemText:{type:"string",source:"html",selector:".ablocks-advance-list-item-text",default:"Task Checklist"},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:""},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:""},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},iconSvgPath:{type:"string",default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",
3108 3112 attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,
3109 3113 commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,
3110 3114 valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",
@@ -3116,26 +3120,26 @@
3116 3120 imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",
3117 3121 offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",
3118 3122 offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",
3119 3123 yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{
3120 -type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},WP=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function PP(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:SP.UU,attributes:e,children:["Icon"===n?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===n?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,I.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,I.jsx)(D.RichText.Content,{tagName:d,value:a,
3121 -className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})}),!c&&(0,I.jsx)(WP,{allowDivider:b,dividerType:m})]})})}PP.propTypes={};const UP='<a class="ablocks-advance-list-item-link"[^>]*>([\\s\\S]*?)<\\/a>',jP=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function wP(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m,link:h={}}=e,{href:g="",linkTarget:f,noFollow:y,keyValue:T}=h;let H={className:"ablocks-advance-list-item-link"};return g&&(H.href=g),f&&(H.target="_blank"),H.rel=y?f?"nofollow noreferrer noopener":"nofollow":"noopener",T&&(H={...H,...(0,wb.jM)(T)
3122 -}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:gP.UU,attributes:e,children:[(0,I.jsxs)("a",{...H,children:["Icon"===n?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===n?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,I.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,I.jsx)(D.RichText.Content,{tagName:d,value:(M=a,"string"!=typeof M?M:M.replace(new RegExp("^"+UP),"$1")),className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})})]}),!c&&(0,I.jsx)(jP,{allowDivider:b,dividerType:m})]})});var M}wP.propTypes={},(0,M.xV)(gP.UU,gP.$t[0])&&(0,o.registerBlockType)(gP.UU,{title:(0,L.__)("Advance list item","ablocks"),attributes:gP.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,
3123 -a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-block-container .ablocks-advance-list-item-link",TP(i),TP(i,"Tablet"),TP(i,"Mobile"),t.customDeviceMap(t=>TP(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .advance-list-item-marker",MP(i),MP(i,"Tablet"),MP(i,"Mobile"),t.customDeviceMap(t=>MP(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .advance-list-item-marker,{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-icon-wrap",HP(i),HP(i,"Tablet"),HP(i,"Mobile"),t.customDeviceMap(t=>HP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.fW)(i,t))),
3124 -t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text, {{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text a",xP(i),xP(i,"Tablet"),xP(i,"Mobile"),t.customDeviceMap(t=>xP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text-drop-caps::first-letter",kP(i),kP(i),kP(i),t.customDeviceMap(t=>kP(i))),t.addClassStyles("{{WRAPPER}} .ablocks-advance-list-item-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),vP(i),vP(i,"Tablet"),vP(i,"Mobile"),t.customDeviceMap(t=>vP(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s
3125 -}),e&&(0,I.jsx)(mP,{...t}),(0,I.jsx)(yP,{...t})]})},save:RP,deprecated:[{attributes:gP.uK,save:wP,migrate:t=>{return{...t,advanceListItemText:(e=t.advanceListItemText,"string"!=typeof e?e:e.replace(new RegExp(UP,"g"),"$1"))};var e}},{attributes:SP.uK,save:PP}]});var zP=i(11276);const CP=(t,e,i,o)=>{const a=AP(t,e,o),{title:l,imgUrl:n,imgUrlTablet:s,imgUrlMobile:r,imgId:b}=a,c=e?.imgUrl,{imgId:d,imgIdTablet:u,imgIdMobile:p}=e||{};let m;const h={};let g;"Tablet"===o?(m={imgUrl:c||n,imgUrlTablet:s||n},p||(m.imgUrlMobile=r||n),g={...e?.widthHeightWidget}):"Mobile"===o?(m={imgUrl:c||n,imgUrlMobile:r||s||n},g={...e?.widthHeightWidget}):(m={imgUrl:n},u||(m.imgUrlTablet=s||n),p||(m.imgUrlMobile=r||n),g={...e?.widthHeightWidget}),d?h["imgId"+o]=b:h.imgId=b,o||!u&&!p||(h.showNotice=!0),i({...h,imgTitle:l,...m,widthHeightWidget:(0,M.jI)(zP.aY,{...zP.aY,...g})})},AP=t=>{const{id:e,url:i,width:o,height:a,title:l}=t;let n;n=t?.sizes?t?.sizes:t?.media_details?.sizes
3126 -;const s=n?.large?.width,r=n?.large?.height;return{imgId:e,title:l,imgNaturalWidth:s||o,imgNaturalHeight:r||a,width:s||o,height:r||a,imgUrl:n?.large?.url||i,widthTablet:s||o,heightTablet:r||a,imgUrlTablet:i,widthMobile:s||o,heightMobile:r||a,imgUrlMobile:i}},LP=t=>{const e=[];for(const i in t)if(Object.hasOwnProperty.call(t,i)){const t=i.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");e.push({label:t,value:i})}return e},DP=((0,L.__)("Thumbnail","ablocks"),(0,L.__)("Medium","ablocks"),(0,L.__)("Large","ablocks"),(0,L.__)("Full","ablocks"),(0,L.__)("Custom","ablocks"),(0,L.__)("None","ablocks"),(0,L.__)("Media File","ablocks"),(0,L.__)("Custom URL","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Fill","ablocks"),(0,L.__)("Cover","ablocks"),(0,L.__)("Contain","ablocks"),[{label:(0,L.__)("Mouse Scroll","ablocks"),value:"mouse-scroll"},{label:(0,L.__)("Top to Bottom","ablocks"),value:"top-to-bottom"},{label:(0,L.__)("Bottom to Top","ablocks"),value:"bottom-to-top"},{
3127 -label:(0,L.__)("Horizontal Scroll","ablocks"),value:"horizontal-scroll"},{label:(0,L.__)("Left To Right","ablocks"),value:"left-to-right"},{label:(0,L.__)("Right To Left","ablocks"),value:"right-to-left"}]);function NP(t){const{attributes:e,setAttributes:i,isSelected:o,setCurrentImageData:n}=t,{imgId:s,imgIdTablet:b,imgIdMobile:c,imageDataAttribute:d,opacity:u,opacityH:p,cssFilter:m,cssHoverFilter:h,filterTransitionDuration:g,scrollHeight:f,scrollWidth:y,overlayColor:T,showOverlay:H,showIcon:M,iconFontSize:x,iconColor:k,link:v}=e,_=lt(),[R,S]=(0,a.useState)([]);let W;W="Tablet"===_?b||s:"Mobile"===_&&(c||b)||s;const{image:P}=(0,r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:W&&o?e(W):null}},[o,W]);(0,a.useEffect)(()=>{if(null!==P){i({imageDataAttribute:P});const t=P?.media_details?.sizes,e=LP(t);S(e),n(P)}else{const t=d?.media_details?.sizes,e=LP(t);S(e),n(d)}},[P]);const U=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Is,{setAttributes:i,allowedTypes:["image"],
3128 -attributeValue:e,attributeName:"imgUrl",deviceType:_,onSelectImageHandler:t=>CP(t,e,i,_),onRemoveImageHandler:()=>{i({imgId:void 0,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:void 0,imgUrlTablet:void 0,imgUrlMobile:void 0,widthHeightWidget:{...e?.widthHeightWidget,imgNaturalWidth:void 0,imgNaturalHeight:void 0,width:void 0,widthTablet:void 0,widthMobile:void 0,height:void 0,heightTablet:void 0,heightMobile:void 0}})}}),R?.length>0&&(0,I.jsx)(Ut,{label:(0,L.__)("Images Sizes","ablocks"),isResponsive:!0,options:R,attributeName:"imgSize",attributeObjectKey:"value",attributeValue:e?.imgSize,setAttributes:i,onChangeHandler:t=>{let o;o=((t,e)=>{const{media_details:{sizes:i}}=t;if("custom"===e)return{width:i.large?.width,height:i.large?.height,url:i.large?.source_url,objectFit:"cover"};const o=i[e],{width:a,height:l,source_url:n}=o;return{width:a,height:l,url:n}})(null===P?d:P,t);const{url:a,objectFit:l,aspectRatio:n}=o;return i({["imgUrl"+_]:a,imgSize:{...e?.imgSize,["value"+_]:t},
3129 -widthHeightWidget:{...e?.widthHeightWidget},objectFit:{...e?.objectFit,["value"+_]:l||e?.objectFit["value"+_]},aspectRatio:{...e?.aspectRatio,["value"+_]:n||e?.aspectRatio["value"+_]}})}}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),min:0,max:1600,step:1,isInline:!1,isResponsive:!0,attributeName:"scrollHeight",attributeValue:f,setAttributes:i,attributeDefaultValue:zP.zE}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,unitOptions:[{label:"%",value:"%"}],attributeName:"scrollWidth",attributeValue:y,setAttributes:i,attributeDefaultValue:zP.oF}),(0,I.jsx)(Ut,{label:(0,L.__)("Image Scroll Option","ablocks"),isResponsive:!1,options:DP,attributeName:"imageScrollOption",attributeValue:e.imageScrollOption,attributeObjectKey:"value",setAttributes:i}),(0,I.jsx)(As,{label:(0,L.__)("Speed (s)","ablocks"),attributeName:"transitionTime",attributeValue:e?.transitionTime,setAttributes:i,isInline:!0}),(0,I.jsx)(Ot,{isResponsive:!1,
3130 -label:(0,L.__)("Show Overlay","ablocks"),attributeValue:e?.showOverlay,setAttributes:i,attributeName:"showOverlay"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Icon","ablocks"),attributeValue:e?.showIcon,setAttributes:i,attributeName:"showIcon"}),M&&(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"iconFontSize",attributeValue:x,setAttributes:i,attributeDefaultValue:zP.IV}),(0,I.jsx)(Kl,{label:(0,L.__)("Title","ablocks"),attributeName:"imgTitle",attributeValue:e.imgTitle,setAttributes:i,isInline:!1}),(0,I.jsxs)("div",{className:"ablocks-alt-text-control",children:[(0,I.jsxs)("div",{className:"ablocks-alt-text-control__header",children:[(0,I.jsx)("span",{children:(0,L.__)("Alt Text","ablocks")}),(0,I.jsx)("span",{onClick:()=>{i({imgAltText:""})},onKeyDown:()=>{},role:"presentation",className:"ablocks-alt-text-control__clear",children:(0,L.__)("clear","ablocks")})]}),(0,I.jsx)(Kl,{
3131 -attributeName:"imgAltText",attributeValue:e.imgAltText,setAttributes:i,isInline:!1})]}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:v,setAttributes:i})]}),j=(0,I.jsxs)(I.Fragment,{children:[H&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Overlay Color","ablocks"),attributeName:"overlayColor",attributeValue:T,setAttributes:i})}),M&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:k,setAttributes:i})}),(0,I.jsx)(at,{label:(0,L.__)("Filter & Opacity","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:m,attributeName:"cssFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacity",attributeValue:u,setAttributes:i,attributeDefaultValue:zP.ke})]}),
3132 -hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:h,attributeName:"cssHoverFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:p,setAttributes:i,attributeDefaultValue:zP.md}),(0,I.jsx)(_t,{label:(0,L.__)("Transition duration(ms)","ablocks"),min:0,max:10,step:.5,isInline:!1,isResponsive:!1,setAttributes:i,attributeName:"filterTransitionDuration",attributeValue:g,attributeDefaultValue:zP.yy})]})}),(0,I.jsx)(It,{margin:"20"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{margin:"20"})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Image","ablocks"),initialOpen:!0,
3133 -children:(0,I.jsx)(Ub,{content:U,style:j})})})})})}function IP(t){const{toggleSelection:e}=(0,r.useDispatch)(D.store),{setAttributes:i,isSelected:o,attributes:a,containerRef:l,currentImageData:n={}}=t,{imgAltText:s,imgTitle:b,alignment:c,imgSize:d,widthHeightWidget:u,imageScrollOption:p}=a,m=lt(),h="Mobile"===m?d.valueMobile||d.valueTablet||d.value:"large",g="Tablet"===m?d.valueTablet||d.value:h,f=m?g:d.value,y=n?.media_details?.sizes?.[f]||{},T=y.width,H=y.height,M=u["width"+m],x=u["height"+m],k=a[`imgUrl${m}`]||a.imgUrlMobile||a.imgUrlTablet||a.imgUrl,{maxWidth:v}=(0,r.useSelect)(t=>{const{getSettings:e}=t(D.store),{maxWidth:i}=e();return{maxWidth:i}},[]),_=2*v,R=T/H,S=((t,e)=>{const[i,o]=(0,Yt.useState)();return(0,Yt.useEffect)(()=>{o(t.current.offsetWidth);const e=()=>{o(t.current.offsetWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(l,[c,m]),W=((t,e)=>{const[i,o]=(0,Yt.useState)();return(0,Yt.useEffect)(()=>{
3134 -o(t.current.offsetHeight);const e=()=>{o(t.current.offsetHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(l,[c,m]);let P=!0,U=!1;"center"===c?.value?(P=!0,U=!0):"right"===c?.value&&(P=!1,U=!0);const j=u["width"+m]||"auto",w=u["height"+m]||"auto",z="horizontal-scroll"===p.value||"left-to-right"===p.value||"right-to-left"===p.value;return(0,I.jsx)(N.ResizableBox,{size:{width:j,height:w},showHandle:o,minHeight:50,minWidth:50,maxWidth:_,maxHeight:_/R,lockAspectRatio:!0,enable:{top:!1,bottom:!0,left:U,right:P},onResizeStop:(t,o,l,n)=>{(t=>{const o=Math.abs(M?parseInt(M)+t.width:S+t.width),l=Math.abs(x?parseInt(x)+t.height:W+t.height),n={...a?.widthHeightWidget,["width"+m]:o,["height"+m]:l,["showHeight"+m]:!1};i({widthHeightWidget:n}),e(!0)})(t)},onResizeStart:function(){e(!1)},children:(0,I.jsx)("img",{src:k,alt:s,title:b,loading:"lazy",style:{width:z?"none":"100%",height:"100%"}})})}function VP(t){const e=(0,
3135 -a.useRef)(),{attributes:i}=t,{imgUrl:o,imageScrollOption:l,scrollHeight:n,transitionTime:s,showOverlay:r,showIcon:b,link:c}=i,{href:d,linkTarget:u,noFollow:p,keyValue:m}=c||{};let h={};u&&(h.target="_blank"),h.rel=p?u?"nofollow noreferrer noopener":"nofollow":"noopener",m&&(h={...h,...(0,wb.jM)(m)});const g=lt();let f;return o&&(f=d?(0,I.jsx)("a",{...h,children:(0,I.jsx)(IP,{...t,containerRef:e})}):(0,I.jsx)(IP,{...t,containerRef:e})),(0,I.jsxs)(I.Fragment,{children:[r&&(0,I.jsx)("div",{className:"ablocks-block-image-overlay"}),b&&(0,I.jsx)("div",{className:"ablocks-icon ablocks-icon-wrap",children:(0,I.jsx)(Fd,{customIconData:{
3124 +type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},AP=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function LP(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:CP.UU,attributes:e,children:["Icon"===n?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===n?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,I.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,I.jsx)(D.RichText.Content,{tagName:d,value:a,
3125 +className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})}),!c&&(0,I.jsx)(AP,{allowDivider:b,dividerType:m})]})})}LP.propTypes={};const DP='<a class="ablocks-advance-list-item-link"[^>]*>([\\s\\S]*?)<\\/a>',NP=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function IP(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m,link:h={}}=e,{href:g="",linkTarget:f,noFollow:y,keyValue:T}=h;let H={className:"ablocks-advance-list-item-link"};return g&&(H.href=g),f&&(H.target="_blank"),H.rel=y?f?"nofollow noreferrer noopener":"nofollow":"noopener",T&&(H={...H,...(0,wb.jM)(T)
3126 +}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:kP.UU,attributes:e,children:[(0,I.jsxs)("a",{...H,children:["Icon"===n?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===n?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,I.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,I.jsx)(D.RichText.Content,{tagName:d,value:(M=a,"string"!=typeof M?M:M.replace(new RegExp("^"+DP),"$1")),className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})})]}),!c&&(0,I.jsx)(NP,{allowDivider:b,dividerType:m})]})});var M}IP.propTypes={},(0,M.xV)(kP.UU,kP.$t[0])&&(0,o.registerBlockType)(kP.UU,{title:(0,L.__)("Advance list item","ablocks"),attributes:kP.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,
3127 +a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-block-container .ablocks-advance-list-item-link",RP(i),RP(i,"Tablet"),RP(i,"Mobile"),t.customDeviceMap(t=>RP(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .advance-list-item-marker",WP(i),WP(i,"Tablet"),WP(i,"Mobile"),t.customDeviceMap(t=>WP(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .advance-list-item-marker,{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-icon-wrap",SP(i),SP(i,"Tablet"),SP(i,"Mobile"),t.customDeviceMap(t=>SP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.fW)(i,t))),
3128 +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text, {{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text a",PP(i),PP(i,"Tablet"),PP(i,"Mobile"),t.customDeviceMap(t=>PP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text-drop-caps::first-letter",UP(i),UP(i),UP(i),t.customDeviceMap(t=>UP(i))),t.addClassStyles("{{WRAPPER}} .ablocks-advance-list-item-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),jP(i),jP(i,"Tablet"),jP(i,"Mobile"),t.customDeviceMap(t=>jP(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s
3129 +}),e&&(0,I.jsx)(MP,{...t}),(0,I.jsx)(_P,{...t})]})},save:zP,deprecated:[{attributes:kP.uK,save:IP,migrate:t=>{return{...t,advanceListItemText:(e=t.advanceListItemText,"string"!=typeof e?e:e.replace(new RegExp(DP,"g"),"$1"))};var e}},{attributes:CP.uK,save:LP}]});var VP=i(11276);const OP=(t,e,i,o)=>{const a=YP(t,e,o),{title:l,imgUrl:n,imgUrlTablet:s,imgUrlMobile:r,imgId:b}=a,c=e?.imgUrl,{imgId:d,imgIdTablet:u,imgIdMobile:p}=e||{};let m;const h={};let g;"Tablet"===o?(m={imgUrl:c||n,imgUrlTablet:s||n},p||(m.imgUrlMobile=r||n),g={...e?.widthHeightWidget}):"Mobile"===o?(m={imgUrl:c||n,imgUrlMobile:r||s||n},g={...e?.widthHeightWidget}):(m={imgUrl:n},u||(m.imgUrlTablet=s||n),p||(m.imgUrlMobile=r||n),g={...e?.widthHeightWidget}),d?h["imgId"+o]=b:h.imgId=b,o||!u&&!p||(h.showNotice=!0),i({...h,imgTitle:l,...m,widthHeightWidget:(0,M.jI)(VP.aY,{...VP.aY,...g})})},YP=t=>{const{id:e,url:i,width:o,height:a,title:l}=t;let n;n=t?.sizes?t?.sizes:t?.media_details?.sizes
3130 +;const s=n?.large?.width,r=n?.large?.height;return{imgId:e,title:l,imgNaturalWidth:s||o,imgNaturalHeight:r||a,width:s||o,height:r||a,imgUrl:n?.large?.url||i,widthTablet:s||o,heightTablet:r||a,imgUrlTablet:i,widthMobile:s||o,heightMobile:r||a,imgUrlMobile:i}},XP=t=>{const e=[];for(const i in t)if(Object.hasOwnProperty.call(t,i)){const t=i.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");e.push({label:t,value:i})}return e},BP=((0,L.__)("Thumbnail","ablocks"),(0,L.__)("Medium","ablocks"),(0,L.__)("Large","ablocks"),(0,L.__)("Full","ablocks"),(0,L.__)("Custom","ablocks"),(0,L.__)("None","ablocks"),(0,L.__)("Media File","ablocks"),(0,L.__)("Custom URL","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Fill","ablocks"),(0,L.__)("Cover","ablocks"),(0,L.__)("Contain","ablocks"),[{label:(0,L.__)("Mouse Scroll","ablocks"),value:"mouse-scroll"},{label:(0,L.__)("Top to Bottom","ablocks"),value:"top-to-bottom"},{label:(0,L.__)("Bottom to Top","ablocks"),value:"bottom-to-top"},{
3131 +label:(0,L.__)("Horizontal Scroll","ablocks"),value:"horizontal-scroll"},{label:(0,L.__)("Left To Right","ablocks"),value:"left-to-right"},{label:(0,L.__)("Right To Left","ablocks"),value:"right-to-left"}]);function EP(t){const{attributes:e,setAttributes:i,isSelected:o,setCurrentImageData:n}=t,{imgId:s,imgIdTablet:b,imgIdMobile:c,imageDataAttribute:d,opacity:u,opacityH:p,cssFilter:m,cssHoverFilter:h,filterTransitionDuration:g,scrollHeight:f,scrollWidth:y,overlayColor:T,showOverlay:H,showIcon:M,iconFontSize:x,iconColor:k,link:v}=e,_=lt(),[R,S]=(0,a.useState)([]);let W;W="Tablet"===_?b||s:"Mobile"===_&&(c||b)||s;const{image:P}=(0,r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:W&&o?e(W):null}},[o,W]);(0,a.useEffect)(()=>{if(null!==P){i({imageDataAttribute:P});const t=P?.media_details?.sizes,e=XP(t);S(e),n(P)}else{const t=d?.media_details?.sizes,e=XP(t);S(e),n(d)}},[P]);const U=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Is,{setAttributes:i,allowedTypes:["image"],
3132 +attributeValue:e,attributeName:"imgUrl",deviceType:_,onSelectImageHandler:t=>OP(t,e,i,_),onRemoveImageHandler:()=>{i({imgId:void 0,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:void 0,imgUrlTablet:void 0,imgUrlMobile:void 0,widthHeightWidget:{...e?.widthHeightWidget,imgNaturalWidth:void 0,imgNaturalHeight:void 0,width:void 0,widthTablet:void 0,widthMobile:void 0,height:void 0,heightTablet:void 0,heightMobile:void 0}})}}),R?.length>0&&(0,I.jsx)(Ut,{label:(0,L.__)("Images Sizes","ablocks"),isResponsive:!0,options:R,attributeName:"imgSize",attributeObjectKey:"value",attributeValue:e?.imgSize,setAttributes:i,onChangeHandler:t=>{let o;o=((t,e)=>{const{media_details:{sizes:i}}=t;if("custom"===e)return{width:i.large?.width,height:i.large?.height,url:i.large?.source_url,objectFit:"cover"};const o=i[e],{width:a,height:l,source_url:n}=o;return{width:a,height:l,url:n}})(null===P?d:P,t);const{url:a,objectFit:l,aspectRatio:n}=o;return i({["imgUrl"+_]:a,imgSize:{...e?.imgSize,["value"+_]:t},
3133 +widthHeightWidget:{...e?.widthHeightWidget},objectFit:{...e?.objectFit,["value"+_]:l||e?.objectFit["value"+_]},aspectRatio:{...e?.aspectRatio,["value"+_]:n||e?.aspectRatio["value"+_]}})}}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),min:0,max:1600,step:1,isInline:!1,isResponsive:!0,attributeName:"scrollHeight",attributeValue:f,setAttributes:i,attributeDefaultValue:VP.zE}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,unitOptions:[{label:"%",value:"%"}],attributeName:"scrollWidth",attributeValue:y,setAttributes:i,attributeDefaultValue:VP.oF}),(0,I.jsx)(Ut,{label:(0,L.__)("Image Scroll Option","ablocks"),isResponsive:!1,options:BP,attributeName:"imageScrollOption",attributeValue:e.imageScrollOption,attributeObjectKey:"value",setAttributes:i}),(0,I.jsx)(As,{label:(0,L.__)("Speed (s)","ablocks"),attributeName:"transitionTime",attributeValue:e?.transitionTime,setAttributes:i,isInline:!0}),(0,I.jsx)(Ot,{isResponsive:!1,
3134 +label:(0,L.__)("Show Overlay","ablocks"),attributeValue:e?.showOverlay,setAttributes:i,attributeName:"showOverlay"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Icon","ablocks"),attributeValue:e?.showIcon,setAttributes:i,attributeName:"showIcon"}),M&&(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"iconFontSize",attributeValue:x,setAttributes:i,attributeDefaultValue:VP.IV}),(0,I.jsx)(Kl,{label:(0,L.__)("Title","ablocks"),attributeName:"imgTitle",attributeValue:e.imgTitle,setAttributes:i,isInline:!1}),(0,I.jsxs)("div",{className:"ablocks-alt-text-control",children:[(0,I.jsxs)("div",{className:"ablocks-alt-text-control__header",children:[(0,I.jsx)("span",{children:(0,L.__)("Alt Text","ablocks")}),(0,I.jsx)("span",{onClick:()=>{i({imgAltText:""})},onKeyDown:()=>{},role:"presentation",className:"ablocks-alt-text-control__clear",children:(0,L.__)("clear","ablocks")})]}),(0,I.jsx)(Kl,{
3135 +attributeName:"imgAltText",attributeValue:e.imgAltText,setAttributes:i,isInline:!1})]}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:v,setAttributes:i})]}),j=(0,I.jsxs)(I.Fragment,{children:[H&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Overlay Color","ablocks"),attributeName:"overlayColor",attributeValue:T,setAttributes:i})}),M&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:k,setAttributes:i})}),(0,I.jsx)(at,{label:(0,L.__)("Filter & Opacity","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:m,attributeName:"cssFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacity",attributeValue:u,setAttributes:i,attributeDefaultValue:VP.ke})]}),
3136 +hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:h,attributeName:"cssHoverFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:p,setAttributes:i,attributeDefaultValue:VP.md}),(0,I.jsx)(_t,{label:(0,L.__)("Transition duration(ms)","ablocks"),min:0,max:10,step:.5,isInline:!1,isResponsive:!1,setAttributes:i,attributeName:"filterTransitionDuration",attributeValue:g,attributeDefaultValue:VP.yy})]})}),(0,I.jsx)(It,{margin:"20"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{margin:"20"})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Image","ablocks"),initialOpen:!0,
3137 +children:(0,I.jsx)(Ub,{content:U,style:j})})})})})}function FP(t){const{toggleSelection:e}=(0,r.useDispatch)(D.store),{setAttributes:i,isSelected:o,attributes:a,containerRef:l,currentImageData:n={}}=t,{imgAltText:s,imgTitle:b,alignment:c,imgSize:d,widthHeightWidget:u,imageScrollOption:p}=a,m=lt(),h="Mobile"===m?d.valueMobile||d.valueTablet||d.value:"large",g="Tablet"===m?d.valueTablet||d.value:h,f=m?g:d.value,y=n?.media_details?.sizes?.[f]||{},T=y.width,H=y.height,M=u["width"+m],x=u["height"+m],k=a[`imgUrl${m}`]||a.imgUrlMobile||a.imgUrlTablet||a.imgUrl,{maxWidth:v}=(0,r.useSelect)(t=>{const{getSettings:e}=t(D.store),{maxWidth:i}=e();return{maxWidth:i}},[]),_=2*v,R=T/H,S=((t,e)=>{const[i,o]=(0,Yt.useState)();return(0,Yt.useEffect)(()=>{o(t.current.offsetWidth);const e=()=>{o(t.current.offsetWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(l,[c,m]),W=((t,e)=>{const[i,o]=(0,Yt.useState)();return(0,Yt.useEffect)(()=>{
3138 +o(t.current.offsetHeight);const e=()=>{o(t.current.offsetHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(l,[c,m]);let P=!0,U=!1;"center"===c?.value?(P=!0,U=!0):"right"===c?.value&&(P=!1,U=!0);const j=u["width"+m]||"auto",w=u["height"+m]||"auto",z="horizontal-scroll"===p.value||"left-to-right"===p.value||"right-to-left"===p.value;return(0,I.jsx)(N.ResizableBox,{size:{width:j,height:w},showHandle:o,minHeight:50,minWidth:50,maxWidth:_,maxHeight:_/R,lockAspectRatio:!0,enable:{top:!1,bottom:!0,left:U,right:P},onResizeStop:(t,o,l,n)=>{(t=>{const o=Math.abs(M?parseInt(M)+t.width:S+t.width),l=Math.abs(x?parseInt(x)+t.height:W+t.height),n={...a?.widthHeightWidget,["width"+m]:o,["height"+m]:l,["showHeight"+m]:!1};i({widthHeightWidget:n}),e(!0)})(t)},onResizeStart:function(){e(!1)},children:(0,I.jsx)("img",{src:k,alt:s,title:b,loading:"lazy",style:{width:z?"none":"100%",height:"100%"}})})}function qP(t){const e=(0,
3139 +a.useRef)(),{attributes:i}=t,{imgUrl:o,imageScrollOption:l,scrollHeight:n,transitionTime:s,showOverlay:r,showIcon:b,link:c}=i,{href:d,linkTarget:u,noFollow:p,keyValue:m}=c||{};let h={};u&&(h.target="_blank"),h.rel=p?u?"nofollow noreferrer noopener":"nofollow":"noopener",m&&(h={...h,...(0,wb.jM)(m)});const g=lt();let f;return o&&(f=d?(0,I.jsx)("a",{...h,children:(0,I.jsx)(FP,{...t,containerRef:e})}):(0,I.jsx)(FP,{...t,containerRef:e})),(0,I.jsxs)(I.Fragment,{children:[r&&(0,I.jsx)("div",{className:"ablocks-block-image-overlay"}),b&&(0,I.jsx)("div",{className:"ablocks-icon ablocks-icon-wrap",children:(0,I.jsx)(Fd,{customIconData:{
3136 3140 path:"M7.67993 9.84002V14.16C7.67993 16.536 9.62393 18.48 11.9999 18.48C14.3759 18.48 16.3199 16.536 16.3199 14.16V9.84002C16.3199 7.46402 14.3759 5.52002 11.9999 5.52002C9.62393 5.52002 7.67993 7.46402 7.67993 9.84002ZM11.9999 6.48002C13.8479 6.48002 15.3599 7.99202 15.3599 9.84002V14.16C15.3599 16.008 13.8479 17.52 11.9999 17.52C10.1519 17.52 8.63993 16.008 8.63993 14.16V9.84002C8.63993 7.99202 10.1519 6.48002 11.9999 6.48002Z M12 10.5602C12.264 10.5602 12.48 10.3442 12.48 10.0802V8.64016C12.48 8.37616 12.264 8.16016 12 8.16016C11.736 8.16016 11.52 8.37616 11.52 8.64016V10.0802C11.52 10.3442 11.736 10.5602 12 10.5602Z M11.6638 22.1762C11.7598 22.2722 11.8798 22.3202 11.9998 22.3202C12.1198 22.3202 12.2398 22.2722 12.3358 22.1762L13.5358 20.9762C13.7278 20.7842 13.7278 20.4962 13.5358 20.3042C13.3438 20.1122 13.0558 20.1122 12.8638 20.3042L11.9998 21.1682L11.1358 20.3042C10.9438 20.1122 10.6558 20.1122 10.4638 20.3042C10.2718 20.4962 10.2718 20.7842 10.4638 20.9762L11.6638 22.1762Z M11.6638 1.82418L10.4638 3.02418C10.2718 3.21618 10.2718 3.50418 10.4638 3.69618C10.5598 3.79218 10.6798 3.84018 10.7998 3.84018C10.9198 3.84018 11.0398 3.79218 11.1358 3.69618L11.9998 2.83218L12.8638 3.69618C12.9598 3.79218 13.0798 3.84018 13.1998 3.84018C13.3198 3.84018 13.4398 3.79218 13.5358 3.69618C13.7278 3.50418 13.7278 3.21618 13.5358 3.02418L12.3358 1.82418C12.1438 1.63218 11.8558 1.63218 11.6638 1.82418Z",
3137 -viewBox:"0 0 24 24"},style:{fill:(0,Hs.qD)(i?.iconColor)||"black"}})}),(0,I.jsx)("figure",{className:"ablocks-image-scroll__figure",ref:e,"data-scroll-option":l.value,"data-scroll-height":n?.["value"+g]??n?.value??0,"data-transition-time":s,children:f})]})}(0,L.__)("Static","ablocks"),(0,L.__)("Zoom in","ablocks"),(0,L.__)("Slide","ablocks"),(0,L.__)("Gray scale","ablocks"),(0,L.__)("Blur","ablocks"),(0,L.__)("Custom","ablocks"),(0,L.__)("Original","ablocks"),(0,L.__)("Square - 1:1","ablocks"),(0,L.__)("Standard - 4:3","ablocks"),(0,L.__)("Portrait - 3:4","ablocks"),(0,L.__)("Classic - 3:2","ablocks"),(0,L.__)("Classic Portrait - 2:3","ablocks"),(0,L.__)("Wide - 16:9","ablocks"),(0,L.__)("Tall - 9:16","ablocks"),NP.propTypes={},IP.propTypes={},VP.propTypes={};const OP={UU:"ablocks/image-scroll",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute",
3141 +viewBox:"0 0 24 24"},style:{fill:(0,Hs.qD)(i?.iconColor)||"black"}})}),(0,I.jsx)("figure",{className:"ablocks-image-scroll__figure",ref:e,"data-scroll-option":l.value,"data-scroll-height":n?.["value"+g]??n?.value??0,"data-transition-time":s,children:f})]})}(0,L.__)("Static","ablocks"),(0,L.__)("Zoom in","ablocks"),(0,L.__)("Slide","ablocks"),(0,L.__)("Gray scale","ablocks"),(0,L.__)("Blur","ablocks"),(0,L.__)("Custom","ablocks"),(0,L.__)("Original","ablocks"),(0,L.__)("Square - 1:1","ablocks"),(0,L.__)("Standard - 4:3","ablocks"),(0,L.__)("Portrait - 3:4","ablocks"),(0,L.__)("Classic - 3:2","ablocks"),(0,L.__)("Classic Portrait - 2:3","ablocks"),(0,L.__)("Wide - 16:9","ablocks"),(0,L.__)("Tall - 9:16","ablocks"),EP.propTypes={},FP.propTypes={},qP.propTypes={};const $P={UU:"ablocks/image-scroll",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute",
3138 3142 selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""}},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}},imageDataAttribute:{type:"object"},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1}},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},position:{type:"string",default:"below"},imgAltText:{type:"string",default:""},
3139 3143 imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},transitionTime:{type:"number",default:3},showOverlay:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!1},overlayColor:{type:"string",default:"#0202024C"},iconColor:{type:"string",default:""},cssFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},cssHoverFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",
3140 3144 leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,
3141 3145 isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},opacity:{type:"number",default:1},opacityH:{type:"number",default:""},transitionDuration:{type:"number",default:.5},
@@ -3146,23 +3150,23 @@
3146 3150 imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",
3147 3151 imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",
3148 3152 skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",
3149 3153 xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",
3150 -color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function YP(t){const{attributes:e,setAttributes:i,isSelected:o,block_id:a}=t,{imgId:l,imgIdTablet:n,imgIdMobile:s,imgUrl:b,alignment:c}=e,d=lt();let u;u="Tablet"===d?n:"Mobile"===d?s:l;const{createNotice:p}=(0,r.useDispatch)("core/notices"),{image:m}=(0,
3151 -r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:u&&o?e(u):null}},[l,n,s,o]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(D.BlockControls,{group:"block",children:[(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i}),l&&(0,I.jsx)(I.Fragment,{})]}),l&&(0,I.jsx)(D.BlockControls,{group:"other",children:(0,I.jsx)(D.MediaReplaceFlow,{mediaId:["imgId"+d],mediaURL:b,allowedTypes:["image"],accept:"image/*",onSelect:t=>CP(t,e,i,d),onSelectURL:function(t){i({["imgId"+d]:a?.split("-")[0],["imgUrl"+d]:t})},onError:function(t){p("error",t,{type:"snackbar"})}})})]})}class XP{constructor(t){this.imageScroll=t,this.imageContainer=this.imageScroll.querySelector(".ablocks-block-container"),this.imageContainerWidth=this.imageContainer.getBoundingClientRect().width,this.imageFigure=this.imageScroll.querySelector(".ablocks-image-scroll__figure"),this.scrollOption=this.imageFigure.getAttribute("data-scroll-option");const e=this.imageFigure.getAttribute("data-scroll-height");try{
3154 +color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function GP(t){const{attributes:e,setAttributes:i,isSelected:o,block_id:a}=t,{imgId:l,imgIdTablet:n,imgIdMobile:s,imgUrl:b,alignment:c}=e,d=lt();let u;u="Tablet"===d?n:"Mobile"===d?s:l;const{createNotice:p}=(0,r.useDispatch)("core/notices"),{image:m}=(0,
3155 +r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:u&&o?e(u):null}},[l,n,s,o]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(D.BlockControls,{group:"block",children:[(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i}),l&&(0,I.jsx)(I.Fragment,{})]}),l&&(0,I.jsx)(D.BlockControls,{group:"other",children:(0,I.jsx)(D.MediaReplaceFlow,{mediaId:["imgId"+d],mediaURL:b,allowedTypes:["image"],accept:"image/*",onSelect:t=>OP(t,e,i,d),onSelectURL:function(t){i({["imgId"+d]:a?.split("-")[0],["imgUrl"+d]:t})},onError:function(t){p("error",t,{type:"snackbar"})}})})]})}class ZP{constructor(t){this.imageScroll=t,this.imageContainer=this.imageScroll.querySelector(".ablocks-block-container"),this.imageContainerWidth=this.imageContainer.getBoundingClientRect().width,this.imageFigure=this.imageScroll.querySelector(".ablocks-image-scroll__figure"),this.scrollOption=this.imageFigure.getAttribute("data-scroll-option");const e=this.imageFigure.getAttribute("data-scroll-height");try{
3152 3156 const t=JSON.parse(e);this.scrollHeight="object"==typeof t?t.value:t}catch(t){this.scrollHeight=parseInt(e)||0}this.transitionTime=parseInt(this.imageFigure.getAttribute("data-transition-time")),this.image=this.imageScroll.querySelector(".ablocks-image-scroll__figure img"),this.image&&(this.imageSize=null,this.imageWidth=null,this.image.onload=()=>this.onImageLoad(),this.image.complete&&this.onImageLoad(),this.imageFigure.style.transitionDuration=`${this.transitionTime}s`,this.imageScroll.addEventListener("mouseenter",()=>this.handleMouseEnter()),this.imageScroll.addEventListener("mouseleave",()=>this.handleMouseLeave()))}onImageLoad(){this.imageSize=this.image.offsetHeight,this.imageWidth=this.image.offsetWidth,this.applyTransformations()}applyTransformations(){switch(this.scrollOption){case"mouse-scroll":case"horizontal-scroll":this.imageFigure.style.transform="translateX(0) translateY(0)";break;case"bottom-to-top":const t=this.imageSize-this.scrollHeight
3153 3157 ;this.imageFigure.style.transform=`translateY(${-Math.max(t,0)}px)`;break;case"right-to-left":const e=this.imageContainerWidth-this.imageWidth;this.imageFigure.style.transform=`translateX(${e}px)`}}handleMouseEnter(){switch(this.scrollOption){case"mouse-scroll":case"horizontal-scroll":this.imageFigure.style.transform="translateX(0) translateY(0)";break;case"top-to-bottom":const t=Math.max(this.imageSize-this.scrollHeight,0);this.imageFigure.style.transform=`translateY(${-t}px)`;break;case"bottom-to-top":this.imageFigure.style.transform="translateY(0)";break;case"left-to-right":const e=this.imageContainerWidth-this.imageWidth;this.imageFigure.style.transform=`translateX(${e}px)`;break;case"right-to-left":this.imageFigure.style.transform="translateX(0)"}}handleMouseLeave(){switch(this.scrollOption){case"mouse-scroll":case"horizontal-scroll":this.imageFigure.style.transform="translateX(0) translateY(0)";break;case"top-to-bottom":this.imageFigure.style.transform="translateY(0)";break
3154 -;case"bottom-to-top":const t=this.imageSize-this.scrollHeight;this.imageFigure.style.transform=`translateY(${-Math.max(t,0)}px)`;break;case"left-to-right":this.imageFigure.style.transform="translateX(0)";break;case"right-to-left":const e=this.imageContainerWidth-this.imageWidth;this.imageFigure.style.transform=`translateX(${e}px)`}}imageLoaded(){return new Promise(t=>{this.imageSize?t(this.imageSize):this.image.onload=()=>{t(this.image.offsetHeight)}})}}function BP(t){const{attributes:e,setAttributes:i,isSelected:o,currentImageData:n}=t,{block_id:s,imgUrl:r,imgId:b,imgIdTablet:c,imgIdMobile:d,showNotice:u,imageScrollOption:p,transitionTime:m,scrollHeight:h}=e,g=lt(),f=!!r&&(0,I.jsx)("img",{alt:(0,L.__)("Edit image","ablocks"),title:(0,L.__)("Edit image","ablocks"),className:"edit-image-preview",src:r});(0,a.useEffect)(()=>{
3155 -if("top-to-bottom"===p.value||"bottom-to-top"===p.value||"left-to-right"===p.value||"right-to-left"===p.value||"mouse-scroll"===p.value||"horizontal-scroll"===p.value){const t=(0,M.bu)(".ablocks-block--image-scroll");null!==t&&new XP(t)}},[p,m,h]);const y=c&&d?"Tablet & Mobile":c?"Tablet":"Mobile";return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(YP,{...t}),(0,I.jsxs)(tP,{blockId:s,name:OP.UU,attributes:e,children:[u&&(0,I.jsxs)(N.Notice,{className:"ablocks-show-image-replace-all-notice",status:"info",isDismissible:!1,children:[(0,I.jsx)("p",{children:(0,L.sprintf)(/* translators: %s represents the device type option */ /* translators: %s represents the device type option */
3156 -(0,L.__)("You have different image for %s. Do you want to use this image for all devices?","ablocks"),y)}),(0,I.jsx)(N.Button,{isPrimary:!0,onClick:()=>i({imgId:b,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:r,imgUrlTablet:r,imgUrlMobile:r,showNotice:!1}),children:(0,L.__)("Use this image for all devices","ablocks")}),(0,I.jsx)(N.Button,{isSecondary:!0,onClick:()=>i({showNotice:!1}),children:(0,L.__)("skip","ablocks")})]}),(0,I.jsx)(VP,{currentImageData:n,attributeValue:e._image,attributes:e,setAttributes:i,attributeName:"_image",isResponsive:!0,block_id:s,isSelected:o}),(0,I.jsx)(D.MediaPlaceholder,{labels:{title:(0,L.__)("Image Scroll","ablocks"),instructions:(0,L.__)("Upload an image file, pick one from your media library, or add one with a URL.","ablocks")},onSelect:t=>CP(t,e,i,g),onSelectURL:t=>function(t){i({["imgId"+g]:s?.split("-")[0],["imgUrl"+g]:t})}(t),accept:"image/*",allowedTypes:["image"],value:{url:r},mediaPreview:f,disableMediaButtons:r})]})]})}BP.propTypes={}
3157 -;const EP=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}},FP=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},qP=t=>parseInt(t)||0,$P=(t,e="")=>{const{alignment:i}=t,o={},a=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.topWidth),l=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.bottomWidth),n=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.leftWidth),s=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.rightWidth),r=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.topRadius),b=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.leftRadius),c=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.rightRadius),d=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.bottomRadius);return o["border-top-left-radius"]=r-a+"px",
3158 -o["border-top-right-radius"]=c-s+"px",o["border-bottom-left-radius"]=d-l+"px",o["border-bottom-right-radius"]=b-n+"px",""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o["justify-content"]=i["value"+e]),o},GP=(t,e="")=>{const{opacity:i}=t,{imageScrollOption:o}=t,a="horizontal-scroll"===o.value||"left-to-right"===o.value||"right-to-left"===o.value,l={},n={...(0,Eb.qD)({attributeValue:i,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})};if(t["imgUrl"+e]&&(l["max-width"]="100%",a&&(l["max-width"]="none",l.height="100%"),l.transition="0.3s ease",l["box-sizing"]="border-box",""!==t?.objectFit["value"+e]&&"default"!==t?.objectFit["value"+e]&&(l["object-fit"]=t?.objectFit["value"+e]),t.aspectRatio&&"object"==typeof t.aspectRatio)){const i=t.aspectRatio["value"+e];i&&"original"!==i&&(l["aspect-ratio"]=i)}return{...l,...n,...(0,cy.qD)(t?.cssFilter,e)}},ZP=(t,e="")=>{const{opacityH:i}=t,o={},a={...(0,Eb.qD)({attributeValue:i,defaultValue:"",property:"opacity",
3159 -unitDefaultValue:"",device:e})},l={...(0,Eb.qD)({attributeValue:t.transitionDuration,defaultValue:.5,property:"transitionDuration",unitDefaultValue:"",device:e})},n={...(0,Eb.qD)({attributeValue:t.filterTransitionDuration,defaultValue:.5,property:"filterTransitionDuration",unitDefaultValue:"",device:e})};return t["imgUrl"+e]&&(""!==i&&void 0!==i&&(o.opacity=i),(t.border?.transitionDuration||t.boxShadow?.transitionDuration||n.filterTransitionDuration||l.transitionDuration)&&(o.transition=`\n\t\t\t\tborder ${t.border?.transitionDuration||l.transitionDuration}s, \n\t\t\t\tbox-shadow ${t.boxShadow?.transitionDuration||l.transitionDuration}s,\n\t\t\t\topacity ${n.filterTransitionDuration}s, \n\t\t\t\tfilter ${n.filterTransitionDuration}s, \n\t\t\t\ttransform 0.3s\n\t\t\t`)),{...o,...a,...(0,cy.qD)(t?.cssHoverFilter,e)}},KP=(t,e="")=>{const{scrollHeight:i,scrollWidth:o}=t;return{...{...(0,Eb.qD)({attributeValue:i,isResponsive:!0,property:"height",defaultValue:200,device:e})},...{...(0,
3160 -Eb.qD)({attributeValue:o,isResponsive:!0,property:"width",defaultValue:100,unitDefaultValue:"%",device:e})}}},JP=t=>{const{imageScrollOption:e}=t,i={};return"mouse-scroll"===e.value?(i.position="static",i["overflow-y"]="scroll",i["overflow-x"]="hidden"):"top-to-bottom"===e.value||"bottom-to-top"===e.value?(i.position="static",i.overflow="hidden"):"horizontal-scroll"===e.value?(i.position="static",i["overflow-y"]="hidden",i["overflow-x"]="scroll"):("left-to-right"===e.value||"right-to-left"===e.value)&&(i.position="static",i.overflow="hidden"),i},QP=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)||"black",position:"absolute",top:"45%",left:"50%","z-index":"5",opacity:"1",...(0,Eb.qD)({attributeValue:t?.iconFontSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:36,unitDefaultValue:"px",property:"font-size",device:e})});function tU(t){
3161 -const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,imgTitle:r,imgAltText:b,widthHeightWidget:{width:c,height:d,imgNaturalWidth:u,imgNaturalHeight:p},imageScrollOption:m,scrollHeight:h,transitionTime:g,showOverlay:f,showIcon:y,link:T}=e,{href:H,linkTarget:M,noFollow:x,keyValue:k}=T||{};let v={};H&&(v.href=H),M&&(v.target="_blank"),v.rel=x?M?"nofollow noreferrer noopener":"nofollow":"noopener",k&&(v={...v,...(0,wb.jM)(k)});const _=o&&(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,I.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,I.jsx)("img",{src:n||a||o,className:s()("ablocks-image-mobile ablocks-image--effect"),alt:b,width:c||u,height:d||p,title:r,loading:"lazy"})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:OP.UU,attributes:e,children:[f&&(0,I.jsx)("div",{className:"ablocks-block-image-overlay"}),y&&(0,I.jsx)("div",{
3158 +;case"bottom-to-top":const t=this.imageSize-this.scrollHeight;this.imageFigure.style.transform=`translateY(${-Math.max(t,0)}px)`;break;case"left-to-right":this.imageFigure.style.transform="translateX(0)";break;case"right-to-left":const e=this.imageContainerWidth-this.imageWidth;this.imageFigure.style.transform=`translateX(${e}px)`}}imageLoaded(){return new Promise(t=>{this.imageSize?t(this.imageSize):this.image.onload=()=>{t(this.image.offsetHeight)}})}}function KP(t){const{attributes:e,setAttributes:i,isSelected:o,currentImageData:n}=t,{block_id:s,imgUrl:r,imgId:b,imgIdTablet:c,imgIdMobile:d,showNotice:u,imageScrollOption:p,transitionTime:m,scrollHeight:h}=e,g=lt(),f=!!r&&(0,I.jsx)("img",{alt:(0,L.__)("Edit image","ablocks"),title:(0,L.__)("Edit image","ablocks"),className:"edit-image-preview",src:r});(0,a.useEffect)(()=>{
3159 +if("top-to-bottom"===p.value||"bottom-to-top"===p.value||"left-to-right"===p.value||"right-to-left"===p.value||"mouse-scroll"===p.value||"horizontal-scroll"===p.value){const t=(0,M.bu)(".ablocks-block--image-scroll");null!==t&&new ZP(t)}},[p,m,h]);const y=c&&d?"Tablet & Mobile":c?"Tablet":"Mobile";return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(GP,{...t}),(0,I.jsxs)(sP,{blockId:s,name:$P.UU,attributes:e,children:[u&&(0,I.jsxs)(N.Notice,{className:"ablocks-show-image-replace-all-notice",status:"info",isDismissible:!1,children:[(0,I.jsx)("p",{children:(0,L.sprintf)(/* translators: %s represents the device type option */ /* translators: %s represents the device type option */
3160 +(0,L.__)("You have different image for %s. Do you want to use this image for all devices?","ablocks"),y)}),(0,I.jsx)(N.Button,{isPrimary:!0,onClick:()=>i({imgId:b,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:r,imgUrlTablet:r,imgUrlMobile:r,showNotice:!1}),children:(0,L.__)("Use this image for all devices","ablocks")}),(0,I.jsx)(N.Button,{isSecondary:!0,onClick:()=>i({showNotice:!1}),children:(0,L.__)("skip","ablocks")})]}),(0,I.jsx)(qP,{currentImageData:n,attributeValue:e._image,attributes:e,setAttributes:i,attributeName:"_image",isResponsive:!0,block_id:s,isSelected:o}),(0,I.jsx)(D.MediaPlaceholder,{labels:{title:(0,L.__)("Image Scroll","ablocks"),instructions:(0,L.__)("Upload an image file, pick one from your media library, or add one with a URL.","ablocks")},onSelect:t=>OP(t,e,i,g),onSelectURL:t=>function(t){i({["imgId"+g]:s?.split("-")[0],["imgUrl"+g]:t})}(t),accept:"image/*",allowedTypes:["image"],value:{url:r},mediaPreview:f,disableMediaButtons:r})]})]})}KP.propTypes={}
3161 +;const JP=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}},QP=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},tU=t=>parseInt(t)||0,eU=(t,e="")=>{const{alignment:i}=t,o={},a=tU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.topWidth),l=tU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.bottomWidth),n=tU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.leftWidth),s=tU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.rightWidth),r=tU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.topRadius),b=tU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.leftRadius),c=tU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.rightRadius),d=tU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.bottomRadius);return o["border-top-left-radius"]=r-a+"px",
3162 +o["border-top-right-radius"]=c-s+"px",o["border-bottom-left-radius"]=d-l+"px",o["border-bottom-right-radius"]=b-n+"px",""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o["justify-content"]=i["value"+e]),o},iU=(t,e="")=>{const{opacity:i}=t,{imageScrollOption:o}=t,a="horizontal-scroll"===o.value||"left-to-right"===o.value||"right-to-left"===o.value,l={},n={...(0,Eb.qD)({attributeValue:i,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})};if(t["imgUrl"+e]&&(l["max-width"]="100%",a&&(l["max-width"]="none",l.height="100%"),l.transition="0.3s ease",l["box-sizing"]="border-box",""!==t?.objectFit["value"+e]&&"default"!==t?.objectFit["value"+e]&&(l["object-fit"]=t?.objectFit["value"+e]),t.aspectRatio&&"object"==typeof t.aspectRatio)){const i=t.aspectRatio["value"+e];i&&"original"!==i&&(l["aspect-ratio"]=i)}return{...l,...n,...(0,cy.qD)(t?.cssFilter,e)}},oU=(t,e="")=>{const{opacityH:i}=t,o={},a={...(0,Eb.qD)({attributeValue:i,defaultValue:"",property:"opacity",
3163 +unitDefaultValue:"",device:e})},l={...(0,Eb.qD)({attributeValue:t.transitionDuration,defaultValue:.5,property:"transitionDuration",unitDefaultValue:"",device:e})},n={...(0,Eb.qD)({attributeValue:t.filterTransitionDuration,defaultValue:.5,property:"filterTransitionDuration",unitDefaultValue:"",device:e})};return t["imgUrl"+e]&&(""!==i&&void 0!==i&&(o.opacity=i),(t.border?.transitionDuration||t.boxShadow?.transitionDuration||n.filterTransitionDuration||l.transitionDuration)&&(o.transition=`\n\t\t\t\tborder ${t.border?.transitionDuration||l.transitionDuration}s, \n\t\t\t\tbox-shadow ${t.boxShadow?.transitionDuration||l.transitionDuration}s,\n\t\t\t\topacity ${n.filterTransitionDuration}s, \n\t\t\t\tfilter ${n.filterTransitionDuration}s, \n\t\t\t\ttransform 0.3s\n\t\t\t`)),{...o,...a,...(0,cy.qD)(t?.cssHoverFilter,e)}},aU=(t,e="")=>{const{scrollHeight:i,scrollWidth:o}=t;return{...{...(0,Eb.qD)({attributeValue:i,isResponsive:!0,property:"height",defaultValue:200,device:e})},...{...(0,
3164 +Eb.qD)({attributeValue:o,isResponsive:!0,property:"width",defaultValue:100,unitDefaultValue:"%",device:e})}}},lU=t=>{const{imageScrollOption:e}=t,i={};return"mouse-scroll"===e.value?(i.position="static",i["overflow-y"]="scroll",i["overflow-x"]="hidden"):"top-to-bottom"===e.value||"bottom-to-top"===e.value?(i.position="static",i.overflow="hidden"):"horizontal-scroll"===e.value?(i.position="static",i["overflow-y"]="hidden",i["overflow-x"]="scroll"):("left-to-right"===e.value||"right-to-left"===e.value)&&(i.position="static",i.overflow="hidden"),i},nU=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)||"black",position:"absolute",top:"45%",left:"50%","z-index":"5",opacity:"1",...(0,Eb.qD)({attributeValue:t?.iconFontSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:36,unitDefaultValue:"px",property:"font-size",device:e})});function sU(t){
3165 +const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,imgTitle:r,imgAltText:b,widthHeightWidget:{width:c,height:d,imgNaturalWidth:u,imgNaturalHeight:p},imageScrollOption:m,scrollHeight:h,transitionTime:g,showOverlay:f,showIcon:y,link:T}=e,{href:H,linkTarget:M,noFollow:x,keyValue:k}=T||{};let v={};H&&(v.href=H),M&&(v.target="_blank"),v.rel=x?M?"nofollow noreferrer noopener":"nofollow":"noopener",k&&(v={...v,...(0,wb.jM)(k)});const _=o&&(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,I.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,I.jsx)("img",{src:n||a||o,className:s()("ablocks-image-mobile ablocks-image--effect"),alt:b,width:c||u,height:d||p,title:r,loading:"lazy"})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:$P.UU,attributes:e,children:[f&&(0,I.jsx)("div",{className:"ablocks-block-image-overlay"}),y&&(0,I.jsx)("div",{
3162 3166 className:"ablocks-icon ablocks-icon-wrap",children:(0,I.jsx)(Fd,{customIconData:{
3163 3167 path:"M7.67993 9.84002V14.16C7.67993 16.536 9.62393 18.48 11.9999 18.48C14.3759 18.48 16.3199 16.536 16.3199 14.16V9.84002C16.3199 7.46402 14.3759 5.52002 11.9999 5.52002C9.62393 5.52002 7.67993 7.46402 7.67993 9.84002ZM11.9999 6.48002C13.8479 6.48002 15.3599 7.99202 15.3599 9.84002V14.16C15.3599 16.008 13.8479 17.52 11.9999 17.52C10.1519 17.52 8.63993 16.008 8.63993 14.16V9.84002C8.63993 7.99202 10.1519 6.48002 11.9999 6.48002Z M12 10.5602C12.264 10.5602 12.48 10.3442 12.48 10.0802V8.64016C12.48 8.37616 12.264 8.16016 12 8.16016C11.736 8.16016 11.52 8.37616 11.52 8.64016V10.0802C11.52 10.3442 11.736 10.5602 12 10.5602Z M11.6638 22.1762C11.7598 22.2722 11.8798 22.3202 11.9998 22.3202C12.1198 22.3202 12.2398 22.2722 12.3358 22.1762L13.5358 20.9762C13.7278 20.7842 13.7278 20.4962 13.5358 20.3042C13.3438 20.1122 13.0558 20.1122 12.8638 20.3042L11.9998 21.1682L11.1358 20.3042C10.9438 20.1122 10.6558 20.1122 10.4638 20.3042C10.2718 20.4962 10.2718 20.7842 10.4638 20.9762L11.6638 22.1762Z M11.6638 1.82418L10.4638 3.02418C10.2718 3.21618 10.2718 3.50418 10.4638 3.69618C10.5598 3.79218 10.6798 3.84018 10.7998 3.84018C10.9198 3.84018 11.0398 3.79218 11.1358 3.69618L11.9998 2.83218L12.8638 3.69618C12.9598 3.79218 13.0798 3.84018 13.1998 3.84018C13.3198 3.84018 13.4398 3.79218 13.5358 3.69618C13.7278 3.50418 13.7278 3.21618 13.5358 3.02418L12.3358 1.82418C12.1438 1.63218 11.8558 1.63218 11.6638 1.82418Z",
3164 -viewBox:"0 0 24 24"},style:{fill:(0,Hs.qD)(e?.iconColor)||"black"}})}),(0,I.jsx)("figure",{className:"ablocks-image-scroll__figure","data-scroll-option":m.value,"data-scroll-height":h.value,"data-transition-time":g,children:H?(0,I.jsx)("a",{...v,children:_}):_})]})})}tU.propTypes={};const eU={UU:"ablocks/image-scroll",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""}},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}},
3168 +viewBox:"0 0 24 24"},style:{fill:(0,Hs.qD)(e?.iconColor)||"black"}})}),(0,I.jsx)("figure",{className:"ablocks-image-scroll__figure","data-scroll-option":m.value,"data-scroll-height":h.value,"data-transition-time":g,children:H?(0,I.jsx)("a",{...v,children:_}):_})]})})}sU.propTypes={};const rU={UU:"ablocks/image-scroll",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""}},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}},
3165 3169 imageDataAttribute:{type:"object"},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1}},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},position:{type:"string",default:"below"},imgAltText:{type:"string",default:""},imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},transitionTime:{type:"number",default:3},showOverlay:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!1},overlayColor:{type:"string",default:"#0202024C"},iconColor:{type:"string",default:""},cssFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},cssHoverFilter:{type:"object",default:{blur:"",
3166 3170 brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",
3167 3171 bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},padding:{type:"object",default:{isLinked:!0,
3168 3172 isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},opacity:{type:"number",default:1},opacityH:{type:"number",default:""},transitionDuration:{type:"number",default:.5},filterTransitionDuration:{type:"number",default:.5},iconFontSize:{type:"number",default:35},scrollHeight:{type:"number",default:300},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",
@@ -3172,15 +3176,15 @@
3172 3176 imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",
3173 3177 imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",
3174 3178 scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",
3175 3179 skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",
3176 -default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function iU(t){const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,imgTitle:r,imgAltText:b,widthHeightWidget:{width:c,height:d,imgNaturalWidth:u,imgNaturalHeight:p},imageScrollOption:m,scrollHeight:h,transitionTime:g,showOverlay:f,showIcon:y}=e,T=o&&(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,I.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,I.jsx)("img",{src:n||a||o,className:s()("ablocks-image-mobile ablocks-image--effect"),alt:b,width:c||u,
3177 -height:d||p,title:r,loading:"lazy"})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:eU.UU,attributes:e,children:[f&&(0,I.jsx)("div",{className:"ablocks-block-image-overlay"}),y&&(0,I.jsx)("div",{className:"ablocks-icon ablocks-icon-wrap",children:(0,I.jsx)(Fd,{customIconData:{
3180 +default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function bU(t){const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,imgTitle:r,imgAltText:b,widthHeightWidget:{width:c,height:d,imgNaturalWidth:u,imgNaturalHeight:p},imageScrollOption:m,scrollHeight:h,transitionTime:g,showOverlay:f,showIcon:y}=e,T=o&&(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,I.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,I.jsx)("img",{src:n||a||o,className:s()("ablocks-image-mobile ablocks-image--effect"),alt:b,width:c||u,
3181 +height:d||p,title:r,loading:"lazy"})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:rU.UU,attributes:e,children:[f&&(0,I.jsx)("div",{className:"ablocks-block-image-overlay"}),y&&(0,I.jsx)("div",{className:"ablocks-icon ablocks-icon-wrap",children:(0,I.jsx)(Fd,{customIconData:{
3178 3182 path:"M7.67993 9.84002V14.16C7.67993 16.536 9.62393 18.48 11.9999 18.48C14.3759 18.48 16.3199 16.536 16.3199 14.16V9.84002C16.3199 7.46402 14.3759 5.52002 11.9999 5.52002C9.62393 5.52002 7.67993 7.46402 7.67993 9.84002ZM11.9999 6.48002C13.8479 6.48002 15.3599 7.99202 15.3599 9.84002V14.16C15.3599 16.008 13.8479 17.52 11.9999 17.52C10.1519 17.52 8.63993 16.008 8.63993 14.16V9.84002C8.63993 7.99202 10.1519 6.48002 11.9999 6.48002Z M12 10.5602C12.264 10.5602 12.48 10.3442 12.48 10.0802V8.64016C12.48 8.37616 12.264 8.16016 12 8.16016C11.736 8.16016 11.52 8.37616 11.52 8.64016V10.0802C11.52 10.3442 11.736 10.5602 12 10.5602Z M11.6638 22.1762C11.7598 22.2722 11.8798 22.3202 11.9998 22.3202C12.1198 22.3202 12.2398 22.2722 12.3358 22.1762L13.5358 20.9762C13.7278 20.7842 13.7278 20.4962 13.5358 20.3042C13.3438 20.1122 13.0558 20.1122 12.8638 20.3042L11.9998 21.1682L11.1358 20.3042C10.9438 20.1122 10.6558 20.1122 10.4638 20.3042C10.2718 20.4962 10.2718 20.7842 10.4638 20.9762L11.6638 22.1762Z M11.6638 1.82418L10.4638 3.02418C10.2718 3.21618 10.2718 3.50418 10.4638 3.69618C10.5598 3.79218 10.6798 3.84018 10.7998 3.84018C10.9198 3.84018 11.0398 3.79218 11.1358 3.69618L11.9998 2.83218L12.8638 3.69618C12.9598 3.79218 13.0798 3.84018 13.1998 3.84018C13.3198 3.84018 13.4398 3.79218 13.5358 3.69618C13.7278 3.50418 13.7278 3.21618 13.5358 3.02418L12.3358 1.82418C12.1438 1.63218 11.8558 1.63218 11.6638 1.82418Z",
3179 -viewBox:"0 0 24 24"},style:{fill:e?.iconColor||"black"}})}),(0,I.jsx)("figure",{className:"ablocks-image-scroll__figure","data-scroll-option":m.value,"data-scroll-height":h,"data-transition-time":g,children:T})]})})}iU.propTypes={},(0,M.xV)(OP.UU)&&(0,o.registerBlockType)(OP.UU,{title:(0,L.__)("Image Scroll","ablocks"),attributes:OP.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--image-scroll"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{imgUrl:n,block_id:s}=i,[r,c]=(0,a.useState)({});(0,a.useEffect)(()=>{s&&s===l||o({block_id:l})},[s,l]);const d=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",EP(i),EP(i,"Tablet"),EP(i,"Mobile"),t.customDeviceMap(t=>EP(i,t))),t.addClassStyles("{{WRAPPER}}:hover",FP(i),FP(i,"Tablet"),FP(i,"Mobile"),t.customDeviceMap(t=>FP(i,t))),t.addClassStyles("\n\t\t\t{{WRAPPER}} .ablocks-block-container\n\t\t\t",KP(i),KP(i,"Tablet"),KP(i,"Mobile"),t.customDeviceMap(t=>KP(i,t))),
3180 -n&&t.addClassStyles("{{WRAPPER}} .ablocks-block-container",JP(i),JP(i),JP(i),t.customDeviceMap(t=>JP(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-image-overlay",(t=>{const e={},i=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.topWidth),o=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.bottomWidth),a=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.leftWidth),l=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.rightWidth),n=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.topRadius),s=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.leftRadius),r=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.rightRadius),b=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.bottomRadius);return e["border-top-left-radius"]=n-i+"px",e["border-top-right-radius"]=r-l+"px",e["border-bottom-left-radius"]=b-o+"px",e["border-bottom-right-radius"]=s-a+"px",e["background-color"]=(0,Hs.qD)(t?.overlayColor),
3181 -e.position="absolute",e.top="0",e.left="0",e.right="0",e.bottom="0",e["z-index"]=4,e.display="block",e})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--image-scroll:hover .ablocks-block-image-overlay",{display:"none"}),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",$P(i),$P(i,"Tablet"),$P(i,"Mobile"),t.customDeviceMap(t=>$P(i,t))),n&&t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure",{position:"static !important",width:"100% !important"},{position:"static !important",width:"100% !important"},{position:"static !important",width:"100% !important"},t.customDeviceMap(t=>({position:"static !important",width:"100% !important"}))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure img",GP(i),GP(i,"Tablet"),GP(i,"Mobile"),t.customDeviceMap(t=>GP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure img:hover",ZP(i),ZP(i,"Tablet"),ZP(i,"Mobile"),t.customDeviceMap(t=>ZP(i,t))),
3182 -t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",QP(i),QP(i,"Tablet"),QP(i,"Mobile"),t.customDeviceMap(t=>QP(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--image-scroll:hover .ablocks-icon-wrap",{opacity:"0"}),(0,b.applyFilters)("ablocks.image.editorInlineCSS",null,i,t)||t.generateCSS()},[i]),u={currentImageData:r,setCurrentImageData:c};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)(NP,{...u,...t}),(0,I.jsx)(BP,{...u,...t})]})},save:tU,deprecated:[{attributes:eU.uK,save:iU}]});var oU=i(86781);function aU(t){
3183 +viewBox:"0 0 24 24"},style:{fill:e?.iconColor||"black"}})}),(0,I.jsx)("figure",{className:"ablocks-image-scroll__figure","data-scroll-option":m.value,"data-scroll-height":h,"data-transition-time":g,children:T})]})})}bU.propTypes={},(0,M.xV)($P.UU)&&(0,o.registerBlockType)($P.UU,{title:(0,L.__)("Image Scroll","ablocks"),attributes:$P.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--image-scroll"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{imgUrl:n,block_id:s}=i,[r,c]=(0,a.useState)({});(0,a.useEffect)(()=>{s&&s===l||o({block_id:l})},[s,l]);const d=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",JP(i),JP(i,"Tablet"),JP(i,"Mobile"),t.customDeviceMap(t=>JP(i,t))),t.addClassStyles("{{WRAPPER}}:hover",QP(i),QP(i,"Tablet"),QP(i,"Mobile"),t.customDeviceMap(t=>QP(i,t))),t.addClassStyles("\n\t\t\t{{WRAPPER}} .ablocks-block-container\n\t\t\t",aU(i),aU(i,"Tablet"),aU(i,"Mobile"),t.customDeviceMap(t=>aU(i,t))),
3184 +n&&t.addClassStyles("{{WRAPPER}} .ablocks-block-container",lU(i),lU(i),lU(i),t.customDeviceMap(t=>lU(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-image-overlay",(t=>{const e={},i=tU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.topWidth),o=tU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.bottomWidth),a=tU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.leftWidth),l=tU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.rightWidth),n=tU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.topRadius),s=tU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.leftRadius),r=tU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.rightRadius),b=tU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.bottomRadius);return e["border-top-left-radius"]=n-i+"px",e["border-top-right-radius"]=r-l+"px",e["border-bottom-left-radius"]=b-o+"px",e["border-bottom-right-radius"]=s-a+"px",e["background-color"]=(0,Hs.qD)(t?.overlayColor),
3185 +e.position="absolute",e.top="0",e.left="0",e.right="0",e.bottom="0",e["z-index"]=4,e.display="block",e})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--image-scroll:hover .ablocks-block-image-overlay",{display:"none"}),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",eU(i),eU(i,"Tablet"),eU(i,"Mobile"),t.customDeviceMap(t=>eU(i,t))),n&&t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure",{position:"static !important",width:"100% !important"},{position:"static !important",width:"100% !important"},{position:"static !important",width:"100% !important"},t.customDeviceMap(t=>({position:"static !important",width:"100% !important"}))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure img",iU(i),iU(i,"Tablet"),iU(i,"Mobile"),t.customDeviceMap(t=>iU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure img:hover",oU(i),oU(i,"Tablet"),oU(i,"Mobile"),t.customDeviceMap(t=>oU(i,t))),
3186 +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",nU(i),nU(i,"Tablet"),nU(i,"Mobile"),t.customDeviceMap(t=>nU(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--image-scroll:hover .ablocks-icon-wrap",{opacity:"0"}),(0,b.applyFilters)("ablocks.image.editorInlineCSS",null,i,t)||t.generateCSS()},[i]),u={currentImageData:r,setCurrentImageData:c};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)(EP,{...u,...t}),(0,I.jsx)(KP,{...u,...t})]})},save:sU,deprecated:[{attributes:rU.uK,save:bU}]});var cU=i(86781);function dU(t){
3183 3187 const{attributes:e,setAttributes:i}=t,{alignment:a,taxonomyTitleTypography:l,taxonomyTitlecolor:n,postTitleHoverColor:s,selectedPostType:b,selectedTerms:c={},activeTaxonomy:d=[],postOrder:u,postOrderBy:p,numberOfPosts:m,enableReloadButton:h,allowIcon:g,showTermCount:f,postCountBorder:y,postCountBgColor:T,postCountColor:H,taxonomyTitlePadding:M,taxonomyTitletBgColor:x,taxonomyTitleDirection:k,taxonomyTitlePosition:v,taxonomyTitleBorder:_,postTitleColor:R,postTitleTypography:S,buttonPadding:W,buttonBorder:P,buttonBgColor:U,buttonHoverBgColor:j,buttonColor:w,buttonHoverColor:z,buttonTypography:C,buttonPosition:A,cardBgColor:O,cardPadding:Y,cardBorder:X,cardBoxShadow:B,buttonText:E,showTab:F,postPadding:q,activePostBackgroundColor:$,hoverPostBackgroundColor:G,postTitleActiveColor:Z,activePostBorder:K,postBorder:J,postBackgroundColor:Q,showPost:tt,cardBgHoverColor:et,showPostLink:it,showInherit:ot,postCountTypography:lt,showTermCountPrefix:nt,countPrefixText:st,iconColor:rt,iconBorderRadius:bt,iconBgColor:ct,iconPadding:dt,showIconDffent:ut,pageLinks:pt,showTabScrolling:mt,taxonomyLayout:ht=!0}=e,gt=(0,
3184 3188 r.useSelect)(t=>(t(zl.store).getPostTypes({per_page:-1})||[]).filter(t=>t.viewable&&"attachment"!==t.slug),[]),ft=(0,r.useSelect)(t=>b?(t(zl.store).getTaxonomies({type:b})||[]).map(e=>{const i=t(zl.store).getEntityRecords("taxonomy",e.slug,{per_page:-1})||[];return{...e,terms:i}}):[],[b]),yt=(t,e)=>{i({selectedTerms:{...c,[t]:e}})},Tt=Array.isArray(gt)&&b?gt.find(t=>t.slug===b):null,Ht=!!Tt?.supports?.["page-attributes"]||!!Tt?.hierarchical,Mt=[{label:(0,L.__)("Date","ablocks"),value:"date"},{label:(0,L.__)("Title","ablocks"),value:"title"}];!Ht&&b||Mt.push({label:(0,L.__)("Menu Order","ablocks"),value:"menu_order"}),ft.map(t=>({label:t.name,value:t.slug}));const kt=ft.filter(t=>d.includes(t.slug)),vt=Boolean((e?.query&&e.query.inherit)??e?.initial??e?.showInherit),Rt=(0,r.useSelect)(t=>t("core/edit-site"),[]),St=(0,r.useSelect)(()=>Rt?.getEditedPostId?.()||"",[Rt]),Wt=(0,r.useSelect)(()=>Rt?.getEditedPostType?.()||"wp_template",[Rt]),Pt=(0,
3185 3189 r.useSelect)(t=>St&&Wt?t(zl.store).getEntityRecord("postType",Wt,St):null,[St,Wt]),jt="string"==typeof St?St.split("/").filter(Boolean).pop():"",wt=(()=>{try{const t=new URLSearchParams(window.location.search).get("p");return t&&decodeURIComponent(t).split("/").filter(Boolean).pop()||""}catch{return""}})(),zt=jt||wt,Ct=/^archive(?:-|$)/i.test(zt),Lt=(0,Yt.useMemo)(()=>{const t=Pt?.content?.raw||Pt?.content?.rendered||"";if(!t)return"";try{const e=(0,o.parse)(t);let i="";const a=(t=[])=>{for(const e of t){if("core/query"===e?.name){const t=e?.attributes?.query;if(t?.postType&&(i=Array.isArray(t.postType)?t.postType[0]||"":t.postType,i))return!0}if(e?.innerBlocks?.length&&a(e.innerBlocks))return!0}return!1};return a(e),i||""}catch{return""}},[Pt]),Dt=(()=>{const t=zt?.match(/^archive-([a-z0-9_-]+)$/i);return t&&t[1]?t[1]:""})(),Nt=(0,Yt.useMemo)(()=>{const t=Dt;if(!t)return"";if(!Array.isArray(gt)||!gt.length)return""
3186 3190 ;const e=gt.find(e=>e.slug===t||!0===e.has_archive&&t===e.slug||"string"==typeof e.has_archive&&e.has_archive.toLowerCase()===t.toLowerCase());return e?.slug||""},[gt,Dt]),Vt=(0,Yt.useMemo)(()=>{if(Lt)return Lt;if(Dt&&Array.isArray(gt)&&gt.some(t=>t.slug===Dt))return Dt;if(Nt)return Nt;if(Array.isArray(gt)&&gt.length){const t=gt.find(t=>t.has_archive&&"post"!==t.slug)||gt.find(t=>"post"===t.slug);return t?.slug||""}return""},[Lt,Dt,Nt,gt]);(0,Yt.useEffect)(()=>{vt&&Ct&&Array.isArray(gt)&&gt.length&&Vt&&b!==Vt&&i({selectedPostType:Vt})},[vt,Ct,gt,Vt]);const Xt=(0,Yt.useRef)(null);return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Taxonomy Settings","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Inherit","ablocks"),attributeValue:ot,setAttributes:i,attributeName:"showInherit"}),!ot&&(0,I.jsx)(Ut,{label:(0,
@@ -3192,13 +3196,13 @@
3192 3196 L.__)("Enable Reload Button","ablocks"),attributeValue:h,setAttributes:i,attributeName:"enableReloadButton"}),h&&(0,I.jsx)(Kl,{label:(0,L.__)("Button Text","ablocks"),attributeName:"buttonText",attributeValue:E,setAttributes:i,isInline:!1,placeholder:(0,L.__)("View More","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"allowIcon"})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("Taxonomy Card Style","ablocks")})}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Card Background Color","ablocks"),isGradient:!0,attributeName:"cardBgColor",attributeValue:O,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Card Hover Background Color","ablocks"),isGradient:!0,
3193 3197 attributeName:"cardBgHoverColor",attributeValue:et,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Card Border","ablocks"),isResponsive:!0,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"cardBorder",attributeValue:X,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Card Padding","ablocks"),isResponsive:!0,attributeName:"cardPadding",attributeValue:Y,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Card Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"cardBoxShadow",attributeValue:B,setAttributes:i})]})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Taxonomy Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"taxonomyTitlePosition",attributeValue:v,setAttributes:i,options:[{label:(0,L.__)("Start","ablocks"),value:"start",icon:"arrow-left"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"wrap"},{label:(0,L.__)("Space Around","ablocks"),
3194 3198 value:"space-around",icon:"wrap"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"arrow-right"}],isInline:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"taxonomyTitleDirection",attributeValue:k,setAttributes:i,options:[{label:(0,L.__)("Row","ablocks"),value:"row",icon:"arrow-left"},{label:(0,L.__)("Column","ablocks"),value:"column",icon:"wrap"}],isInline:!1}),e.taxonomyTitleDirection&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Icon Position","ablocks"),attributeValue:ut,setAttributes:i,attributeName:"showIconDffent"}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"taxonomyTitleTypography",attributeValue:l,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"taxonomyTitlecolor",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"taxonomyTitletBgColor",attributeValue:x,setAttributes:i}),(0,
3195 3199 I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"taxonomyTitlePadding",attributeValue:M,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"taxonomyTitleBorder",attributeValue:_,setAttributes:i})]}),f&&(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Taxonomy Post Count Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"postCountTypography",attributeValue:lt,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"postCountColor",attributeValue:H,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"postCountBgColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Post Count Width","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"postCountWidth",attributeValue:e?.postCountWidth,
3196 -setAttributes:i,attributeDefaultValue:oU.e3}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"postCountBorder",attributeValue:y,setAttributes:i})]}),tt&&(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Post Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"postTitleTypography",attributeValue:S,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"postTitleColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"postBackgroundColor",attributeValue:Q,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"postPadding",attributeValue:q,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{
3200 +setAttributes:i,attributeDefaultValue:cU.e3}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"postCountBorder",attributeValue:y,setAttributes:i})]}),tt&&(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Post Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"postTitleTypography",attributeValue:S,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"postTitleColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"postBackgroundColor",attributeValue:Q,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"postPadding",attributeValue:q,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{
3197 3201 attributeName:"postBorder",attributeValue:J,setAttributes:i}),(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("Active Style","ablocks")})}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"postTitleActiveColor",attributeValue:Z,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"activePostBackgroundColor",attributeValue:$,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activePostBorder",attributeValue:K,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Post Title Hover Color","ablocks"),attributeName:"postTitleHoverColor",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"hoverPostBackgroundColor",attributeValue:G,setAttributes:i})]}),active:(0,I.jsx)(I.Fragment,{})})]}),h&&(0,I.jsxs)(N.PanelBody,{
3198 3202 title:(0,L.__)("Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"buttonPosition",attributeValue:A,setAttributes:i,options:[{label:(0,L.__)("Full Width","ablocks"),value:"block",icon:"arrow-left"},{label:(0,L.__)("Inline","ablocks"),value:"inline",icon:"wrap"}],isInline:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:C,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"buttonColor",attributeValue:w,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"buttonBgColor",attributeValue:U,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeName:"buttonHoverColor",attributeValue:z,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
3199 -L.__)("Background Hover Color","ablocks"),attributeName:"buttonHoverBgColor",attributeValue:j,setAttributes:i})]})}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:P,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"buttonPadding",attributeValue:W,setAttributes:i})]}),g&&(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Icon Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"iconsSize",attributeValue:e?.iconsSize,setAttributes:i,attributeDefaultValue:oU.W0}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:rt,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"iconBgColor",attributeValue:ct,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
3200 -attributeName:"iconPadding",attributeValue:dt,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Border radius","ablocks"),attributeName:"iconBorderRadius",attributeValue:bt,setAttributes:i})]})]})})}aU.propTypes={};const lU={UU:"ablocks/taxonomy-listing",uK:{block_id:{type:"string",default:""},selectedPostType:{type:"string",default:"post"},selectedTerms:{type:"object",default:[]},activeTaxonomy:{type:"array",default:[]},selectedTaxonomies:{type:"array",default:[]},numberOfPosts:{type:"number",default:6},postOrder:{type:"string",default:"desc"},postOrderBy:{type:"string",default:"date"},taxonomyLayout:{type:"string",default:"flex",copyStyle:!0},pageLinks:{type:"string",default:"singlePagelink",copyStyle:!0},itemsPerRow:{type:"number",default:3,copyStyle:!0},showTermCount:{type:"boolean",default:!0},enableReloadButton:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!1},textPostColor:{type:"string",default:!1},postCountBorder:{type:"object",default:""},postCountBgColor:{
3203 +L.__)("Background Hover Color","ablocks"),attributeName:"buttonHoverBgColor",attributeValue:j,setAttributes:i})]})}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:P,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"buttonPadding",attributeValue:W,setAttributes:i})]}),g&&(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Icon Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"iconsSize",attributeValue:e?.iconsSize,setAttributes:i,attributeDefaultValue:cU.W0}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:rt,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"iconBgColor",attributeValue:ct,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
3204 +attributeName:"iconPadding",attributeValue:dt,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Border radius","ablocks"),attributeName:"iconBorderRadius",attributeValue:bt,setAttributes:i})]})]})})}dU.propTypes={};const uU={UU:"ablocks/taxonomy-listing",uK:{block_id:{type:"string",default:""},selectedPostType:{type:"string",default:"post"},selectedTerms:{type:"object",default:[]},activeTaxonomy:{type:"array",default:[]},selectedTaxonomies:{type:"array",default:[]},numberOfPosts:{type:"number",default:6},postOrder:{type:"string",default:"desc"},postOrderBy:{type:"string",default:"date"},taxonomyLayout:{type:"string",default:"flex",copyStyle:!0},pageLinks:{type:"string",default:"singlePagelink",copyStyle:!0},itemsPerRow:{type:"number",default:3,copyStyle:!0},showTermCount:{type:"boolean",default:!0},enableReloadButton:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!1},textPostColor:{type:"string",default:!1},postCountBorder:{type:"object",default:""},postCountBgColor:{
3201 3205 type:"string",default:""},postCountColor:{type:"string",default:""},taxonomyTitlePadding:{type:"object",default:""},taxonomyTitletBgColor:{type:"string",default:""},taxonomyTitlecolor:{type:"string",default:""},taxonomyTitleDirection:{type:"object",default:""},taxonomyTitlePosition:{type:"object",default:"space-between"},taxonomyTitleBorder:{type:"object",default:"2"},postTitleColor:{type:"string",default:""},postTitleHoverColor:{type:"string",default:""},postTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",
3202 3206 wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonPadding:{type:"object",default:""},buttonBorder:{type:"object",default:""},butttonColor:{type:"string",default:""},buttonBgColor:{type:"string",default:""},buttonHoverBgColor:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonHoverColor:{type:"string",default:""},buttonTypography:{type:"object",default:""},buttonPosition:{type:"object",default:"block"},cardBgColor:{type:"string",default:"block"},cardPadding:{type:"object",default:"block"},cardBorder:{type:"object",default:"block"},icon:{type:"object",default:"block"},buttonText:{type:"string",default:"View More"},showTab:{type:"boolean",default:!1},showTabScrolling:{type:"boolean",default:!1},hoverPostBackgroundColor:{type:"string",default:""},activePostBackgroundColor:{type:"string",default:""},postTitleActiveColor:{type:"string",default:""},activePostBorder:{type:"object",default:""},postBorder:{type:"object",
3203 3207 default:""},postBackgroundColor:{type:"string",default:""},showPost:{type:"boolean",default:!0},cardBgHoverColor:{type:"string",default:""},showPostLink:{type:"boolean",default:!1},showInherit:{type:"boolean",default:!1},showTermCountPrefix:{type:"boolean",default:!1},countPrefixText:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},showIconDffent:{type:"boolean",default:!1},iconBgColor:{type:"string",default:""},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},postPadding:{type:"object",default:""},iconBorderRadius:{type:"object",default:""},postCountWidth:{type:"number",default:""},iconSvgPath:{type:"string",
3204 3208 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
@@ -3212,26 +3216,26 @@
3212 3216 imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",
3213 3217 imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",
3214 3218 offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",
3215 3219 scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{
3216 -animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function nU(t){
3220 +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function pU(t){
3217 3221 const{attributes:e,setAttributes:i}=t,{block_id:o,selectedPostType:n,activeTaxonomy:b=[],selectedTerms:c={},numberOfPosts:d,postOrder:u="desc",postOrderBy:p="date",taxonomyLayout:m="list",itemsPerRow:h=3,showTermCount:g,enableReloadButton:f,allowIcon:y,buttonText:T,showPost:H,showInherit:M,countPrefixText:x,showTermCountPrefix:k,showIconDffent:v,showPostLink:_}=e,R=p||"date",S=u||"desc",W=(0,a.useMemo)(()=>Array.isArray(b)&&b.some(t=>"string"==typeof t&&""!==t.trim()),[b]),P=(0,r.useSelect)(t=>n?(t(zl.store).getTaxonomies({type:n})||[]).map(e=>{const i=t(zl.store).getEntityRecords("taxonomy",e.slug,{per_page:-1})||[];return{...e,terms:i}}):[],[n]),U=(0,a.useMemo)(()=>{if(!M||!Array.isArray(b))return{};const t={};if("undefined"!=typeof window&&window.location){const e=window.location.pathname.split("/").filter(Boolean);b.forEach(i=>{const o=P.find(t=>t.slug===i);if(!o)return;let a=null;if(o.terms?.forEach(t=>{e.includes(t.slug)&&(a=t.id)}),a)t[i]=[a];else{
3218 3222 const e=o.terms?.map(t=>t.id)||[];e.length>0&&(t[i]=e)}})}return t},[M,b,P]),j=M?U:c,w="flex"===m&&Object.values(j).some(t=>Array.isArray(t)&&t.length>0)?{gridTemplateColumns:`repeat(${h||""}, 1fr)`}:void 0,z=(0,r.useSelect)(t=>{const e={};return n&&Array.isArray(b)?(b.forEach(i=>{const o=P.find(t=>t.slug===i);if(!o)return;const a=o.rest_base||i;(j[i]||[]).forEach(o=>{const l={per_page:-1===d?2e3:d,orderby:R,order:S,[a]:o},s=t(zl.store).getEntityRecords("postType",n,l);s&&(e[`${i}-${o}`]=s)})}),e):e},[n,b,j,d,u,p,P]),C=(0,r.useSelect)(t=>{const e={};return _&&Array.isArray(b)&&0!==b.length?(b.forEach(i=>{const o=P.find(t=>t.slug===i);if(!o)return;const a=o.rest_base||i,l=Array.isArray(o.types)&&o.types.length?o.types:["post"],s=n?[n]:l;(j?.[i]||[]).forEach(o=>{let l="";for(const e of s){const i=t(zl.store).getEntityRecords("postType",e,{per_page:1,orderby:R,order:S,status:"publish",[a]:o});if(i&&i.length&&(l=i[0]?.link||"",l))break}l&&(e[`${i}-${o}`]=l)})}),e):e},[_,n,b,j,P]);return(0,
3219 -I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:lU.UU,attributes:e,children:(0,I.jsx)("div",{className:s()(`ablocks-taxonomy-listing_${m}`),style:w,children:n?W?b.map(t=>{const i=P.find(e=>e.slug===t);if(!i)return null;const o=j[t]||[];return 0===o.length?(0,I.jsx)("div",{className:"ablocks-taxonomy-listing-item",children:(0,I.jsx)("p",{className:"ablocks-taxonomy-not-found",children:(0,L.__)("Please select at least one term for this taxonomy.","ablocks")})},`empty-${t}`):o.map(o=>{const a=i.terms?.find(t=>t.id===o),l=z[`${t}-${o}`]||[];return a?(0,I.jsxs)("div",{className:"ablocks-taxonomy-listing-item",children:[(0,I.jsxs)("h3",{className:"ablocks-taxonomy-title",children:[v&&y&&(0,I.jsx)("span",{className:"ablocks-taxonomy-icon",children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:(0,I.jsx)("path",{
3223 +I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:uU.UU,attributes:e,children:(0,I.jsx)("div",{className:s()(`ablocks-taxonomy-listing_${m}`),style:w,children:n?W?b.map(t=>{const i=P.find(e=>e.slug===t);if(!i)return null;const o=j[t]||[];return 0===o.length?(0,I.jsx)("div",{className:"ablocks-taxonomy-listing-item",children:(0,I.jsx)("p",{className:"ablocks-taxonomy-not-found",children:(0,L.__)("Please select at least one term for this taxonomy.","ablocks")})},`empty-${t}`):o.map(o=>{const a=i.terms?.find(t=>t.id===o),l=z[`${t}-${o}`]||[];return a?(0,I.jsxs)("div",{className:"ablocks-taxonomy-listing-item",children:[(0,I.jsxs)("h3",{className:"ablocks-taxonomy-title",children:[v&&y&&(0,I.jsx)("span",{className:"ablocks-taxonomy-icon",children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:(0,I.jsx)("path",{
3220 3224 d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"})})}),(0,I.jsxs)("span",{className:!0===v?"ablocks-taxonomy-listing_direction":"",children:[!1===v&&y&&(0,I.jsx)("span",{className:"ablocks-taxonomy-icon",children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:(0,I.jsx)("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"})})
3221 3225 }),"singlePagelink"===e.pageLinks&&C[`${t}-${o}`]?(0,I.jsx)("a",{href:C[`${t}-${o}`],children:a.name}):"archivePagelink"===e.pageLinks?(0,I.jsx)("a",{href:a.link,children:a.name}):a.name,g&&!0===v&&(0,I.jsxs)("span",{className:"ablocks-taxonomy-title__post-count",children:[a.count,k&&(0,I.jsx)("span",{children:x})]})]}),g&&!1===v&&(0,I.jsxs)("span",{className:"ablocks-taxonomy-title__post-count",children:[a.count,k&&(0,I.jsx)("span",{children:x})]})]}),H&&(0,I.jsxs)("div",{className:"ablocks-taxonomy-listing-item_content",children:[l.length>0?(0,I.jsx)("ul",{className:"ablocks-taxonomy-posts",children:l.map(t=>(0,I.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,I.jsx)("div",{dangerouslySetInnerHTML:{__html:t.title.rendered}})},t.id))}):(0,I.jsx)("p",{children:(0,L.__)("No posts found.","ablocks")}),f&&(0,I.jsx)("div",{className:"ablocks-reload-button-wrapper",children:(0,I.jsx)("a",{href:a.link||`/${t}/${a.slug}`,className:"ablocks-reload-button",children:T})})]})]
3222 -},`${t}-${o}`):null})}):(0,I.jsx)("p",{className:"ablocks-taxonomy-not-found",children:(0,L.__)("Please select a taxonomy for this post type.","ablocks")}):(0,I.jsx)("p",{className:"ablocks-posttype-not-found",children:(0,L.__)("Please select a post type first.","ablocks")})})})})}nU.propTypes={};const sU=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),rU=(t,e="")=>{const i=(0,M.Zy)(t.taxonomyTitleTypography,{weight:"500"}),o=t.taxonomyTitleTypographyGlobal?t.taxonomyTitleTypographyGlobal:"",a=(0,M.Zy)(t?.taxonomyTitleDirection,{unit:"px"}),l=(0,M.Zy)(t.taxonomyTitleBorder,{unitWidth:"px",unitRadius:"px"});return(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),{...(0,U.qD)(i,e,o),...(0,Zt.qD)(t?.taxonomyTitlePosition,"justify-content",e),...(0,Zt.qD)(t?.taxonomyTitleDirection,"flex-direction",e),...(0,c.qD)(a,"padding",e),...(0,c.qD)(t?.taxonomyTitlePadding,"padding",e),...(0,y.qD)(l,e),color:t.taxonomyTitlecolor||"",background:t.taxonomyTitletBgColor||""}},bU=(t,e="")=>{
3223 -const i=(0,M.Zy)(t.taxonomyTitleBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},cU=(t,e="")=>{const i={},o=(0,M.Zy)(t.postCountTypography,{weight:"500"}),a=t.postCountTypographyGlobal?t.postCountTypographyGlobal:"",l=(0,M.Zy)(t.postCountBorder,{unitWidth:"px",unitRadius:"px"});return t?.postCountWidth&&(i.width=`${t?.postCountWidth}px`),t?.postCountWidth&&(i.height=`${t?.postCountWidth}px`),{...i,...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),color:t.postCountColor||"",background:t.postCountBgColor||""}},dU=(t,e="")=>{const i=(0,M.Zy)(t.postCountBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},uU=(t,e="")=>{const i={};t?.cardBgColor&&(i.background=t?.cardBgColor);const o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,H.qD)(t?.cardBoxShadow,e)}},pU=(t,e="")=>{const i={},o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return t?.cardBgHoverColor&&(i.background=t?.cardBgHoverColor),{...i,...(0,y.a9)(o,e),...(0,
3224 -H.a9)(t?.cardBoxShadow,"box-shadow",e)}},mU=(t,e="")=>{const i=(0,M.Zy)(t?.cardPadding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},hU=(t,e="")=>{const i={},o=(0,M.Zy)(t?.iconPadding,{unit:"px"}),a=(0,M.Zy)(t?.iconBorderRadius,{unit:"px"});return t?.iconBgColor&&(i.background=t?.iconBgColor),{...(0,c.qD)(o,"padding",e),...(0,c.qD)(a,"border-radius",e),...i}},gU=(t,e="")=>{const i={};return t?.iconsSize&&(i.width=`${t?.iconsSize}px`),t?.iconsSize&&(i.height=`${t?.iconsSize}px`),{...i}},fU=(t,e="")=>{const i={};return t?.iconColor&&(i.fill=t?.iconColor),{...i}},yU=(t,e="")=>{const i=(0,M.Zy)(t.postTitleTypography,{weight:"500"}),o=t.postTitleTypographyGlobal?t.postTitleTypographyGlobal:"",a=(0,M.Zy)(t?.postPadding,{unit:"px"}),l=(0,M.Zy)(t.postBorder,{unitWidth:"px",unitRadius:"px"}),n={};return t?.postTitleColor&&(n.color=t?.postTitleColor),t?.postBackgroundColor&&(n.background=t?.postBackgroundColor),{...n,...(0,U.qD)(i,e,o),...(0,c.qD)(a,"padding",e),...(0,y.qD)(l,e)}
3225 -},TU=(t,e="")=>{const i={};return t?.postTitleHoverColor&&(i.color=t?.postTitleHoverColor),t?.hoverPostBackgroundColor&&(i.background=t?.hoverPostBackgroundColor),{...i}},HU=(t,e="")=>{const i=(0,M.Zy)(t.activePostBorder,{unitWidth:"px",unitRadius:"px"}),o={};return t?.postTitleActiveColor&&(o.color=t?.postTitleActiveColor),t?.activePostBackgroundColor&&(o.background=t?.activePostBackgroundColor),{...o,...(0,y.qD)(i,e)}},MU=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"500"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t?.buttonPadding,{unit:"px"}),l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n={};return t?.buttonColor&&(n.color=t?.buttonColor),t?.buttonBgColor&&(n.background=t?.buttonBgColor),{...n,...(0,U.qD)(i,e,o),...(0,y.qD)(l,e),...(0,c.qD)(a,"padding",e),...(0,c.qD)(t?.buttonPadding,"padding",e),...(0,Zt.qD)(t?.buttonPosition,"display",e)}},xU=(t,e="")=>{const i={};t?.buttonHoverColor&&(i.color=t?.buttonHoverColor),
3226 -t?.buttonHoverBgColor&&(i.background=t?.buttonHoverBgColor);const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e)}},kU=(t,e="")=>{const i=t.taxonomyLayout||"flex",o=t.itemsPerRow||3,a={};return"Tablet"===e?a["grid-template-columns"]="repeat(2, 1fr)":"Mobile"===e?a["grid-template-columns"]="repeat(1, 1fr)":t?.itemsPerRow&&(a["grid-template-columns"]=`repeat(${t.itemsPerRow}, 1fr)`),"flex"===i?{display:"grid",gap:"1.5rem",...a}:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`,gap:"1.5rem",marginTop:"2rem",...a}};function vU({attributes:t,setAttributes:e,context:i}){const{metaKey:o="",linkAdd:a=!1,trimMode:n,trimLimit:s,trimEndSymbol:b,dynamicTextColor:c,dynamicTypography:d,alignment:u}=t;l().useLayoutEffect(()=>{o||e({metaKey:"core:title"})},[]);const p=(0,r.useSelect)(t=>t("core/editor")?.getCurrentPostType?.()||"",[]),m=i?.postType||p||"",h=(0,r.useSelect)(t=>m?(t("core")?.getTaxonomies({per_page:-1
3226 +},`${t}-${o}`):null})}):(0,I.jsx)("p",{className:"ablocks-taxonomy-not-found",children:(0,L.__)("Please select a taxonomy for this post type.","ablocks")}):(0,I.jsx)("p",{className:"ablocks-posttype-not-found",children:(0,L.__)("Please select a post type first.","ablocks")})})})})}pU.propTypes={};const mU=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),hU=(t,e="")=>{const i=(0,M.Zy)(t.taxonomyTitleTypography,{weight:"500"}),o=t.taxonomyTitleTypographyGlobal?t.taxonomyTitleTypographyGlobal:"",a=(0,M.Zy)(t?.taxonomyTitleDirection,{unit:"px"}),l=(0,M.Zy)(t.taxonomyTitleBorder,{unitWidth:"px",unitRadius:"px"});return(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),{...(0,U.qD)(i,e,o),...(0,Zt.qD)(t?.taxonomyTitlePosition,"justify-content",e),...(0,Zt.qD)(t?.taxonomyTitleDirection,"flex-direction",e),...(0,c.qD)(a,"padding",e),...(0,c.qD)(t?.taxonomyTitlePadding,"padding",e),...(0,y.qD)(l,e),color:t.taxonomyTitlecolor||"",background:t.taxonomyTitletBgColor||""}},gU=(t,e="")=>{
3227 +const i=(0,M.Zy)(t.taxonomyTitleBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},fU=(t,e="")=>{const i={},o=(0,M.Zy)(t.postCountTypography,{weight:"500"}),a=t.postCountTypographyGlobal?t.postCountTypographyGlobal:"",l=(0,M.Zy)(t.postCountBorder,{unitWidth:"px",unitRadius:"px"});return t?.postCountWidth&&(i.width=`${t?.postCountWidth}px`),t?.postCountWidth&&(i.height=`${t?.postCountWidth}px`),{...i,...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),color:t.postCountColor||"",background:t.postCountBgColor||""}},yU=(t,e="")=>{const i=(0,M.Zy)(t.postCountBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},TU=(t,e="")=>{const i={};t?.cardBgColor&&(i.background=t?.cardBgColor);const o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,H.qD)(t?.cardBoxShadow,e)}},HU=(t,e="")=>{const i={},o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return t?.cardBgHoverColor&&(i.background=t?.cardBgHoverColor),{...i,...(0,y.a9)(o,e),...(0,
3228 +H.a9)(t?.cardBoxShadow,"box-shadow",e)}},MU=(t,e="")=>{const i=(0,M.Zy)(t?.cardPadding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},xU=(t,e="")=>{const i={},o=(0,M.Zy)(t?.iconPadding,{unit:"px"}),a=(0,M.Zy)(t?.iconBorderRadius,{unit:"px"});return t?.iconBgColor&&(i.background=t?.iconBgColor),{...(0,c.qD)(o,"padding",e),...(0,c.qD)(a,"border-radius",e),...i}},kU=(t,e="")=>{const i={};return t?.iconsSize&&(i.width=`${t?.iconsSize}px`),t?.iconsSize&&(i.height=`${t?.iconsSize}px`),{...i}},vU=(t,e="")=>{const i={};return t?.iconColor&&(i.fill=t?.iconColor),{...i}},_U=(t,e="")=>{const i=(0,M.Zy)(t.postTitleTypography,{weight:"500"}),o=t.postTitleTypographyGlobal?t.postTitleTypographyGlobal:"",a=(0,M.Zy)(t?.postPadding,{unit:"px"}),l=(0,M.Zy)(t.postBorder,{unitWidth:"px",unitRadius:"px"}),n={};return t?.postTitleColor&&(n.color=t?.postTitleColor),t?.postBackgroundColor&&(n.background=t?.postBackgroundColor),{...n,...(0,U.qD)(i,e,o),...(0,c.qD)(a,"padding",e),...(0,y.qD)(l,e)}
3229 +},RU=(t,e="")=>{const i={};return t?.postTitleHoverColor&&(i.color=t?.postTitleHoverColor),t?.hoverPostBackgroundColor&&(i.background=t?.hoverPostBackgroundColor),{...i}},SU=(t,e="")=>{const i=(0,M.Zy)(t.activePostBorder,{unitWidth:"px",unitRadius:"px"}),o={};return t?.postTitleActiveColor&&(o.color=t?.postTitleActiveColor),t?.activePostBackgroundColor&&(o.background=t?.activePostBackgroundColor),{...o,...(0,y.qD)(i,e)}},WU=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"500"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t?.buttonPadding,{unit:"px"}),l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n={};return t?.buttonColor&&(n.color=t?.buttonColor),t?.buttonBgColor&&(n.background=t?.buttonBgColor),{...n,...(0,U.qD)(i,e,o),...(0,y.qD)(l,e),...(0,c.qD)(a,"padding",e),...(0,c.qD)(t?.buttonPadding,"padding",e),...(0,Zt.qD)(t?.buttonPosition,"display",e)}},PU=(t,e="")=>{const i={};t?.buttonHoverColor&&(i.color=t?.buttonHoverColor),
3230 +t?.buttonHoverBgColor&&(i.background=t?.buttonHoverBgColor);const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e)}},UU=(t,e="")=>{const i=t.taxonomyLayout||"flex",o=t.itemsPerRow||3,a={};return"Tablet"===e?a["grid-template-columns"]="repeat(2, 1fr)":"Mobile"===e?a["grid-template-columns"]="repeat(1, 1fr)":t?.itemsPerRow&&(a["grid-template-columns"]=`repeat(${t.itemsPerRow}, 1fr)`),"flex"===i?{display:"grid",gap:"1.5rem",...a}:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`,gap:"1.5rem",marginTop:"2rem",...a}};function jU({attributes:t,setAttributes:e,context:i}){const{metaKey:o="",linkAdd:a=!1,trimMode:n,trimLimit:s,trimEndSymbol:b,dynamicTextColor:c,dynamicTypography:d,alignment:u}=t;l().useLayoutEffect(()=>{o||e({metaKey:"core:title"})},[]);const p=(0,r.useSelect)(t=>t("core/editor")?.getCurrentPostType?.()||"",[]),m=i?.postType||p||"",h=(0,r.useSelect)(t=>m?(t("core")?.getTaxonomies({per_page:-1
3227 3231 })||[]).filter(t=>Array.isArray(t.types)&&t.types.includes(m)):[],[m]),g=[{label:(0,L.__)("Title","ablocks"),value:"core:title"},{label:(0,L.__)("Content","ablocks"),value:"core:content"},{label:(0,L.__)("Excerpt","ablocks"),value:"core:excerpt"},{label:(0,L.__)("Date (published)","ablocks"),value:"core:date"},{label:(0,L.__)("Date (Modified)","ablocks"),value:"core:last_modified"},{label:(0,L.__)("Permalink","ablocks"),value:"core:permalink"},{label:(0,L.__)("Author Name","ablocks"),value:"core:author"}],f=(h||[]).flatMap(t=>[{label:`[Tax] ${t.labels?.name||t.name} (Names)`,value:`__tax:${t.slug}:names`}]),y=l().useMemo(()=>{const t=[...g,...f];return t.some(t=>t.value===o)||!o?t:[{label:`[Meta] ${o}`,value:o},...t]},[o,h]);return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:t,setAttributes:e,children:(0,I.jsx)(V,{title:(0,L.__)("Field / Meta","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.ComboboxControl,{
3228 3232 className:"dynamic-text-control",__nextHasNoMarginBottom:!0,label:(0,L.__)("Field / Taxonomy","ablocks"),value:o||"core:title",onChange:t=>e({metaKey:t||"core:title"}),options:y}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Trim Mode (words)","ablocks"),attributeValue:n,setAttributes:e,attributeName:"trimMode"}),!!n&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Word Limit","ablocks"),attributeName:"trimLimit",attributeValue:s,setAttributes:e,min:1,isInline:!0,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("End Symbol","ablocks"),attributeName:"trimEndSymbol",attributeValue:b,setAttributes:e,isInline:!1,disableDynamicContent:!0,placeholder:"…"})]}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Link","ablocks"),attributeValue:a,setAttributes:e,attributeName:"linkAdd"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"dynamicTextColor",attributeValue:c,setAttributes:e}),(0,I.jsx)(wc,{
3229 -label:(0,L.__)("Typography","ablocks"),attributeName:"dynamicTypography",attributeValue:d,setAttributes:e,isResponsive:!0,attributes:t}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:u,setAttributes:e,isInline:!1})]})})})})})}(0,M.xV)(lU.UU)&&(0,o.registerBlockType)(lU.UU,{title:(0,L.__)("Taxonomy Listing","ablocks"),attributes:lU.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--taxonomy-listing"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",sU(i),sU(i,"Tablet"),sU(i,"Mobile"),t.customDeviceMap(t=>sU(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,
3233 +label:(0,L.__)("Typography","ablocks"),attributeName:"dynamicTypography",attributeValue:d,setAttributes:e,isResponsive:!0,attributes:t}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:u,setAttributes:e,isInline:!1})]})})})})})}(0,M.xV)(uU.UU)&&(0,o.registerBlockType)(uU.UU,{title:(0,L.__)("Taxonomy Listing","ablocks"),attributes:uU.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--taxonomy-listing"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",mU(i),mU(i,"Tablet"),mU(i,"Mobile"),t.customDeviceMap(t=>mU(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,
3230 3234 Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),
3231 -t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item",uU(i),uU(i,"Tablet"),uU(i,"Mobile"),t.customDeviceMap(t=>uU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item:hover",pU(i),pU(i,"Tablet"),pU(i,"Mobile"),t.customDeviceMap(t=>pU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item_content ",mU(i),mU(i,"Tablet"),mU(i,"Mobile"),t.customDeviceMap(t=>mU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title",rU(i),rU(i,"Tablet"),rU(i,"Mobile"),t.customDeviceMap(t=>rU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title:hover",bU(i),bU(i,"Tablet"),bU(i,"Mobile"),t.customDeviceMap(t=>bU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a",yU(i),yU(i,"Tablet"),yU(i,"Mobile"),t.customDeviceMap(t=>yU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a:hover",TU(i),TU(i,"Tablet"),TU(i,"Mobile"),t.customDeviceMap(t=>TU(i,t))),
3232 -t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a.active-post-link",HU(i),HU(i,"Tablet"),HU(i,"Mobile"),t.customDeviceMap(t=>HU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title__post-count",cU(i),cU(i,"Tablet"),cU(i,"Mobile"),t.customDeviceMap(t=>cU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title__post-count:hover",dU(i),dU(i,"Tablet"),dU(i,"Mobile"),t.customDeviceMap(t=>dU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-reload-button",MU(i),MU(i,"Tablet"),MU(i,"Mobile"),t.customDeviceMap(t=>MU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-reload-button:hover",xU(i),xU(i,"Tablet"),xU(i,"Mobile"),t.customDeviceMap(t=>xU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-container.flex",kU(i),kU(i,"Tablet"),kU(i,"Mobile"),t.customDeviceMap(t=>kU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon",hU(i),hU(i,"Tablet"),hU(i,"Mobile"),t.customDeviceMap(t=>hU(i,t))),
3233 -t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon svg",gU(i),gU(i,"Tablet"),gU(i,"Mobile"),t.customDeviceMap(t=>gU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon svg path",fU(i),fU(i,"Tablet"),fU(i,"Mobile"),t.customDeviceMap(t=>fU(i,t))),(0,b.applyFilters)("ablocks.taxonomyListing.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(aU,{...t}),(0,I.jsx)("style",{children:s}),(0,I.jsx)(nU,{...t})]})},save:()=>null}),vU.propTypes={};const _U={UU:"ablocks/dynamic-text",uK:{dynamicTypographyGlobal:{type:"string",default:""},dynamicTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",
3235 +t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item",TU(i),TU(i,"Tablet"),TU(i,"Mobile"),t.customDeviceMap(t=>TU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item:hover",HU(i),HU(i,"Tablet"),HU(i,"Mobile"),t.customDeviceMap(t=>HU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item_content ",MU(i),MU(i,"Tablet"),MU(i,"Mobile"),t.customDeviceMap(t=>MU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title",hU(i),hU(i,"Tablet"),hU(i,"Mobile"),t.customDeviceMap(t=>hU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title:hover",gU(i),gU(i,"Tablet"),gU(i,"Mobile"),t.customDeviceMap(t=>gU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a",_U(i),_U(i,"Tablet"),_U(i,"Mobile"),t.customDeviceMap(t=>_U(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a:hover",RU(i),RU(i,"Tablet"),RU(i,"Mobile"),t.customDeviceMap(t=>RU(i,t))),
3236 +t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a.active-post-link",SU(i),SU(i,"Tablet"),SU(i,"Mobile"),t.customDeviceMap(t=>SU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title__post-count",fU(i),fU(i,"Tablet"),fU(i,"Mobile"),t.customDeviceMap(t=>fU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title__post-count:hover",yU(i),yU(i,"Tablet"),yU(i,"Mobile"),t.customDeviceMap(t=>yU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-reload-button",WU(i),WU(i,"Tablet"),WU(i,"Mobile"),t.customDeviceMap(t=>WU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-reload-button:hover",PU(i),PU(i,"Tablet"),PU(i,"Mobile"),t.customDeviceMap(t=>PU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-container.flex",UU(i),UU(i,"Tablet"),UU(i,"Mobile"),t.customDeviceMap(t=>UU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon",xU(i),xU(i,"Tablet"),xU(i,"Mobile"),t.customDeviceMap(t=>xU(i,t))),
3237 +t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon svg",kU(i),kU(i,"Tablet"),kU(i,"Mobile"),t.customDeviceMap(t=>kU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon svg path",vU(i),vU(i,"Tablet"),vU(i,"Mobile"),t.customDeviceMap(t=>vU(i,t))),(0,b.applyFilters)("ablocks.taxonomyListing.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(dU,{...t}),(0,I.jsx)("style",{children:s}),(0,I.jsx)(pU,{...t})]})},save:()=>null}),jU.propTypes={};const wU={UU:"ablocks/dynamic-text",uK:{dynamicTypographyGlobal:{type:"string",default:""},dynamicTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",
3234 3238 letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},metaKey:{type:"string",default:""},linkAdd:{type:"boolean",default:!1},trimMode:{type:"boolean",default:!1},dynamicTextColor:{type:"string",default:""},trimLimit:{type:"number",default:0},trimEndSymbol:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",
3235 3239 right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,
3236 3240 commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",
3237 3241 bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",
@@ -3238,20 +3242,20 @@
3238 3242 imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",
3239 3243 imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",
3240 3244 offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",
3241 3245 scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",
3242 -animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function RU(t){const{attributes:e,context:i}=t,o=function(t,e){
3243 -const i=t=>parseInt(t||0,10)||0;return(0,r.useSelect)(o=>{const a=o("core/editor"),l=o("core/edit-site")?.getEditedPostContext?.()??{},n=i(t?.postId||a?.getCurrentPostId?.()||l?.postId||e?.postId);if(n)return n;const s=t?.postType||l?.postType||a?.getCurrentPostType?.()||"post",r=o("core")?.getEntityRecords?.("postType",s,{per_page:1,order:"desc",orderby:"date"});return i(r?.[0]?.id)},[t?.postId,t?.postType,e?.postId])}(i,e);return(0,I.jsx)(tP,{blockId:e.block_id,name:_U.UU,attributes:e,children:(0,I.jsx)(N.Disabled,{children:(0,I.jsx)(tW(),{block:"ablocks/dynamic-text",httpMethod:"POST",attributes:{...e,postId:o},urlQueryArgs:o?{post_id:o}:{}},`dynamic-text-${o}`)})})}RU.propTypes={};const SU=(t,e="")=>{const i={},o=(0,M.Zy)(t.dynamicTypography,{weight:"500"});return t?.dynamicTextColor&&(i.color=(0,Hs.qD)(t?.dynamicTextColor)),{...i,...(0,U.qD)(o,e),...(0,Zt.qD)(t?.alignment,"text-align",e)}};(0,M.xV)(_U.UU)&&(0,o.registerBlockType)(_U.UU,{title:(0,L.__)("Dynamic Text","ablocks"),
3244 -attributes:_U.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--dynamic-text"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .dynami-text-output",SU(i),SU(i,"Tablet"),SU(i,"Mobile"),t.customDeviceMap(t=>SU(i,t))),t.addClassStyles("{{WRAPPER}} .dynami-text-output a",SU(i),SU(i,"Tablet"),SU(i,"Mobile"),t.customDeviceMap(t=>SU(i,t))),(0,b.applyFilters)("ablocks.breadcrumb.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(vU,{...t}),(0,I.jsx)("style",{children:s}),(0,I.jsx)(RU,{...t})]})},save:()=>null});var WU=i(60690);function PU(t){
3246 +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function zU(t){const{attributes:e,context:i}=t,o=function(t,e){
3247 +const i=t=>parseInt(t||0,10)||0;return(0,r.useSelect)(o=>{const a=o("core/editor"),l=o("core/edit-site")?.getEditedPostContext?.()??{},n=i(t?.postId||a?.getCurrentPostId?.()||l?.postId||e?.postId);if(n)return n;const s=t?.postType||l?.postType||a?.getCurrentPostType?.()||"post",r=o("core")?.getEntityRecords?.("postType",s,{per_page:1,order:"desc",orderby:"date"});return i(r?.[0]?.id)},[t?.postId,t?.postType,e?.postId])}(i,e);return(0,I.jsx)(sP,{blockId:e.block_id,name:wU.UU,attributes:e,children:(0,I.jsx)(N.Disabled,{children:(0,I.jsx)(sW(),{block:"ablocks/dynamic-text",httpMethod:"POST",attributes:{...e,postId:o},urlQueryArgs:o?{post_id:o}:{}},`dynamic-text-${o}`)})})}zU.propTypes={};const CU=(t,e="")=>{const i={},o=(0,M.Zy)(t.dynamicTypography,{weight:"500"});return t?.dynamicTextColor&&(i.color=(0,Hs.qD)(t?.dynamicTextColor)),{...i,...(0,U.qD)(o,e),...(0,Zt.qD)(t?.alignment,"text-align",e)}};(0,M.xV)(wU.UU)&&(0,o.registerBlockType)(wU.UU,{title:(0,L.__)("Dynamic Text","ablocks"),
3248 +attributes:wU.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--dynamic-text"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .dynami-text-output",CU(i),CU(i,"Tablet"),CU(i,"Mobile"),t.customDeviceMap(t=>CU(i,t))),t.addClassStyles("{{WRAPPER}} .dynami-text-output a",CU(i),CU(i,"Tablet"),CU(i,"Mobile"),t.customDeviceMap(t=>CU(i,t))),(0,b.applyFilters)("ablocks.breadcrumb.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(jU,{...t}),(0,I.jsx)("style",{children:s}),(0,I.jsx)(zU,{...t})]})},save:()=>null});var AU=i(60690);function LU(t){
3245 3249 const{attributes:e,setAttributes:i}=t,{alignment:o,menuItemTypography:a,menuItemTextColor:n,menuItemTextColorH:s,menuItemBackgroundH:r,menuItemBackground:b,menuItemPadding:c,menuItemMargin:d,menuItemBorder:u,sideBarMenuDevice:p,enableTabletHamburger:m,subMenuTrigger:h,mobileMenuPosition:g,hamburgerAlignment:f,hamburgerColor:y,hamburgerBackground:T,hamburgerPadding:H,hamburgerWidth:M,hamburgerHeight:x,hamburgerBorder:k,menuResponsiveBackground:v,menuResponsiveTextColor:_,subMenuWidth:R,subMenuBoxShadow:S,subMenuBorder:W,subMenuPadding:P,subMenuResponsiveColor:U,subMenuResponsiveBg:j,subMenuItemTextColor:w,subMenuItemBackground:z,subMenuItemTextColorH:C,subMenuItemBackgroundH:A,menuActveColor:N,menuActveColorBg:O}=e,Y=lt(),X="Tablet"===Y&&"tablet"===p||"Mobile"===Y;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/navigation-menu/",children:[(0,I.jsx)(V,{title:(0,L.__)("Nav","ablocks"),
3246 3250 initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,isResponsive:!0,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Ut,{label:(0,L.__)("Hamburger Menu Device","ablocks"),options:[{label:(0,L.__)("Tablet","ablocks"),value:"tablet"},{label:(0,L.__)("Mobile","ablocks"),value:"mobile"}],attributeName:"sideBarMenuDevice",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Enable Tablet Hamburger Menu","ablocks"),isResponsive:!1,attributeName:"enableTabletHamburger",attributeValue:m,setAttributes:i}),(0,I.jsx)(Iv,{note:(0,L.__)("Shows the hamburger menu on tablets (768px–1024px).","ablocks")}),(0,I.jsx)(Ut,{label:(0,L.__)("Mobile Menu Position","ablocks"),options:[{label:(0,
3247 3251 L.__)("Below Header","ablocks"),value:"below-header"},{label:(0,L.__)("Overlay Header","ablocks"),value:"overlay-header"}],attributeName:"mobileMenuPosition",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Sub-menu Trigger (desktop)","ablocks"),options:[{label:(0,L.__)("Hover","ablocks"),value:"hover"},{label:(0,L.__)("Click","ablocks"),value:"click"}],attributeName:"subMenuTrigger",attributeValue:h,setAttributes:i})]})}),X&&(0,I.jsx)(V,{title:(0,L.__)("Mobile Hamburger","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"hamburgerAlignment",attributeValue:f,isResponsive:!1,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Hamburger Width","ablocks"),
3248 -isResponsive:!1,min:0,max:100,attributeName:"hamburgerWidth",attributeValue:M,hasUnit:!0,setAttributes:i,isInline:!1,attributeDefaultValue:WU.wP}),(0,I.jsx)(_t,{label:(0,L.__)("Hamburger Height","ablocks"),isResponsive:!1,min:0,max:100,hasUnit:!0,attributeName:"hamburgerHeight",attributeValue:x,setAttributes:i,isInline:!1,attributeDefaultValue:WU.JH})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"hamburgerColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"hamburgerBackground",attributeValue:T,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"hamburgerPadding",attributeValue:H,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"hamburgerBorder",attributeValue:k,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Menu Item","ablocks"),
3252 +isResponsive:!1,min:0,max:100,attributeName:"hamburgerWidth",attributeValue:M,hasUnit:!0,setAttributes:i,isInline:!1,attributeDefaultValue:AU.wP}),(0,I.jsx)(_t,{label:(0,L.__)("Hamburger Height","ablocks"),isResponsive:!1,min:0,max:100,hasUnit:!0,attributeName:"hamburgerHeight",attributeValue:x,setAttributes:i,isInline:!1,attributeDefaultValue:AU.JH})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"hamburgerColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"hamburgerBackground",attributeValue:T,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"hamburgerPadding",attributeValue:H,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"hamburgerBorder",attributeValue:k,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Menu Item","ablocks"),
3249 3253 initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"menuItemTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColor",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackground",attributeValue:b,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColorH",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackgroundH",attributeValue:r,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,
3250 3254 isInline:!1,isResponsive:!1,attributeValue:e?.menuItemTransition||0,attributeName:"menuItemTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"menuItemBorder",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"menuItemPadding",attributeValue:c,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"menuItemMargin",attributeValue:d,setAttributes:i})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Menu Responsive","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"menuResponsiveTextColor",attributeValue:_,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuResponsiveBackground",attributeValue:v,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,
3251 -L.__)("Sub Menu Responsive","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"subMenuResponsiveColor",attributeValue:U,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuResponsiveBg",attributeValue:j,setAttributes:i})]}),(0,I.jsx)(V,{title:(0,L.__)("Submenu Style","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:50,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"subMenuWidth",attributeValue:R,setAttributes:i,attributeDefaultValue:WU.km,autoSyncRange:!0})}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subMenuItemTextColor",attributeValue:w,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
3255 +L.__)("Sub Menu Responsive","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"subMenuResponsiveColor",attributeValue:U,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuResponsiveBg",attributeValue:j,setAttributes:i})]}),(0,I.jsx)(V,{title:(0,L.__)("Submenu Style","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:50,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"subMenuWidth",attributeValue:R,setAttributes:i,attributeDefaultValue:AU.km,autoSyncRange:!0})}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subMenuItemTextColor",attributeValue:w,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
3252 3256 L.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuItemBackground",attributeValue:z,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subMenuItemTextColorH",attributeValue:C,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuItemBackgroundH",attributeValue:A,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.subMenuItemTransition||0,attributeName:"subMenuItemTransition",setAttributes:i})]})}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:S,setAttributes:i,attributeName:"subMenuBoxShadow"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"subMenuBorder",attributeValue:W,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,
3253 -attributeName:"subMenuPadding",attributeValue:P,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Menu Active Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"menuActveColor",attributeValue:N,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuActveColorBg",attributeValue:O,setAttributes:i})]})]})})})}PU.propTypes={};const UU={UU:"ablocks/menu",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:""},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemDisplay:{type:"string",default:"inline"},hamburgerAlignment:{type:"string",default:"left"},hamburgerColor:{type:"string",
3257 +attributeName:"subMenuPadding",attributeValue:P,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Menu Active Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"menuActveColor",attributeValue:N,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuActveColorBg",attributeValue:O,setAttributes:i})]})]})})})}LU.propTypes={};const DU={UU:"ablocks/menu",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:""},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemDisplay:{type:"string",default:"inline"},hamburgerAlignment:{type:"string",default:"left"},hamburgerColor:{type:"string",
3254 3258 default:"black"},hamburgerBackground:{type:"string",default:""},sideBarMenuDevice:{type:"string",default:"mobile"},enableTabletHamburger:{type:"boolean",default:!1},mobileMenuPosition:{type:"string",default:"below-header"},subMenuTrigger:{type:"string",default:"hover"},menuResponsiveBackground:{type:"string",default:""},menuResponsiveTextColor:{type:"string",default:""},subMenuResponsiveColor:{type:"string",default:""},subMenuResponsiveBg:{type:"string",default:""},subMenuItemTextColor:{type:"string",default:""},subMenuItemBackground:{type:"string",default:""},subMenuItemTextColorH:{type:"string",default:""},subMenuItemBackgroundH:{type:"string",default:""},subMenuItemTransition:{type:"number",default:0},menuActveColor:{type:"string",default:""},menuActveColorBg:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},hamburgerPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",
3255 3259 unit:"px"}},menuItemPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",
3256 3260 topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},
3257 3261 hamburgerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",
@@ -3266,21 +3270,21 @@
3266 3270 imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,
3267 3271 rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",
3268 3272 offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",
3269 3273 xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{
3270 -type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},jU=class{constructor(t,e=!1){this.element=t;const i=t?.getAttribute("data-menu-device");this.menuDevice=i,this.mobileMenuPosition=t?.getAttribute("data-mobile-menu-position")||"below-header",this.menu=t?.querySelector(`.ablocks-menu-${i}`),this.markCurrentMenuItems(e),this.newMenu=this.menu?.cloneNode(!0),this.mainMenu=this.newMenu?.querySelector(".ablocks-main-menu"),this.initMenuTriggers(e),this.initMenuItems(e),this.initDesktopClickTrigger(e),this.editorDiv=document?.querySelector(".interface-navigable-region.interface-interface-skeleton__content"),this.menuLists=this.element.querySelectorAll(".ablocks-block--menu-item")}markCurrentMenuItems(t){if(!t||!this.element)return;const e=window.location,i=t=>t.replace(/\/+$/,"")
3274 +type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},NU=class{constructor(t,e=!1){this.element=t;const i=t?.getAttribute("data-menu-device");this.menuDevice=i,this.mobileMenuPosition=t?.getAttribute("data-mobile-menu-position")||"below-header",this.menu=t?.querySelector(`.ablocks-menu-${i}`),this.markCurrentMenuItems(e),this.newMenu=this.menu?.cloneNode(!0),this.mainMenu=this.newMenu?.querySelector(".ablocks-main-menu"),this.initMenuTriggers(e),this.initMenuItems(e),this.initDesktopClickTrigger(e),this.editorDiv=document?.querySelector(".interface-navigable-region.interface-interface-skeleton__content"),this.menuLists=this.element.querySelectorAll(".ablocks-block--menu-item")}markCurrentMenuItems(t){if(!t||!this.element)return;const e=window.location,i=t=>t.replace(/\/+$/,"")
3271 3275 ;this.element.querySelectorAll(".ablocks-block--menu-item").forEach(t=>{const o=Array.from(t.children).find(t=>t.classList?.contains("ablocks-menu-item__link")),a=o?.getAttribute("href")?.trim();a&&!a.startsWith("#")&&/^https?:$/.test(o.protocol)&&(o.origin!==e.origin||i(o.pathname)!==i(e.pathname)||o.search!==e.search||o.hash&&o.hash!==e.hash||t.classList.add("ablocks-block--menu-item-active"))})}initMenuTriggers(t){const e=this.element?.querySelector(`.ablocks-menu-${this.menuDevice}__trigger`);this.toggleButton=e,e?.addEventListener("click",()=>this.toggleMenu(t))}initMenuItems(t){if(!t||!this.mainMenu)return;const e=this.mainMenu?.querySelectorAll(".ablocks-menu-item");e.forEach(t=>{t?.addEventListener("click",e=>{e.stopPropagation(),this.toggleMenuItem(t,e)})})}toggleMenuItem(t,e){e.target.closest(".ablocks-menu-child-mega")||t.classList.toggle("ablocks-sub-menu--active")}toggleMenu=t=>{const e=this.newMenu
3272 3276 ;if(t||this.menu.classList.toggle(`ablocks-menu-${this.menuDevice}--active`),e.style.position="absolute","overlay-header"===this.mobileMenuPosition){const t=this.toggleButton.getBoundingClientRect();e.style.top=`${t.bottom+window.scrollY}px`,e.style.right=window.innerWidth-t.right+"px"}else{const t=(this.element?.parentElement||this.toggleButton).getBoundingClientRect();e.style.top=`${t.bottom+window.scrollY}px`}e.classList.add("ablocks-menu--outside"),e?.classList.toggle(`ablocks-menu-${this.menuDevice}--active`),t&&document.body.appendChild(e)};toggleSubMenu(t){t.classList.toggle("ablocks-menu-child-sub--active")}toggleMegaMenu(t,e){e.target.closest(".ablocks-menu-child-mega--active")||t.classList.toggle("ablocks-menu-child-mega--active")}handleListClick(t){const e=t.target.closest(".ablocks-block--menu-item");e&&(this.menuLists.forEach(t=>t.classList.remove("ablocks-block--menu-item-active")),e.classList.add("ablocks-block--menu-item-active"))}init(){this.menuLists.forEach(t=>{
3273 3277 t.addEventListener("click",t=>{this.handleListClick(t)})})}initDesktopClickTrigger(t){if(!t||"click"!==this.element?.getAttribute("data-submenu-trigger"))return;const e=this.element;this.clickItems=[],e.querySelectorAll(".ablocks-menu-item").forEach(t=>{if(!Array.from(t.children).some(t=>t.classList&&(t.classList.contains("ablocks-menu-child-sub")||t.classList.contains("ablocks-menu-child-mega"))))return;const e=Array.from(t.querySelectorAll(".ablocks-menu-item__link, a")).find(e=>e.closest(".ablocks-menu-item")===t);if(!e)return;this.clickItems.push(t),e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false");const i=i=>{i.preventDefault(),i.stopPropagation();const o=!t.classList.contains("ablocks-submenu-open");this.closeSiblingSubmenus(t),t.classList.toggle("ablocks-submenu-open",o),e.setAttribute("aria-expanded",String(o))};e.addEventListener("click",i);const o=Array.from(t.children).find(t=>t.classList&&t.classList.contains("ablocks-menu-item__dropdown-icon"))
3274 -;o?.addEventListener("click",i)}),this.clickItems.length&&(document.addEventListener("click",t=>{e.contains(t.target)||this.closeAllSubmenus()}),e.addEventListener("keydown",t=>{"Escape"===t.key&&this.closeAllSubmenus()}))}closeSubmenu(t){t.classList.remove("ablocks-submenu-open");const e=Array.from(t.querySelectorAll(".ablocks-menu-item__link, a")).find(e=>e.closest(".ablocks-menu-item")===t);e?.setAttribute("aria-expanded","false")}closeSiblingSubmenus(t){const e=t.parentElement;e&&Array.from(e.children).forEach(e=>{e!==t&&e.classList?.contains("ablocks-submenu-open")&&this.closeSubmenu(e)})}closeAllSubmenus(){(this.clickItems||[]).forEach(t=>this.closeSubmenu(t))}};function wU(t){const{attributes:e,clientId:i}=t,{insertBlock:n}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{block_id:s,sideBarMenuDevice:b,subMenuTrigger:c,mobileMenuPosition:d,enableTabletHamburger:u}=e,{children:p,innerBlocksProps:m}=(0,D.useInnerBlocksProps)({},{
3275 -template:[["ablocks/menu-item",{label:"Home"}],["ablocks/menu-item",{label:"About"}],["ablocks/menu-item",{label:"Products"},[["ablocks/menu-child-sub",{},[["ablocks/menu-item",{label:"Academy LMS"}],["ablocks/menu-item",{label:"Ablocks"}]]]]],["ablocks/menu-item",{label:"Portfolio"}],["ablocks/menu-item",{label:"Contact"}]],allowedBlocks:["ablocks/menu-item"],renderAppender:!1});return(0,a.useEffect)(()=>{new jU((0,M.bu)(`.ablocks-block-${s}`))},[s]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:s,name:UU.UU,attributes:e,blockProps:{"data-menu-device":b,..."click"===c?{"data-submenu-trigger":"click"}:{},..."overlay-header"===d?{"data-mobile-menu-position":"overlay-header"}:{},...u?{"data-tablet-hamburger":"true"}:{}},children:[(0,I.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,I.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${b}__trigger`,children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,
3276 -I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,I.jsx)("nav",{className:`ablocks-menu ablocks-menu-${b}`,...u?{"data-tablet-hamburger":"true"}:{},children:(0,I.jsxs)("ul",{className:"ablocks-main-menu",...m,children:[p,(0,I.jsx)("button",{className:"ablocks-menu__new-item",onClick:()=>{const t=(0,o.createBlock)("ablocks/menu-item");n(t,0,i)},children:"+"})]})})]})})}wU.propTypes={};const zU=(t,e="")=>{const i=(0,M.Zy)(t.padding,{unit:"px"}),o={...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,"box-shadow",e)};return"string"==typeof t?.alignment?!e&&t.alignment&&(o["justify-content"]=t.alignment):Object.assign(o,(0,Zt.qD)(t?.alignment,"justify-content",e)),o},CU=(t,e="")=>{const i={};t?.menuItemBorder?.commonWidth&&(i["margin-top"]=`${t?.menuItemBorder?.commonWidth}px`),
3277 -t?.menuItemBorder?.bottomWidth&&(i["margin-top"]=`${t?.menuItemBorder?.bottomWidth}px`);const o=(0,M.Zy)(t.subMenuBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.subMenuPadding,{unit:"px"});return{...i,...(0,Eb.qD)({attributeValue:t?.subMenuWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:250,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.subMenuBoxShadow,"box-shadow",e),...(0,y.qD)(o,e)}},AU=(t,e="")=>{const i=(0,M.Zy)(t?.subMenuBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.subMenuBoxShadow,e)}},LU=(t,e="")=>{const i={};return t?.subMenuItemTransition&&(i["transition-duration"]=t?.subMenuItemTransition+"s"),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.subMenuResponsiveBg&&(i.background=`${(0,Hs.qD)(t?.subMenuResponsiveBg)} !important`),{background:(0,Hs.qD)(t?.subMenuItemBackground),...i}},DU=(t,e="")=>{const i={}
3278 -;return("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.subMenuResponsiveColor&&(i.color=`${(0,Hs.qD)(t?.subMenuResponsiveColor)} !important`),{color:(0,Hs.qD)(t?.subMenuItemTextColor),...i}},NU=(t,e="")=>{const i=(0,M.Zy)(t.menuItemPadding,{unit:"px"}),o=(0,M.Zy)(t.menuItemMargin,{unit:"px"}),a=(0,M.Zy)(t.menuItemBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.menuItemTypography,{weight:"400"}),n=t.menuItemTypographyGlobal?t.menuItemTypographyGlobal:"",s={...(0,y.qD)(a,e),...(0,U.qD)(l,e,n),...(0,c.qD)(i,"padding",e),...(0,c.qD)(o,"margin",e)};return t["menuItemDirection"+e]&&(s["flex-direction"]=t["menuItemDirection"+e]),t["menuItemJustify"+e]&&(s["justify-content"]=t["menuItemJustify"+e]),t["menuItemAlign"+e]&&(s["align-items"]=t["menuItemAlign"+e]),t?.menuItemTransition&&(s.transition=t?.menuItemTransition+"s"),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveBackground&&(s.background=(0,Hs.qD)(t?.menuResponsiveBackground)),{
3279 -background:(0,Hs.qD)(t?.menuItemBackground),color:(0,Hs.qD)(t?.menuItemTextColor),...s}},IU=(t,e="")=>{const i=(0,M.Zy)(t.menuItemBorder,{unitWidthH:"px",unitRadiusH:"px"}),o={...(0,y.a9)(i,e)};return t?.menuItemTextColorH&&(o.color=(0,Hs.qD)(t?.menuItemTextColorH)),t?.menuItemBackgroundH&&(o.background=(0,Hs.qD)(t?.menuItemBackgroundH)),o},VU=(t,e="")=>{const i={};return t?.menuItemTextColor&&(i.color=(0,Hs.qD)(t?.menuItemTextColor)),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveTextColor&&(i.color=`${(0,Hs.qD)(t?.menuResponsiveTextColor)} !important`),i},OU=(t,e="")=>{const i={};return t?.menuItemTextColor&&(i.fill=(0,Hs.qD)(t?.menuItemTextColor)),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveTextColor&&(i.fill=`${(0,Hs.qD)(t?.menuResponsiveTextColor)} !important`),i},YU=t=>t?.menuResponsiveBackground?{background:(0,Hs.qD)(t?.menuResponsiveBackground)}:{},XU=(t,e)=>t?.enableTabletHamburger&&e&&Object.keys(e).length?{
3280 -tabletHamburger:{width:1024,min:768,max:1024,styles:e}}:{},BU=(t,e="")=>{const i=30+t?.hamburgerHeight.value,o=(0,M.Zy)(t.hamburgerPadding,{unit:"px"}),a=(0,M.Zy)(t.hamburgerBorder,{unitWidth:"px",unitRadius:"px"}),l={...(0,c.qD)(o,"padding",e),...(0,y.qD)(a,e)};return i&&(l.height=`${i}px`),{background:(0,Hs.qD)(t?.hamburgerBackground),...l}},EU=(t,e="")=>{const i=(0,M.Zy)(t.hamburgerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},FU=(t,e="")=>{const i={"margin-top":"0px !important"};return"tablet"===t?.sideBarMenuDevice&&"Tablet"===e&&(i.position="static !important"),i},qU=(t,e="")=>({color:(0,Hs.qD)(t?.menuActveColor),background:(0,Hs.qD)(t?.menuActveColorBg)}),$U=(t,e="")=>{const i=(0,Hs.qD)(t?.menuActveColor);return i&&("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)?`${i} !important`:i},GU=(t,e="")=>({color:$U(t,e)}),ZU=(t,e="")=>({fill:$U(t,e)});function KU(t){
3281 -const{attributes:e}=t,{block_id:i,sideBarMenuDevice:o,subMenuTrigger:a,mobileMenuPosition:n,enableTabletHamburger:s}=e,{innerBlocksProps:r,children:b}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:UU.UU,attributes:e,blockProps:{"data-menu-device":o,..."click"===a?{"data-submenu-trigger":"click"}:{},..."overlay-header"===n?{"data-mobile-menu-position":"overlay-header"}:{},...s?{"data-tablet-hamburger":"true"}:{}},children:[(0,I.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,I.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${o}__trigger`,children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,I.jsx)("nav",{className:` ablocks-block-${i} ablocks-menu ablocks-menu-${o}`,...s?{
3282 -"data-tablet-hamburger":"true"}:{},children:(0,I.jsx)("ul",{className:"ablocks-main-menu",...r,children:b})})]})})}KU.propTypes={};const JU={UU:"ablocks/menu",uK:{block_id:{type:"string",default:""},alignment:{type:"string",default:"left"},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:"#000000"},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemDisplay:{type:"string",default:"inline"},hamburgerAlignment:{type:"string",default:"left"},hamburgerColor:{type:"string",default:"black"},hamburgerBackground:{type:"string",default:""},sideBarMenuDevice:{type:"string",default:"mobile"},menuResponsiveBackground:{type:"string",default:""},menuResponsiveTextColor:{type:"string",default:""},subMenuResponsiveColor:{type:"string",default:""},subMenuResponsiveBg:{type:"string",default:""},subMenuItemTextColor:{type:"string",default:""},subMenuItemBackground:{
3278 +;o?.addEventListener("click",i)}),this.clickItems.length&&(document.addEventListener("click",t=>{e.contains(t.target)||this.closeAllSubmenus()}),e.addEventListener("keydown",t=>{"Escape"===t.key&&this.closeAllSubmenus()}))}closeSubmenu(t){t.classList.remove("ablocks-submenu-open");const e=Array.from(t.querySelectorAll(".ablocks-menu-item__link, a")).find(e=>e.closest(".ablocks-menu-item")===t);e?.setAttribute("aria-expanded","false")}closeSiblingSubmenus(t){const e=t.parentElement;e&&Array.from(e.children).forEach(e=>{e!==t&&e.classList?.contains("ablocks-submenu-open")&&this.closeSubmenu(e)})}closeAllSubmenus(){(this.clickItems||[]).forEach(t=>this.closeSubmenu(t))}};function IU(t){const{attributes:e,clientId:i}=t,{insertBlock:n}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{block_id:s,sideBarMenuDevice:b,subMenuTrigger:c,mobileMenuPosition:d,enableTabletHamburger:u}=e,{children:p,innerBlocksProps:m}=(0,D.useInnerBlocksProps)({},{
3279 +template:[["ablocks/menu-item",{label:"Home"}],["ablocks/menu-item",{label:"About"}],["ablocks/menu-item",{label:"Products"},[["ablocks/menu-child-sub",{},[["ablocks/menu-item",{label:"Academy LMS"}],["ablocks/menu-item",{label:"Ablocks"}]]]]],["ablocks/menu-item",{label:"Portfolio"}],["ablocks/menu-item",{label:"Contact"}]],allowedBlocks:["ablocks/menu-item"],renderAppender:!1});return(0,a.useEffect)(()=>{new NU((0,M.bu)(`.ablocks-block-${s}`))},[s]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:s,name:DU.UU,attributes:e,blockProps:{"data-menu-device":b,..."click"===c?{"data-submenu-trigger":"click"}:{},..."overlay-header"===d?{"data-mobile-menu-position":"overlay-header"}:{},...u?{"data-tablet-hamburger":"true"}:{}},children:[(0,I.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,I.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${b}__trigger`,children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,
3280 +I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,I.jsx)("nav",{className:`ablocks-menu ablocks-menu-${b}`,...u?{"data-tablet-hamburger":"true"}:{},children:(0,I.jsxs)("ul",{className:"ablocks-main-menu",...m,children:[p,(0,I.jsx)("button",{className:"ablocks-menu__new-item",onClick:()=>{const t=(0,o.createBlock)("ablocks/menu-item");n(t,0,i)},children:"+"})]})})]})})}IU.propTypes={};const VU=(t,e="")=>{const i=(0,M.Zy)(t.padding,{unit:"px"}),o={...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,"box-shadow",e)};return"string"==typeof t?.alignment?!e&&t.alignment&&(o["justify-content"]=t.alignment):Object.assign(o,(0,Zt.qD)(t?.alignment,"justify-content",e)),o},OU=(t,e="")=>{const i={};t?.menuItemBorder?.commonWidth&&(i["margin-top"]=`${t?.menuItemBorder?.commonWidth}px`),
3281 +t?.menuItemBorder?.bottomWidth&&(i["margin-top"]=`${t?.menuItemBorder?.bottomWidth}px`);const o=(0,M.Zy)(t.subMenuBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.subMenuPadding,{unit:"px"});return{...i,...(0,Eb.qD)({attributeValue:t?.subMenuWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:250,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.subMenuBoxShadow,"box-shadow",e),...(0,y.qD)(o,e)}},YU=(t,e="")=>{const i=(0,M.Zy)(t?.subMenuBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.subMenuBoxShadow,e)}},XU=(t,e="")=>{const i={};return t?.subMenuItemTransition&&(i["transition-duration"]=t?.subMenuItemTransition+"s"),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.subMenuResponsiveBg&&(i.background=`${(0,Hs.qD)(t?.subMenuResponsiveBg)} !important`),{background:(0,Hs.qD)(t?.subMenuItemBackground),...i}},BU=(t,e="")=>{const i={}
3282 +;return("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.subMenuResponsiveColor&&(i.color=`${(0,Hs.qD)(t?.subMenuResponsiveColor)} !important`),{color:(0,Hs.qD)(t?.subMenuItemTextColor),...i}},EU=(t,e="")=>{const i=(0,M.Zy)(t.menuItemPadding,{unit:"px"}),o=(0,M.Zy)(t.menuItemMargin,{unit:"px"}),a=(0,M.Zy)(t.menuItemBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.menuItemTypography,{weight:"400"}),n=t.menuItemTypographyGlobal?t.menuItemTypographyGlobal:"",s={...(0,y.qD)(a,e),...(0,U.qD)(l,e,n),...(0,c.qD)(i,"padding",e),...(0,c.qD)(o,"margin",e)};return t["menuItemDirection"+e]&&(s["flex-direction"]=t["menuItemDirection"+e]),t["menuItemJustify"+e]&&(s["justify-content"]=t["menuItemJustify"+e]),t["menuItemAlign"+e]&&(s["align-items"]=t["menuItemAlign"+e]),t?.menuItemTransition&&(s.transition=t?.menuItemTransition+"s"),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveBackground&&(s.background=(0,Hs.qD)(t?.menuResponsiveBackground)),{
3283 +background:(0,Hs.qD)(t?.menuItemBackground),color:(0,Hs.qD)(t?.menuItemTextColor),...s}},FU=(t,e="")=>{const i=(0,M.Zy)(t.menuItemBorder,{unitWidthH:"px",unitRadiusH:"px"}),o={...(0,y.a9)(i,e)};return t?.menuItemTextColorH&&(o.color=(0,Hs.qD)(t?.menuItemTextColorH)),t?.menuItemBackgroundH&&(o.background=(0,Hs.qD)(t?.menuItemBackgroundH)),o},qU=(t,e="")=>{const i={};return t?.menuItemTextColor&&(i.color=(0,Hs.qD)(t?.menuItemTextColor)),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveTextColor&&(i.color=`${(0,Hs.qD)(t?.menuResponsiveTextColor)} !important`),i},$U=(t,e="")=>{const i={};return t?.menuItemTextColor&&(i.fill=(0,Hs.qD)(t?.menuItemTextColor)),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveTextColor&&(i.fill=`${(0,Hs.qD)(t?.menuResponsiveTextColor)} !important`),i},GU=t=>t?.menuResponsiveBackground?{background:(0,Hs.qD)(t?.menuResponsiveBackground)}:{},ZU=(t,e)=>t?.enableTabletHamburger&&e&&Object.keys(e).length?{
3284 +tabletHamburger:{width:1024,min:768,max:1024,styles:e}}:{},KU=(t,e="")=>{const i=30+t?.hamburgerHeight.value,o=(0,M.Zy)(t.hamburgerPadding,{unit:"px"}),a=(0,M.Zy)(t.hamburgerBorder,{unitWidth:"px",unitRadius:"px"}),l={...(0,c.qD)(o,"padding",e),...(0,y.qD)(a,e)};return i&&(l.height=`${i}px`),{background:(0,Hs.qD)(t?.hamburgerBackground),...l}},JU=(t,e="")=>{const i=(0,M.Zy)(t.hamburgerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},QU=(t,e="")=>{const i={"margin-top":"0px !important"};return"tablet"===t?.sideBarMenuDevice&&"Tablet"===e&&(i.position="static !important"),i},tj=(t,e="")=>({color:(0,Hs.qD)(t?.menuActveColor),background:(0,Hs.qD)(t?.menuActveColorBg)}),ej=(t,e="")=>{const i=(0,Hs.qD)(t?.menuActveColor);return i&&("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)?`${i} !important`:i},ij=(t,e="")=>({color:ej(t,e)}),oj=(t,e="")=>({fill:ej(t,e)});function aj(t){
3285 +const{attributes:e}=t,{block_id:i,sideBarMenuDevice:o,subMenuTrigger:a,mobileMenuPosition:n,enableTabletHamburger:s}=e,{innerBlocksProps:r,children:b}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:DU.UU,attributes:e,blockProps:{"data-menu-device":o,..."click"===a?{"data-submenu-trigger":"click"}:{},..."overlay-header"===n?{"data-mobile-menu-position":"overlay-header"}:{},...s?{"data-tablet-hamburger":"true"}:{}},children:[(0,I.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,I.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${o}__trigger`,children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,I.jsx)("nav",{className:` ablocks-block-${i} ablocks-menu ablocks-menu-${o}`,...s?{
3286 +"data-tablet-hamburger":"true"}:{},children:(0,I.jsx)("ul",{className:"ablocks-main-menu",...r,children:b})})]})})}aj.propTypes={};const lj={UU:"ablocks/menu",uK:{block_id:{type:"string",default:""},alignment:{type:"string",default:"left"},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:"#000000"},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemDisplay:{type:"string",default:"inline"},hamburgerAlignment:{type:"string",default:"left"},hamburgerColor:{type:"string",default:"black"},hamburgerBackground:{type:"string",default:""},sideBarMenuDevice:{type:"string",default:"mobile"},menuResponsiveBackground:{type:"string",default:""},menuResponsiveTextColor:{type:"string",default:""},subMenuResponsiveColor:{type:"string",default:""},subMenuResponsiveBg:{type:"string",default:""},subMenuItemTextColor:{type:"string",default:""},subMenuItemBackground:{
3283 3287 type:"string",default:""},subMenuItemTextColorH:{type:"string",default:""},subMenuItemBackgroundH:{type:"string",default:""},subMenuItemTransition:{type:"number",default:0},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},hamburgerPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",
3284 3288 rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,
3285 3289 commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},hamburgerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",
3286 3290 commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",
@@ -3294,48 +3298,54 @@
3294 3298 imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",
3295 3299 vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",
3296 3300 xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{
3297 3301 type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},
3298 -_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function QU(t){const{attributes:e}=t,{block_id:i,sideBarMenuDevice:o}=e,{innerBlocksProps:a,children:n}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:JU.UU,attributes:e,blockProps:{"data-menu-device":o},children:[(0,I.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,I.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${o}__trigger`,children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,I.jsx)("nav",{className:` ablocks-block-${i} ablocks-menu ablocks-menu-${o}`,children:(0,I.jsx)("ul",{className:"ablocks-main-menu",...a,
3299 -children:n})})]})})}function tj(t){const{attributes:e,setAttributes:i}=t,{link:o,label:a,hasLink:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Menu Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Menu Item","ablocks"),children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Enable Link","ablocks"),attributeValue:n,setAttributes:i,
3300 -attributeName:"hasLink",isResponsive:!1}),n&&(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:o,setAttributes:i})]})})]})})}QU.propTypes={},(0,M.xV)(UU.UU)&&(0,o.registerBlockType)(UU.UU,{title:(0,L.__)("Menu","ablocks"),attributes:UU.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-menu",zU(i),zU(i,"Tablet"),zU(i,"Mobile"),e(t=>zU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item",NU(i),NU(i,"Tablet"),NU(i,"Mobile"),XU(i,YU(i)),e(t=>NU(i,t))),
3301 -t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item .ablocks-menu-item__link",NU(i),NU(i,"Tablet"),NU(i,"Mobile"),XU(i,YU(i)),e(t=>NU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover",IU(i),IU(i,"Tablet"),IU(i,"Mobile"),e(t=>IU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item .ablocks-menu-item__link:hover",IU(i),IU(i,"Tablet"),IU(i,"Mobile"),e(t=>IU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub",CU(i),CU(i,"Tablet"),CU(i,"Mobile"),e(t=>CU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub:hover",AU(i),AU(i,"Tablet"),AU(i,"Mobile"),e(t=>AU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item",LU(i),LU(i,"Tablet"),LU(i,"Mobile"),e(t=>LU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item:hover",(t=>({color:(0,Hs.qD)(t?.subMenuItemTextColorH),background:(0,Hs.qD)(t?.subMenuItemBackgroundH)
3302 -}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item .ablocks-menu-item__link",DU(i),DU(i,"Tablet"),DU(i,"Mobile"),e(t=>DU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-menu-item:hover .ablocks-menu-item__link",(t=>({color:(0,Hs.qD)(t?.subMenuItemTextColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item > .ablocks-menu-item__link",VU(i),VU(i,"Tablet"),VU(i,"Mobile"),XU(i,VU(i,"Mobile")),e(t=>VU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover > .ablocks-menu-item__link",(t=>({color:(0,Hs.qD)(t?.menuItemTextColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item > .ablocks-menu-item__dropdown-icon svg",OU(i),OU(i,"Tablet"),OU(i,"Mobile"),XU(i,OU(i,"Mobile")),e(t=>OU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover > .ablocks-menu-item__dropdown-icon svg",(t=>{const e={}
3303 -;return t?.menuItemTextColor&&(e.fill=(0,Hs.qD)(t?.menuItemTextColorH)),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-menu-item > .ablocks-menu-child-sub",{"margin-top":"0px !important",display:"none"}),t.addClassStyles("{{WRAPPER}} .ablocks-menu-child-mega",FU(i),FU(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper",(t=>{const e={};return t?.hamburgerAlignment&&(e["justify-content"]=t?.hamburgerAlignment),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger ",BU(i),BU(i,"Tablet"),BU(i,"Mobile"),e(t=>BU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger:hover ",EU(i),EU(i,"Tablet"),EU(i,"Mobile"),e(t=>EU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger .ablocks-menu__trigger-item ",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.hamburgerWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:30,hasUnit:!0,unitDefaultValue:"px",
3304 -property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.hamburgerHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:3,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return{background:(0,Hs.qD)(t?.hamburgerColor),...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu .ablocks-menu-item.ablocks-block--menu-item-active",qU(i),qU(i,"Tablet"),qU(i,"Mobile"),e(t=>qU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu .ablocks-menu-item.ablocks-block--menu-item-active > .ablocks-menu-item__link",GU(i),GU(i,"Tablet"),GU(i,"Mobile"),e(t=>GU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu .ablocks-menu-item.ablocks-block--menu-item-active > .ablocks-menu-item__dropdown-icon svg",ZU(i),ZU(i,"Tablet"),ZU(i,"Mobile"),e(t=>ZU(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(PU,{...t}),(0,I.jsx)(wU,{...t})]})},save:KU,deprecated:[{attributes:JU.uK,save:QU}],icon:(0,I.jsx)("span",{
3305 -className:"ablocks-icon ablocks-icon--menu"})}),tj.propTypes={};const ej=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})}),ij={UU:"ablocks/menu-item",$t:["ablocks/menu"],uK:{block_id:{type:"string",default:""},label:{type:"string",default:"Menu"},isSubMenu:{type:"boolean",default:!1},hasMegaMenu:{type:"boolean",default:!1},hasLink:{type:"boolean",default:!1},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}}}};function oj(t){const{attributes:e,setAttributes:i}=t,{block_id:n,label:b,hasMegaMenu:c,isSubMenu:d}=e,[u,p]=(0,a.useState)(!1),[m,h]=(0,
3306 -a.useState)(!1),{innerBlocksProps:g,children:f}=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/menu-child-sub","ablocks/menu-child-mega"],renderAppender:!1}),{hasChildBlocks:y,parentBlockName:T}=(0,r.useSelect)(t=>{const e=t("core/block-editor"),i=e.getBlockRootClientId(n),o=i?e.getBlock(i):null;return{hasChildBlocks:e?.getBlockOrder(n).length>0,parentBlockName:o?.name||null}});return(0,a.useEffect)(()=>{i({isSubMenu:y})},[y]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:!y&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{role:"presentation",onClick:function(){const t=(0,o.createBlock)("ablocks/menu-child-sub");(0,r.dispatch)("core/block-editor").insertBlock(t,0,n),p(!0),h(!0)},className:"ablocks-menu-item-toolbar-dropdown-icon",children:(0,I.jsx)(F,{tooltipText:(0,L.__)("Add Submenu","ablocks"),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--submenu"})})}),"ablocks/menu"===T&&(0,I.jsx)("div",{role:"presentation",onClick:function(){
3307 -const t=(0,o.createBlock)("ablocks/menu-child-mega");(0,r.dispatch)("core/block-editor").insertBlock(t,0,n),p(!0),h(!0),i({hasMegaMenu:!0})},className:"ablocks-menu-item-toolbar-dropdown-icon",children:(0,I.jsx)(F,{tooltipText:(0,L.__)("Add Mega Menu","ablocks"),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--megamenu"})})})]})}),u&&(0,I.jsx)("div",{className:"ablocks-menu-item__submenu-overlay",role:"presentation",onClick:()=>{p(!1),h(!1)}}),(0,I.jsxs)(sR,{blockId:n,name:ij.UU,attributes:e,tagName:"li",...g,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),blockProps:{onClick:()=>{p(!0),h(!0)}},children:[(0,I.jsx)("a",{href:"#",className:"ablocks-menu-item__link",children:b})," ",y&&(0,I.jsx)("div",{className:s()("ablocks-menu-item__dropdown-icon",{"rotate-icon":m}),children:ej}),u&&f]})]})}function aj(t){
3308 -const{attributes:e}=t,{block_id:i,label:o,link:{href:a,linkTarget:n,noFollow:r,keyValue:b},hasMegaMenu:c,isSubMenu:d,hasLink:u}=e,{innerBlocksProps:p,children:m}=D.useInnerBlocksProps.save({});let h={};return u?(a&&(h.href=a),n&&(h.target="_blank"),h.rel=r?n?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",b&&(h={...h,...(0,wb.jM)(b)})):h.rel="nofollow noreferrer noopener",(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(dR,{blockId:i,name:ij.UU,attributes:e,tagName:"li",...p,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),children:[(0,I.jsx)("a",{...h,className:"ablocks-menu-item__link",children:o}),d&&(0,I.jsx)("div",{className:"ablocks-menu-item__dropdown-icon",children:ej}),m]})})}function lj(t){const{attributes:e}=t,{block_id:i,label:o,link:{href:a,linkTarget:n,noFollow:r,keyValue:b},hasMegaMenu:c,isSubMenu:d}=e,{innerBlocksProps:u,children:p}=D.useInnerBlocksProps.save({});let m={};return a&&(m.href=a),
3309 -n&&(m.target="_blank"),m.rel=r?n?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",b&&(m={...m,...(0,wb.jM)(b)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(dR,{blockId:i,name:ij.UU,attributes:e,tagName:"li",...u,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),children:[(0,I.jsx)("a",{...m,className:"ablocks-menu-item__link",children:o}),d&&(0,I.jsx)("div",{className:"ablocks-menu-item__dropdown-icon",children:ej}),p]})})}oj.propTypes={},aj.propTypes={},lj.propTypes={},(0,M.xV)(ij.UU,ij.$t[0])&&(0,o.registerBlockType)(ij.UU,{title:(0,L.__)("Menu Item","ablocks"),attributes:ij.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(tj,{...t}),(0,I.jsx)(oj,{...t})]})},save:aj,deprecated:[{
3310 -attributes:ij.uK,save:lj}],icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--menu"})});var nj=i(46890);function sj(t){lt();const{attributes:e,setAttributes:i}=t,{width:o,boxShadow:a,background:n,border:s,padding:r,menuItemTypography:b,menuItemTextColor:c,menuItemTextColorH:d,menuItemBackgroundH:u,menuItemBackground:p,menuItemPadding:m,menuItemMargin:h,menuItemBorder:g}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Menu Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(V,{title:(0,
3311 -L.__)("Sub Menu","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:50,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"width",attributeValue:o,setAttributes:i,attributeDefaultValue:nj.V,autoSyncRange:!0})}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackground",attributeValue:p,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColorH",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,
3312 -attributeName:"menuItemBackgroundH",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.menuItemTransition||0,attributeName:"menuItemTransition",setAttributes:i})]})}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:a,setAttributes:i,attributeName:"boxShadow"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:n,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:r,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Menu Item","ablocks"),initialOpen:!1,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Wb,{isInline:!1,label:(0,L.__)("Alignment","ablocks"),
3313 -options:[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,L.__)("Space Around","ablocks"),value:"space-around",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{label:(0,L.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],attributeName:"menuItemJustification",attributeValue:e?.menuItemJustification,setAttributes:i}),(0,I.jsx)(wc,{
3314 -label:(0,L.__)("Typography","ablocks"),attributeName:"menuItemTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"menuItemBorder",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"menuItemPadding",attributeValue:m,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"menuItemMargin",attributeValue:h,setAttributes:i})]})})]})})}const rj={UU:"ablocks/menu-child-sub",uK:{block_id:{type:"string",default:""},background:{type:"string",default:"white"},direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},
3315 -alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:""},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemAlign:{type:"string",default:"",copyStyle:!0},menuItemAlignTablet:{type:"string",default:"",copyStyle:!0},menuItemAlignMobile:{type:"string",default:"",copyStyle:!0},menuItemDirection:{type:"string",default:"row",copyStyle:!0},menuItemDirectionTablet:{type:"string",default:"",copyStyle:!0},menuItemDirectionMobile:{type:"string",default:"",copyStyle:!0},menuItemJustify:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyTablet:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyMobile:{type:"string",default:"space-between",copyStyle:!0},menuItemJustification:{type:"object",default:{value:"space-between",valueTablet:"",valueMobile:""}},boxShadow:{
3316 -type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",
3317 -leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",
3318 -commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",
3319 -leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",
3320 -leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},menuItemTypographyGlobal:{type:"string",default:""},menuItemTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},width:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},positionX:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},positionY:{type:"object",
3321 -default:{value:0,valueTablet:"",valueMobile:""}}}};function bj(t){const{attributes:e,clientId:i}=t,{block_id:n,menuItemTypography:s,menuItemTextColor:b,menuItemTextColorH:c,menuItemBackgroundH:d,menuItemBackground:u,menuItemPadding:p,menuItemMargin:m,menuItemBorder:h,menuItemDisplay:g,menuItemDirection:f,menuItemDirectionTablet:y,menuItemDirectionMobile:T,menuItemJustification:H,menuItemAlign:M,menuItemAlignTablet:x,menuItemAlignMobile:k}=e,v={typography:s,textColor:b,textColorH:c,background:u,backgroundH:d,padding:p,border:h,margin:m,display:g,direction:f,directionTablet:y,directionMobile:T,justify:H,justifyMobile:H.valueMobile,justifyTablet:H.valueTablet,align:M,alignTablet:x,alignMobile:k},_=(0,a.useCallback)(()=>{const t=(0,o.createBlock)("ablocks/menu-item");(0,r.dispatch)("core/block-editor").insertBlock(t,0,i)},[i,...Object.values(v)]),{children:R,innerBlocksProps:S}=(0,D.useInnerBlocksProps)({},{template:[["ablocks/menu-item",{}]],allowedBlocks:["ablocks/menu-item"],
3322 -renderAppender:!1});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sR,{blockId:n,name:rj.UU,attributes:e,tagName:"ul",...S,className:"ablocks-menu-child-sub ablocks-menu-child-sub--editor",children:[R,(0,I.jsx)("button",{className:"ablocks-menu-child-sub__new-item",onClick:_,children:(0,L.__)("Add new Item","ablocks")})]})})}bj.propTypes={};const cj=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t.padding,{unit:"px"});return{background:(0,Hs.qD)(t?.background),...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,c.qD)(o,"padding",e),...(0,H.qD)(t?.boxShadow,"box-shadow",e),...(0,y.qD)(i,e)}},dj=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},uj=(t,e="")=>{const i=(0,M.Zy)(t.menuItemTypography,{weight:"400"}),o=t.menuItemTypographyGlobal?t.menuItemTypographyGlobal:"",a=(0,
3323 -M.Zy)(t.menuItemBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.menuItemPadding,{unit:"px"}),n=(0,M.Zy)(t.menuItemMargin,{unit:"px"}),s={color:(0,Hs.qD)(t?.menuItemTextColor),background:(0,Hs.qD)(t?.menuItemBackground),...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,y.qD)(a,e),...(0,U.qD)(i,e,o),...(0,c.qD)(l,"padding",e),...(0,c.qD)(n,"margin",e)};return t.menuItemJustification["value"+e]&&(s["justify-content"]=t.menuItemJustification["value"+e]),t?.menuItemTransition&&(s["transition-duration"]=t?.menuItemTransition+"s"),s},pj=(t,e="")=>{const i=(0,M.Zy)(t.menuItemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.menuItemTextColorH),background:(0,Hs.qD)(t?.menuItemBackgroundH),...(0,y.a9)(i,e)}};function mj(t){const{attributes:e}=t,{block_id:i}=e,{innerBlocksProps:o,children:a}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:rj.UU,attributes:e,tagName:"ul",...o,className:"ablocks-menu-child-sub",children:a})})}
3324 -mj.propTypes={},(0,M.xV)(rj.UU,"ablocks/menu")&&(0,o.registerBlockType)(rj.UU,{title:(0,L.__)("Sub Menu","ablocks"),attributes:rj.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub",cj(i),cj(i,"Tablet"),cj(i,"Mobile"),t.customDeviceMap(t=>cj(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub:hover",dj(i),dj(i,"Tablet"),dj(i,"Mobile"),t.customDeviceMap(t=>dj(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub .ablocks-block--menu-item",uj(i),uj(i,"Tablet"),uj(i,"Mobile"),t.customDeviceMap(t=>uj(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub .ablocks-block--menu-item:hover",pj(i),pj(i,"Tablet"),pj(i,"Mobile"),t.customDeviceMap(t=>pj(i,t))),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item > .ablocks-menu-item__link",(t=>{
3325 -const e={};return t?.menuItemTextColor&&(e.color=`${(0,Hs.qD)(t?.menuItemTextColor)} !important`),e})(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item:hover > .ablocks-menu-item__link",(t=>({color:`${(0,Hs.qD)(t?.menuItemTextColorH)} !important`}))(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item .ablocks-menu-item__dropdown-icon svg",(t=>({fill:(0,Hs.qD)(t?.menuItemTextColor)}))(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item:hover .ablocks-menu-item__dropdown-icon svg",(t=>({fill:(0,Hs.qD)(t?.menuItemTextColorH)}))(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(sj,{...t}),(0,I.jsx)(bj,{...t})]})},save:mj,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--submenu"})});var hj=i(91664);const gj=t=>"px"===t?2e3:"%"===t?1e3:"em"===t||"rem"===t?200:1e3,fj=t=>"px"===t?2e3:"%"===t||"em"===t||"rem"===t?200:1e3,yj=t=>"px"===t?-2e3:"%"===t||"em"===t||"rem"===t?-200:-2e3;function Tj(t){
3326 -const{attributes:e,setAttributes:i}=t,{positionX:o,width:a,height:n}=e,s=lt(),r=a["valueUnit"+s]||"%",b=o["valueUnit"+s]||"%";return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Menu Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Mega Menu","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:(c=r,"px"===c||"%"===c?50:"em"===c||"rem"===c?3:50),max:gj(r),unitValue:a,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"width",attributeValue:a,setAttributes:i,
3327 -attributeDefaultValue:hj.VL}),(0,I.jsx)(_t,{label:(0,L.__)("height","ablocks"),min:0,max:1e3,unitValue:a,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"height",attributeValue:n,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("PositionX","ablocks"),min:yj(b),max:fj(b),unitValue:o,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionX",attributeValue:o,setAttributes:i,attributeDefaultValue:hj.qZ})]})]})});var c}Tj.propTypes={},Tj.defaultProps={};const Hj={UU:"ablocks/menu-child-mega",uK:{block_id:{type:"string",default:""},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},height:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},positionX:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"%",
3328 -valueUnitTablet:"",valueUnitMobile:""}}}};function Mj(t){const e=lt(),{attributes:i}=t,{block_id:o}=i,{children:a,innerBlocksProps:l}=(0,D.useInnerBlocksProps)({},{template:[["ablocks/container"]],allowedBlocks:["ablocks/container"]});return(0,I.jsx)(sR,{blockId:o,name:Hj.UU,attributes:i,...l,className:"ablocks-menu-child-mega--editor ablocks-menu-child-mega",allowQuickEdit:"Mobile"!==e&&!0,children:a})}Mj.propTypes={},Mj.defaultProps={};const xj=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.positionX,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,property:"left",unitDefaultValue:"%",device:e}),...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,Eb.qD)({attributeValue:t.height,attributeObjectKey:"value",
3329 -isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return t?.height?.value&&(i["overflow-y"]="auto",i["overflow-x"]="hidden"),i};function kj(t){const{attributes:e}=t,{block_id:i}=e,{innerBlocksProps:o,children:a}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:Hj.UU,attributes:e,...o,className:"ablocks-menu-child-mega",tagName:"ul",children:a})})}kj.propTypes={},(0,M.xV)(Hj.UU,"ablocks/menu")&&(0,o.registerBlockType)(Hj.UU,{title:(0,L.__)("Mega Menu","ablocks"),attributes:Hj.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",xj(i),xj(i,"Tablet"),xj(i,"Mobile"),t.customDeviceMap(t=>xj(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Tj,{...t}),(0,I.jsx)(Mj,{...t})]})
3330 -},save:kj,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--megamenu"})});var vj=i(74196);const _j=[[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"}],[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Block","ablocks"),value:"block"}],[{label:(0,L.__)("Popup","ablocks"),value:"popup"},{label:(0,L.__)("Modal","ablocks"),value:"modal"}]],Rj=[{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Top","ablocks"),value:"top"}],Sj=[{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"},{label:(0,L.__)("Top","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("Bottom","ablocks"),value:"flex-end",
3331 -icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],Wj=t=>{switch(t){case"px":return 2e3;case"%":default:return 100;case"em":case"rem":return 150}},Pj=({popupPosition:t,panelBlockPosition:e,popupOnTop:i})=>{let o="";return o+=`ablocks-block-modal-position--${t} `,"block"===t&&e&&(o+=`ablocks-block-modal-panel-direction--${e} `),"popup"===t&&i&&(o+="ablocks-block-modal-panel-popup-on-top "),o};function Uj(t){const{attributes:e,setAttributes:i}=t,{popupPosition:o,panelBlockPosition:a,popupOnTop:n,popupTopOffset:s,panelWidth:r,panelHeight:b,panelContentPosition:c,disableCloseButton:d,useHoverTrigger:u,enableAutoTriggerTimer:p,showAutoOnce:m,showOnMouseOutOfWindow:h,autoTriggerTime:g,backdropColor:f,panelPadding:y,panelBackground:T,panelBorder:H,panelShadow:M,closeBtnBackgroundColor:x,closeBtnColor:k,openPanel:v,noTrigger:_,closeBtnSide:R,closeBtnTop:S,closePosition:W}=e,P=r?.valueUnit||"%",U=b?.valueUnit||"%";return(0,I.jsx)(l().Fragment,{children:(0,
3332 -I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-modal-popup-builder/",children:[(0,I.jsx)(V,{initialOpen:!0,children:(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:[{label:(0,L.__)("Open Panel","ablocks"),value:"open"},{label:(0,L.__)("Close Panel","ablocks"),value:"close"}],onChangeHandler:t=>i({openPanel:t}),attributeValue:v})}),(0,I.jsx)(V,{title:(0,L.__)("Panel","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-modal-position-settings-wrapper",children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"panelWidth",attributeObjectKey:"value",attributeValue:r,setAttributes:i,hasUnit:!0,step:1,min:0,max:Wj(P),isInline:!1,unitValue:r,attributeDefaultValue:vj.j_}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"panelHeight",attributeObjectKey:"value",attributeValue:b,setAttributes:i,hasUnit:!0,
3333 -step:1,min:0,max:Wj(U),isInline:!1,unitValue:b,attributeDefaultValue:vj.mF}),(0,I.jsx)(at,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,isHeader:!0}),_j.map((t,e)=>(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:t,onChangeHandler:t=>i({popupPosition:t}),attributeValue:o},e))]}),"block"===o&&(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:Rj,onChangeHandler:t=>i({panelBlockPosition:t}),attributeValue:a}),"popup"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Place popup on top of page","ablocks"),attributeValue:n,setAttributes:i,attributeName:"popupOnTop",isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Top Offset","ablocks"),min:0,max:2e3,step:1,isInline:!0,isResponsive:!1,attributeName:"popupTopOffset",attributeValue:s,setAttributes:i})]}),(0,I.jsx)(Wb,{isInline:!1,isResponsive:!1,label:(0,L.__)("Content Position","ablocks"),options:Sj,attributeName:"panelContentPosition",attributeValue:c,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{
3302 +_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function nj(t){const{attributes:e}=t,{block_id:i,sideBarMenuDevice:o}=e,{innerBlocksProps:a,children:n}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:lj.UU,attributes:e,blockProps:{"data-menu-device":o},children:[(0,I.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,I.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${o}__trigger`,children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,I.jsx)("nav",{className:` ablocks-block-${i} ablocks-menu ablocks-menu-${o}`,children:(0,I.jsx)("ul",{className:"ablocks-main-menu",...a,
3303 +children:n})})]})})}nj.propTypes={},(0,M.xV)(DU.UU)&&(0,o.registerBlockType)(DU.UU,{title:(0,L.__)("Menu","ablocks"),attributes:DU.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-menu",VU(i),VU(i,"Tablet"),VU(i,"Mobile"),e(t=>VU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item",EU(i),EU(i,"Tablet"),EU(i,"Mobile"),ZU(i,GU(i)),e(t=>EU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item .ablocks-menu-item__link",EU(i),EU(i,"Tablet"),EU(i,"Mobile"),ZU(i,GU(i)),e(t=>EU(i,t))),
3304 +t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover",FU(i),FU(i,"Tablet"),FU(i,"Mobile"),e(t=>FU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item .ablocks-menu-item__link:hover",FU(i),FU(i,"Tablet"),FU(i,"Mobile"),e(t=>FU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub",OU(i),OU(i,"Tablet"),OU(i,"Mobile"),e(t=>OU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub:hover",YU(i),YU(i,"Tablet"),YU(i,"Mobile"),e(t=>YU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item",XU(i),XU(i,"Tablet"),XU(i,"Mobile"),e(t=>XU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item:hover",(t=>({color:(0,Hs.qD)(t?.subMenuItemTextColorH),background:(0,Hs.qD)(t?.subMenuItemBackgroundH)}))(i)),
3305 +t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item .ablocks-menu-item__link",BU(i),BU(i,"Tablet"),BU(i,"Mobile"),e(t=>BU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-menu-item:hover .ablocks-menu-item__link",(t=>({color:(0,Hs.qD)(t?.subMenuItemTextColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item > .ablocks-menu-item__link",qU(i),qU(i,"Tablet"),qU(i,"Mobile"),ZU(i,qU(i,"Mobile")),e(t=>qU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover > .ablocks-menu-item__link",(t=>({color:(0,Hs.qD)(t?.menuItemTextColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item > .ablocks-menu-item__dropdown-icon svg",$U(i),$U(i,"Tablet"),$U(i,"Mobile"),ZU(i,$U(i,"Mobile")),e(t=>$U(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover > .ablocks-menu-item__dropdown-icon svg",(t=>{const e={}
3306 +;return t?.menuItemTextColor&&(e.fill=(0,Hs.qD)(t?.menuItemTextColorH)),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-menu-item > .ablocks-menu-child-sub",{"margin-top":"0px !important",display:"none"}),t.addClassStyles("{{WRAPPER}} .ablocks-menu-child-mega",QU(i),QU(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper",(t=>{const e={};return t?.hamburgerAlignment&&(e["justify-content"]=t?.hamburgerAlignment),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger ",KU(i),KU(i,"Tablet"),KU(i,"Mobile"),e(t=>KU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger:hover ",JU(i),JU(i,"Tablet"),JU(i,"Mobile"),e(t=>JU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger .ablocks-menu__trigger-item ",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.hamburgerWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:30,hasUnit:!0,unitDefaultValue:"px",
3307 +property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.hamburgerHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:3,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return{background:(0,Hs.qD)(t?.hamburgerColor),...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu .ablocks-menu-item.ablocks-block--menu-item-active",tj(i),tj(i,"Tablet"),tj(i,"Mobile"),e(t=>tj(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu .ablocks-menu-item.ablocks-block--menu-item-active > .ablocks-menu-item__link",ij(i),ij(i,"Tablet"),ij(i,"Mobile"),e(t=>ij(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu .ablocks-menu-item.ablocks-block--menu-item-active > .ablocks-menu-item__dropdown-icon svg",oj(i),oj(i,"Tablet"),oj(i,"Mobile"),e(t=>oj(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(LU,{...t}),(0,I.jsx)(IU,{...t})]})},save:aj,deprecated:[{attributes:lj.uK,save:nj}],icon:(0,I.jsx)("span",{
3308 +className:"ablocks-icon ablocks-icon--menu"})});var sj=i(80952);function rj(t){const{attributes:e,setAttributes:i}=t,{link:o,label:a,hasLink:n,showIcon:s,iconPosition:r,iconSpace:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Menu Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Menu Item","ablocks"),children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",attributeValue:a,setAttributes:i,isInline:!1}),(0,
3309 +I.jsx)(Ot,{label:(0,L.__)("Enable Link","ablocks"),attributeValue:n,setAttributes:i,attributeName:"hasLink",isResponsive:!1}),n&&(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:o,setAttributes:i})]})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Icon","ablocks"),children:[(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:s,setAttributes:i,attributeName:"showIcon",isResponsive:!1}),s&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:r||"left",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:b,setAttributes:i,
3310 +attributeObjectKey:"value",attributeDefaultValue:sj.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,isHoverColor:!0})})]})]})})}rj.propTypes={};const bj=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})}),cj={UU:"ablocks/menu-item",$t:["ablocks/menu"],uK:{block_id:{type:"string",default:""},label:{type:"string",default:"Menu"},isSubMenu:{type:"boolean",default:!1},hasMegaMenu:{type:"boolean",default:!1},hasLink:{type:"boolean",default:!1},link:{type:"object",default:{linkDestination:"",href:"",
3311 +lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z"},
3312 +iconSvgViewBox:{type:"string",default:"0 0 496 512"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:""},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",
3313 +isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:16},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:16,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},
3314 +icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconSpace:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}}}};function dj(t){const{attributes:e,setAttributes:i}=t,{block_id:n,label:b,hasMegaMenu:c,isSubMenu:d,showIcon:u,iconPosition:p}=e,m=(0,I.jsx)(Fd,{attributes:e,wrapperProps:{"aria-hidden":"true"}}),[h,g]=(0,a.useState)(!1),[f,y]=(0,a.useState)(!1),{innerBlocksProps:T,children:H}=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/menu-child-sub","ablocks/menu-child-mega"],renderAppender:!1}),{hasChildBlocks:M,parentBlockName:x}=(0,r.useSelect)(t=>{const e=t("core/block-editor"),i=e.getBlockRootClientId(n),o=i?e.getBlock(i):null;return{hasChildBlocks:e?.getBlockOrder(n).length>0,parentBlockName:o?.name||null}});return(0,a.useEffect)(()=>{i({isSubMenu:M})},[M]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:!M&&(0,I.jsxs)(I.Fragment,{children:[(0,
3315 +I.jsx)("div",{role:"presentation",onClick:function(){const t=(0,o.createBlock)("ablocks/menu-child-sub");(0,r.dispatch)("core/block-editor").insertBlock(t,0,n),g(!0),y(!0)},className:"ablocks-menu-item-toolbar-dropdown-icon",children:(0,I.jsx)(F,{tooltipText:(0,L.__)("Add Submenu","ablocks"),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--submenu"})})}),"ablocks/menu"===x&&(0,I.jsx)("div",{role:"presentation",onClick:function(){const t=(0,o.createBlock)("ablocks/menu-child-mega");(0,r.dispatch)("core/block-editor").insertBlock(t,0,n),g(!0),y(!0),i({hasMegaMenu:!0})},className:"ablocks-menu-item-toolbar-dropdown-icon",children:(0,I.jsx)(F,{tooltipText:(0,L.__)("Add Mega Menu","ablocks"),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--megamenu"})})})]})}),h&&(0,I.jsx)("div",{className:"ablocks-menu-item__submenu-overlay",role:"presentation",onClick:()=>{g(!1),y(!1)}}),(0,I.jsxs)(mR,{blockId:n,name:cj.UU,attributes:e,tagName:"li",...T,
3316 +className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),blockProps:{onClick:()=>{g(!0),y(!0)}},children:[(0,I.jsxs)("a",{href:"#",className:s()("ablocks-menu-item__link",{"ablocks-menu-item__link--has-icon":u}),children:[u&&"right"!==p&&m,b,u&&"right"===p&&m]})," ",M&&(0,I.jsx)("div",{className:s()("ablocks-menu-item__dropdown-icon",{"rotate-icon":f}),children:bj}),h&&H]})]})}dj.propTypes={};const uj=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.iconSpace,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:8,unitDefaultValue:"px",property:"column-gap",device:e})}),pj=(t,e="")=>({...(0,Ud.eG)(t,e),fill:(0,Hs.qD)(t?.iconColor)||"currentColor"});function mj(t){const{attributes:e}=t,{block_id:i,label:o,link:{href:a,linkTarget:n,noFollow:r,keyValue:b},hasMegaMenu:c,isSubMenu:d,hasLink:u,showIcon:p,iconPosition:m}=e,{innerBlocksProps:h,children:g}=D.useInnerBlocksProps.save({}),f=(0,I.jsx)(Fd,{attributes:e,wrapperProps:{"aria-hidden":"true"}})
3317 +;let y={};return u?(a&&(y.href=a),n&&(y.target="_blank"),y.rel=r?n?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",b&&(y={...y,...(0,wb.jM)(b)})):y.rel="nofollow noreferrer noopener",(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(yR,{blockId:i,name:cj.UU,attributes:e,tagName:"li",...h,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),children:[(0,I.jsxs)("a",{...y,className:s()("ablocks-menu-item__link",{"ablocks-menu-item__link--has-icon":p}),children:[p&&"right"!==m&&f,o,p&&"right"===m&&f]}),d&&(0,I.jsx)("div",{className:"ablocks-menu-item__dropdown-icon",children:bj}),g]})})}function hj(t){const{attributes:e}=t,{block_id:i,label:o,link:{href:a,linkTarget:n,noFollow:r,keyValue:b},hasMegaMenu:c,isSubMenu:d}=e,{innerBlocksProps:u,children:p}=D.useInnerBlocksProps.save({});let m={};return a&&(m.href=a),n&&(m.target="_blank"),m.rel=r?n?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",b&&(m={...m,
3318 +...(0,wb.jM)(b)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(yR,{blockId:i,name:cj.UU,attributes:e,tagName:"li",...u,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),children:[(0,I.jsx)("a",{...m,className:"ablocks-menu-item__link",children:o}),d&&(0,I.jsx)("div",{className:"ablocks-menu-item__dropdown-icon",children:bj}),p]})})}mj.propTypes={},hj.propTypes={},(0,M.xV)(cj.UU,cj.$t[0])&&(0,o.registerBlockType)(cj.UU,{title:(0,L.__)("Menu Item","ablocks"),attributes:cj.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);if(i?.showIcon){
3319 +const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{},o=(o,a)=>t.addClassStyles(o,a(i,""),a(i,"Tablet"),a(i,"Mobile"),e(t=>a(i,t))),a="{{WRAPPER}} > .ablocks-menu-item__link > .ablocks-icon-wrap",l="{{WRAPPER}}:hover > .ablocks-menu-item__link > .ablocks-icon-wrap";o("{{WRAPPER}} > .ablocks-menu-item__link",uj),o(a,Ud.PT),o(`${a} svg.ablocks-svg-icon`,pj),o(`${a} img.ablocks-image-icon`,Ud.J_),o(`${l} svg.ablocks-svg-icon, ${l} img.ablocks-image-icon`,Ud.RV)}return t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(rj,{...t}),(0,I.jsx)(dj,{...t})]})},save:mj,deprecated:[{attributes:cj.uK,save:hj}],icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--menu"})});var gj=i(46890);function fj(t){lt()
3320 +;const{attributes:e,setAttributes:i}=t,{width:o,boxShadow:a,background:n,border:s,padding:r,menuItemTypography:b,menuItemTextColor:c,menuItemTextColorH:d,menuItemBackgroundH:u,menuItemBackground:p,menuItemPadding:m,menuItemMargin:h,menuItemBorder:g}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Menu Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(V,{title:(0,L.__)("Sub Menu","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),
3321 +min:50,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"width",attributeValue:o,setAttributes:i,attributeDefaultValue:gj.V,autoSyncRange:!0})}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackground",attributeValue:p,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColorH",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackgroundH",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,
3322 +isResponsive:!1,attributeValue:e?.menuItemTransition||0,attributeName:"menuItemTransition",setAttributes:i})]})}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:a,setAttributes:i,attributeName:"boxShadow"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:n,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:r,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Menu Item","ablocks"),initialOpen:!1,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Wb,{isInline:!1,label:(0,L.__)("Alignment","ablocks"),options:[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,
3323 +L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,L.__)("Space Around","ablocks"),value:"space-around",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{label:(0,L.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],attributeName:"menuItemJustification",attributeValue:e?.menuItemJustification,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"menuItemTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,
3324 +I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"menuItemBorder",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"menuItemPadding",attributeValue:m,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"menuItemMargin",attributeValue:h,setAttributes:i})]})})]})})}const yj={UU:"ablocks/menu-child-sub",uK:{block_id:{type:"string",default:""},background:{type:"string",default:"white"},direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",
3325 +default:""},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemAlign:{type:"string",default:"",copyStyle:!0},menuItemAlignTablet:{type:"string",default:"",copyStyle:!0},menuItemAlignMobile:{type:"string",default:"",copyStyle:!0},menuItemDirection:{type:"string",default:"row",copyStyle:!0},menuItemDirectionTablet:{type:"string",default:"",copyStyle:!0},menuItemDirectionMobile:{type:"string",default:"",copyStyle:!0},menuItemJustify:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyTablet:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyMobile:{type:"string",default:"space-between",copyStyle:!0},menuItemJustification:{type:"object",default:{value:"space-between",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",
3326 +shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",
3327 +commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",
3328 +leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",
3329 +bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},menuItemTypographyGlobal:{type:"string",
3330 +default:""},menuItemTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},width:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},positionX:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},positionY:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}}}};function Tj(t){
3331 +const{attributes:e,clientId:i}=t,{block_id:n,menuItemTypography:s,menuItemTextColor:b,menuItemTextColorH:c,menuItemBackgroundH:d,menuItemBackground:u,menuItemPadding:p,menuItemMargin:m,menuItemBorder:h,menuItemDisplay:g,menuItemDirection:f,menuItemDirectionTablet:y,menuItemDirectionMobile:T,menuItemJustification:H,menuItemAlign:M,menuItemAlignTablet:x,menuItemAlignMobile:k}=e,v={typography:s,textColor:b,textColorH:c,background:u,backgroundH:d,padding:p,border:h,margin:m,display:g,direction:f,directionTablet:y,directionMobile:T,justify:H,justifyMobile:H.valueMobile,justifyTablet:H.valueTablet,align:M,alignTablet:x,alignMobile:k},_=(0,a.useCallback)(()=>{const t=(0,o.createBlock)("ablocks/menu-item");(0,r.dispatch)("core/block-editor").insertBlock(t,0,i)},[i,...Object.values(v)]),{children:R,innerBlocksProps:S}=(0,D.useInnerBlocksProps)({},{template:[["ablocks/menu-item",{}]],allowedBlocks:["ablocks/menu-item"],renderAppender:!1});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(mR,{
3332 +blockId:n,name:yj.UU,attributes:e,tagName:"ul",...S,className:"ablocks-menu-child-sub ablocks-menu-child-sub--editor",children:[R,(0,I.jsx)("button",{className:"ablocks-menu-child-sub__new-item",onClick:_,children:(0,L.__)("Add new Item","ablocks")})]})})}Tj.propTypes={};const Hj=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t.padding,{unit:"px"});return{background:(0,Hs.qD)(t?.background),...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,c.qD)(o,"padding",e),...(0,H.qD)(t?.boxShadow,"box-shadow",e),...(0,y.qD)(i,e)}},Mj=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},xj=(t,e="")=>{const i=(0,M.Zy)(t.menuItemTypography,{weight:"400"}),o=t.menuItemTypographyGlobal?t.menuItemTypographyGlobal:"",a=(0,M.Zy)(t.menuItemBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,
3333 +M.Zy)(t.menuItemPadding,{unit:"px"}),n=(0,M.Zy)(t.menuItemMargin,{unit:"px"}),s={color:(0,Hs.qD)(t?.menuItemTextColor),background:(0,Hs.qD)(t?.menuItemBackground),...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,y.qD)(a,e),...(0,U.qD)(i,e,o),...(0,c.qD)(l,"padding",e),...(0,c.qD)(n,"margin",e)};return t.menuItemJustification["value"+e]&&(s["justify-content"]=t.menuItemJustification["value"+e]),t?.menuItemTransition&&(s["transition-duration"]=t?.menuItemTransition+"s"),s},kj=(t,e="")=>{const i=(0,M.Zy)(t.menuItemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.menuItemTextColorH),background:(0,Hs.qD)(t?.menuItemBackgroundH),...(0,y.a9)(i,e)}};function vj(t){const{attributes:e}=t,{block_id:i}=e,{innerBlocksProps:o,children:a}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:yj.UU,attributes:e,tagName:"ul",...o,className:"ablocks-menu-child-sub",children:a})})}vj.propTypes={},(0,M.xV)(yj.UU,"ablocks/menu")&&(0,
3334 +o.registerBlockType)(yj.UU,{title:(0,L.__)("Sub Menu","ablocks"),attributes:yj.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub",Hj(i),Hj(i,"Tablet"),Hj(i,"Mobile"),t.customDeviceMap(t=>Hj(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub:hover",Mj(i),Mj(i,"Tablet"),Mj(i,"Mobile"),t.customDeviceMap(t=>Mj(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub .ablocks-block--menu-item",xj(i),xj(i,"Tablet"),xj(i,"Mobile"),t.customDeviceMap(t=>xj(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub .ablocks-block--menu-item:hover",kj(i),kj(i,"Tablet"),kj(i,"Mobile"),t.customDeviceMap(t=>kj(i,t))),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item > .ablocks-menu-item__link",(t=>{const e={};return t?.menuItemTextColor&&(e.color=`${(0,
3335 +Hs.qD)(t?.menuItemTextColor)} !important`),e})(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item:hover > .ablocks-menu-item__link",(t=>({color:`${(0,Hs.qD)(t?.menuItemTextColorH)} !important`}))(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item .ablocks-menu-item__dropdown-icon svg",(t=>({fill:(0,Hs.qD)(t?.menuItemTextColor)}))(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item:hover .ablocks-menu-item__dropdown-icon svg",(t=>({fill:(0,Hs.qD)(t?.menuItemTextColorH)}))(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(fj,{...t}),(0,I.jsx)(Tj,{...t})]})},save:vj,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--submenu"})});var _j=i(91664);const Rj=t=>"px"===t?2e3:"%"===t?1e3:"em"===t||"rem"===t?200:1e3,Sj=t=>"px"===t?2e3:"%"===t||"em"===t||"rem"===t?200:1e3,Wj=t=>"px"===t?-2e3:"%"===t||"em"===t||"rem"===t?-200:-2e3;function Pj(t){
3336 +const{attributes:e,setAttributes:i}=t,{positionX:o,width:a,height:n}=e,s=lt(),r=a["valueUnit"+s]||"%",b=o["valueUnit"+s]||"%";return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Menu Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Mega Menu","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:(c=r,"px"===c||"%"===c?50:"em"===c||"rem"===c?3:50),max:Rj(r),unitValue:a,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"width",attributeValue:a,setAttributes:i,
3337 +attributeDefaultValue:_j.VL}),(0,I.jsx)(_t,{label:(0,L.__)("height","ablocks"),min:0,max:1e3,unitValue:a,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"height",attributeValue:n,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("PositionX","ablocks"),min:Wj(b),max:Sj(b),unitValue:o,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionX",attributeValue:o,setAttributes:i,attributeDefaultValue:_j.qZ})]})]})});var c}Pj.propTypes={},Pj.defaultProps={};const Uj={UU:"ablocks/menu-child-mega",uK:{block_id:{type:"string",default:""},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},height:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},positionX:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"%",
3338 +valueUnitTablet:"",valueUnitMobile:""}}}};function jj(t){const e=lt(),{attributes:i}=t,{block_id:o}=i,{children:a,innerBlocksProps:l}=(0,D.useInnerBlocksProps)({},{template:[["ablocks/container"]],allowedBlocks:["ablocks/container"]});return(0,I.jsx)(mR,{blockId:o,name:Uj.UU,attributes:i,...l,className:"ablocks-menu-child-mega--editor ablocks-menu-child-mega",allowQuickEdit:"Mobile"!==e&&!0,children:a})}jj.propTypes={},jj.defaultProps={};const wj=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.positionX,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,property:"left",unitDefaultValue:"%",device:e}),...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,Eb.qD)({attributeValue:t.height,attributeObjectKey:"value",
3339 +isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return t?.height?.value&&(i["overflow-y"]="auto",i["overflow-x"]="hidden"),i};function zj(t){const{attributes:e}=t,{block_id:i}=e,{innerBlocksProps:o,children:a}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:Uj.UU,attributes:e,...o,className:"ablocks-menu-child-mega",tagName:"ul",children:a})})}zj.propTypes={},(0,M.xV)(Uj.UU,"ablocks/menu")&&(0,o.registerBlockType)(Uj.UU,{title:(0,L.__)("Mega Menu","ablocks"),attributes:Uj.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",wj(i),wj(i,"Tablet"),wj(i,"Mobile"),t.customDeviceMap(t=>wj(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Pj,{...t}),(0,I.jsx)(jj,{...t})]})
3340 +},save:zj,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--megamenu"})});var Cj=i(74196);const Aj=[[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"}],[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Block","ablocks"),value:"block"}],[{label:(0,L.__)("Popup","ablocks"),value:"popup"},{label:(0,L.__)("Modal","ablocks"),value:"modal"}]],Lj=[{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Top","ablocks"),value:"top"}],Dj=[{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"},{label:(0,L.__)("Top","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("Bottom","ablocks"),value:"flex-end",
3341 +icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],Nj=t=>{switch(t){case"px":return 2e3;case"%":default:return 100;case"em":case"rem":return 150}},Ij=({popupPosition:t,panelBlockPosition:e,popupOnTop:i})=>{let o="";return o+=`ablocks-block-modal-position--${t} `,"block"===t&&e&&(o+=`ablocks-block-modal-panel-direction--${e} `),"popup"===t&&i&&(o+="ablocks-block-modal-panel-popup-on-top "),o};function Vj(t){const{attributes:e,setAttributes:i}=t,{popupPosition:o,panelBlockPosition:a,popupOnTop:n,popupTopOffset:s,panelWidth:r,panelHeight:b,panelContentPosition:c,disableCloseButton:d,useHoverTrigger:u,enableAutoTriggerTimer:p,showAutoOnce:m,showOnMouseOutOfWindow:h,autoTriggerTime:g,backdropColor:f,panelPadding:y,panelBackground:T,panelBorder:H,panelShadow:M,closeBtnBackgroundColor:x,closeBtnColor:k,openPanel:v,noTrigger:_,closeBtnSide:R,closeBtnTop:S,closePosition:W}=e,P=r?.valueUnit||"%",U=b?.valueUnit||"%";return(0,I.jsx)(l().Fragment,{children:(0,
3342 +I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-modal-popup-builder/",children:[(0,I.jsx)(V,{initialOpen:!0,children:(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:[{label:(0,L.__)("Open Panel","ablocks"),value:"open"},{label:(0,L.__)("Close Panel","ablocks"),value:"close"}],onChangeHandler:t=>i({openPanel:t}),attributeValue:v})}),(0,I.jsx)(V,{title:(0,L.__)("Panel","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-modal-position-settings-wrapper",children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"panelWidth",attributeObjectKey:"value",attributeValue:r,setAttributes:i,hasUnit:!0,step:1,min:0,max:Nj(P),isInline:!1,unitValue:r,attributeDefaultValue:Cj.j_}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"panelHeight",attributeObjectKey:"value",attributeValue:b,setAttributes:i,hasUnit:!0,
3343 +step:1,min:0,max:Nj(U),isInline:!1,unitValue:b,attributeDefaultValue:Cj.mF}),(0,I.jsx)(at,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,isHeader:!0}),Aj.map((t,e)=>(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:t,onChangeHandler:t=>i({popupPosition:t}),attributeValue:o},e))]}),"block"===o&&(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:Lj,onChangeHandler:t=>i({panelBlockPosition:t}),attributeValue:a}),"popup"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Place popup on top of page","ablocks"),attributeValue:n,setAttributes:i,attributeName:"popupOnTop",isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Top Offset","ablocks"),min:0,max:2e3,step:1,isInline:!0,isResponsive:!1,attributeName:"popupTopOffset",attributeValue:s,setAttributes:i})]}),(0,I.jsx)(Wb,{isInline:!1,isResponsive:!1,label:(0,L.__)("Content Position","ablocks"),options:Dj,attributeName:"panelContentPosition",attributeValue:c,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{
3334 3344 children:[(0,I.jsx)(Ws,{label:(0,L.__)("Backdrop BG","ablocks"),attributeName:"backdropColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),attributeName:"panelPadding",attributeValue:y,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{isResponsive:!0,attributeName:"panelBackground",attributeValue:T,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"panelBorder",attributeValue:H,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"panelShadow",attributeValue:M,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Trigger settings","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{label:(0,L.__)("Use hover trigger instead of click","ablocks"),
3335 3345 attributeValue:u,setAttributes:i,attributeName:"useHoverTrigger",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show on mouse out of window","ablocks"),attributeValue:h??"0",setAttributes:i,attributeName:"showOnMouseOutOfWindow",isResponsive:!1,onChangeHandler:t=>{i({showOnMouseOutOfWindow:t,enableAutoTriggerTimer:!t&&p})}}),h&&(0,I.jsx)(Ot,{label:(0,L.__)("Trigger Once","ablocks"),attributeValue:m??"0",setAttributes:i,attributeName:"showAutoOnce",isResponsive:!1}),(0,I.jsx)(Ot,{onChangeHandler:t=>{t||i({noTrigger:!1}),i({enableAutoTriggerTimer:t,showOnMouseOutOfWindow:!t&&h})},label:(0,L.__)("Enable Auto Trigger Timer (s)","ablocks"),attributeValue:p??"0",setAttributes:i,attributeName:"enableAutoTriggerTimer",isResponsive:!1}),p&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{min:0,max:100,step:1,isInline:!1,isResponsive:!1,attributeName:"autoTriggerTime",attributeValue:g??"0",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Trigger Once","ablocks"),attributeValue:m??"0",
3336 3346 setAttributes:i,attributeName:"showAutoOnce",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Disable Trigger Element","ablocks"),attributeValue:_??"0",setAttributes:i,attributeName:"noTrigger",isResponsive:!1})]})]}),(0,I.jsxs)(V,{title:(0,L.__)("Close Button","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{label:(0,L.__)("Disable Button","ablocks"),attributeValue:d,setAttributes:i,attributeName:"disableCloseButton",isResponsive:!1}),!d&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:[{label:(0,L.__)("Top Left","ablocks"),value:"left"},{label:(0,L.__)("Top Right","ablocks"),value:"right"}],onChangeHandler:t=>i({closePosition:t}),attributeValue:W}),(0,I.jsx)(_t,{label:"right"===W?(0,L.__)("Left Offset","ablocks"):(0,L.__)("Right Offset","ablocks"),attributeName:"closeBtnSide",attributeValue:R,setAttributes:i,hasUnit:!1,step:1,min:-1e3,max:1e3,
3337 -isInline:!1,isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Top Offset","ablocks"),attributeName:"closeBtnTop",attributeValue:S,setAttributes:i,hasUnit:!1,step:1,min:-1e3,max:1e3,isInline:!1,isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"closeBtnBackgroundColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"closeBtnColor",attributeValue:k,setAttributes:i})]})})]})]})})})}Uj.propTypes={};const jj={UU:"ablocks/modal",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},popupOnTop:{type:"boolean",default:!1},disableCloseButton:{type:"boolean",default:!1},useHoverTrigger:{type:"boolean",default:!1},enableAutoTriggerTimer:{type:"boolean",default:!1},showAutoOnce:{type:"boolean",default:!1},showOnMouseOutOfWindow:{type:"boolean",default:!1},backdropColor:{type:"string",default:"#000000b3"},closeBtnBackgroundColor:{type:"string",
3347 +isInline:!1,isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Top Offset","ablocks"),attributeName:"closeBtnTop",attributeValue:S,setAttributes:i,hasUnit:!1,step:1,min:-1e3,max:1e3,isInline:!1,isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"closeBtnBackgroundColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"closeBtnColor",attributeValue:k,setAttributes:i})]})})]})]})})})}Vj.propTypes={};const Oj={UU:"ablocks/modal",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},popupOnTop:{type:"boolean",default:!1},disableCloseButton:{type:"boolean",default:!1},useHoverTrigger:{type:"boolean",default:!1},enableAutoTriggerTimer:{type:"boolean",default:!1},showAutoOnce:{type:"boolean",default:!1},showOnMouseOutOfWindow:{type:"boolean",default:!1},backdropColor:{type:"string",default:"#000000b3"},closeBtnBackgroundColor:{type:"string",
3338 3348 default:""},closeBtnColor:{type:"string",default:""},noTrigger:{type:"boolean",default:!1},openPanel:{type:"string",default:"close"},popupPosition:{type:"string",default:"popup"},panelBlockPosition:{type:"string",default:"bottom"},panelContentPosition:{type:"string",default:"auto"},closePosition:{type:"string",default:"right"},popupTopOffset:{type:"number",default:0},panelWidth:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},panelHeight:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},autoTriggerTime:{type:"number",default:0},closeBtnTop:{type:"number",default:5},closeBtnSide:{type:"number",default:5},panelPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
3339 3349 topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},panelBackground:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgUrl:"",imgSize:"",imgPosition:"",imgAttachment:"",imgRepeat:"",imgDisplaySize:"",imgdisplaySizeWidth:"",imgDisplaySizeWidthUnit:"px",imgXPositionUnit:"px",imgXPosition:"",imgYPositionUnit:"px",imgYPosition:"",imgIdH:"",imgUrlH:"",imgSizeH:"",imgPositionH:"",imgXPositionUnitH:"px",imgXPositionH:"",imgYPositionUnitH:"px",imgYPositionH:"",imgAttachmentH:"",imgRepeatH:"",imgDisplaySizeH:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHUnit:"px",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},panelBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",
3340 3350 isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",
3341 3351 rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},panelShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",
@@ -3346,11 +3356,11 @@
3346 3356 imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,
3347 3357 rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",
3348 3358 offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",
3349 3359 xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{
3350 -type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},wj=[["ablocks/modal-trigger"],["ablocks/modal-panel"]];function zj(t){const{attributes:e}=t,{openPanel:i,block_id:o,popupPosition:a,panelBlockPosition:n,popupOnTop:s,noTrigger:r,autoTriggerTime:b}=e,c=Pj({popupPosition:a,panelBlockPosition:n,popupOnTop:s});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:jj.UU,attributes:e,typography:[],className:`${c} ablocks-block-modal-panel-visibility--${i} ${r&&b?"ablocks-block--modal_hide-trigger":""}`,children:(0,I.jsx)(D.InnerBlocks,{template:wj,allowedBlocks:["ablocks/modal-trigger","ablocks/modal-panel"],templateLock:"all"})})})}zj.propTypes={};const Cj=(t,e="")=>{if(e)return{};const{backdropColor:i}=t||{},o={};return i&&(o["background-color"]=(0,
3351 -Hs.qD)(t?.backdropColor)),o},Aj=(t,e="")=>{const{panelWidth:i,panelHeight:o,panelContentPosition:a}=t||{},l={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"%",property:"min-height",device:e})};!e&&a&&(l["align-items"]=a);const n=(0,d.qD)(t?.panelBackground,"background",e),s=(0,y.qD)(t?.panelBorder,e),r=(0,H.qD)(t?.panelShadow,"box-shadow",e),b={};if(!e){let t="all 1s";s?.transition&&(t=`${t},${s?.transition}`),n?.transition&&(t=`${t},${n?.transition}`),r?.transition&&(t=`${t},${r?.transition}`),b.transition=t}return{...l,...(0,c.qD)(t?.panelPadding,"padding",e),...n,...s,...r,...b}},Lj=(t,e="")=>({...(0,d.a9)(t?.panelBackground,"background",e),...(0,y.a9)(t?.panelBorder,e),...(0,H.a9)(t?.panelShadow,e)}),Dj=(t,e="")=>{const i={};if(!e){
3352 -const{closeBtnBackgroundColor:e,closeBtnTop:o,closeBtnSide:a,closePosition:l}=t||{};e&&(i["background-color"]=(0,Hs.qD)(t?.closeBtnBackgroundColor)),(o||0===o)&&(i.top=`${o}px`),(a||0===a)&&("left"===l?(i.left=`${a}px`,i.right="unset"):(i.right=`${a}px`,i.left="unset"))}return{...i}};function Nj(t){const{attributes:e}=t,{block_id:i,popupPosition:o,panelBlockPosition:a,popupOnTop:n,useHoverTrigger:s,enableAutoTriggerTimer:r,showAutoOnce:b,autoTriggerTime:c,showOnMouseOutOfWindow:d}=e,u=Pj({popupPosition:o,panelBlockPosition:a,popupOnTop:n}),p=r&&c?{"data-auto-trigger-time":c}:{};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:jj.UU,attributes:e,className:`${u} ${s?"ablocks-trigger-on-hover":""}`,dataAttributes:p,blockProps:c?{"data-auto-show-once":b,"data-show-on-mouse-out":d}:{},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Nj.propTypes={};const Ij={UU:"ablocks/modal",uK:{block_id:{type:"string",default:""},popupOnTop:{type:"boolean",default:!1},
3360 +type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},Yj=[["ablocks/modal-trigger"],["ablocks/modal-panel"]];function Xj(t){const{attributes:e}=t,{openPanel:i,block_id:o,popupPosition:a,panelBlockPosition:n,popupOnTop:s,noTrigger:r,autoTriggerTime:b}=e,c=Ij({popupPosition:a,panelBlockPosition:n,popupOnTop:s});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:Oj.UU,attributes:e,typography:[],className:`${c} ablocks-block-modal-panel-visibility--${i} ${r&&b?"ablocks-block--modal_hide-trigger":""}`,children:(0,I.jsx)(D.InnerBlocks,{template:Yj,allowedBlocks:["ablocks/modal-trigger","ablocks/modal-panel"],templateLock:"all"})})})}Xj.propTypes={};const Bj=(t,e="")=>{if(e)return{};const{backdropColor:i}=t||{},o={};return i&&(o["background-color"]=(0,
3361 +Hs.qD)(t?.backdropColor)),o},Ej=(t,e="")=>{const{panelWidth:i,panelHeight:o,panelContentPosition:a}=t||{},l={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"%",property:"min-height",device:e})};!e&&a&&(l["align-items"]=a);const n=(0,d.qD)(t?.panelBackground,"background",e),s=(0,y.qD)(t?.panelBorder,e),r=(0,H.qD)(t?.panelShadow,"box-shadow",e),b={};if(!e){let t="all 1s";s?.transition&&(t=`${t},${s?.transition}`),n?.transition&&(t=`${t},${n?.transition}`),r?.transition&&(t=`${t},${r?.transition}`),b.transition=t}return{...l,...(0,c.qD)(t?.panelPadding,"padding",e),...n,...s,...r,...b}},Fj=(t,e="")=>({...(0,d.a9)(t?.panelBackground,"background",e),...(0,y.a9)(t?.panelBorder,e),...(0,H.a9)(t?.panelShadow,e)}),qj=(t,e="")=>{const i={};if(!e){
3362 +const{closeBtnBackgroundColor:e,closeBtnTop:o,closeBtnSide:a,closePosition:l}=t||{};e&&(i["background-color"]=(0,Hs.qD)(t?.closeBtnBackgroundColor)),(o||0===o)&&(i.top=`${o}px`),(a||0===a)&&("left"===l?(i.left=`${a}px`,i.right="unset"):(i.right=`${a}px`,i.left="unset"))}return{...i}};function $j(t){const{attributes:e}=t,{block_id:i,popupPosition:o,panelBlockPosition:a,popupOnTop:n,useHoverTrigger:s,enableAutoTriggerTimer:r,showAutoOnce:b,autoTriggerTime:c,showOnMouseOutOfWindow:d}=e,u=Ij({popupPosition:o,panelBlockPosition:a,popupOnTop:n}),p=r&&c?{"data-auto-trigger-time":c}:{};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:Oj.UU,attributes:e,className:`${u} ${s?"ablocks-trigger-on-hover":""}`,dataAttributes:p,blockProps:c?{"data-auto-show-once":b,"data-show-on-mouse-out":d}:{},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}$j.propTypes={};const Gj={UU:"ablocks/modal",uK:{block_id:{type:"string",default:""},popupOnTop:{type:"boolean",default:!1},
3353 3363 disableCloseButton:{type:"boolean",default:!1},useHoverTrigger:{type:"boolean",default:!1},enableAutoTriggerTimer:{type:"boolean",default:!1},backdropColor:{type:"string",default:"#000000b3"},closeBtnBackgroundColor:{type:"string",default:""},closeBtnColor:{type:"string",default:""},noTrigger:{type:"boolean",default:!1},openPanel:{type:"string",default:"close"},popupPosition:{type:"string",default:"popup"},panelBlockPosition:{type:"string",default:"bottom"},panelContentPosition:{type:"string",default:"auto"},closePosition:{type:"string",default:"right"},popupTopOffset:{type:"number",default:0},panelWidth:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},panelHeight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},autoTriggerTime:{type:"number",default:0},closeBtnTop:{type:"number",default:5},closeBtnSide:{type:"number",default:5},panelPadding:{
3354 3364 type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},panelBackground:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgUrl:"",imgSize:"",imgPosition:"",imgAttachment:"",imgRepeat:"",imgDisplaySize:"",imgdisplaySizeWidth:"",imgDisplaySizeWidthUnit:"px",imgXPositionUnit:"px",imgXPosition:"",imgYPositionUnit:"px",imgYPosition:"",imgIdH:"",imgUrlH:"",imgSizeH:"",imgPositionH:"",imgXPositionUnitH:"px",imgXPositionH:"",imgYPositionUnitH:"px",imgYPositionH:"",imgAttachmentH:"",imgRepeatH:"",imgDisplaySizeH:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHUnit:"px",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",
3355 3365 videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},panelBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",
3356 3366 unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},panelShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",
@@ -3361,39 +3371,39 @@
3361 3371 imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",
3362 3372 fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",
3363 3373 rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",
3364 3374 maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{
3365 -type:"string",default:""}}};function Vj(t){const{attributes:e}=t,{block_id:i,popupPosition:o,panelBlockPosition:a,popupOnTop:n,useHoverTrigger:s,enableAutoTriggerTimer:r,autoTriggerTime:b}=e,c=(({popupPosition:t,panelBlockPosition:e,popupOnTop:i})=>{let o="";return o+=`ablocks-block-modal-position--${t} `,"block"===t&&e&&(o+=`ablocks-block-modal-panel-direction--${e} `),"popup"===t&&i&&(o+="ablocks-block-modal-panel-popup-on-top "),o})({popupPosition:o,panelBlockPosition:a,popupOnTop:n}),d=r&&b?{"data-auto-trigger-time":b}:{};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Ij.UU,attributes:e,className:`${c} ${s?"ablocks-trigger-on-hover":""}`,dataAttributes:d,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}function Oj(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{
3366 -className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Modal Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the modal popup setting to customize the modal as your needs","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}(0,L.__)("Left","ablocks"),(0,L.__)("Right","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Block","ablocks"),(0,L.__)("Popup","ablocks"),(0,L.__)("Modal","ablocks"),(0,L.__)("Bottom","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Stretch","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Bottom","ablocks"),Vj.propTypes={},(0,M.xV)(jj.UU)&&(0,o.registerBlockType)(jj.UU,{attributes:jj.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--modal"}),edit:function(t){const e=(0,a.useRef)(null),{isSelected:i,attributes:o,clientId:l,setAttributes:n}=t,{block_id:s}=o;(0,a.useEffect)(()=>{s&&s===l||n({block_id:l}),o?.blockVersion||n({blockVersion:2})
3375 +type:"string",default:""}}};function Zj(t){const{attributes:e}=t,{block_id:i,popupPosition:o,panelBlockPosition:a,popupOnTop:n,useHoverTrigger:s,enableAutoTriggerTimer:r,autoTriggerTime:b}=e,c=(({popupPosition:t,panelBlockPosition:e,popupOnTop:i})=>{let o="";return o+=`ablocks-block-modal-position--${t} `,"block"===t&&e&&(o+=`ablocks-block-modal-panel-direction--${e} `),"popup"===t&&i&&(o+="ablocks-block-modal-panel-popup-on-top "),o})({popupPosition:o,panelBlockPosition:a,popupOnTop:n}),d=r&&b?{"data-auto-trigger-time":b}:{};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Gj.UU,attributes:e,className:`${c} ${s?"ablocks-trigger-on-hover":""}`,dataAttributes:d,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}function Kj(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{
3376 +className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Modal Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the modal popup setting to customize the modal as your needs","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}(0,L.__)("Left","ablocks"),(0,L.__)("Right","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Block","ablocks"),(0,L.__)("Popup","ablocks"),(0,L.__)("Modal","ablocks"),(0,L.__)("Bottom","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Stretch","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Bottom","ablocks"),Zj.propTypes={},(0,M.xV)(Oj.UU)&&(0,o.registerBlockType)(Oj.UU,{attributes:Oj.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--modal"}),edit:function(t){const e=(0,a.useRef)(null),{isSelected:i,attributes:o,clientId:l,setAttributes:n}=t,{block_id:s}=o;(0,a.useEffect)(()=>{s&&s===l||n({block_id:l}),o?.blockVersion||n({blockVersion:2})
3367 3377 },[s,l]);const{popupPosition:r,popupTopOffset:b,disableCloseButton:c,openPanel:d,closeBtnColor:u}=o;(0,a.useEffect)(()=>(document.body.classList.remove("ablocks-editor-modal-block-is-open"),document.body.classList.remove("ablocks-editor-modal-block-is-currently-selected"),"open"===d&&document.body.classList.add("ablocks-editor-modal-block-is-open"),i&&document.body.classList.add("ablocks-editor-modal-block-is-currently-selected"),()=>{document?.body?.classList?.remove?.("ablocks-editor-modal-block-is-open"),document?.body?.classList?.remove?.("ablocks-editor-modal-block-is-currently-selected")}),[d,i]);const p=(0,a.useMemo)(()=>{let t=null;if(t?2!==o?.blockVersion||t instanceof A?2===o?.blockVersion||t instanceof C||(t=new C(o,l)):t=new A(o,l):t=2===o?.blockVersion?new A(o,l):new C(o,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{}
3368 -;return"popup"===r&&b&&t.addClassStyles("{{WRAPPER}}.ablocks-block-modal-position--popup .ablocks-block-modal---panel-wrap .ablocks-modal-popup-content-wrap",{"margin-top":`${b}px`}),t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap",Cj(o),Cj(o,"Tablet"),Cj(o,"Mobile"),e(t=>Cj(o,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-content-wrap",Aj(o),Aj(o,"Tablet"),Aj(o,"Mobile"),e(t=>Aj(o,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-content-wrap:hover",Lj(o),Lj(o,"Tablet"),Lj(o,"Mobile"),e(t=>Lj(o,t))),c||(t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-close",Dj(o),Dj(o,"Tablet"),Dj(o,"Mobile"),e(t=>Dj(o,t))),
3369 -u&&t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-close svg",{fill:u})),t.generateCSS()},[o]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{ref:e,children:p}),i&&(0,I.jsx)(Uj,{...t}),(0,I.jsx)(zj,{...t})]})},save:Nj,deprecated:[{attributes:Ij.uK,save:Vj}]}),Oj.propTypes={};const Yj={UU:"ablocks/modal-trigger",$t:["ablocks/modal"],uK:{block_id:{type:"string",default:""},hideTrigger:{type:"boolean",default:!1}}},Xj=[["ablocks/button",{textColor:"#ffffff",buttonType:"#0d6efd",transition:.5,typography:{decoration:"none"},padding:{top:"10",right:"25",bottom:"10",left:"25",isLinked:!1},border:{commonRadius:"5"}}]];function Bj(t){const{attributes:e}=t,{block_id:i}=e,a=(0,o.getBlockTypes)().filter(t=>!t.parent&&!["ablocks/modal","ablocks/modal-trigger"].includes(t.name)).map(t=>t.name),n={template:Xj,allowedBlocks:a,templateLock:!1};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:i,name:Yj.UU,
3370 -attributes:e,children:(0,I.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0,I.jsx)(D.InnerBlocks,{...n})})})})}function Ej(t){const{attributes:e}=t,{block_id:i,hideTrigger:o}=e;return o?(0,I.jsx)(I.Fragment,{}):(0,I.jsx)(dR,{blockId:i,name:Yj.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Bj.propTypes={},Ej.propTypes={};const Fj={UU:"ablocks/modal-trigger",uK:{block_id:{type:"string",default:""},hideTrigger:{type:"boolean",default:!1}}};function qj(t){const{attributes:e}=t,{block_id:i,hideTrigger:o}=e;return o?(0,I.jsx)(I.Fragment,{}):(0,I.jsx)(dR,{blockId:i,name:Fj.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}function $j(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{
3371 -className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Modal Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the modal popup setting to customize the modal as your needs","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}qj.propTypes={},(0,M.xV)(Yj.UU,Yj.$t[0])&&(0,o.registerBlockType)(Yj.UU,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--modal-trigger"}),attributes:Yj.uK,edit:function(t){const{isSelected:e,attributes:i,clientId:o,setAttributes:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===o||l({block_id:o})},[n,o]);const{hideTrigger:s}=i,{noTrigger:b,autoTriggerTime:c}=(0,r.useSelect)(t=>{const{getBlockParentsByBlockName:e,getBlock:i}=t("core/block-editor"),a=e(o,"ablocks/modal")[0],{noTrigger:l,autoTriggerTime:n}=a?i(a).attributes:{};return{noTrigger:l,autoTriggerTime:n}},[o]);(0,a.useEffect)(()=>{
3372 -void 0!==b&&b!==s&&c&&l({hideTrigger:b})},[b,c]);const d=(0,a.useMemo)(()=>new C(i,o).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)(Oj,{...t}),(0,I.jsx)(Bj,{...t})]})},save:Ej,deprecated:[{attributes:Fj.uK,save:qj}]}),$j.propTypes={};const Gj={UU:"ablocks/modal-panel",$t:["ablocks/modal"],uK:{block_id:{type:"string",default:""},noCloseButton:{type:"boolean",default:!1}}},Zj=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",children:(0,I.jsx)("path",{d:"M9.854 9.146a.5.5 0 1 1-.708.708L5 5.707.854 9.854a.5.5 0 1 1-.708-.708L4.293 5 .146.854A.5.5 0 0 1 .854.146L5 4.293 9.146.146a.5.5 0 0 1 .708.708L5.707 5z"})}),Kj=[["core/paragraph"]];function Jj(t){const{attributes:e,parentModalId:i}=t,{block_id:a,noCloseButton:n}=e,s=(0,o.getBlockTypes)().filter(t=>!t.parent&&!["ablocks/modal","ablocks/modal-trigger","ablocks/modal-panel"].includes(t.name)).map(t=>t.name),b={allowedBlocks:s,
3373 -template:Kj,templateLock:!1,renderAppender:D.InnerBlocks.DefaultBlockAppender};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:a,name:Gj.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block-modal---panel-wrap",children:(0,I.jsxs)("div",{className:"ablocks-modal-popup-content-wrap",children:[(0,I.jsx)("div",{className:"ablocks-modal-popup--content",children:(0,I.jsx)(D.InnerBlocks,{...b})}),!n&&(0,I.jsx)("div",{className:"ablocks-modal-popup-close",role:"presentation",onKeyDown:()=>{},onClick:()=>{i&&(0,r.dispatch)("core/block-editor").updateBlockAttributes(i,{openPanel:"close"})},children:Zj})]})})})})}function Qj(t){const{attributes:e}=t,{block_id:i,noCloseButton:o}=e;return(0,I.jsx)(dR,{blockId:i,name:Gj.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block-modal---panel-wrap",children:(0,I.jsxs)("div",{className:"ablocks-modal-popup-content-wrap",children:[(0,I.jsx)("div",{className:"ablocks-modal-popup--content",children:(0,
3374 -I.jsx)(D.InnerBlocks.Content,{})}),!o&&(0,I.jsx)("div",{className:"ablocks-modal-popup-close",children:Zj})]})})})}Jj.propTypes={},Qj.propTypes={};const tw={UU:"ablocks/modal-panel",uK:{block_id:{type:"string",default:""},noCloseButton:{type:"boolean",default:!1}}},ew=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",children:(0,I.jsx)("path",{d:"M9.854 9.146a.5.5 0 1 1-.708.708L5 5.707.854 9.854a.5.5 0 1 1-.708-.708L4.293 5 .146.854A.5.5 0 0 1 .854.146L5 4.293 9.146.146a.5.5 0 0 1 .708.708L5.707 5z"})});function iw(t){const{attributes:e}=t,{block_id:i,noCloseButton:o}=e;return(0,I.jsx)(dR,{blockId:i,name:tw.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block-modal---panel-wrap",children:(0,I.jsxs)("div",{className:"ablocks-modal-popup-content-wrap",children:[(0,I.jsx)("div",{className:"ablocks-modal-popup--content",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),!o&&(0,I.jsx)("div",{className:"ablocks-modal-popup-close",
3375 -children:ew})]})})})}iw.propTypes={},(0,M.xV)(Gj.UU,Gj.$t[0])&&(0,o.registerBlockType)(Gj.UU,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--modal-panel"}),attributes:Gj.uK,edit:function(t){const{isSelected:e,attributes:i,clientId:o,setAttributes:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===o||l({block_id:o})},[n,o]);const{noCloseButton:s}=i,{disableCloseButton:b,parentModalId:c}=(0,r.useSelect)(t=>{const{getBlockParentsByBlockName:e,getBlock:i}=t("core/block-editor"),a=e(o,"ablocks/modal")[0],{disableCloseButton:l}=a?i(a).attributes:{};return{disableCloseButton:l,parentModalId:a}},[o]);(0,a.useEffect)(()=>{void 0!==b&&b!==s&&l({noCloseButton:b})},[b]);const d=(0,a.useMemo)(()=>new C(i,o).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)($j,{...t}),(0,I.jsx)(Jj,{parentModalId:c,...t})]})},save:Qj,deprecated:[{attributes:tw.uK,save:iw}]})
3376 -;var ow=i(20312),aw=i.n(ow),lw=i(66162),nw=i(81344),sw=i(53481),rw=i.n(sw),bw=i(14489);function cw({setLatLngHandler:t,center:e}){const i=(0,a.useRef)(null),o=(0,a.useMemo)(()=>({dragend(){const e=i.current;if(null!==e){const{lat:i,lng:o}=e.getLatLng();t(i,o)}}}),[]);return(0,I.jsx)(bw.p,{draggable:!0,eventHandlers:o,position:e,icon:new(rw().Icon)({iconUrl:M.hq+"assets/images/marker-icon.png",popupAnchor:[0,-15],iconSize:[25,41]}),ref:i})}cw.propTypes={},cw.defaultProps={},i(72189);var dw=i(46804);function uw(){return uw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},uw.apply(this,arguments)}function pw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mw(t,e)}function mw(t,e){return mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mw(t,e)}var hw,gw,fw={position:"topleft",style:"button",
3377 -showMarker:!0,showPopup:!1,popupFormat:function(t){return""+t.result.label},resultFormat:function(t){return""+t.result.label},marker:{icon:sw&&sw.Icon?new sw.Icon.Default:void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",clearSearchLabel:"Clear search",notFoundMessage:"",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:"",resultlist:"",item:"",notfound:"leaflet-bar-notfound"},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0,resetButton:"×"};uw({},fw),uw({},fw.classNames),(gw=hw||(hw={}))[gw.SEARCH=0]="SEARCH",gw[gw.REVERSE=1]="REVERSE";var yw,Tw=function(){function t(t){void 0===t&&(t={}),this.options=void 0,this.options=t}var e=t.prototype;return e.getParamString=function(t){void 0===t&&(t={})
3378 -;var e=uw({},this.options.params,t);return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},e.getUrl=function(t,e){return t+"?"+this.getParamString(e)},e.search=function(t){try{var e=this,i=e.endpoint({query:t.query,type:hw.SEARCH});return Promise.resolve(fetch(i)).then(function(t){return Promise.resolve(t.json()).then(function(t){return e.parse({data:t})})})}catch(t){return Promise.reject(t)}},t}();"function"==typeof SuppressedError&&SuppressedError,function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(yw||(yw={}));var Hw=function(t){function e(e){var i;void 0===e&&(e={}),(i=t.call(this,e)||this).searchUrl=void 0,i.reverseUrl=void 0;var o="https://nominatim.openstreetmap.org";return i.searchUrl=e.searchUrl||o+"/search",i.reverseUrl=e.reverseUrl||o+"/reverse",i}pw(e,t);var i=e.prototype;return i.endpoint=function(t){var e=t.query,i=t.type,o="string"==typeof e?{q:e}:e
3379 -;return o.format="json",this.getUrl(i===hw.REVERSE?this.reverseUrl:this.searchUrl,o)},i.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(t){return{x:Number(t.lon),y:Number(t.lat),label:t.display_name,bounds:[[parseFloat(t.boundingbox[0]),parseFloat(t.boundingbox[2])],[parseFloat(t.boundingbox[1]),parseFloat(t.boundingbox[3])]],raw:t}})},e}(Tw);class Mw extends l().Component{state={q:"",isOpenResults:!1,places:[]};fetchPlaces(t){this.provider.search({query:t}).then(t=>{this.setState({places:t.slice(0,5),isOpenResults:!0})})}constructor(t){super(t),this.provider=new Hw,this.fetchPlaces=(0,dw.sg)(this.fetchPlaces,500)}onSearchChange(t){const e=t.target.value;this.setState({q:e}),this.fetchPlaces(e)}render(){return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-block-map-modal-place-search",children:[(0,I.jsx)("input",{className:"ablocks-block-map-modal-place-search__input",type:"text",value:this.state.q,
3380 -onChange:this.onSearchChange.bind(this),placeholder:(0,L.__)("Location Search…","ablocks")}),this.state.isOpenResults&&(0,I.jsx)("ul",{className:"ablocks-block-map-modal-place-search__results",children:this.state.places.map((t,e)=>(0,I.jsx)("li",{role:"presentation",onClick:()=>{this.setState({q:t.label,isOpenResults:!1}),this.props.setLatLngHandler(t.raw.lat,t.raw.lon)},children:t.label},e))})]})})}}function xw({index:t,attributes:e,setAttributes:i}){const o=(0,a.useRef)(),{mapMarkerList:n}=e,[s,r]=(0,a.useState)((0,dw.I3)(n,t)),b=(e,a)=>{o.current&&o.current.setView({lat:e,lng:a}),r({lat:e,lng:a}),i({mapMarkerList:n.reduce((i,o,l)=>(t===l&&(o.lat=e,o.lng=a),i.push(o),i),[])})};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-block-map-modal-location-search",children:[(0,I.jsx)(Mw,{setLatLngHandler:b}),(0,I.jsxs)("div",{className:"ablocks-block-map-modal-location-search__map",children:[(0,I.jsxs)(lw.W,{style:{width:"100%",height:"200px"},center:s,zoom:13,
3381 -ref:o,children:[(0,I.jsx)(nw.e,{url:"OSM"===e.map_type?dw.AW:dw.GM}),(0,I.jsx)(cw,{center:s,setLatLngHandler:b})]}),(0,I.jsx)("span",{className:"ablocks-block-map-note",children:(0,L.__)("Draggable Marker, Your can easily change your marker position by Dragging","ablocks")})]})]})})}Mw.propTypes={},xw.propTypes={};const kw={overlay:{background:"rgba(35, 40, 45, 0.62)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",width:"850px",marginRight:"-50%",transform:"translate(-50%, -50%)"}};function vw({index:t,isOpen:e,attributes:i,setAttributes:o,closeModal:a}){const{mapMarkerList:l,centerIndex:n}=i,s=(t,e,i)=>{const a=l.map(o=>o.id===t?{...o,[e]:i}:o);o({mapMarkerList:a})};return(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(aw(),{bodyOpenClassName:"ablocks-block-map-modal",isOpen:e,style:kw,ariaHideApp:!1,contentLabel:(0,L.__)("Marker Editor","ablocks"),children:[(0,I.jsx)(N.Button,{className:"ablocks-block-map-modal__close",onClick:a,children:(0,I.jsx)("span",{
3382 -className:"dashicons dashicons-no-alt"})}),(0,I.jsxs)("div",{className:"ablocks-block-map-modal__body",children:[(0,I.jsxs)("div",{className:"entry-left",children:[(0,I.jsx)(xw,{index:t,attributes:i,setAttributes:o}),(0,I.jsxs)("div",{className:"ablocks-block-map-modal-group-control",children:[(0,I.jsx)(N.TextControl,{label:(0,L.__)("Latitude","ablocks"),onChange:e=>s(t,"lat",isNaN(e)?0:e),value:l[t].lat}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("longitude","ablocks"),onChange:e=>s(t,"lng",isNaN(e)?0:e),value:l[t].lng})]}),(0,I.jsxs)("div",{className:"ablocks-based-control__label",children:[(0,I.jsx)(N.TextControl,{label:(0,L.__)("Popup Title","ablocks"),onChange:e=>s(t,"title",(0,M.Xz)(e)),value:l[t].title}),(0,I.jsx)(N.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,L.__)("Popup Content","ablocks"),onChange:e=>s(t,"content",(0,M.Xz)(e)),value:l[t].content})]}),(0,I.jsx)(N.Button,{className:"ablocks-block-map-modal__save",isPrimary:!0,onClick:a,children:(0,
3378 +;return"popup"===r&&b&&t.addClassStyles("{{WRAPPER}}.ablocks-block-modal-position--popup .ablocks-block-modal---panel-wrap .ablocks-modal-popup-content-wrap",{"margin-top":`${b}px`}),t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap",Bj(o),Bj(o,"Tablet"),Bj(o,"Mobile"),e(t=>Bj(o,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-content-wrap",Ej(o),Ej(o,"Tablet"),Ej(o,"Mobile"),e(t=>Ej(o,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-content-wrap:hover",Fj(o),Fj(o,"Tablet"),Fj(o,"Mobile"),e(t=>Fj(o,t))),c||(t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-close",qj(o),qj(o,"Tablet"),qj(o,"Mobile"),e(t=>qj(o,t))),
3379 +u&&t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-close svg",{fill:u})),t.generateCSS()},[o]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{ref:e,children:p}),i&&(0,I.jsx)(Vj,{...t}),(0,I.jsx)(Xj,{...t})]})},save:$j,deprecated:[{attributes:Gj.uK,save:Zj}]}),Kj.propTypes={};const Jj={UU:"ablocks/modal-trigger",$t:["ablocks/modal"],uK:{block_id:{type:"string",default:""},hideTrigger:{type:"boolean",default:!1}}},Qj=[["ablocks/button",{textColor:"#ffffff",buttonType:"#0d6efd",transition:.5,typography:{decoration:"none"},padding:{top:"10",right:"25",bottom:"10",left:"25",isLinked:!1},border:{commonRadius:"5"}}]];function tw(t){const{attributes:e}=t,{block_id:i}=e,a=(0,o.getBlockTypes)().filter(t=>!t.parent&&!["ablocks/modal","ablocks/modal-trigger"].includes(t.name)).map(t=>t.name),n={template:Qj,allowedBlocks:a,templateLock:!1};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(mR,{blockId:i,name:Jj.UU,
3380 +attributes:e,children:(0,I.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0,I.jsx)(D.InnerBlocks,{...n})})})})}function ew(t){const{attributes:e}=t,{block_id:i,hideTrigger:o}=e;return o?(0,I.jsx)(I.Fragment,{}):(0,I.jsx)(yR,{blockId:i,name:Jj.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}tw.propTypes={},ew.propTypes={};const iw={UU:"ablocks/modal-trigger",uK:{block_id:{type:"string",default:""},hideTrigger:{type:"boolean",default:!1}}};function ow(t){const{attributes:e}=t,{block_id:i,hideTrigger:o}=e;return o?(0,I.jsx)(I.Fragment,{}):(0,I.jsx)(yR,{blockId:i,name:iw.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}function aw(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{
3381 +className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Modal Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the modal popup setting to customize the modal as your needs","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}ow.propTypes={},(0,M.xV)(Jj.UU,Jj.$t[0])&&(0,o.registerBlockType)(Jj.UU,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--modal-trigger"}),attributes:Jj.uK,edit:function(t){const{isSelected:e,attributes:i,clientId:o,setAttributes:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===o||l({block_id:o})},[n,o]);const{hideTrigger:s}=i,{noTrigger:b,autoTriggerTime:c}=(0,r.useSelect)(t=>{const{getBlockParentsByBlockName:e,getBlock:i}=t("core/block-editor"),a=e(o,"ablocks/modal")[0],{noTrigger:l,autoTriggerTime:n}=a?i(a).attributes:{};return{noTrigger:l,autoTriggerTime:n}},[o]);(0,a.useEffect)(()=>{
3382 +void 0!==b&&b!==s&&c&&l({hideTrigger:b})},[b,c]);const d=(0,a.useMemo)(()=>new C(i,o).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)(Kj,{...t}),(0,I.jsx)(tw,{...t})]})},save:ew,deprecated:[{attributes:iw.uK,save:ow}]}),aw.propTypes={};const lw={UU:"ablocks/modal-panel",$t:["ablocks/modal"],uK:{block_id:{type:"string",default:""},noCloseButton:{type:"boolean",default:!1}}},nw=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",children:(0,I.jsx)("path",{d:"M9.854 9.146a.5.5 0 1 1-.708.708L5 5.707.854 9.854a.5.5 0 1 1-.708-.708L4.293 5 .146.854A.5.5 0 0 1 .854.146L5 4.293 9.146.146a.5.5 0 0 1 .708.708L5.707 5z"})}),sw=[["core/paragraph"]];function rw(t){const{attributes:e,parentModalId:i}=t,{block_id:a,noCloseButton:n}=e,s=(0,o.getBlockTypes)().filter(t=>!t.parent&&!["ablocks/modal","ablocks/modal-trigger","ablocks/modal-panel"].includes(t.name)).map(t=>t.name),b={allowedBlocks:s,
3383 +template:sw,templateLock:!1,renderAppender:D.InnerBlocks.DefaultBlockAppender};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(mR,{blockId:a,name:lw.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block-modal---panel-wrap",children:(0,I.jsxs)("div",{className:"ablocks-modal-popup-content-wrap",children:[(0,I.jsx)("div",{className:"ablocks-modal-popup--content",children:(0,I.jsx)(D.InnerBlocks,{...b})}),!n&&(0,I.jsx)("div",{className:"ablocks-modal-popup-close",role:"presentation",onKeyDown:()=>{},onClick:()=>{i&&(0,r.dispatch)("core/block-editor").updateBlockAttributes(i,{openPanel:"close"})},children:nw})]})})})})}function bw(t){const{attributes:e}=t,{block_id:i,noCloseButton:o}=e;return(0,I.jsx)(yR,{blockId:i,name:lw.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block-modal---panel-wrap",children:(0,I.jsxs)("div",{className:"ablocks-modal-popup-content-wrap",children:[(0,I.jsx)("div",{className:"ablocks-modal-popup--content",children:(0,
3384 +I.jsx)(D.InnerBlocks.Content,{})}),!o&&(0,I.jsx)("div",{className:"ablocks-modal-popup-close",children:nw})]})})})}rw.propTypes={},bw.propTypes={};const cw={UU:"ablocks/modal-panel",uK:{block_id:{type:"string",default:""},noCloseButton:{type:"boolean",default:!1}}},dw=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",children:(0,I.jsx)("path",{d:"M9.854 9.146a.5.5 0 1 1-.708.708L5 5.707.854 9.854a.5.5 0 1 1-.708-.708L4.293 5 .146.854A.5.5 0 0 1 .854.146L5 4.293 9.146.146a.5.5 0 0 1 .708.708L5.707 5z"})});function uw(t){const{attributes:e}=t,{block_id:i,noCloseButton:o}=e;return(0,I.jsx)(yR,{blockId:i,name:cw.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block-modal---panel-wrap",children:(0,I.jsxs)("div",{className:"ablocks-modal-popup-content-wrap",children:[(0,I.jsx)("div",{className:"ablocks-modal-popup--content",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),!o&&(0,I.jsx)("div",{className:"ablocks-modal-popup-close",
3385 +children:dw})]})})})}uw.propTypes={},(0,M.xV)(lw.UU,lw.$t[0])&&(0,o.registerBlockType)(lw.UU,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--modal-panel"}),attributes:lw.uK,edit:function(t){const{isSelected:e,attributes:i,clientId:o,setAttributes:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===o||l({block_id:o})},[n,o]);const{noCloseButton:s}=i,{disableCloseButton:b,parentModalId:c}=(0,r.useSelect)(t=>{const{getBlockParentsByBlockName:e,getBlock:i}=t("core/block-editor"),a=e(o,"ablocks/modal")[0],{disableCloseButton:l}=a?i(a).attributes:{};return{disableCloseButton:l,parentModalId:a}},[o]);(0,a.useEffect)(()=>{void 0!==b&&b!==s&&l({noCloseButton:b})},[b]);const d=(0,a.useMemo)(()=>new C(i,o).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)(aw,{...t}),(0,I.jsx)(rw,{parentModalId:c,...t})]})},save:bw,deprecated:[{attributes:cw.uK,save:uw}]})
3386 +;var pw=i(20312),mw=i.n(pw),hw=i(66162),gw=i(81344),fw=i(53481),yw=i.n(fw),Tw=i(14489);function Hw({setLatLngHandler:t,center:e}){const i=(0,a.useRef)(null),o=(0,a.useMemo)(()=>({dragend(){const e=i.current;if(null!==e){const{lat:i,lng:o}=e.getLatLng();t(i,o)}}}),[]);return(0,I.jsx)(Tw.p,{draggable:!0,eventHandlers:o,position:e,icon:new(yw().Icon)({iconUrl:M.hq+"assets/images/marker-icon.png",popupAnchor:[0,-15],iconSize:[25,41]}),ref:i})}Hw.propTypes={},Hw.defaultProps={},i(72189);var Mw=i(46804);function xw(){return xw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},xw.apply(this,arguments)}function kw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vw(t,e)}function vw(t,e){return vw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vw(t,e)}var _w,Rw,Sw={position:"topleft",style:"button",
3387 +showMarker:!0,showPopup:!1,popupFormat:function(t){return""+t.result.label},resultFormat:function(t){return""+t.result.label},marker:{icon:fw&&fw.Icon?new fw.Icon.Default:void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",clearSearchLabel:"Clear search",notFoundMessage:"",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:"",resultlist:"",item:"",notfound:"leaflet-bar-notfound"},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0,resetButton:"×"};xw({},Sw),xw({},Sw.classNames),(Rw=_w||(_w={}))[Rw.SEARCH=0]="SEARCH",Rw[Rw.REVERSE=1]="REVERSE";var Ww,Pw=function(){function t(t){void 0===t&&(t={}),this.options=void 0,this.options=t}var e=t.prototype;return e.getParamString=function(t){void 0===t&&(t={})
3388 +;var e=xw({},this.options.params,t);return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},e.getUrl=function(t,e){return t+"?"+this.getParamString(e)},e.search=function(t){try{var e=this,i=e.endpoint({query:t.query,type:_w.SEARCH});return Promise.resolve(fetch(i)).then(function(t){return Promise.resolve(t.json()).then(function(t){return e.parse({data:t})})})}catch(t){return Promise.reject(t)}},t}();"function"==typeof SuppressedError&&SuppressedError,function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(Ww||(Ww={}));var Uw=function(t){function e(e){var i;void 0===e&&(e={}),(i=t.call(this,e)||this).searchUrl=void 0,i.reverseUrl=void 0;var o="https://nominatim.openstreetmap.org";return i.searchUrl=e.searchUrl||o+"/search",i.reverseUrl=e.reverseUrl||o+"/reverse",i}kw(e,t);var i=e.prototype;return i.endpoint=function(t){var e=t.query,i=t.type,o="string"==typeof e?{q:e}:e
3389 +;return o.format="json",this.getUrl(i===_w.REVERSE?this.reverseUrl:this.searchUrl,o)},i.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(t){return{x:Number(t.lon),y:Number(t.lat),label:t.display_name,bounds:[[parseFloat(t.boundingbox[0]),parseFloat(t.boundingbox[2])],[parseFloat(t.boundingbox[1]),parseFloat(t.boundingbox[3])]],raw:t}})},e}(Pw);class jw extends l().Component{state={q:"",isOpenResults:!1,places:[]};fetchPlaces(t){this.provider.search({query:t}).then(t=>{this.setState({places:t.slice(0,5),isOpenResults:!0})})}constructor(t){super(t),this.provider=new Uw,this.fetchPlaces=(0,Mw.sg)(this.fetchPlaces,500)}onSearchChange(t){const e=t.target.value;this.setState({q:e}),this.fetchPlaces(e)}render(){return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-block-map-modal-place-search",children:[(0,I.jsx)("input",{className:"ablocks-block-map-modal-place-search__input",type:"text",value:this.state.q,
3390 +onChange:this.onSearchChange.bind(this),placeholder:(0,L.__)("Location Search…","ablocks")}),this.state.isOpenResults&&(0,I.jsx)("ul",{className:"ablocks-block-map-modal-place-search__results",children:this.state.places.map((t,e)=>(0,I.jsx)("li",{role:"presentation",onClick:()=>{this.setState({q:t.label,isOpenResults:!1}),this.props.setLatLngHandler(t.raw.lat,t.raw.lon)},children:t.label},e))})]})})}}function ww({index:t,attributes:e,setAttributes:i}){const o=(0,a.useRef)(),{mapMarkerList:n}=e,[s,r]=(0,a.useState)((0,Mw.I3)(n,t)),b=(e,a)=>{o.current&&o.current.setView({lat:e,lng:a}),r({lat:e,lng:a}),i({mapMarkerList:n.reduce((i,o,l)=>(t===l&&(o.lat=e,o.lng=a),i.push(o),i),[])})};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-block-map-modal-location-search",children:[(0,I.jsx)(jw,{setLatLngHandler:b}),(0,I.jsxs)("div",{className:"ablocks-block-map-modal-location-search__map",children:[(0,I.jsxs)(hw.W,{style:{width:"100%",height:"200px"},center:s,zoom:13,
3391 +ref:o,children:[(0,I.jsx)(gw.e,{url:"OSM"===e.map_type?Mw.AW:Mw.GM}),(0,I.jsx)(Hw,{center:s,setLatLngHandler:b})]}),(0,I.jsx)("span",{className:"ablocks-block-map-note",children:(0,L.__)("Draggable Marker, Your can easily change your marker position by Dragging","ablocks")})]})]})})}jw.propTypes={},ww.propTypes={};const zw={overlay:{background:"rgba(35, 40, 45, 0.62)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",width:"850px",marginRight:"-50%",transform:"translate(-50%, -50%)"}};function Cw({index:t,isOpen:e,attributes:i,setAttributes:o,closeModal:a}){const{mapMarkerList:l,centerIndex:n}=i,s=(t,e,i)=>{const a=l.map(o=>o.id===t?{...o,[e]:i}:o);o({mapMarkerList:a})};return(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(mw(),{bodyOpenClassName:"ablocks-block-map-modal",isOpen:e,style:zw,ariaHideApp:!1,contentLabel:(0,L.__)("Marker Editor","ablocks"),children:[(0,I.jsx)(N.Button,{className:"ablocks-block-map-modal__close",onClick:a,children:(0,I.jsx)("span",{
3392 +className:"dashicons dashicons-no-alt"})}),(0,I.jsxs)("div",{className:"ablocks-block-map-modal__body",children:[(0,I.jsxs)("div",{className:"entry-left",children:[(0,I.jsx)(ww,{index:t,attributes:i,setAttributes:o}),(0,I.jsxs)("div",{className:"ablocks-block-map-modal-group-control",children:[(0,I.jsx)(N.TextControl,{label:(0,L.__)("Latitude","ablocks"),onChange:e=>s(t,"lat",isNaN(e)?0:e),value:l[t].lat}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("longitude","ablocks"),onChange:e=>s(t,"lng",isNaN(e)?0:e),value:l[t].lng})]}),(0,I.jsxs)("div",{className:"ablocks-based-control__label",children:[(0,I.jsx)(N.TextControl,{label:(0,L.__)("Popup Title","ablocks"),onChange:e=>s(t,"title",(0,M.Xz)(e)),value:l[t].title}),(0,I.jsx)(N.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,L.__)("Popup Content","ablocks"),onChange:e=>s(t,"content",(0,M.Xz)(e)),value:l[t].content})]}),(0,I.jsx)(N.Button,{className:"ablocks-block-map-modal__save",isPrimary:!0,onClick:a,children:(0,
3383 3393 L.__)("Save & Close","ablocks")})]}),(0,I.jsx)("div",{className:"entry-right",children:(0,I.jsxs)("div",{className:"ablocks-block-map-modal-panel",children:[(0,I.jsx)("h2",{className:"ablocks-block-map-modal-panel__title",children:(0,L.__)("Marker Settings","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-block-map-modal-panel__body",children:[(0,I.jsx)(N.ToggleControl,{label:(0,L.__)("Set As Default Position","ablocks"),checked:n===t,onChange:e=>{o({centerIndex:e?t:0})}}),(0,I.jsxs)("div",{className:"ablocks-block-map-modal-panel__body--radio",children:[(0,I.jsx)(N.RadioControl,{label:(0,L.__)("Choose Icon Type","ablocks"),selected:l[t].iconType,options:[{label:(0,L.__)("Default Icon","ablocks"),value:"default"},{label:(0,L.__)("Custom Icon","ablocks"),value:"custom"}],onChange:e=>{s(t,"iconType",e)}}),"custom"===l[t].iconType&&(0,I.jsx)(D.MediaUploadCheck,{children:(0,I.jsx)(D.MediaUpload,{onSelect:e=>s(t,"customIconUrl",e.url),allowedTypes:["image"],render:({open:e})=>(0,
3384 3394 I.jsxs)(I.Fragment,{children:[""!==l[t].customIconUrl&&(0,I.jsxs)("div",{className:"ablocks-block-map-modal-panel__icon-size",children:[(0,I.jsx)(N.RangeControl,{className:"ablocks-range-lebel",label:(0,L.__)("Icon Width","ablocks"),value:parseInt(l[t].customIconWidth),onChange:e=>s(t,"customIconWidth",e),min:0,max:500}),(0,I.jsx)(N.RangeControl,{className:"ablocks-range-lebel",label:(0,L.__)("Icon Height","ablocks"),value:parseInt(l[t].customIconHeight),onChange:e=>s(t,"customIconHeight",e),min:0,max:500}),(0,I.jsx)("img",{src:l[t].customIconUrl,alt:(0,L.__)("Icon","ablocks"),style:{width:l[t].customIconWidth,height:l[t].customIconHeight}})]}),(0,I.jsxs)("div",{className:"ablocks-block-map-modal-panel__button-group",children:[(0,I.jsx)(N.Button,{className:"ablocks-block-map-modal__button",isPrimary:!0,onClick:e,children:""===l[t].customIconUrl?(0,L.__)("Upload Icon","ablocks"):(0,L.__)("Replace Icon","ablocks")}),""!==l[t].customIconUrl&&(0,I.jsx)(N.Button,{
3385 -className:"ablocks-block-map-modal__button",isPrimary:!0,onClick:()=>s(t,"customIconUrl",""),children:(0,L.__)("Remove Icon","ablocks")})]})]})})})]})]})]})})]})]})})}vw.propTypes={};var _w=i(18057);function Rw(t){const{attributes:e,setAttributes:i}=t,{mapWidth:o,mapHeight:n,mapType:s,mapZoom:r,scrollWheelZoom:b,mapMarkerList:c,centerIndex:d,cssFilter:u,iconHeight:p,iconWidth:m}=e,[h,g]=(0,a.useState)(0),[f,y]=(0,a.useState)(!1),[T,H]=(0,a.useState)(null),[x,k]=(0,a.useState)(""),v=t=>{g(t),y(!0)},_=t=>{k(t.target.value)},R=c?.length?c[c.length-1].id+1:0;return(0,I.jsxs)(l().Fragment,{children:[M.Uz?.wp_map_block&&(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{label:(0,L.__)("Import Block Settings","ablocks"),icon:"upload",onClick:async()=>{const t=await(0,M.qS)();t&&i((0,dw.j0)(JSON.parse(t)))}})}),(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-map-block/",children:[(0,I.jsx)(V,{title:(0,
3395 +className:"ablocks-block-map-modal__button",isPrimary:!0,onClick:()=>s(t,"customIconUrl",""),children:(0,L.__)("Remove Icon","ablocks")})]})]})})})]})]})]})})]})]})})}Cw.propTypes={};var Aw=i(18057);function Lw(t){const{attributes:e,setAttributes:i}=t,{mapWidth:o,mapHeight:n,mapType:s,mapZoom:r,scrollWheelZoom:b,mapMarkerList:c,centerIndex:d,cssFilter:u,iconHeight:p,iconWidth:m}=e,[h,g]=(0,a.useState)(0),[f,y]=(0,a.useState)(!1),[T,H]=(0,a.useState)(null),[x,k]=(0,a.useState)(""),v=t=>{g(t),y(!0)},_=t=>{k(t.target.value)},R=c?.length?c[c.length-1].id+1:0;return(0,I.jsxs)(l().Fragment,{children:[M.Uz?.wp_map_block&&(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{label:(0,L.__)("Import Block Settings","ablocks"),icon:"upload",onClick:async()=>{const t=await(0,M.qS)();t&&i((0,Mw.j0)(JSON.parse(t)))}})}),(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-map-block/",children:[(0,I.jsx)(V,{title:(0,
3386 3396 L.__)("Map Settings","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Choose Map","ablocks"),attributeValue:s,attributeName:"mapType",setAttributes:i,options:[{label:(0,L.__)("Google Map","ablocks"),value:"GM"},{label:(0,L.__)("Open Street map","ablocks"),value:"OSM"},{label:(0,L.__)("Satellite Map","ablocks"),value:"GM_SATELLITE"}],isInline:!1,onChangeHandler:t=>i({mapType:t})}),(0,I.jsx)(_t,{label:(0,L.__)("Zoom Level","ablocks"),attributeValue:r,attributeName:"mapZoom",isResponsive:!1,setAttributes:i,min:0,max:20,isInline:!1,onChangeHandler:t=>i({mapZoom:t})}),(0,I.jsx)(Ot,{label:(0,L.__)("Enable Scroll Wheel Zoom","ablocks"),isInline:!1,attributeValue:b,attributeName:"scrollWheelZoom",attributes:i,isResponsive:!1,onChangeHandler:()=>i({scrollWheelZoom:!e.scrollWheelZoom})})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeValue:o,isResponsive:!0,
3387 -attributeObjectKey:"value",isInline:!1,hasUnit:!0,attributeName:"mapWidth",unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"},{value:"vw",label:"vw"}],setAttributes:i,min:0,max:1e3,attributeDefaultValue:_w.VZ,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeValue:n,hasUnit:!0,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"}],attributeName:"mapHeight",setAttributes:i,isInline:!1,min:0,max:1e3,attributeDefaultValue:_w.AK,autoSyncRange:!0}),(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:u,attributeName:"cssFilter",setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Map Marker","ablocks"),initialOpen:!0,children:[(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(c),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({mapMarkerList:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,
3397 +attributeObjectKey:"value",isInline:!1,hasUnit:!0,attributeName:"mapWidth",unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"},{value:"vw",label:"vw"}],setAttributes:i,min:0,max:1e3,attributeDefaultValue:Aw.VZ,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeValue:n,hasUnit:!0,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"}],attributeName:"mapHeight",setAttributes:i,isInline:!1,min:0,max:1e3,attributeDefaultValue:Aw.AK,autoSyncRange:!0}),(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:u,attributeName:"cssFilter",setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Map Marker","ablocks"),initialOpen:!0,children:[(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(c),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({mapMarkerList:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,
3388 3398 children:[c?.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t.id}`,index:e,children:o=>(0,I.jsx)("div",{ref:o.innerRef,...o.draggableProps,...o.dragHandleProps,className:`ablocks-editor-list ${d===e&&"ablocks-editor-list--sclected"}`,children:(0,I.jsxs)("div",{role:"presentation",className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=c.map(e=>e.id===t?{...e,isOpen:!0,isDefault:!0}:{...e,isOpen:!1,isDefault:!1});i({mapMarkerList:e})})(t?.id),children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),T===t.id?(0,I.jsx)("input",{value:x,onChange:_,style:{width:"100px",border:"none",outline:"none",boxShadow:"none",backgroundColor:"transparent"},onBlur:()=>(((t,e,o)=>{const a=c.map(i=>i.id===t?{...i,[o]:e}:i);i({mapMarkerList:a})})(t.id,x,"label"),void H(null))}):(0,I.jsx)("span",{role:"presentation",className:"ablocks-list-text",
3389 3399 style:{color:d===e&&"#00AD6B"},onClick:()=>{return e=t.id,i=t.label,H(e),void k(i);var e,i},children:"string"==typeof t?.label&&t.label.length>20?t.label.slice(0,20)+"...":t?.label||""})]}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{t.stopPropagation();const o=c.filter(t=>t?.id!==e);i({mapMarkerList:o})})(e,t?.id)}),(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--edit",onClick:()=>v(e)}),(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--copy",onClick:e=>((t,e)=>{t.stopPropagation();const o=c.findIndex(t=>t?.id===e),a=c[o],l=Array.from(c).sort((t,e)=>t.id-e.id),n={id:l[l.length-1].id+1,label:a?.label,lat:a?.lat,lng:a?.lng,title:a?.title,content:a?.content,iconType:a?.iconType,customIconUrl:a?.customIconUrl,customIconWidth:a?.customIconWidth,customIconHeight:a?.customIconHeight,isOpen:!1},s=[...c,n]
3390 -;i({mapMarkerList:s})})(e,t?.id)})]})]})})},t.id)),t.placeholder]})})}),(0,I.jsx)("button",{className:"ablocks-map--add-marker",type:"button",onClick:()=>{(()=>{const t={id:R,label:`Marker ${R+1}`,lat:"",lng:"",title:"",content:"",iconType:"default",customIconUrl:"",customIconWidth:25,customIconHeight:40,isOpen:!0},e=c.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({mapMarkerList:[...e,t]})})(),v(c?.length)},children:(0,L.__)("+ Add Marker","ablocks")}),f&&(0,I.jsx)(vw,{index:h,attributes:e,setAttributes:i,isOpen:f,openModal:v,closeModal:()=>{g(0),y(!1)}})]}),c.length>0&&(0,I.jsxs)(V,{title:(0,L.__)("Marker Icon","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon Height","ablocks"),attributeValue:p,attributeName:"iconHeight",isResponsive:!1,setAttributes:i,min:0,max:150,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Width","ablocks"),attributeValue:m,attributeName:"iconWidth",isResponsive:!1,setAttributes:i,min:0,max:150,isInline:!1})]})]})})]})}const Sw=(t,e="")=>{
3391 -const{mapWidth:i,mapHeight:o}=t,a=(0,M.Zy)(t.mapWidth,{value:100,valueUnit:"%"}),l=(0,M.Zy)(t.mapHeight,{value:500,valueUnit:"px"});return{...{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:a.value,unitDefaultValue:a.valueUnit,property:"width",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"height",device:e})},...(0,cy.qD)(t?.cssFilter,e)}},Ww=l().lazy(()=>i.e(6758).then(i.bind(i,52577)));var Pw=i(63748);(0,M.xV)(Pw.UU)&&(0,o.registerBlockType)(Pw.UU,{title:(0,L.__)("Map","ablocks"),attributes:Pw.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
3392 -;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-map-base-editor",Sw(i),Sw(i,"Tablet"),Sw(i,"Mobile"),(e=t=>Sw(i,t),"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{})),t.generateCSS());var e},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Rw,{...t}),(0,I.jsx)(a.Suspense,{fallback:(0,I.jsx)("div",{children:(0,L.__)("Loading map…","ablocks")}),children:(0,I.jsx)(Ww,{...t})})]})},save:()=>null,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--map"})});const Uw=[{label:(0,L.__)("Front","ablocks"),value:"front"},{label:(0,L.__)("Back","ablocks"),value:"back"}],jw=(t,e,i)=>{t[e]?.children[1]?.classList.add("ablocks-block--flip-box-child--active"),t[e]?.children[1]?.classList.remove("ablocks-block--flip-box-child--inactive"),
3393 -t[i]?.children[1]?.classList.add("ablocks-block--flip-box-child--inactive"),t[i]?.children[1]?.classList.remove("ablocks-block--flip-box-child--active")},ww=[{label:(0,L.__)("Right","ablocks"),value:"right",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,L.__)("Bottom","ablocks"),value:"bottom",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,L.__)("Left","ablocks"),value:"left",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,L.__)("Top","ablocks"),value:"top",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"})}];function zw(t){const{attributes:e,setAttributes:i}=t,{flipDirection:o,transitionSpeed:a,showSide:n,cardBorder:s,frontCardBackground:r,backCardBackground:b,frontPadding:c,backPadding:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,
3394 -docs_url:"https://ablocks.pro/flip-box-4/",children:(0,I.jsx)(V,{title:(0,L.__)("Flip Box","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{label:(0,L.__)("Show Side","ablocks"),options:Uw,attributeName:"showSide",attributeValue:n,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Speed","ablocks"),min:.1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"transitionSpeed",attributeValue:a,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Flip Direction","ablocks"),options:ww,attributeName:"flipDirection",attributeValue:o,setAttributes:i,isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{label:(0,L.__)("Show Side","ablocks"),options:Uw,attributeName:"showSide",attributeValue:n,setAttributes:i,isResponsive:!1,allowDeselect:!1}),"front"===n?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,
3395 -attributeName:"frontPadding",attributeValue:c,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{isResponsive:!0,attributeName:"frontCardBackground",attributeValue:r,setAttributes:i})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"backPadding",attributeValue:d,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{isResponsive:!0,attributeName:"backCardBackground",attributeValue:b,setAttributes:i})]}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"cardBorder",attributeValue:s,setAttributes:i})]})})})})})})}zw.propTypes={};const Cw={UU:"ablocks/flip-box",uK:{block_id:{type:"string",default:""},flipDirection:{type:"string",default:"left"},showSide:{
3400 +;i({mapMarkerList:s})})(e,t?.id)})]})]})})},t.id)),t.placeholder]})})}),(0,I.jsx)("button",{className:"ablocks-map--add-marker",type:"button",onClick:()=>{(()=>{const t={id:R,label:`Marker ${R+1}`,lat:"",lng:"",title:"",content:"",iconType:"default",customIconUrl:"",customIconWidth:25,customIconHeight:40,isOpen:!0},e=c.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({mapMarkerList:[...e,t]})})(),v(c?.length)},children:(0,L.__)("+ Add Marker","ablocks")}),f&&(0,I.jsx)(Cw,{index:h,attributes:e,setAttributes:i,isOpen:f,openModal:v,closeModal:()=>{g(0),y(!1)}})]}),c.length>0&&(0,I.jsxs)(V,{title:(0,L.__)("Marker Icon","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon Height","ablocks"),attributeValue:p,attributeName:"iconHeight",isResponsive:!1,setAttributes:i,min:0,max:150,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Width","ablocks"),attributeValue:m,attributeName:"iconWidth",isResponsive:!1,setAttributes:i,min:0,max:150,isInline:!1})]})]})})]})}const Dw=(t,e="")=>{
3401 +const{mapWidth:i,mapHeight:o}=t,a=(0,M.Zy)(t.mapWidth,{value:100,valueUnit:"%"}),l=(0,M.Zy)(t.mapHeight,{value:500,valueUnit:"px"});return{...{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:a.value,unitDefaultValue:a.valueUnit,property:"width",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"height",device:e})},...(0,cy.qD)(t?.cssFilter,e)}},Nw=l().lazy(()=>i.e(6758).then(i.bind(i,52577)));var Iw=i(63748);(0,M.xV)(Iw.UU)&&(0,o.registerBlockType)(Iw.UU,{title:(0,L.__)("Map","ablocks"),attributes:Iw.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
3402 +;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-map-base-editor",Dw(i),Dw(i,"Tablet"),Dw(i,"Mobile"),(e=t=>Dw(i,t),"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{})),t.generateCSS());var e},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Lw,{...t}),(0,I.jsx)(a.Suspense,{fallback:(0,I.jsx)("div",{children:(0,L.__)("Loading map…","ablocks")}),children:(0,I.jsx)(Nw,{...t})})]})},save:()=>null,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--map"})});const Vw=[{label:(0,L.__)("Front","ablocks"),value:"front"},{label:(0,L.__)("Back","ablocks"),value:"back"}],Ow=(t,e,i)=>{t[e]?.children[1]?.classList.add("ablocks-block--flip-box-child--active"),t[e]?.children[1]?.classList.remove("ablocks-block--flip-box-child--inactive"),
3403 +t[i]?.children[1]?.classList.add("ablocks-block--flip-box-child--inactive"),t[i]?.children[1]?.classList.remove("ablocks-block--flip-box-child--active")},Yw=[{label:(0,L.__)("Right","ablocks"),value:"right",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,L.__)("Bottom","ablocks"),value:"bottom",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,L.__)("Left","ablocks"),value:"left",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,L.__)("Top","ablocks"),value:"top",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"})}];function Xw(t){const{attributes:e,setAttributes:i}=t,{flipDirection:o,transitionSpeed:a,showSide:n,cardBorder:s,frontCardBackground:r,backCardBackground:b,frontPadding:c,backPadding:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,
3404 +docs_url:"https://ablocks.pro/flip-box-4/",children:(0,I.jsx)(V,{title:(0,L.__)("Flip Box","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{label:(0,L.__)("Show Side","ablocks"),options:Vw,attributeName:"showSide",attributeValue:n,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Speed","ablocks"),min:.1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"transitionSpeed",attributeValue:a,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Flip Direction","ablocks"),options:Yw,attributeName:"flipDirection",attributeValue:o,setAttributes:i,isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{label:(0,L.__)("Show Side","ablocks"),options:Vw,attributeName:"showSide",attributeValue:n,setAttributes:i,isResponsive:!1,allowDeselect:!1}),"front"===n?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,
3405 +attributeName:"frontPadding",attributeValue:c,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{isResponsive:!0,attributeName:"frontCardBackground",attributeValue:r,setAttributes:i})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"backPadding",attributeValue:d,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{isResponsive:!0,attributeName:"backCardBackground",attributeValue:b,setAttributes:i})]}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"cardBorder",attributeValue:s,setAttributes:i})]})})})})})})}Xw.propTypes={};const Bw={UU:"ablocks/flip-box",uK:{block_id:{type:"string",default:""},flipDirection:{type:"string",default:"left"},showSide:{
3396 3406 type:"string",default:"front"},transitionSpeed:{type:"number",default:.6},cardBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,
3397 3407 isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},frontCardBackground:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",
3398 3408 imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",
3399 3409 imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},backCardBackground:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",
@@ -3406,28 +3416,32 @@
3406 3416 imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",
3407 3417 transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",
3408 3418 flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",
3409 3419 yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",
3410 -blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function Aw(t){const{attributes:e,clientId:i}=t,{block_id:o,showSide:n,flipDirection:b}=e,c=(0,D.useBlockProps)({className:"ablocks-flipbox__wrapper"}),d=[["ablocks/flip-box-child",{childId:1}],["ablocks/flip-box-child",{childId:2}]],u=(0,D.useInnerBlocksProps)(c,{template:d,allowedBlocks:d,templateLock:"all"}),p=(0,
3411 -r.useSelect)(t=>t("core/block-editor").getBlocks(i),[i]);return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${o}`);if(2===p.length&&t){const e=t.querySelectorAll(".ablocks-block--flip-box-child");"front"===n?jw(e,0,1):jw(e,1,0)}},[p,n,o]),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:Cw.UU,attributes:e,className:s()(`ablocks-flipbox--transform-${b}`),children:(0,I.jsx)("div",{...u})})})}Aw.propTypes={};const Lw=t=>{const{flipDirection:e,transitionSpeed:i,showSide:o}=t;return{display:"block",transition:`transform ${i}s`,...(0,Eb.qD)({attributeValue:t.transitionSpeed,attributeObjectKey:"value",defaultValue:.6,unitDefaultValue:"s",property:"transform"}),transform:"front"===o?"rotateY(0deg)":"top"===e?"rotateX(180deg)":"bottom"===e?"rotateX(-180deg)":"left"===e?"rotateY(-180deg)":"rotateY(180deg)"}},Dw=(t,e="")=>{const i=(0,M.Zy)(t.frontPadding,{unit:"px"}),o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,
3412 -d.qD)(t?.frontCardBackground,"background",e),...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}},Nw=(t,e="")=>{const i=(0,M.Zy)(t.backPadding,{unit:"px"}),o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,d.qD)(t?.backCardBackground,"background",e),...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}},Iw=(t,e="")=>{const i=(0,M.Zy)(t.frontPadding,{unit:"px"}),o=(0,M.Zy)(t.cardBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,d.a9)(t?.frontCardBackground,"background",e),...(0,c.qD)(i,"padding",e),...(0,y.a9)(o,e)}},Vw=(t,e="")=>{const i=(0,M.Zy)(t.backPadding,{unit:"px"}),o=(0,M.Zy)(t.cardBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,d.a9)(t?.backCardBackground,"background",e),...(0,c.qD)(i,"padding",e),...(0,y.a9)(o,e)}};function Ow(t){const{attributes:e}=t,{block_id:i,flipDirection:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Cw.UU,attributes:e,className:s()(`ablocks-flipbox--transform-${o}`),children:(0,
3413 -I.jsx)(D.InnerBlocks.Content,{})})})}function Yw(t){return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Flip Box Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Customize the Flip Box block to create interactive hover effects.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}Ow.propTypes={},(0,M.xV)(Cw.UU)&&(0,o.registerBlockType)(Cw.UU,{title:(0,L.__)("Flip Box","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-flipbox"}),attributes:Cw.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l)
3414 -;s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__wrapper",Lw(i),Lw(i),Lw(i),s.customDeviceMap(t=>Lw(i))),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__front > .ablocks-block-container",Dw(i),Dw(i,"Tablet"),Dw(i,"Mobile"),s.customDeviceMap(t=>Dw(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__back >.ablocks-block-container",Nw(i),Nw(i,"Tablet"),Nw(i,"Mobile"),s.customDeviceMap(t=>Nw(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__front:hover > .ablocks-block-container",Iw(i),Iw(i,"Tablet"),Iw(i,"Mobile"),s.customDeviceMap(t=>Iw(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__back:hover > .ablocks-block-container",Vw(i),Vw(i,"Tablet"),Vw(i,"Mobile"),s.customDeviceMap(t=>Vw(i,t)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(zw,{...t}),(0,I.jsx)(Aw,{...t})]})},save:Ow}),Yw.propTypes={};const Xw={UU:"ablocks/flip-box-child",$t:["ablocks/flip-box"],uK:{block_id:{type:"string",default:""},childId:{
3415 -type:"number",default:0}}},Bw=[["ablocks/icon",{alignment:{value:"center"}}],["ablocks/heading",{heading:"Front Side",alignment:{value:"center"}}],["ablocks/paragraph",{alignment:{value:"center"}}]],Ew=[["ablocks/icon",{alignment:{value:"center"}}],["ablocks/heading",{heading:"Back Side",alignment:{value:"center"}}],["ablocks/button",{alignment:{value:"center"},position:{value:"center"}}]];function Fw(t){const{attributes:e}=t,{block_id:i,childId:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:Xw.UU,attributes:e,className:s()("ablocks-flipbox__"+(1===o?"front":"back")),children:(0,I.jsx)(D.InnerBlocks,{template:1===o?Bw:Ew,templateLock:!1})})})}function qw(t){const{attributes:e}=t,{block_id:i,childId:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Xw.UU,attributes:e,className:s()("ablocks-flipbox__"+(1===o?"front":"back")),children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Fw.propTypes={},qw.propTypes={},(0,M.xV)(Xw.UU,Xw.$t[0])&&(0,
3416 -o.registerBlockType)(Xw.UU,{title:(0,L.__)("Flip Box child","ablocks"),attributes:Xw.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l).generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Yw,{...t}),(0,I.jsx)(Fw,{...t})]})},save:qw,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-flipbox"})});const $w=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"arrows",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",
3417 -type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:hT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:gT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}];(0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");var Gw=i(28482);const Zw=[{label:"row",value:"row"},{label:"column",value:"column"}];function Kw(t){
3418 -const{attributes:e,setAttributes:i}=t,{device:o,alignment:a,columnGap:n,itemsDirection:s,allowDescription:r,allowIcon:b,allowDivider:c,itemPadding:d,itemBackground:u,itemBackgroundH:p,transition:m,itemBorder:h,titleTag:g,titleColor:f,titleTypography:y,titleTextShadow:T,titleTextStroke:H,descriptionTag:M,descriptionColor:x,descriptionTypography:k,descriptionTextShadow:v,descriptionTextStroke:_,placeDivider:R,dividerPatternUrl:S,color:W,weight:P,width:U,gap:j,size:w,placePrice:z,priceTag:C,priceColor:A,priceTypography:N,priceTextShadow:O,priceTextStroke:Y}=e,{}=e,X=$w?.find(t=>t.value===S),B=X?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:w,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:Gw.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),
3419 -attributeName:"weight",attributeValue:P,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:Gw.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-price-menu-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Price menu","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Column gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"columnGap",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Gw.Dv,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),(0,I.jsx)(Hd,{label:(0,L.__)("Items Direction","ablocks"),options:Zw,attributeName:"itemsDirection",attributeValue:s,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),options:[{label:(0,L.__)("Flex Start","ablocks"),
3420 -value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:a,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap around elements","ablocks"),isResponsive:!0,attributeName:"gap",attributeObjectKey:"value",attributeValue:j,setAttributes:i,isInline:!1,min:1,max:30,step:1,attributeDefaultValue:Gw.rQ}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow icon","ablocks"),attributeValue:b,setAttributes:i,attributeName:"allowIcon"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow description","ablocks"),attributeValue:r,setAttributes:i,attributeName:"allowDescription"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow divider","ablocks"),attributeValue:c,setAttributes:i,attributeName:"allowDivider"}),(0,I.jsx)(Ut,{label:(0,L.__)("Place divider","ablocks"),options:[{label:(0,L.__)("near title","ablocks"),type:"css-style",
3421 -value:"near title"},{label:(0,L.__)("under price","ablocks"),type:"css-style",value:"under title"},{label:(0,L.__)("under description","ablocks"),type:"css-style",value:"under des"}],attributeName:"placeDivider",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Place price","ablocks"),options:[{label:"base",type:"css-style",value:"right"},{label:(0,L.__)("bottom","ablocks"),type:"css-style",value:"bottom"}],attributeName:"placePrice",attributeValue:z,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"itemBackground",attributeValue:u,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"itemBackgroundH",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,
3422 -attributeValue:m||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"itemPadding",attributeValue:d,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:h,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Titles","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"titleTag",attributeValue:g,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),
3423 -attributeName:"titleTextShadow",attributeValue:T,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:H,setAttributes:i,isResponsive:!0})]})})}),r?(0,I.jsx)(V,{title:(0,L.__)("Descriptions","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"descriptionTag",attributeValue:M,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"descriptionColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"descriptionTextShadow",attributeValue:v,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,
3424 -L.__)("Text Stroke","ablocks"),attributeName:"descriptionTextStroke",attributeValue:_,setAttributes:i,isResponsive:!0})]})})}):null,c?(0,I.jsx)(V,{title:(0,L.__)("Dividers","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:$w,attributeName:"dividerPatternUrl",attributeValue:S,onChangeHandler:t=>{const e=$w?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:U,setAttributes:i,hasUnit:!1,step:1,min:1,max:r||"Mobile"===o&&!1===r?100:500,isInline:!1,attributeDefaultValue:Gw.VL})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:W,setAttributes:i}),(0,I.jsx)(It,{}),B]})})}):null,(0,I.jsx)(V,{title:(0,L.__)("Prices","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,
3425 -I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"priceTag",attributeValue:C,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"priceColor",attributeValue:A,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:N,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"priceTextShadow",attributeValue:O,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"priceTextStroke",attributeValue:Y,setAttributes:i,isResponsive:!0})]})})})]})})})}Kw.propTypes={};const Jw={UU:"ablocks/price-menu",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10,
3426 -valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},itemBackgroundH:{type:"string",default:""},itemBackground:{type:"string",default:""},transition:{type:"number",default:""},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"#13191B"},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"#595959"},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:"dashed"},dividerType:{type:"string",default:"dashed"},color:{type:"string",default:"#000000"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"#595959"},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"600",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",
3427 -lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",
3428 -letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypographyGlobal:{type:"string",default:""},priceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",
3429 -wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string",
3420 +blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function Ew(t){const{attributes:e,clientId:i}=t,{block_id:o,showSide:n,flipDirection:b}=e,c=(0,D.useBlockProps)({className:"ablocks-flipbox__wrapper"}),d=[["ablocks/flip-box-child",{childId:1}],["ablocks/flip-box-child",{childId:2}]],u=(0,D.useInnerBlocksProps)(c,{template:d,allowedBlocks:d,templateLock:"all"}),p=(0,
3421 +r.useSelect)(t=>t("core/block-editor").getBlocks(i),[i]);return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${o}`);if(2===p.length&&t){const e=t.querySelectorAll(".ablocks-block--flip-box-child");"front"===n?Ow(e,0,1):Ow(e,1,0)}},[p,n,o]),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:Bw.UU,attributes:e,className:s()(`ablocks-flipbox--transform-${b}`),children:(0,I.jsx)("div",{...u})})})}Ew.propTypes={};const Fw=t=>{const{flipDirection:e,transitionSpeed:i,showSide:o}=t;return{display:"block",transition:`transform ${i}s`,...(0,Eb.qD)({attributeValue:t.transitionSpeed,attributeObjectKey:"value",defaultValue:.6,unitDefaultValue:"s",property:"transform"}),transform:"front"===o?"rotateY(0deg)":"top"===e?"rotateX(180deg)":"bottom"===e?"rotateX(-180deg)":"left"===e?"rotateY(-180deg)":"rotateY(180deg)"}},qw=(t,e="")=>{const i=(0,M.Zy)(t.frontPadding,{unit:"px"}),o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,
3422 +d.qD)(t?.frontCardBackground,"background",e),...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}},$w=(t,e="")=>{const i=(0,M.Zy)(t.backPadding,{unit:"px"}),o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,d.qD)(t?.backCardBackground,"background",e),...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}},Gw=(t,e="")=>{const i=(0,M.Zy)(t.frontPadding,{unit:"px"}),o=(0,M.Zy)(t.cardBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,d.a9)(t?.frontCardBackground,"background",e),...(0,c.qD)(i,"padding",e),...(0,y.a9)(o,e)}},Zw=(t,e="")=>{const i=(0,M.Zy)(t.backPadding,{unit:"px"}),o=(0,M.Zy)(t.cardBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,d.a9)(t?.backCardBackground,"background",e),...(0,c.qD)(i,"padding",e),...(0,y.a9)(o,e)}};function Kw(t){const{attributes:e}=t,{block_id:i,flipDirection:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Bw.UU,attributes:e,className:s()(`ablocks-flipbox--transform-${o}`),children:(0,
3423 +I.jsx)(D.InnerBlocks.Content,{})})})}function Jw(t){return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Flip Box Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Customize the Flip Box block to create interactive hover effects.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}Kw.propTypes={},(0,M.xV)(Bw.UU)&&(0,o.registerBlockType)(Bw.UU,{title:(0,L.__)("Flip Box","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-flipbox"}),attributes:Bw.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l)
3424 +;s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__wrapper",Fw(i),Fw(i),Fw(i),s.customDeviceMap(t=>Fw(i))),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__front > .ablocks-block-container",qw(i),qw(i,"Tablet"),qw(i,"Mobile"),s.customDeviceMap(t=>qw(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__back >.ablocks-block-container",$w(i),$w(i,"Tablet"),$w(i,"Mobile"),s.customDeviceMap(t=>$w(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__front:hover > .ablocks-block-container",Gw(i),Gw(i,"Tablet"),Gw(i,"Mobile"),s.customDeviceMap(t=>Gw(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__back:hover > .ablocks-block-container",Zw(i),Zw(i,"Tablet"),Zw(i,"Mobile"),s.customDeviceMap(t=>Zw(i,t)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(Xw,{...t}),(0,I.jsx)(Ew,{...t})]})},save:Kw}),Jw.propTypes={};const Qw={UU:"ablocks/flip-box-child",$t:["ablocks/flip-box"],uK:{block_id:{type:"string",default:""},childId:{
3425 +type:"number",default:0}}},tz=[["ablocks/icon",{alignment:{value:"center"}}],["ablocks/heading",{heading:"Front Side",alignment:{value:"center"}}],["ablocks/paragraph",{alignment:{value:"center"}}]],ez=[["ablocks/icon",{alignment:{value:"center"}}],["ablocks/heading",{heading:"Back Side",alignment:{value:"center"}}],["ablocks/button",{alignment:{value:"center"},position:{value:"center"}}]];function iz(t){const{attributes:e}=t,{block_id:i,childId:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:Qw.UU,attributes:e,className:s()("ablocks-flipbox__"+(1===o?"front":"back")),children:(0,I.jsx)(D.InnerBlocks,{template:1===o?tz:ez,templateLock:!1})})})}function oz(t){const{attributes:e}=t,{block_id:i,childId:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Qw.UU,attributes:e,className:s()("ablocks-flipbox__"+(1===o?"front":"back")),children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}iz.propTypes={},oz.propTypes={},(0,M.xV)(Qw.UU,Qw.$t[0])&&(0,
3426 +o.registerBlockType)(Qw.UU,{title:(0,L.__)("Flip Box child","ablocks"),attributes:Qw.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l).generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Jw,{...t}),(0,I.jsx)(iz,{...t})]})},save:oz,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-flipbox"})});const az=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"arrows",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",
3427 +type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:hT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:gT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}],lz=((0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),t=>t&&"object"==typeof t?t:{value:t??""}),nz=(t,e="")=>(0,M.By)(e,e=>lz(t)["value"+e])??"",sz=t=>{const e=lz(t)
3428 +;return[...new Set(Object.keys(e).filter(t=>/^value/.test(t)).map(t=>e[t]).filter(M.a4))]},rz=(t,e,i)=>{const o={...lz(t),[e]:i};return Object.keys(o).every(t=>"value"===t||!(0,M.a4)(o[t]))?o.value:o},bz=(t,e)=>({["value"+e]:nz(t,e)}),cz=(t,e)=>`ablocks-price-menu-${t}-slot--${e.replace(/\s+/g,"-").replace(/%[a-fA-F0-9]{2}/g,"").replace(/[^A-Za-z0-9_-]/g,"")}`,dz=(t,e,i="")=>sz(t).length<2?{}:{display:nz(t,i)===e?"block":"none"},uz=Zt.gh.filter(t=>"justify"!==t.value),pz=(t,e,i)=>({priceAlignment:{...t,[e]:i},priceAlignmentCustom:!0}),mz=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,Zt.qD)(t?.titleAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.titleTextStroke,e),...(0,fc.qD)(t?.titleTextShadow)}},hz=(t,e="")=>{const i=(0,M.Zy)(t.descriptionTypography,{weight:"400"}),o=t.descriptionTypographyGlobal?t.descriptionTypographyGlobal:"";return{color:(0,
3429 +Hs.qD)(t?.descriptionColor),...(0,Zt.qD)(t?.descriptionAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.descriptionTextStroke,e),...(0,fc.qD)(t?.descriptionTextShadow)}},gz=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}},fz=t=>t.allowDescription?"%":"px",yz=(t,e)=>({width:{...t.width,default:{...t.width.default,valueUnit:fz(e)}}
3430 +}),Tz=(t,e="",i="--ablocks-pm-item-divider-width",o=null)=>(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,property:i,defaultValue:o,hasUnit:!0,unitDefaultValue:fz(t),device:e}),Hz=(t,e="")=>(0,M.a4)((0,M.By)(e,e=>t.titlePriceGap?.["value"+e]))&&"%"===(0,Eb.l_)({attributeValue:t.titlePriceGap,attributeObjectKey:"value",unitDefaultValue:"px",device:e}),Mz=t=>Object.keys(t||{}).some(e=>/^valueUnit/.test(e)&&"%"===t[e]),xz=t=>Mz(t.titlePriceGap),kz=(t,e="")=>t.priceAlignmentCustom?e?{}:{width:"100%"}:((t,e="")=>Hz(t,e)||!!t.allowDivider&&"near title"===nz(t.placeDivider,e)&&"%"===(0,M.By)(e,e=>t.width?.["valueUnit"+e]))(t,e)?{width:"100%"}:e&&(t=>xz(t)||!!t.allowDivider&&sz(t.placeDivider).includes("near title")&&Mz(t.width))(t)?{width:"fit-content"}:{},vz=(t,e="")=>t.priceAlignmentCustom&&!e?{"flex-grow":"1"}:{},_z=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{weight:"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{color:(0,
3431 +Hs.qD)(t?.priceColor),...(0,Zt.qD)(t?.priceAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.priceTextStroke,e),...(0,fc.qD)(t?.priceTextShadow)}};var Rz=i(28482);const Sz=[{label:"row",value:"row"},{label:"column",value:"column"}];function Wz(t){const{attributes:e,setAttributes:i}=t,{alignment:o,columnGap:a,itemsDirection:n,allowDescription:s,allowIcon:r,allowDivider:b,itemPadding:c,itemBackground:d,itemBackgroundH:u,transition:p,itemBorder:m,titleTag:h,titleColor:g,titleTypography:f,titleTextShadow:y,titleTextStroke:T,descriptionTag:H,descriptionColor:M,descriptionTypography:x,descriptionTextShadow:k,descriptionTextStroke:v,placeDivider:_,dividerPatternUrl:R,color:S,weight:W,width:P,gap:U,size:j,placePrice:w,priceTag:z,priceColor:C,priceTypography:A,priceTextShadow:N,priceTextStroke:O,priceAlignment:Y,titlePriceGap:X}=e,B=lt(),E=az?.find(t=>t.value===R),F=E?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,
3432 +L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:j,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:Rz.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:W,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:Rz.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-price-menu-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Price menu","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Column gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"columnGap",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Rz.Dv,unitOptions:[{value:"px",
3433 +label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),(0,I.jsx)(Hd,{label:(0,L.__)("Items Direction","ablocks"),options:Sz,attributeName:"itemsDirection",attributeValue:n,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),options:[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:o,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap around elements","ablocks"),isResponsive:!0,attributeName:"gap",attributeObjectKey:"value",attributeValue:U,setAttributes:i,isInline:!1,min:1,max:30,step:1,attributeDefaultValue:Rz.rQ}),(0,I.jsx)(_t,{label:(0,L.__)("Title & price gap","ablocks"),isResponsive:!0,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],attributeName:"titlePriceGap",
3434 +attributeObjectKey:"value",attributeValue:X,setAttributes:i,isInline:!1,min:0,max:200,attributeDefaultValue:Rz.cI}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow icon","ablocks"),attributeValue:r,setAttributes:i,attributeName:"allowIcon"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow description","ablocks"),attributeValue:s,setAttributes:i,attributeName:"allowDescription"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow divider","ablocks"),attributeValue:b,setAttributes:i,attributeName:"allowDivider"}),(0,I.jsx)(Ut,{label:(0,L.__)("Place divider","ablocks"),options:[{label:(0,L.__)("near title","ablocks"),type:"css-style",value:"near title"},{label:(0,L.__)("under price","ablocks"),type:"css-style",value:"under title"},{label:(0,L.__)("under description","ablocks"),type:"css-style",value:"under des"}],attributeName:"placeDivider",attributeObjectKey:"value",isResponsive:!0,attributeValue:bz(_,B),onChangeHandler:(t,e)=>i({placeDivider:rz(_,e,t)})}),(0,
3435 +I.jsx)(Ut,{label:(0,L.__)("Place price","ablocks"),options:[{label:"base",type:"css-style",value:"right"},{label:(0,L.__)("bottom","ablocks"),type:"css-style",value:"bottom"}],attributeName:"placePrice",attributeObjectKey:"value",isResponsive:!0,attributeValue:bz(w,B),onChangeHandler:(t,e)=>i({placePrice:rz(w,e,t)})})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"itemBackground",attributeValue:d,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"itemBackgroundH",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:p||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"itemPadding",
3436 +attributeValue:c,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:m,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Titles","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"titleTag",attributeValue:h,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:y,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",
3437 +attributeValue:T,setAttributes:i,isResponsive:!0})]})})}),s?(0,I.jsx)(V,{title:(0,L.__)("Descriptions","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"descriptionTag",attributeValue:H,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"descriptionColor",attributeValue:M,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:x,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"descriptionTextShadow",attributeValue:k,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"descriptionTextStroke",attributeValue:v,setAttributes:i,isResponsive:!0})]})})}):null,b?(0,I.jsx)(V,{title:(0,L.__)("Dividers","ablocks"),
3438 +initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:az,attributeName:"dividerPatternUrl",attributeValue:R,onChangeHandler:t=>{const e=az?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:P,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],unitDefaultValue:fz(e),step:1,min:1,max:1e3,isInline:!1,attributeDefaultValue:yz(Rz.VL,e)})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:S,setAttributes:i}),(0,I.jsx)(It,{}),F]})})}):null,(0,I.jsx)(V,{title:(0,L.__)("Prices","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"priceTag",
3439 +attributeValue:z,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),options:uz,attributeName:"priceAlignment",attributeValue:Y,onChangeHandler:(t,e)=>i(pz(Y,e,t))})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"priceColor",attributeValue:C,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:A,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"priceTextShadow",attributeValue:N,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"priceTextStroke",attributeValue:O,setAttributes:i,isResponsive:!0})]})})})]})})})}Wz.propTypes={};const Pz={UU:"ablocks/price-menu",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,
3440 +valueMobile:10,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},itemBackgroundH:{type:"string",default:""},itemBackground:{type:"string",default:""},transition:{type:"number",default:""},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"#13191B"},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"#595959"},placeDivider:{type:["string","object"],default:"near title"},dividerPatternUrl:{type:"string",default:"dashed"},dividerType:{type:"string",default:"dashed"},color:{type:"string",default:"#000000"},placePrice:{type:["string","object"],default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"#595959"},priceAlignmentCustom:{type:"boolean",default:!1},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"600",
3441 +transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",
3442 +fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypographyGlobal:{type:"string",default:""},priceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",
3443 +letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string",
3430 3444 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
3431 3445 },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",
3432 3446 rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},
3433 3447 iconImageWidth:{type:"number",default:0},elementTextTypographyGlobal:{type:"string",default:""},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},
@@ -3432,27 +3446,27 @@
3432 3446 rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},
3433 3447 iconImageWidth:{type:"number",default:0},elementTextTypographyGlobal:{type:"string",default:""},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},
3434 3448 titleAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},descriptionAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},priceAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},itemsDirection:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},itemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",
3435 3449 bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",
3436 -leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},itemPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},width:{type:"object",default:{value:100,valueTablet:100,valueMobile:100}},weight:{type:"number",default:2},size:{type:"number",default:20},gap:{type:"object",default:{value:10,valueTablet:1,valueMobile:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},
3437 -_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",
3438 -unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",
3439 -rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",
3440 -imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",
3441 -imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",
3442 -offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",
3443 -scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",
3444 -yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{
3445 -type:"array",default:[],items:{type:"object"}}}};function Qw(t){const{attributes:e,setAttributes:i,clientId:n,isSelected:s}=t,{block_id:b,device:c,alignment:d,itemsDirection:u,allowIcon:p,allowDescription:m,allowDivider:h,titleTag:g,titleAlignment:f,descriptionTag:y,descriptionAlignment:T,placeDivider:H,dividerType:M,gap:x,placePrice:k,priceTag:v,priceAlignment:_}=e,R=lt();(0,a.useEffect)(()=>{i({device:R})},[R]);const{updateBlockAttributes:S}=(0,r.useDispatch)("core/block-editor"),W=()=>{const t=(0,r.select)("core/block-editor").getBlocks(n);t.length>0&&t.forEach(t=>{const e=t.clientId;S(e,{alignment:d,itemsDirection:u,allowIcon:p,allowDescription:m,allowDivider:h,titleTag:g,titleAlignment:f,descriptionTag:y,descriptionAlignment:T,placeDivider:H,dividerType:M,gap:x,placePrice:k,priceTag:v,priceAlignment:_})})};return(0,a.useEffect)(()=>{s&&W()},[d,u,p,m,h,g,f,y,T,H,M,x,k,v,_]),(0,a.useEffect)(()=>{"flex-start"===d["value"+c]?(f["value"+c]="left",T["value"+c]="left",
3446 -_["value"+c]="left"):"flex-end"===d["value"+c]?(f["value"+c]="right",T["value"+c]="right",_["value"+c]="right"):"center"===d["value"+c]&&(f["value"+c]="center",T["value"+c]="center",_["value"+c]="center")},[d]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:b,name:Jw.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/price-menu-item",{}],["ablocks/price-menu-item",{}],["ablocks/price-menu-item",{}]],allowedBlocks:["ablocks/price-menu-item"]}),(0,I.jsxs)("button",{className:"ablocks-price-menu-add-button",onClick:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n),e=(0,o.createBlock)("ablocks/price-menu-item");(0,r.dispatch)("core/block-editor").insertBlock(e,t.length,b),W()},children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),"Add Item"]})]})]})}Qw.propTypes={};const tz=(t,e="")=>{const i={}
3447 -;t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.itemPadding,{unit:"px"}),a=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.itemBackground),...i,...(0,Zt.qD)(t?.alignment,"justify-content",e),...(0,c.qD)(o,"padding",e),...(0,y.qD)(a,e)}},ez=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.itemBackgroundH),...(0,y.a9)(i,e)}},iz=(t,e="")=>{const i={};return""!==t.itemsDirection["value"+e]&&void 0!==t.itemsDirection["value"+e]&&(i["flex-direction"]=t.itemsDirection["value"+e]),""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),i},oz=(t,e="")=>{const i={};return""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),{...i,...(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:10,hasUnit:!0,unitDefaultValue:"px",
3448 -device:e})}},az=(t,e="")=>{const i={};return""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&("row"===t.itemsDirection["value"+e]?i["justify-content"]="space-between":i["justify-content"]=t.alignment["value"+e]),{...i,...(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:10,hasUnit:!0,unitDefaultValue:"px",device:e})}},lz=(t,e="")=>({display:"flex","flex-wrap":"wrap","flex-direction":"column",...(0,Eb.qD)({attributeValue:t.columnGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:20,hasUnit:!0,unitDefaultValue:"px",device:e})}),nz=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,Zt.qD)(t?.titleAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.titleTextStroke,e),...(0,fc.qD)(t?.titleTextShadow)}},sz=(t,e="")=>{const i=(0,M.Zy)(t.descriptionTypography,{weight:"400"
3449 -}),o=t.descriptionTypographyGlobal?t.descriptionTypographyGlobal:"";return{color:(0,Hs.qD)(t?.descriptionColor),...(0,Zt.qD)(t?.descriptionAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.descriptionTextStroke,e),...(0,fc.qD)(t?.descriptionTextShadow)}},rz=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:100,hasUnit:!1,unitDefaultValue:t.allowDescription?"%":"px",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:20,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,
3450 -attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:2,hasUnit:!1,unitDefaultValue:"px"}):void 0}},bz=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{weight:"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{color:(0,Hs.qD)(t?.priceColor),...(0,Zt.qD)(t?.priceAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.priceTextStroke,e),...(0,fc.qD)(t?.priceTextShadow)}};function cz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:Jw.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}cz.propTypes={};const dz={UU:"ablocks/price-menu",uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0
3451 -},itemBackgroundH:{type:"string",default:""},itemBackground:{type:"string",default:""},transition:{type:"number",default:""},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"#13191B"},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"#74777C"},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:"dashed"},dividerType:{type:"string",default:"dashed"},color:{type:"string",default:"#000000"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"#595959"},titleTypography:{type:"object",default:{fontFamily:"",weight:"600",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",
3452 -lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",
3453 -letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",
3454 -wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string",
3450 +leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},itemPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"",valueUnitTablet:"",valueUnitMobile:""}},weight:{type:"number",default:2},size:{type:"number",default:20},gap:{type:"object",default:{value:10,valueTablet:1,valueMobile:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},titlePriceGap:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",
3451 +commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",
3452 +topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",
3453 +unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",
3454 +imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",
3455 +imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",
3456 +rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",
3457 +offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",
3458 +xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{
3459 +type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function Uz(t){const{attributes:e,setAttributes:i,clientId:n,isSelected:s}=t,{block_id:b,device:c,alignment:d,itemsDirection:u,allowIcon:p,allowDescription:m,allowDivider:h,titleTag:g,titleAlignment:f,descriptionTag:y,descriptionAlignment:T,placeDivider:H,dividerType:M,gap:x,placePrice:k,priceTag:v,priceAlignment:_,priceAlignmentCustom:R}=e,S=lt();(0,a.useEffect)(()=>{i({device:S})},[S]);const{updateBlockAttributes:W}=(0,r.useDispatch)("core/block-editor"),P=()=>{const t=(0,r.select)("core/block-editor").getBlocks(n);t.length>0&&t.forEach(t=>{const e=t.clientId;W(e,{alignment:d,itemsDirection:u,allowIcon:p,allowDescription:m,allowDivider:h,titleTag:g,titleAlignment:f,descriptionTag:y,descriptionAlignment:T,placeDivider:H,dividerType:M,gap:x,placePrice:k,priceTag:v,
3460 +priceAlignment:_,priceAlignmentCustom:R})})};(0,a.useEffect)(()=>{s&&P()},[d,u,p,m,h,g,f,y,T,H,M,x,k,v,_,R]);const U=(0,a.useRef)(!0);return(0,a.useEffect)(()=>{if(U.current)return void(U.current=!1);const t={"flex-start":"left",center:"center","flex-end":"right"}[d["value"+c]];if(!t)return;const e="value"+c;i({titleAlignment:{...f,[e]:t},descriptionAlignment:{...T,[e]:t},...R?{}:{priceAlignment:{..._,[e]:t}}})},[d]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:b,name:Pz.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/price-menu-item",{}],["ablocks/price-menu-item",{}],["ablocks/price-menu-item",{}]],allowedBlocks:["ablocks/price-menu-item"]}),(0,I.jsxs)("button",{className:"ablocks-price-menu-add-button",onClick:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n),e=(0,o.createBlock)("ablocks/price-menu-item");(0,
3461 +r.dispatch)("core/block-editor").insertBlock(e,t.length,b),P()},children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),"Add Item"]})]})]})}Uz.propTypes={};const jz=(t,e="")=>{const i={};t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.itemPadding,{unit:"px"}),a=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.itemBackground),...i,...(0,Zt.qD)(t?.alignment,"justify-content",e),...(0,c.qD)(o,"padding",e),...(0,y.qD)(a,e)}},wz=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.itemBackgroundH),...(0,y.a9)(i,e)}},zz=(t,e="")=>{const i={};return""!==t.itemsDirection["value"+e]&&void 0!==t.itemsDirection["value"+e]&&(i["flex-direction"]=t.itemsDirection["value"+e]),""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),i},Cz=(t,e="")=>{const i={}
3462 +;return""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),{...i,...(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:10,hasUnit:!0,unitDefaultValue:"px",device:e})}},Az=(t,e="")=>{const i={};""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&("row"===t.itemsDirection["value"+e]?i["justify-content"]="space-between":i["justify-content"]=t.alignment["value"+e]);const{gap:o}=(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:10,hasUnit:!0,unitDefaultValue:"px",device:e}),{"column-gap":a}=(0,Eb.qD)({attributeValue:t?.titlePriceGap,attributeObjectKey:"value",isResponsive:!0,property:"column-gap",hasUnit:!0,unitDefaultValue:"px",device:e});return o&&(i["row-gap"]=o),Hz(t,e)?(i["column-gap"]="0px",i["--ablocks-pm-tp-gap"]=a,i["--ablocks-pm-tp-spacer"]="block",i):((a||o)&&(i["column-gap"]=a||o),
3463 +e&&xz(t)&&(i["--ablocks-pm-tp-spacer"]="none"),i)},Lz=(t,e="")=>({display:"flex","flex-wrap":"wrap","flex-direction":"column",...(0,Eb.qD)({attributeValue:t.columnGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:20,hasUnit:!0,unitDefaultValue:"px",device:e})}),Dz=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,Zt.qD)(t?.titleAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.titleTextStroke,e),...(0,fc.qD)(t?.titleTextShadow)}},Nz=(t,e="")=>{const i=(0,M.Zy)(t.descriptionTypography,{weight:"400"}),o=t.descriptionTypographyGlobal?t.descriptionTypographyGlobal:"";return{color:(0,Hs.qD)(t?.descriptionColor),...(0,Zt.qD)(t?.descriptionAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.descriptionTextStroke,e),...(0,fc.qD)(t?.descriptionTextShadow)}},Iz=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,
3464 +Hs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:20,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:2,hasUnit:!1,unitDefaultValue:"px"}):void 0}},Vz=(t,e="")=>Tz(t,e,"--ablocks-pm-divider-width",100),Oz=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{weight:"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{color:(0,Hs.qD)(t?.priceColor),...(0,Zt.qD)(t?.priceAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.priceTextStroke,e),...(0,fc.qD)(t?.priceTextShadow)}};function Yz(t){const{attributes:e}=t,{block_id:i}=e
3465 +;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:Pz.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Yz.propTypes={};const Xz={UU:"ablocks/price-menu",uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},itemBackgroundH:{type:"string",default:""},itemBackground:{type:"string",default:""},transition:{type:"number",default:""},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"#13191B"},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"#74777C"},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:"dashed"},dividerType:{type:"string",default:"dashed"},color:{type:"string",default:"#000000"},
3466 +placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"#595959"},titleTypography:{type:"object",default:{fontFamily:"",weight:"600",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",
3467 +strokeWidthUnitMobile:"px",stroke:""}},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypography:{type:"object",default:{
3468 +fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string",
3455 3469 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
3456 3470 },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},
3457 3471 iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",
3458 3472 strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},titleAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},descriptionAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},priceAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},itemsDirection:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},itemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,
@@ -3464,86 +3478,85 @@
3464 3478 imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",
3465 3479 imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",
3466 3480 rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",
3467 3481 offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",
3468 -xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function uz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:dz.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}uz.propTypes={},(0,M.xV)(Jw.UU)&&(0,o.registerBlockType)(Jw.UU,{attributes:Jw.uK,icon:(0,
3469 -I.jsx)("span",{className:"ablocks-icon ablocks-icon--price-menu"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .block-editor-block-list__layout",lz(i),lz(i,"Tablet"),lz(i,"Mobile"),e(t=>lz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item, {{WRAPPER}} .ablocks-price-menu-item-details",oz(i),oz(i,"Tablet"),oz(i,"Mobile"),e(t=>oz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-brief",az(i),az(i,"Tablet"),az(i,"Mobile"),e(t=>az(i,t))),
3470 -t.addClassStyles("{{WRAPPER}} .ablocks-block--price-menu-item",tz(i),tz(i,"Tablet"),tz(i,"Mobile"),e(t=>tz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--price-menu-item:hover",ez(i),ez(i,"Tablet"),ez(i,"Mobile"),e(t=>ez(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item",iz(i),iz(i,"Tablet"),iz(i,"Mobile"),e(t=>iz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-title",nz(i),nz(i,"Tablet"),nz(i,"Mobile"),e(t=>nz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-des",sz(i),sz(i,"Tablet"),sz(i,"Mobile"),e(t=>sz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),rz(i),rz(i,"Tablet"),rz(i,"Mobile"),e(t=>rz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-price",bz(i),bz(i,"Tablet"),bz(i,"Mobile"),e(t=>bz(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Kw,{...t}),(0,I.jsx)(Qw,{...t})]})},
3471 -save:cz,deprecated:[{attributes:dz.uK,save:uz}]});const pz=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"arrows",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:hT,
3472 -type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:gT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}];(0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");var mz=i(14120);function hz(t){const{attributes:e,setAttributes:i}=t,{device:o,itemsDirection:a,allowIcon:n,allowDescription:s,allowDivider:r,title:b,titleTag:c,titleColor:d,titleTypography:u,titleTextShadow:p,titleTextStroke:m,description:h,descriptionTag:g,descriptionColor:f,descriptionTypography:y,descriptionTextShadow:T,descriptionTextStroke:H,placeDivider:M,dividerPatternUrl:x,color:k,weight:v,width:_,size:R,price:S,placePrice:W,priceTag:P,priceColor:U,priceTypography:j,priceTextShadow:w,priceTextStroke:z}=e,C=pz?.find(t=>t.value===x),A=C?.optionalStyleControls?.map((t,e)=>"size"===t?(0,
3473 -I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:mz.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:v,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:mz.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Price Menu Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the price menu settings to customize its styles effortlessly.","ablocks")})]
3474 -}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-price-menu-block/",children:[n&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})})})}),(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"title",attributeValue:b,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"titleTag",attributeValue:c,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
3475 -attributeName:"titleColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:p,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:m,setAttributes:i,isResponsive:!0})]})})}),s&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Description","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Description","ablocks"),attributeName:"description",attributeValue:h,setAttributes:i,placeholder:(0,L.__)("Enter your description","ablocks")}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"descriptionTag",attributeValue:g,setAttributes:i})]}),style:(0,
3476 -I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"descriptionColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"descriptionTextShadow",attributeValue:T,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"descriptionTextStroke",attributeValue:H,setAttributes:i,isResponsive:!0})]})})})}),r?(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:pz,attributeName:"dividerPatternUrl",attributeValue:x,onChangeHandler:t=>{const e=pz?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),"row"===a["value"+o]?(0,I.jsx)(Ut,{label:(0,
3477 -L.__)("Place divider","ablocks"),options:[{label:(0,L.__)("near title","ablocks"),type:"css-style",value:"near title"},{label:(0,L.__)("under title","ablocks"),type:"css-style",value:"under title"}],attributeName:"placeDivider",attributeValue:M,setAttributes:i}):null,(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:_,setAttributes:i,hasUnit:!1,step:1,min:1,max:s||"Mobile"===o&&!1===s?100:500,isInline:!1,attributeDefaultValue:mz.VL})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:k,setAttributes:i}),(0,I.jsx)(It,{}),A]})})}):null,(0,I.jsx)(V,{title:(0,L.__)("Price","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Price","ablocks"),attributeName:"price",attributeValue:S,setAttributes:i,placeholder:(0,L.__)("Enter your price","ablocks")}),"row"===a["value"+o]?(0,I.jsx)(Ut,{
3478 -label:(0,L.__)("Place price","ablocks"),options:[{label:(0,L.__)("right","ablocks"),type:"css-style",value:"right"},{label:(0,L.__)("bottom","ablocks"),type:"css-style",value:"bottom"}],attributeName:"placePrice",attributeValue:W,setAttributes:i}):null,(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"priceTag",attributeValue:P,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"priceColor",attributeValue:U,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:j,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"priceTextShadow",attributeValue:w,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"priceTextStroke",attributeValue:z,setAttributes:i,isResponsive:!0})]})})})]})]})})}(0,
3479 -L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),hz.propTypes={};const gz={UU:"ablocks/price-menu-item",$t:["ablocks/price-menu"],uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:""},description:{type:"string",source:"html",selector:".ablocks-price-menu-item-details-des",default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:""},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},price:{type:"string",source:"html",
3480 -selector:".ablocks-price-menu-item-price",default:"$15.00"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",
3481 -strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",
3482 -strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypographyGlobal:{type:"string",default:""},priceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",
3483 -strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",
3484 -default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"stacked"},iconShape:{type:"string",default:"square"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",
3485 -bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"40"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"40",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",
3486 -valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},elementTextTypographyGlobal:{type:"string",default:""},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},
3487 -alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},titleAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},descriptionAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},priceAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},itemsDirection:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},width:{type:"object",default:{value:null,valueTablet:null,valueMobile:null}},weight:{type:"number",default:null},size:{type:"number",default:null},gap:{type:"object",default:{value:10,valueTablet:1,valueMobile:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{
3488 -type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",
3489 -unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",
3490 -bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",
3491 -imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",
3492 -imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",
3493 -offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,
3494 -scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",
3495 -yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],
3496 -items:{type:"object"}}}},fz=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function yz(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,allowIcon:s,allowDescription:b,allowDivider:c,titleTag:d,description:u,descriptionTag:p,price:m,placePrice:h,priceTag:g,placeDivider:f,dividerPatternUrl:y,dividerType:T,size:H,color:M,weight:x}=e,k=lt();(0,a.useEffect)(()=>{i({device:k})},[k]);const v=(0,r.useSelect)(t=>{const{getBlockParents:e}=t("core/block-editor"),i=e(o)[0];return t("core/block-editor").getBlockAttributes(i)},[o]);return(0,a.useEffect)(()=>{y&&""===M&&i({color:v.color}),"mask-style"===T?y&&null===H&&i({size:v.size}):y&&null===x&&i({weight:v.weight})},[y]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsx)(sR,{blockId:n,name:gz.UU,attributes:e,
3497 -typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:"ablocks-price-menu-item",children:[s&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,I.jsx)($c,{tagName:d,identifier:"title",value:e.title,withoutInteractiveFormatting:!0,placeholder:e.title,className:"ablocks-price-menu-item-details-title",onChange:t=>i({title:t})}),"near title"===f?(0,I.jsx)(fz,{allowDivider:c,dividerType:T}):null,"right"===h?(0,I.jsx)($c,{tagName:g,identifier:"price",value:e.price,withoutInteractiveFormatting:!0,placeholder:e.price,className:"ablocks-price-menu-item-price",onChange:t=>i({price:t})}):null]}),"under title"===f?(0,I.jsx)(fz,{allowDivider:c,dividerType:T}):null,b&&(0,I.jsx)($c,{tagName:p,identifier:"description",value:e.description,withoutInteractiveFormatting:!0,placeholder:e.description,
3498 -className:"ablocks-price-menu-item-details-des",onChange:t=>i({description:t})}),"under des"===f?(0,I.jsx)(fz,{allowDivider:c,dividerType:T}):null,"bottom"===h?(0,I.jsx)($c,{tagName:g,identifier:"price",value:e.price,withoutInteractiveFormatting:!0,placeholder:e.price,className:"ablocks-price-menu-item-price",onChange:t=>i({price:t})}):null]})]})})]})}yz.propTypes={};const Tz=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,Zt.qD)(t?.titleAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.titleTextStroke,e),...(0,fc.qD)(t?.titleTextShadow)}},Hz=(t,e="")=>{const i=(0,M.Zy)(t.descriptionTypography,{weight:"400"}),o=t.descriptionTypographyGlobal?t.descriptionTypographyGlobal:"";return{color:(0,Hs.qD)(t?.descriptionColor),...(0,Zt.qD)(t?.descriptionAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.descriptionTextStroke,e),...(0,fc.qD)(t?.descriptionTextShadow)}
3499 -},Mz=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:null,hasUnit:!1,unitDefaultValue:t.allowDescription?"%":"px",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}},xz=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{weight:"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{
3500 -color:(0,Hs.qD)(t?.priceColor),...(0,Zt.qD)(t?.priceAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.priceTextStroke,e),...(0,fc.qD)(t?.priceTextShadow)}},kz=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function vz(t){const{attributes:e}=t,{block_id:i,allowIcon:o,allowDescription:a,allowDivider:n,titleTag:s,description:r,descriptionTag:b,price:c,placePrice:d,priceTag:u,placeDivider:p,dividerType:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:gz.UU,attributes:e,children:(0,I.jsxs)("div",{className:"ablocks-price-menu-item",children:[o&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,I.jsx)(D.RichText.Content,{value:e.title,
3501 -tagName:s,className:"ablocks-price-menu-item-details-title"}),"near title"===p?(0,I.jsx)(kz,{allowDivider:n,dividerType:m}):null,"right"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]}),"under title"===p?(0,I.jsx)(kz,{allowDivider:n,dividerType:m}):null,a&&(0,I.jsx)(D.RichText.Content,{value:r,tagName:b,className:"ablocks-price-menu-item-details-des"}),"under des"===p?(0,I.jsx)(kz,{allowDivider:n,dividerType:m}):null,"bottom"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]})]})})})}vz.propTypes={};const _z={UU:"ablocks/price-menu-item",uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:""},description:{
3502 -type:"string",source:"html",selector:".ablocks-price-menu-item-details-des",default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:""},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},price:{type:"string",source:"html",selector:".ablocks-price-menu-item-price",default:"$15.00"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",
3503 -lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",
3504 -letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",
3505 -letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string",
3506 -default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
3507 -},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"stacked"},iconShape:{type:"string",default:"square"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:"40"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"40",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}
3508 -},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",
3509 -strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},titleAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},descriptionAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},priceAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},itemsDirection:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},width:{type:"object",default:{value:null,valueTablet:null,valueMobile:null}},weight:{type:"number",default:null},size:{type:"number",default:null},gap:{type:"object",default:{value:10,valueTablet:1,valueMobile:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",
3510 -leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",
3511 -unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",
3512 -topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",
3513 -imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",
3514 -imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",
3515 -offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",
3516 -scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",
3517 -yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}},Rz=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function Sz(t){
3518 -const{attributes:e}=t,{block_id:i,allowIcon:o,allowDescription:a,allowDivider:n,titleTag:s,description:r,descriptionTag:b,price:c,placePrice:d,priceTag:u,placeDivider:p,dividerType:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:_z.UU,attributes:e,children:(0,I.jsxs)("div",{className:"ablocks-price-menu-item",children:[o&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,I.jsx)(D.RichText.Content,{value:e.title,tagName:s,className:"ablocks-price-menu-item-details-title"}),"near title"===p?(0,I.jsx)(Rz,{allowDivider:n,dividerType:m}):null,"right"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]}),"under title"===p?(0,I.jsx)(Rz,{allowDivider:n,dividerType:m}):null,a&&(0,I.jsx)(D.RichText.Content,{value:r,tagName:b,className:"ablocks-price-menu-item-details-des"
3519 -}),"under des"===p?(0,I.jsx)(Rz,{allowDivider:n,dividerType:m}):null,"bottom"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]})]})})})}function Wz(t){const{attributes:e,setAttributes:i}=t,{rowOddColor:o,rowEvenColor:a,rowOddColorH:n,rowEvenColorH:s,tableCreated:r,bodyBg:b,bodyBgH:c,headerColor:d,headerColorH:u,footerColor:p,footerColorH:m,isHeader:h,isFooter:g,borderCollapse:f}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:r?(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Table setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Cell Border Types","ablocks"),options:[{label:(0,L.__)("Collapse","ablocks"),value:"collapse"},{label:(0,L.__)("Separate","ablocks"),value:"separate"}],attributeName:"borderCollapse",attributeValue:f,
3482 +xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function Bz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Xz.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Bz.propTypes={},(0,M.xV)(Pz.UU)&&(0,o.registerBlockType)(Pz.UU,{attributes:Pz.uK,icon:(0,
3483 +I.jsx)("span",{className:"ablocks-icon ablocks-icon--price-menu"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .block-editor-block-list__layout",Lz(i),Lz(i,"Tablet"),Lz(i,"Mobile"),e(t=>Lz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item, {{WRAPPER}} .ablocks-price-menu-item-details",Cz(i),Cz(i,"Tablet"),Cz(i,"Mobile"),e(t=>Cz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-brief",Az(i),Az(i,"Tablet"),Az(i,"Mobile"),e(t=>Az(i,t))),
3484 +t.addClassStyles("{{WRAPPER}} .ablocks-block--price-menu-item",jz(i),jz(i,"Tablet"),jz(i,"Mobile"),e(t=>jz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--price-menu-item:hover",wz(i),wz(i,"Tablet"),wz(i,"Mobile"),e(t=>wz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item",zz(i),zz(i,"Tablet"),zz(i,"Mobile"),e(t=>zz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-title",Dz(i),Dz(i,"Tablet"),Dz(i,"Mobile"),e(t=>Dz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-des",Nz(i),Nz(i,"Tablet"),Nz(i,"Mobile"),e(t=>Nz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),Iz(i),Iz(i,"Tablet"),Iz(i,"Mobile"),e(t=>Iz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-price",Oz(i),Oz(i,"Tablet"),Oz(i,"Mobile"),e(t=>Oz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-divider",Vz(i),Vz(i,"Tablet"),Vz(i,"Mobile"),e(t=>Vz(i,t))),
3485 +t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item",kz(i),kz(i,"Tablet"),kz(i,"Mobile"),e(t=>kz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-brief > .ablocks-price-menu-item-price",vz(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Wz,{...t}),(0,I.jsx)(Uz,{...t})]})},save:Yz,deprecated:[{attributes:Xz.uK,save:Bz}]});const Ez=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"arrows",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{
3486 +label:"firTree",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:hT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:gT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}];(0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");var Fz=i(14120);function qz(t){
3487 +const{attributes:e,setAttributes:i}=t,{itemsDirection:o,allowIcon:a,allowDescription:n,allowDivider:s,title:r,titleTag:b,titleColor:c,titleTypography:d,titleTextShadow:u,titleTextStroke:p,description:m,descriptionTag:h,descriptionColor:g,descriptionTypography:f,descriptionTextShadow:y,descriptionTextStroke:T,placeDivider:H,dividerPatternUrl:x,color:k,weight:v,width:_,size:R,price:S,placePrice:W,priceTag:P,priceColor:U,priceTypography:j,priceTextShadow:w,priceTextStroke:z,priceAlignment:C}=e,A=lt(),N="row"===(0,M.By)(A,t=>o?.["value"+t]),O=Ez?.find(t=>t.value===x),Y=O?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:Fz.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",
3488 +attributeValue:v,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:Fz.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Price Menu Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the price menu settings to customize its styles effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-price-menu-block/",children:[a&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Yd,{label:(0,
3489 +L.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})})})}),(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"title",attributeValue:r,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"titleTag",attributeValue:b,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:u,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,
3490 +L.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:p,setAttributes:i,isResponsive:!0})]})})}),n&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Description","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Description","ablocks"),attributeName:"description",attributeValue:m,setAttributes:i,placeholder:(0,L.__)("Enter your description","ablocks")}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"descriptionTag",attributeValue:h,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"descriptionColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),
3491 +attributeName:"descriptionTextShadow",attributeValue:y,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"descriptionTextStroke",attributeValue:T,setAttributes:i,isResponsive:!0})]})})})}),s?(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:Ez,attributeName:"dividerPatternUrl",attributeValue:x,onChangeHandler:t=>{const e=Ez?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),N?(0,I.jsx)(Ut,{label:(0,L.__)("Place divider","ablocks"),options:[{label:(0,L.__)("near title","ablocks"),type:"css-style",value:"near title"},{label:(0,L.__)("under title","ablocks"),type:"css-style",value:"under title"}],attributeName:"placeDivider",attributeObjectKey:"value",isResponsive:!0,attributeValue:bz(H,A),onChangeHandler:(t,e)=>i({placeDivider:rz(H,e,t)})}):null,(0,I.jsx)(_t,{label:(0,
3492 +L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:_,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],unitDefaultValue:fz(e),step:1,min:1,max:1e3,isInline:!1,attributeDefaultValue:yz(Fz.VL,e)})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:k,setAttributes:i}),(0,I.jsx)(It,{}),Y]})})}):null,(0,I.jsx)(V,{title:(0,L.__)("Price","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Price","ablocks"),attributeName:"price",attributeValue:S,setAttributes:i,placeholder:(0,L.__)("Enter your price","ablocks")}),N?(0,I.jsx)(Ut,{label:(0,L.__)("Place price","ablocks"),options:[{label:(0,L.__)("right","ablocks"),type:"css-style",value:"right"},{label:(0,L.__)("bottom","ablocks"),type:"css-style",value:"bottom"}],attributeName:"placePrice",attributeObjectKey:"value",
3493 +isResponsive:!0,attributeValue:bz(W,A),onChangeHandler:(t,e)=>i({placePrice:rz(W,e,t)})}):null,(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),options:uz,attributeName:"priceAlignment",attributeValue:C,onChangeHandler:(t,e)=>i(pz(C,e,t))}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"priceTag",attributeValue:P,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"priceColor",attributeValue:U,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:j,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"priceTextShadow",attributeValue:w,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"priceTextStroke",attributeValue:z,setAttributes:i,isResponsive:!0})]})})})]})]})})}(0,L.__)("Default","ablocks"),
3494 +(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),qz.propTypes={};const $z={UU:"ablocks/price-menu-item",$t:["ablocks/price-menu"],uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:""},description:{type:"string",source:"html",selector:".ablocks-price-menu-item-details-des",default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:""},placeDivider:{type:["string","object"],default:"near title"},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},price:{type:"string",source:"html",
3495 +selector:".ablocks-price-menu-item-price",default:"$15.00"},placePrice:{type:["string","object"],default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:""},priceAlignmentCustom:{type:"boolean",default:!1},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},
3496 +titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{
3497 +strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypographyGlobal:{type:"string",default:""},priceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",
3498 +strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},
3499 +iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"stacked"},iconShape:{type:"string",default:"square"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",
3500 +topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"40"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"40",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",
3501 +valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},elementTextTypographyGlobal:{type:"string",default:""},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",
3502 +strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},titleAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},descriptionAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},priceAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},itemsDirection:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},width:{type:"object",default:{value:null,valueTablet:null,valueMobile:null,valueUnit:"",valueUnitTablet:"",valueUnitMobile:""}},weight:{type:"number",default:null},size:{type:"number",default:null},gap:{type:"object",default:{value:10,valueTablet:1,valueMobile:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
3503 +topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",
3504 +rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,
3505 +commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",
3506 +imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",
3507 +imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",
3508 +offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",
3509 +offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",
3510 +yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",
3511 +default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},Gz=({allowDivider:t,dividerType:e,slotClassName:i=""})=>{const o=i?i+" ":"";if(t)return"mask-style"===e?(0,I.jsx)("div",{className:` ablocks-divider ablocks-price-menu-divider__pattern-mask ${o}`}):(0,I.jsx)("div",{className:` ablocks-divider ablocks-price-menu-divider__pattern-css ${o}`})};function Zz(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,allowIcon:s,allowDescription:b,allowDivider:c,titleTag:d,description:u,descriptionTag:p,price:m,placePrice:h,priceTag:g,placeDivider:f,dividerPatternUrl:y,dividerType:T,size:H,color:M,weight:x}=e,k=lt();(0,a.useEffect)(()=>{i({device:k})},[k]);const v=(0,r.useSelect)(t=>{const{getBlockParents:e}=t("core/block-editor"),i=e(o)[0];return t("core/block-editor").getBlockAttributes(i)},[o]);(0,a.useEffect)(()=>{y&&""===M&&i({color:v.color}),"mask-style"===T?y&&null===H&&i({size:v.size}):y&&null===x&&i({weight:v.weight})
3512 +},[y]);const _=sz(f),R=sz(h),S=t=>_.includes(t)?(0,I.jsx)(Gz,{allowDivider:c,dividerType:T,slotClassName:_.length>1?cz("divider",t):""}):null,W=t=>R.length>1?`ablocks-price-menu-item-price ${cz("price",t)}`:"ablocks-price-menu-item-price";return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsx)(mR,{blockId:n,name:$z.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:"ablocks-price-menu-item",children:[s&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,I.jsx)($c,{tagName:d,identifier:"title",value:e.title,withoutInteractiveFormatting:!0,placeholder:e.title,className:"ablocks-price-menu-item-details-title",onChange:t=>i({title:t})}),S("near title"),R.includes("right")?(0,I.jsx)($c,{tagName:g,identifier:"price",value:e.price,
3513 +withoutInteractiveFormatting:!0,placeholder:e.price,className:W("right"),onChange:t=>i({price:t})}):null]}),S("under title"),b&&(0,I.jsx)($c,{tagName:p,identifier:"description",value:e.description,withoutInteractiveFormatting:!0,placeholder:e.description,className:"ablocks-price-menu-item-details-des",onChange:t=>i({description:t})}),S("under des"),R.includes("bottom")?(0,I.jsx)($c,{tagName:g,identifier:"price",value:e.price,withoutInteractiveFormatting:!0,placeholder:e.price,className:W("bottom"),onChange:t=>i({price:t})}):null]})]})})]})}Zz.propTypes={};const Kz=({allowDivider:t,dividerType:e,slotClassName:i=""})=>{const o=i?i+" ":"";if(t)return"mask-style"===e?(0,I.jsx)("div",{className:` ablocks-divider ablocks-price-menu-divider__pattern-mask ${o}`}):(0,I.jsx)("div",{className:` ablocks-divider ablocks-price-menu-divider__pattern-css ${o}`})};function Jz(t){
3514 +const{attributes:e}=t,{block_id:i,allowIcon:o,allowDescription:a,allowDivider:n,titleTag:s,description:r,descriptionTag:b,price:c,placePrice:d,priceTag:u,placeDivider:p,dividerType:m}=e,h=sz(p),g=sz(d),f=t=>h.includes(t)?(0,I.jsx)(Kz,{allowDivider:n,dividerType:m,slotClassName:h.length>1?cz("divider",t):""}):null,y=t=>g.length>1?`ablocks-price-menu-item-price ${cz("price",t)}`:"ablocks-price-menu-item-price";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:$z.UU,attributes:e,children:(0,I.jsxs)("div",{className:"ablocks-price-menu-item",children:[o&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,I.jsx)(D.RichText.Content,{value:e.title,tagName:s,className:"ablocks-price-menu-item-details-title"}),f("near title"),g.includes("right")?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:y("right")}):null]
3515 +}),f("under title"),a&&(0,I.jsx)(D.RichText.Content,{value:r,tagName:b,className:"ablocks-price-menu-item-details-des"}),f("under des"),g.includes("bottom")?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:y("bottom")}):null]})]})})})}Jz.propTypes={};const Qz={UU:"ablocks/price-menu-item",uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:""},description:{type:"string",source:"html",selector:".ablocks-price-menu-item-details-des",default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:""},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",
3516 +default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},price:{type:"string",source:"html",selector:".ablocks-price-menu-item-price",default:"$15.00"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""
3517 +}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",
3518 +strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},
3519 +iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",
3520 +selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"stacked"},iconShape:{type:"string",default:"square"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:"40"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"40",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",
3521 +valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",
3522 +strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},titleAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},descriptionAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},priceAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},itemsDirection:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},width:{type:"object",default:{value:null,valueTablet:null,valueMobile:null}},weight:{type:"number",default:null},size:{type:"number",default:null},gap:{type:"object",default:{value:10,valueTablet:1,valueMobile:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",
3523 +unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",
3524 +topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,
3525 +isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",
3526 +imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",
3527 +imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",
3528 +rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",
3529 +offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",
3530 +xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}},tC=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function eC(t){
3531 +const{attributes:e}=t,{block_id:i,allowIcon:o,allowDescription:a,allowDivider:n,titleTag:s,description:r,descriptionTag:b,price:c,placePrice:d,priceTag:u,placeDivider:p,dividerType:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:Qz.UU,attributes:e,children:(0,I.jsxs)("div",{className:"ablocks-price-menu-item",children:[o&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,I.jsx)(D.RichText.Content,{value:e.title,tagName:s,className:"ablocks-price-menu-item-details-title"}),"near title"===p?(0,I.jsx)(tC,{allowDivider:n,dividerType:m}):null,"right"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]}),"under title"===p?(0,I.jsx)(tC,{allowDivider:n,dividerType:m}):null,a&&(0,I.jsx)(D.RichText.Content,{value:r,tagName:b,className:"ablocks-price-menu-item-details-des"
3532 +}),"under des"===p?(0,I.jsx)(tC,{allowDivider:n,dividerType:m}):null,"bottom"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]})]})})})}function iC(t){const{attributes:e,setAttributes:i}=t,{rowOddColor:o,rowEvenColor:a,rowOddColorH:n,rowEvenColorH:s,tableCreated:r,bodyBg:b,bodyBgH:c,headerColor:d,headerColorH:u,footerColor:p,footerColorH:m,isHeader:h,isFooter:g,borderCollapse:f}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:r?(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Table setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Cell Border Types","ablocks"),options:[{label:(0,L.__)("Collapse","ablocks"),value:"collapse"},{label:(0,L.__)("Separate","ablocks"),value:"separate"}],attributeName:"borderCollapse",attributeValue:f,
3520 3533 setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i,hasBorderRadius:"separate"===f})]})})}),h?(0,I.jsx)(V,{title:(0,L.__)("Header Setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"headerColor",attributeValue:d,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isGradient:!0,attributeName:"headerColorH",attributeValue:u,setAttributes:i})})})}):null,(0,I.jsx)(V,{title:(0,L.__)("Body setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"bodyBg",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
3521 3534 L.__)("Row odd Background","ablocks"),isGradient:!0,attributeName:"rowOddColor",attributeValue:o,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Row Even Background","ablocks"),isGradient:!0,attributeName:"rowEvenColor",attributeValue:a,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isGradient:!0,attributeName:"bodyBgH",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Row Odd Background Hover","ablocks"),isGradient:!0,attributeName:"rowOddColorH",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Row Even Background Hover","ablocks"),isGradient:!0,attributeName:"rowEvenColorH",attributeValue:s,setAttributes:i})]})})}),g?(0,I.jsx)(V,{title:(0,L.__)("Footer Setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"footerColor",attributeValue:p,setAttributes:i})}),
3522 -hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color Hover","ablocks"),isGradient:!0,attributeName:"footerColorH",attributeValue:m,setAttributes:i})})})}):null]}):null})})}Sz.propTypes={},(0,M.xV)(gz.UU,gz.$t[0])&&(0,o.registerBlockType)(gz.UU,{attributes:gz.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--price-menu"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,
3523 -Ud.J_)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-title",Tz(i),Tz(i,"Tablet"),Tz(i,"Mobile"),t.customDeviceMap(t=>Tz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-des",Hz(i),Hz(i,"Tablet"),Hz(i,"Mobile"),t.customDeviceMap(t=>Hz(i,t))),
3524 -t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),Mz(i),Mz(i,"Tablet"),Mz(i,"Mobile"),t.customDeviceMap(t=>Mz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-price",xz(i),xz(i,"Tablet"),xz(i,"Mobile"),t.customDeviceMap(t=>xz(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(hz,{...t}),(0,I.jsx)(yz,{...t})]})},save:vz,deprecated:[{attributes:_z.uK,save:Sz}]}),Wz.propTypes={},Wz.defaultProps={};const Pz={UU:"ablocks/table",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:""},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:""},isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:""},rowOddColorH:{type:"string",default:""},rowEvenColor:{type:"string",default:""},rowEvenColorH:{type:"string",default:""},bodyBg:{type:"string"},bodyBgH:{type:"string"},headerColor:{type:"string",default:""},
3525 -headerColorH:{type:"string",default:""},footerColor:{type:"string",default:""},footerColorH:{type:"string",default:""},borderCollapse:{type:"string",default:"collapse"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",
3526 -leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,
3527 -isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",
3528 -commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",
3529 -bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",
3530 -backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",
3531 -imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,
3532 -rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",
3533 -offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",
3534 -xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{
3535 -type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},Uz=({insertButtonRow:t,insertTopRow:e,addRightCell:i,insertLeftCell:o})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.DropdownMenu,{icon:"editor-table",label:(0,L.__)("Edit Table","ablocks"),className:"ablocks-table-dropdown-toolbar",children:({onClose:a})=>(0,I.jsxs)("div",{className:"ablocks-table-dropdown-toolbar-menu",children:[(0,I.jsx)(N.ToolbarButton,{onClick:()=>{e(),a()},children:(0,L.__)("Add Top Row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{t(),a()},children:(0,L.__)("Insert Bottom Row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{o(),a()},children:(0,L.__)("Insert Left Column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{i(),a()},children:(0,L.__)("Add Right Column","ablocks")})]})})
3536 -}),jz=(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,I.jsx)("path",{
3535 +hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color Hover","ablocks"),isGradient:!0,attributeName:"footerColorH",attributeValue:m,setAttributes:i})})})}):null]}):null})})}eC.propTypes={},(0,M.xV)($z.UU,$z.$t[0])&&(0,o.registerBlockType)($z.UU,{attributes:$z.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--price-menu"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,
3536 +Ud.J_)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-title",mz(i),mz(i,"Tablet"),mz(i,"Mobile"),t.customDeviceMap(t=>mz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-des",hz(i),hz(i,"Tablet"),hz(i,"Mobile"),t.customDeviceMap(t=>hz(i,t))),
3537 +t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),gz(i),gz(i,"Tablet"),gz(i,"Mobile"),t.customDeviceMap(t=>gz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-price",_z(i),_z(i,"Tablet"),_z(i,"Mobile"),t.customDeviceMap(t=>_z(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-divider",Tz(i),Tz(i,"Tablet"),Tz(i,"Mobile"),t.customDeviceMap(t=>Tz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item",kz(i),kz(i,"Tablet"),kz(i,"Mobile"),t.customDeviceMap(t=>kz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-brief > .ablocks-price-menu-item-price",vz(i)),[["divider",i.placeDivider],["price",i.placePrice]].forEach(([e,i])=>sz(i).forEach(o=>t.addClassStyles(`{{WRAPPER}} .${cz(e,o)}`,dz(i,o),dz(i,o,"Tablet"),dz(i,o,"Mobile"),t.customDeviceMap(t=>dz(i,o,t))))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(qz,{...t}),(0,I.jsx)(Zz,{...t
3538 +})]})},save:Jz,deprecated:[{attributes:Qz.uK,save:eC}]}),iC.propTypes={},iC.defaultProps={};const oC={UU:"ablocks/table",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:""},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:""},isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:""},rowOddColorH:{type:"string",default:""},rowEvenColor:{type:"string",default:""},rowEvenColorH:{type:"string",default:""},bodyBg:{type:"string"},bodyBgH:{type:"string"},headerColor:{type:"string",default:""},headerColorH:{type:"string",default:""},footerColor:{type:"string",default:""},footerColorH:{type:"string",default:""},borderCollapse:{type:"string",default:"collapse"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",
3539 +leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",
3540 +unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",
3541 +leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",
3542 +leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",
3543 +leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",
3544 +imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",
3545 +imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",
3546 +scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",
3547 +skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",
3548 +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},aC=({insertButtonRow:t,insertTopRow:e,addRightCell:i,insertLeftCell:o})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.DropdownMenu,{icon:"editor-table",label:(0,
3549 +L.__)("Edit Table","ablocks"),className:"ablocks-table-dropdown-toolbar",children:({onClose:a})=>(0,I.jsxs)("div",{className:"ablocks-table-dropdown-toolbar-menu",children:[(0,I.jsx)(N.ToolbarButton,{onClick:()=>{e(),a()},children:(0,L.__)("Add Top Row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{t(),a()},children:(0,L.__)("Insert Bottom Row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{o(),a()},children:(0,L.__)("Insert Left Column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{i(),a()},children:(0,L.__)("Add Right Column","ablocks")})]})})}),lC=(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,I.jsx)("path",{
3537 3550 d:"M21.1204 2.8799C20.7604 2.5199 20.4004 2.3999 19.9204 2.3999H4.08039C3.60039 2.3999 3.24039 2.5199 2.88039 2.8799C2.52039 3.2399 2.40039 3.5999 2.40039 4.0799V20.0399C2.40039 20.5199 2.52039 20.8799 2.88039 21.2399C3.24039 21.4799 3.60039 21.5999 4.08039 21.5999H20.0404C20.5204 21.5999 20.8804 21.4799 21.2404 21.1199C21.6004 20.7599 21.7204 20.3999 21.7204 19.9199V4.0799C21.6004 3.5999 21.4804 3.2399 21.1204 2.8799ZM8.40039 20.2799H4.08039C3.96039 20.2799 3.84039 20.2799 3.84039 20.1599C3.72039 20.1599 3.72039 20.0399 3.72039 19.9199V15.5999H8.40039V20.2799ZM8.40039 14.2799H3.72039V9.5999H8.40039V14.2799ZM20.2804 19.9199C20.2804 20.0399 20.2804 20.1599 20.1604 20.1599C20.1604 20.2799 20.0404 20.2799 19.9204 20.2799H9.60039V15.5999H20.2804V19.9199ZM20.2804 14.2799H9.60039V9.5999H20.2804V14.2799ZM3.72039 8.2799V4.0799C3.72039 3.9599 3.72039 3.8399 3.84039 3.8399C3.84039 3.7199 3.96039 3.7199 4.08039 3.7199H20.0404C20.1604 3.7199 20.2804 3.7199 20.2804 3.8399C20.4004 3.8399 20.4004 3.9599 20.4004 4.0799V8.2799H3.72039Z",
3538 3551 fill:"#13191B"}),(0,I.jsx)("path",{d:"M10.8004 11.7599C10.8004 11.6399 10.9204 11.5199 11.0404 11.5199H18.9604C19.0804 11.5199 19.2004 11.6399 19.2004 11.7599V12.4799C19.2004 12.5999 19.0804 12.7199 18.9604 12.7199H11.0404C10.9204 12.7199 10.8004 12.5999 10.8004 12.4799V11.7599Z",fill:"#13191B"}),(0,I.jsx)("path",{d:"M4.80039 11.7599C4.80039 11.6399 4.92039 11.5199 5.04039 11.5199H6.96039C7.08039 11.5199 7.20039 11.6399 7.20039 11.7599V12.4799C7.20039 12.5999 7.08039 12.7199 6.96039 12.7199H5.04039C4.92039 12.7199 4.80039 12.5999 4.80039 12.4799V11.7599Z",fill:"#13191B"}),(0,I.jsx)("path",{d:"M4.80039 17.7599C4.80039 17.6399 4.92039 17.5199 5.04039 17.5199H6.96039C7.08039 17.5199 7.20039 17.6399 7.20039 17.7599V18.4799C7.20039 18.5999 7.08039 18.7199 6.96039 18.7199H5.04039C4.92039 18.7199 4.80039 18.5999 4.80039 18.4799V17.7599Z",fill:"#13191B"}),(0,I.jsx)("path",{
3539 -d:"M10.8004 17.7599C10.8004 17.6399 10.9204 17.5199 11.0404 17.5199H18.9604C19.0804 17.5199 19.2004 17.6399 19.2004 17.7599V18.4799C19.2004 18.5999 19.0804 18.7199 18.9604 18.7199H11.0404C10.9204 18.7199 10.8004 18.5999 10.8004 18.4799V17.7599Z",fill:"#13191B"})]})}),wz=({numRows:t,setNumRows:e,numTds:i,setNumTds:o,includeHeader:a,setIncludeHeader:l,includeFooter:n,setIncludeFooter:s,createTable:r})=>(0,I.jsxs)("div",{className:"ablocks-table-input-form",children:[(0,I.jsxs)("div",{className:"ablocks-table-input-form--iconText",children:[(0,I.jsx)("span",{className:"ablocks-table-input-form--icon",children:jz}),(0,I.jsx)("span",{className:"ablocks-table-input-form--text",children:(0,L.__)("Table","ablocks")})]}),(0,I.jsx)("p",{className:"ablocks-table-input-form--title",children:(0,L.__)("Start creating a custom table for your content","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-table-input-from--input-container",children:[(0,I.jsxs)("div",{className:"ablocks-table-input",
3552 +d:"M10.8004 17.7599C10.8004 17.6399 10.9204 17.5199 11.0404 17.5199H18.9604C19.0804 17.5199 19.2004 17.6399 19.2004 17.7599V18.4799C19.2004 18.5999 19.0804 18.7199 18.9604 18.7199H11.0404C10.9204 18.7199 10.8004 18.5999 10.8004 18.4799V17.7599Z",fill:"#13191B"})]})}),nC=({numRows:t,setNumRows:e,numTds:i,setNumTds:o,includeHeader:a,setIncludeHeader:l,includeFooter:n,setIncludeFooter:s,createTable:r})=>(0,I.jsxs)("div",{className:"ablocks-table-input-form",children:[(0,I.jsxs)("div",{className:"ablocks-table-input-form--iconText",children:[(0,I.jsx)("span",{className:"ablocks-table-input-form--icon",children:lC}),(0,I.jsx)("span",{className:"ablocks-table-input-form--text",children:(0,L.__)("Table","ablocks")})]}),(0,I.jsx)("p",{className:"ablocks-table-input-form--title",children:(0,L.__)("Start creating a custom table for your content","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-table-input-from--input-container",children:[(0,I.jsxs)("div",{className:"ablocks-table-input",
3540 3553 children:[(0,I.jsx)("label",{htmlFor:"numRows",children:(0,L.__)("Rows","ablocks")}),(0,I.jsx)("input",{id:"numRows",type:"number",value:t,min:1,max:30,onChange:t=>e(parseInt(t.target.value))})]}),(0,I.jsxs)("div",{className:"ablocks-table-input",children:[(0,I.jsx)("label",{htmlFor:"numTds",children:(0,L.__)("Columns","ablocks")}),(0,I.jsx)("input",{id:"numTds",type:"number",value:i,min:1,max:30,onChange:t=>o(parseInt(t.target.value))})]})]}),(0,I.jsxs)("div",{className:"ablocks-table-input-from--check-box",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("input",{id:"includeHeader",type:"checkbox",checked:a,onChange:t=>l(t.target.checked)}),(0,I.jsx)("label",{htmlFor:"includeHeader",children:(0,L.__)("Include Header","ablocks")})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("input",{id:"includeFooter",type:"checkbox",checked:n,onChange:t=>s(t.target.checked)}),(0,I.jsx)("label",{htmlFor:"includeFooter",children:(0,L.__)("Include Footer","ablocks")})]})]}),(0,I.jsx)("button",{onClick:r,
3541 -className:"ablocks-table-input-form-button",children:(0,L.__)("Generate Table","ablocks")})]}),zz=t=>{const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,tableCreated:b}=e,[c,d]=(0,a.useState)(3),[u,p]=(0,a.useState)(3),[m,h]=(0,a.useState)(!0),[g,f]=(0,a.useState)(!1),y=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-header","ablocks/table-body","ablocks/table-footer"],renderAppender:!1}),T=(t,e=!1)=>{t.forEach(t=>{const i=(0,o.createBlock)("ablocks/table-cell",{tagName:e?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(i,0,t.clientId)})},H=(t,e=!1)=>{t.forEach(t=>{const i=(0,o.createBlock)("ablocks/table-cell",{tagName:e?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(i,t.innerBlocks.length,t.clientId)})};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Uz,{insertButtonRow:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n).find(t=>"ablocks/table-body"===t.name),e=t.innerBlocks[t.innerBlocks.length-1],i=e?e.innerBlocks.map(t=>(0,
3554 +className:"ablocks-table-input-form-button",children:(0,L.__)("Generate Table","ablocks")})]}),sC=t=>{const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,tableCreated:b}=e,[c,d]=(0,a.useState)(3),[u,p]=(0,a.useState)(3),[m,h]=(0,a.useState)(!0),[g,f]=(0,a.useState)(!1),y=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-header","ablocks/table-body","ablocks/table-footer"],renderAppender:!1}),T=(t,e=!1)=>{t.forEach(t=>{const i=(0,o.createBlock)("ablocks/table-cell",{tagName:e?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(i,0,t.clientId)})},H=(t,e=!1)=>{t.forEach(t=>{const i=(0,o.createBlock)("ablocks/table-cell",{tagName:e?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(i,t.innerBlocks.length,t.clientId)})};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(aC,{insertButtonRow:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n).find(t=>"ablocks/table-body"===t.name),e=t.innerBlocks[t.innerBlocks.length-1],i=e?e.innerBlocks.map(t=>(0,
3542 3555 o.createBlock)(t.name,t.attributes)):[],a=(0,o.createBlock)("ablocks/table-row",{},i);(0,r.dispatch)("core/block-editor").insertBlock(a,t.innerBlocks.length,t.clientId)},addRightCell:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlocksByClientId(t)[0];if(!e)return;const i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);H(t,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);H(t,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);H(t,!1)}},insertTopRow:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n).find(t=>"ablocks/table-body"===t.name),e=t.innerBlocks[0],i=e?e.innerBlocks.map(t=>(0,o.createBlock)(t.name,t.attributes)):[],a=(0,o.createBlock)("ablocks/table-row",{},i);(0,
3543 -r.dispatch)("core/block-editor").insertBlock(a,0,t.clientId)},insertLeftCell:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlocksByClientId(t)[0];if(!e)return;const i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!1)}}}),(0,I.jsx)(Yb.A,{blockId:s,name:Pz.UU,attributes:e,children:b?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("table",{...y})}):(0,I.jsx)(wz,{numRows:c,setNumRows:d,numTds:u,setNumTds:p,includeHeader:m,setIncludeHeader:h,includeFooter:g,setIncludeFooter:f,createTable:()=>{const t=[];if(m){i({isHeader:!0});const e=[];for(let t=0;t<u;t++){const t=(0,
3544 -o.createBlock)("ablocks/table-cell",{tagName:"th"});e.push(t)}const a=(0,o.createBlock)("ablocks/table-header",{},[(0,o.createBlock)("ablocks/table-row",{},e)]);t.push(a)}const e=[];for(let t=0;t<c;t++){const t=[];for(let e=0;e<u;e++){const e=(0,o.createBlock)("ablocks/table-cell");t.push(e)}const i=(0,o.createBlock)("ablocks/table-row",{},t);e.push(i)}const a=(0,o.createBlock)("ablocks/table-body",{},e);if(t.push(a),g){i({isFooter:!0});const e=[];for(let t=0;t<u;t++){const t=(0,o.createBlock)("ablocks/table-cell");e.push(t)}const a=(0,o.createBlock)("ablocks/table-footer",{},[(0,o.createBlock)("ablocks/table-row",{},e)]);t.push(a)}(0,r.dispatch)("core/block-editor").replaceInnerBlocks(n,t,!1),i({tableCreated:!0})}})})]})},Cz=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{...(0,y.qD)(i,e)}},Az=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function Lz(t){const{attributes:e}=t,{block_id:i}=e;return(0,
3545 -I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:Pz.UU,attributes:e,children:(0,I.jsx)("table",{children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})}Lz.propTypes={},Lz.defaultProps={};const Dz={UU:"ablocks/table",uK:{block_id:{type:"string"},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:""},isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:""},rowOddColorH:{type:"string",default:""},rowEvenColor:{type:"string",default:""},rowEvenColorH:{type:"string",default:""},bodyBg:{type:"string"},bodyBgH:{type:"string"},headerColor:{type:"string",default:""},headerColorH:{type:"string",default:""},footerColor:{type:"string",default:""},footerColorH:{type:"string",default:""},borderCollapse:{type:"string",default:"collapse"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",
3556 +r.dispatch)("core/block-editor").insertBlock(a,0,t.clientId)},insertLeftCell:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlocksByClientId(t)[0];if(!e)return;const i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!1)}}}),(0,I.jsx)(Yb.A,{blockId:s,name:oC.UU,attributes:e,children:b?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("table",{...y})}):(0,I.jsx)(nC,{numRows:c,setNumRows:d,numTds:u,setNumTds:p,includeHeader:m,setIncludeHeader:h,includeFooter:g,setIncludeFooter:f,createTable:()=>{const t=[];if(m){i({isHeader:!0});const e=[];for(let t=0;t<u;t++){const t=(0,
3557 +o.createBlock)("ablocks/table-cell",{tagName:"th"});e.push(t)}const a=(0,o.createBlock)("ablocks/table-header",{},[(0,o.createBlock)("ablocks/table-row",{},e)]);t.push(a)}const e=[];for(let t=0;t<c;t++){const t=[];for(let e=0;e<u;e++){const e=(0,o.createBlock)("ablocks/table-cell");t.push(e)}const i=(0,o.createBlock)("ablocks/table-row",{},t);e.push(i)}const a=(0,o.createBlock)("ablocks/table-body",{},e);if(t.push(a),g){i({isFooter:!0});const e=[];for(let t=0;t<u;t++){const t=(0,o.createBlock)("ablocks/table-cell");e.push(t)}const a=(0,o.createBlock)("ablocks/table-footer",{},[(0,o.createBlock)("ablocks/table-row",{},e)]);t.push(a)}(0,r.dispatch)("core/block-editor").replaceInnerBlocks(n,t,!1),i({tableCreated:!0})}})})]})},rC=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{...(0,y.qD)(i,e)}},bC=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function cC(t){const{attributes:e}=t,{block_id:i}=e;return(0,
3558 +I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:oC.UU,attributes:e,children:(0,I.jsx)("table",{children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})}cC.propTypes={},cC.defaultProps={};const dC={UU:"ablocks/table",uK:{block_id:{type:"string"},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:""},isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:""},rowOddColorH:{type:"string",default:""},rowEvenColor:{type:"string",default:""},rowEvenColorH:{type:"string",default:""},bodyBg:{type:"string"},bodyBgH:{type:"string"},headerColor:{type:"string",default:""},headerColorH:{type:"string",default:""},footerColor:{type:"string",default:""},footerColorH:{type:"string",default:""},borderCollapse:{type:"string",default:"collapse"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",
3546 3559 commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",
3547 3560 bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",
3548 3561 commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",
3549 3562 commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",
@@ -3551,33 +3564,33 @@
3551 3564 imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",
3552 3565 imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",
3553 3566 offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",
3554 3567 scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",
3555 -animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function Nz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Dz.UU,attributes:e,children:(0,I.jsx)("table",{children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})}function Iz(t){const{attributes:e,setAttributes:i}=t,{cellColor:o,cellColorH:a,colSpan:n,rowSpan:s,textAlignment:r}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,
3568 +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function uC(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:dC.UU,attributes:e,children:(0,I.jsx)("table",{children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})}function pC(t){const{attributes:e,setAttributes:i}=t,{cellColor:o,cellColorH:a,colSpan:n,rowSpan:s,textAlignment:r}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,
3556 3569 I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",hasAdvance:!1,children:(0,I.jsx)(V,{title:(0,L.__)("Cell setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"textAlignment",attributeValue:r,setAttributes:i,isResponsive:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"arrow-right"
3557 -}],isInline:!1}),(0,I.jsx)(As,{min:1,label:(0,L.__)("Row Span","ablocks"),attributeName:"rowSpan",attributeValue:s,setAttributes:i}),(0,I.jsx)(As,{min:1,label:(0,L.__)("Cols Span","ablocks"),attributeName:"colSpan",attributeValue:n,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Cell color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"cellColor",attributeValue:o,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"cellColorH",attributeValue:a,setAttributes:i})})})]})})})})]})})}Nz.propTypes={},Nz.defaultProps={},(0,M.xV)(Pz.UU)&&(0,o.registerBlockType)(Pz.UU,{title:(0,L.__)("Table","ablocks"),attributes:Pz.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){
3558 -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}.ablocks-block--table table",(t=>{const{borderCollapse:e}=t,i=[];return"collapse"===e?i["border-collapse"]="collapse":"separate"===e&&(i["border-collapse"]="separate"),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table table, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell , {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell",Cz(i),Cz(i,"Tablet"),Cz(i,"Mobile"),e(t=>Cz(i,t))),
3559 -t.addClassStyles("{{WRAPPER}}.ablocks-block--table table:hover, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell:hover, {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell:hover",Az(i),Az(i,"Tablet"),Az(i,"Mobile"),e(t=>Az(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd",(t=>({background:(0,Hs.qD)(t?.rowOddColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd:hover",(t=>({background:(0,Hs.qD)(t?.rowOddColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--even",(t=>({background:(0,Hs.qD)(t?.rowEvenColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--even:hover",(t=>({background:(0,Hs.qD)(t?.rowEvenColorH)}))(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-header",(t=>({background:(0,Hs.qD)(t?.headerColor)}))(i)),
3560 -t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-header:hover",(t=>({background:(0,Hs.qD)(t?.headerColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-block--table-body",(t=>{const{bodyBg:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-block--table-body:hover",(t=>{const{bodyBgH:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-footer",(t=>{const{footerColor:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-footer:hover",(t=>{const{footerColorH:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Wz,{...t}),(0,I.jsx)(zz,{...t})]})},save:Lz,
3561 -deprecated:[{attributes:Dz.uK,save:Nz}]}),Iz.propTypes={},Iz.defaultProps={};const Vz={UU:"ablocks/table-cell",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""},tagName:{type:"string",default:"td"},cellColor:{type:"string",default:""},cellColorH:{type:"string",default:""},rowSpan:{type:"string",default:"1"},colSpan:{type:"string",default:"1"},textAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}}}},Oz=({addAfterRow:t,addBeforeRow:e,addColumnAfter:i,addColumnBefore:o,deleteColumn:a,deleteRow:l,rowEdit:n,handleDeleteCel:s})=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{icon:"trash",label:(0,L.__)("Delete","ablocks"),onClick:s,className:"ablocks-table-toolbar-cell-delete"})}),(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.DropdownMenu,{icon:"editor-table",label:(0,L.__)("Edit Table","ablocks"),className:"ablocks-table-dropdown-toolbar",children:({onClose:s})=>(0,I.jsxs)("div",{
3562 -className:"ablocks-table-dropdown-toolbar-menu",children:[(0,I.jsx)(N.ToolbarButton,{onClick:()=>{t(),s()},children:(0,L.__)("Add after row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{e(),s()},children:(0,L.__)("Add Before row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{i(),s()},children:(0,L.__)("Add after column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{o(),s()},children:(0,L.__)("Add Before column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{a(),s()},children:(0,L.__)("Delete column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{l(),s()},children:(0,L.__)("Deleted Row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{n(),s()},children:(0,L.__)("Row Edit","ablocks")})]})})})]});function Yz(t){const{attributes:e,clientId:i}=t,{tagName:a,block_id:n,rowSpan:s,colSpan:b}=e,{innerBlocksProps:c,children:d}=(0,D.useInnerBlocksProps)({className:"ablocks-table-cell"},{template:[["core/paragraph",{}]],templateLock:!1,allowedBlocks:(0,
3563 -o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)}),u=(t,e,i=!1)=>{t.forEach(t=>{const a=(0,o.createBlock)("ablocks/table-cell",{tagName:i?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(a,e+1,t.clientId)})},p=(t,e,i=!1)=>{t.forEach(t=>{const a=(0,o.createBlock)("ablocks/table-cell",{tagName:i?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(a,e,t.clientId)})},m=(t,e)=>{t.forEach(t=>{const i=t.innerBlocks[e];i&&(0,r.dispatch)("core/block-editor").removeBlock(i.clientId,!1)})},h=(0,r.useSelect)(t=>t("core/block-editor").getBlockRootClientId(i),[i]);return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Oz,{addAfterRow:()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockRootClientId(t),a=(0,r.select)("core/block-editor").getBlock(e),l=a.innerBlocks.findIndex(e=>e.clientId===t),n=a.innerBlocks[l].innerBlocks.map(t=>(0,o.createBlock)(t.name,t.attributes)),s=(0,o.createBlock)("ablocks/table-row",{},n);(0,
3570 +}],isInline:!1}),(0,I.jsx)(As,{min:1,label:(0,L.__)("Row Span","ablocks"),attributeName:"rowSpan",attributeValue:s,setAttributes:i}),(0,I.jsx)(As,{min:1,label:(0,L.__)("Cols Span","ablocks"),attributeName:"colSpan",attributeValue:n,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Cell color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"cellColor",attributeValue:o,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"cellColorH",attributeValue:a,setAttributes:i})})})]})})})})]})})}uC.propTypes={},uC.defaultProps={},(0,M.xV)(oC.UU)&&(0,o.registerBlockType)(oC.UU,{title:(0,L.__)("Table","ablocks"),attributes:oC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){
3571 +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}.ablocks-block--table table",(t=>{const{borderCollapse:e}=t,i=[];return"collapse"===e?i["border-collapse"]="collapse":"separate"===e&&(i["border-collapse"]="separate"),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table table, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell , {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell",rC(i),rC(i,"Tablet"),rC(i,"Mobile"),e(t=>rC(i,t))),
3572 +t.addClassStyles("{{WRAPPER}}.ablocks-block--table table:hover, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell:hover, {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell:hover",bC(i),bC(i,"Tablet"),bC(i,"Mobile"),e(t=>bC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd",(t=>({background:(0,Hs.qD)(t?.rowOddColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd:hover",(t=>({background:(0,Hs.qD)(t?.rowOddColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--even",(t=>({background:(0,Hs.qD)(t?.rowEvenColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--even:hover",(t=>({background:(0,Hs.qD)(t?.rowEvenColorH)}))(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-header",(t=>({background:(0,Hs.qD)(t?.headerColor)}))(i)),
3573 +t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-header:hover",(t=>({background:(0,Hs.qD)(t?.headerColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-block--table-body",(t=>{const{bodyBg:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-block--table-body:hover",(t=>{const{bodyBgH:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-footer",(t=>{const{footerColor:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-footer:hover",(t=>{const{footerColorH:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(iC,{...t}),(0,I.jsx)(sC,{...t})]})},save:cC,
3574 +deprecated:[{attributes:dC.uK,save:uC}]}),pC.propTypes={},pC.defaultProps={};const mC={UU:"ablocks/table-cell",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""},tagName:{type:"string",default:"td"},cellColor:{type:"string",default:""},cellColorH:{type:"string",default:""},rowSpan:{type:"string",default:"1"},colSpan:{type:"string",default:"1"},textAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}}}},hC=({addAfterRow:t,addBeforeRow:e,addColumnAfter:i,addColumnBefore:o,deleteColumn:a,deleteRow:l,rowEdit:n,handleDeleteCel:s})=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{icon:"trash",label:(0,L.__)("Delete","ablocks"),onClick:s,className:"ablocks-table-toolbar-cell-delete"})}),(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.DropdownMenu,{icon:"editor-table",label:(0,L.__)("Edit Table","ablocks"),className:"ablocks-table-dropdown-toolbar",children:({onClose:s})=>(0,I.jsxs)("div",{
3575 +className:"ablocks-table-dropdown-toolbar-menu",children:[(0,I.jsx)(N.ToolbarButton,{onClick:()=>{t(),s()},children:(0,L.__)("Add after row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{e(),s()},children:(0,L.__)("Add Before row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{i(),s()},children:(0,L.__)("Add after column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{o(),s()},children:(0,L.__)("Add Before column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{a(),s()},children:(0,L.__)("Delete column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{l(),s()},children:(0,L.__)("Deleted Row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{n(),s()},children:(0,L.__)("Row Edit","ablocks")})]})})})]});function gC(t){const{attributes:e,clientId:i}=t,{tagName:a,block_id:n,rowSpan:s,colSpan:b}=e,{innerBlocksProps:c,children:d}=(0,D.useInnerBlocksProps)({className:"ablocks-table-cell"},{template:[["core/paragraph",{}]],templateLock:!1,allowedBlocks:(0,
3576 +o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)}),u=(t,e,i=!1)=>{t.forEach(t=>{const a=(0,o.createBlock)("ablocks/table-cell",{tagName:i?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(a,e+1,t.clientId)})},p=(t,e,i=!1)=>{t.forEach(t=>{const a=(0,o.createBlock)("ablocks/table-cell",{tagName:i?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(a,e,t.clientId)})},m=(t,e)=>{t.forEach(t=>{const i=t.innerBlocks[e];i&&(0,r.dispatch)("core/block-editor").removeBlock(i.clientId,!1)})},h=(0,r.useSelect)(t=>t("core/block-editor").getBlockRootClientId(i),[i]);return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(hC,{addAfterRow:()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockRootClientId(t),a=(0,r.select)("core/block-editor").getBlock(e),l=a.innerBlocks.findIndex(e=>e.clientId===t),n=a.innerBlocks[l].innerBlocks.map(t=>(0,o.createBlock)(t.name,t.attributes)),s=(0,o.createBlock)("ablocks/table-row",{},n);(0,
3564 3577 r.dispatch)("core/block-editor").insertBlock(s,l+1,e)},addBeforeRow:()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockRootClientId(t),a=(0,r.select)("core/block-editor").getBlock(e),l=a.innerBlocks.findIndex(e=>e.clientId===t),n=a.innerBlocks[l].innerBlocks.map(t=>(0,o.createBlock)(t.name,t.attributes)),s=(0,o.createBlock)("ablocks/table-row",{},n);(0,r.dispatch)("core/block-editor").insertBlock(s,l,e)},addColumnAfter:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0,r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>t&&"ablocks/table"===t.name),i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name),l=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0,
3565 3578 r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>"ablocks/table-row"===t.name),n=l.innerBlocks.findIndex(e=>e.clientId===t);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);u(t,n,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);u(t,n,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);u(t,n,!0)}},addColumnBefore:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0,r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>t&&"ablocks/table"===t.name),i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name),l=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0,
3566 3579 r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>"ablocks/table-row"===t.name),n=l.innerBlocks.findIndex(e=>e.clientId===t);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);p(t,n,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);p(t,n,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);p(t,n,!0)}},deleteColumn:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0,r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>t&&"ablocks/table"===t.name),i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name),l=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0,
3567 -r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>"ablocks/table-row"===t.name),n=l.innerBlocks.findIndex(e=>e.clientId===t);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}},deleteRow:()=>{(0,r.dispatch)("core/block-editor").removeBlock(h)},rowEdit:()=>{h&&((0,r.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block"),(0,r.dispatch)("core/block-editor").selectBlock(h))},handleDeleteCel:()=>{(0,r.dispatch)("core/block-editor").removeBlock(i)}}),(0,I.jsxs)(sR,{blockId:n,name:Vz.UU,attributes:e,tagName:a,blockProps:{rowSpan:s,colSpan:b},className:"ablocks-table-cell ablocks-table-td",...c,children:[(0,I.jsx)("button",{className:"ablocks-table-icon-td ablocks-icon ablocks-icon--edit",onClick:()=>{(0,r.dispatch)("core/edit-post").openGeneralSidebar(),(0,
3568 -r.dispatch)("core/block-editor").selectBlock(i)}}),d]})]})}function Xz(t){const{attributes:e}=t,{block_id:i,rowSpan:o,colSpan:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:Vz.UU,attributes:e,tagName:"td",blockProps:{rowSpan:o,colSpan:a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}function Bz(t){const{attributes:e,setAttributes:i}=t,{rowColorH:o,rowColor:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,
3569 -setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",hasAdvance:!1,children:(0,I.jsx)(V,{title:(0,L.__)("Row setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"rowColor",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover Color","ablocks"),isGradient:!0,attributeName:"rowColorH",attributeValue:o,setAttributes:i})})})})})]})})}Yz.propTypes={},Yz.defaultProps={},Xz.propTypes={},Xz.defaultProps={},(0,M.xV)(Vz.UU,Vz.$t[0])&&(0,o.registerBlockType)(Vz.UU,{title:(0,L.__)("table-cell","ablocks"),attributes:Vz.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l)
3570 -;return t.addClassStyles("{{WRAPPER}}",(t=>{const{textAlignment:e}=t,i={};return e&&(i["text-align"]=e),{background:(0,Hs.qD)(t?.cellColor),...i}})(i)),t.addClassStyles("{{WRAPPER}}:hover",(t=>({background:(0,Hs.qD)(t?.cellColorH)}))(i)),t.generateCSS()});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Iz,{...t}),(0,I.jsx)(Yz,{...t})]})},save:Xz}),Bz.propTypes={},Bz.defaultProps={};const Ez={UU:"ablocks/table-row",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""},rowColor:{type:"string",default:""},rowColorH:{type:"string",default:""}}},Fz=t=>{const{attributes:e,clientId:i}=t,{block_id:o}=e,[l,n]=(0,a.useState)(!1);(0,a.useEffect)(()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockIndex(i,t);n(e%2==0)},[i]);const{children:s}=(0,D.useInnerBlocksProps)({className:"ablocks-table-row"},{template:[["ablocks/table-cell",{}]],allowedBlocks:["ablocks/table-cell"],renderAppender:!1})
3571 -;return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(sR,{blockId:o,name:Ez.UU,attributes:e,tagName:"tr",className:"ablocks-block--table-row "+(l?"ablocks-table-row--even":"ablocks-table-row--odd"),children:s})})};function qz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:Ez.UU,attributes:e,tagName:"tr",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}qz.propTypes={},qz.defaultProps={},(0,M.xV)(Ez.UU,Ez.$t[0])&&(0,o.registerBlockType)(Ez.UU,{title:(0,L.__)("table-row","ablocks"),attributes:Ez.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",(t=>{const{rowColor:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}:hover",(t=>{
3572 -const{rowColorH:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Bz,{...t}),(0,I.jsx)(Fz,{...t})]})},save:qz});const $z={UU:"ablocks/table-header",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""}}};function Gz(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-row"],template:[["ablocks/table-row",{},[["ablocks/table-cell",{tagName:"th"}],["ablocks/table-cell",{tagName:"th"}]]]]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:i,name:$z.UU,attributes:e,tagName:"thead",className:"ablocks-block--table-header",...o})})}function Zz(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{
3573 -className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}function Kz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:$z.UU,attributes:e,tagName:"thead",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Gz.propTypes={},Gz.defaultProps={},Zz.propTypes={},Kz.propTypes={},Kz.defaultProps={},(0,M.xV)($z.UU,$z.$t[0])&&(0,o.registerBlockType)($z.UU,{title:(0,L.__)("Table Head","ablocks"),attributes:$z.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i])
3574 -;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Zz,{...t}),(0,I.jsx)(Gz,{...t})]})},save:Kz});const Jz={UU:"ablocks/table-footer",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""}}};function Qz(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-cell"],template:[["ablocks/table-row",{}]]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:i,name:Jz.UU,attributes:e,className:"ablocks-block--table-footer",tagName:"tfoot",...o})})}function tC(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,
3575 -L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}function eC(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:Jz.UU,attributes:e,tagName:"tfoot",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Qz.propTypes={},Qz.defaultProps={},tC.propTypes={},eC.propTypes={},eC.defaultProps={},(0,M.xV)(Jz.UU,Jz.$t[0])&&(0,o.registerBlockType)(Jz.UU,{title:(0,L.__)("Tablet Footer","ablocks"),attributes:Jz.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(tC,{...t}),(0,I.jsx)(Qz,{...t})]})},save:eC});const iC={UU:"ablocks/table-body",$t:["ablocks/table"],
3576 -uK:{block_id:{type:"string",default:""}}};function oC(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-row"],template:[["ablocks/table-row"],["ablocks/table-row"]]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:i,name:iC.UU,attributes:e,tagName:"tbody",...o})})}function aC(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}function lC(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,
3577 -I.jsx)(dR,{blockId:i,name:iC.UU,attributes:e,tagName:"tbody",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}oC.propTypes={},oC.defaultProps={},aC.propTypes={},lC.propTypes={},lC.defaultProps={},(0,M.xV)(iC.UU,iC.$t[0])&&(0,o.registerBlockType)(iC.UU,{title:(0,L.__)("Table Body","ablocks"),attributes:iC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(aC,{...t}),(0,I.jsx)(oC,{...t})]})},save:lC});var nC=i(929);const sC=[{label:(0,L.__)("Facebook","ablocks"),value:"Facebook"},{label:(0,L.__)("Twitter","ablocks"),value:"Twitter"},{label:(0,L.__)("LinkedIn","ablocks"),value:"LinkedIn"},{label:(0,L.__)("Pinterest","ablocks"),value:"Pinterest"},{label:(0,L.__)("Reddit","ablocks"),
3578 -value:"Reddit"},{label:(0,L.__)("Telegram","ablocks"),value:"Telegram"},{label:(0,L.__)("WhatsApp","ablocks"),value:"WhatsApp"},{label:(0,L.__)("Skype","ablocks"),value:"Skype"},{label:(0,L.__)("Tumblr","ablocks"),value:"Tumblr"},{label:(0,L.__)("Digg","ablocks"),value:"Digg"},{label:(0,L.__)("VK","ablocks"),value:"VK"},{label:(0,L.__)("Mix","ablocks"),value:"Mix"},{label:(0,L.__)("Pocket","ablocks"),value:"Pocket"},{label:(0,L.__)("Stumble","ablocks"),value:"Stumble"},{label:(0,L.__)("Gmail","ablocks"),value:"Gmail"},{label:(0,L.__)("Messenger","ablocks"),value:"Messenger"},{label:(0,L.__)("Flipboard","ablocks"),value:"Flipboard"},{label:(0,L.__)("Blogger","ablocks"),value:"Blogger"}],rC=[{label:(0,L.__)("Icon & Text","ablocks"),value:"Icon & Text"},{label:(0,L.__)("Icon","ablocks"),value:"Icon"},{label:(0,L.__)("Text","ablocks"),value:"Text"}],bC=[{label:(0,L.__)("Square","ablocks"),value:"Square"},{label:(0,L.__)("Rounded","ablocks"),value:"Rounded"},{label:(0,
3579 -L.__)("Circle","ablocks"),value:"Circle"}],cC=[{text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373"},{text:"Twitter",icon:{viewBox:"0 0 512 512",
3580 +r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>"ablocks/table-row"===t.name),n=l.innerBlocks.findIndex(e=>e.clientId===t);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}},deleteRow:()=>{(0,r.dispatch)("core/block-editor").removeBlock(h)},rowEdit:()=>{h&&((0,r.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block"),(0,r.dispatch)("core/block-editor").selectBlock(h))},handleDeleteCel:()=>{(0,r.dispatch)("core/block-editor").removeBlock(i)}}),(0,I.jsxs)(mR,{blockId:n,name:mC.UU,attributes:e,tagName:a,blockProps:{rowSpan:s,colSpan:b},className:"ablocks-table-cell ablocks-table-td",...c,children:[(0,I.jsx)("button",{className:"ablocks-table-icon-td ablocks-icon ablocks-icon--edit",onClick:()=>{(0,r.dispatch)("core/edit-post").openGeneralSidebar(),(0,
3581 +r.dispatch)("core/block-editor").selectBlock(i)}}),d]})]})}function fC(t){const{attributes:e}=t,{block_id:i,rowSpan:o,colSpan:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:mC.UU,attributes:e,tagName:"td",blockProps:{rowSpan:o,colSpan:a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}function yC(t){const{attributes:e,setAttributes:i}=t,{rowColorH:o,rowColor:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,
3582 +setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",hasAdvance:!1,children:(0,I.jsx)(V,{title:(0,L.__)("Row setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"rowColor",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover Color","ablocks"),isGradient:!0,attributeName:"rowColorH",attributeValue:o,setAttributes:i})})})})})]})})}gC.propTypes={},gC.defaultProps={},fC.propTypes={},fC.defaultProps={},(0,M.xV)(mC.UU,mC.$t[0])&&(0,o.registerBlockType)(mC.UU,{title:(0,L.__)("table-cell","ablocks"),attributes:mC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l)
3583 +;return t.addClassStyles("{{WRAPPER}}",(t=>{const{textAlignment:e}=t,i={};return e&&(i["text-align"]=e),{background:(0,Hs.qD)(t?.cellColor),...i}})(i)),t.addClassStyles("{{WRAPPER}}:hover",(t=>({background:(0,Hs.qD)(t?.cellColorH)}))(i)),t.generateCSS()});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(pC,{...t}),(0,I.jsx)(gC,{...t})]})},save:fC}),yC.propTypes={},yC.defaultProps={};const TC={UU:"ablocks/table-row",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""},rowColor:{type:"string",default:""},rowColorH:{type:"string",default:""}}},HC=t=>{const{attributes:e,clientId:i}=t,{block_id:o}=e,[l,n]=(0,a.useState)(!1);(0,a.useEffect)(()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockIndex(i,t);n(e%2==0)},[i]);const{children:s}=(0,D.useInnerBlocksProps)({className:"ablocks-table-row"},{template:[["ablocks/table-cell",{}]],allowedBlocks:["ablocks/table-cell"],renderAppender:!1})
3584 +;return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(mR,{blockId:o,name:TC.UU,attributes:e,tagName:"tr",className:"ablocks-block--table-row "+(l?"ablocks-table-row--even":"ablocks-table-row--odd"),children:s})})};function MC(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:TC.UU,attributes:e,tagName:"tr",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}MC.propTypes={},MC.defaultProps={},(0,M.xV)(TC.UU,TC.$t[0])&&(0,o.registerBlockType)(TC.UU,{title:(0,L.__)("table-row","ablocks"),attributes:TC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",(t=>{const{rowColor:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}:hover",(t=>{
3585 +const{rowColorH:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(yC,{...t}),(0,I.jsx)(HC,{...t})]})},save:MC});const xC={UU:"ablocks/table-header",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""}}};function kC(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-row"],template:[["ablocks/table-row",{},[["ablocks/table-cell",{tagName:"th"}],["ablocks/table-cell",{tagName:"th"}]]]]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(mR,{blockId:i,name:xC.UU,attributes:e,tagName:"thead",className:"ablocks-block--table-header",...o})})}function vC(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{
3586 +className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}function _C(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:xC.UU,attributes:e,tagName:"thead",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}kC.propTypes={},kC.defaultProps={},vC.propTypes={},_C.propTypes={},_C.defaultProps={},(0,M.xV)(xC.UU,xC.$t[0])&&(0,o.registerBlockType)(xC.UU,{title:(0,L.__)("Table Head","ablocks"),attributes:xC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i])
3587 +;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(vC,{...t}),(0,I.jsx)(kC,{...t})]})},save:_C});const RC={UU:"ablocks/table-footer",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""}}};function SC(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-cell"],template:[["ablocks/table-row",{}]]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(mR,{blockId:i,name:RC.UU,attributes:e,className:"ablocks-block--table-footer",tagName:"tfoot",...o})})}function WC(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,
3588 +L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}function PC(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:RC.UU,attributes:e,tagName:"tfoot",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}SC.propTypes={},SC.defaultProps={},WC.propTypes={},PC.propTypes={},PC.defaultProps={},(0,M.xV)(RC.UU,RC.$t[0])&&(0,o.registerBlockType)(RC.UU,{title:(0,L.__)("Tablet Footer","ablocks"),attributes:RC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(WC,{...t}),(0,I.jsx)(SC,{...t})]})},save:PC});const UC={UU:"ablocks/table-body",$t:["ablocks/table"],
3589 +uK:{block_id:{type:"string",default:""}}};function jC(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-row"],template:[["ablocks/table-row"],["ablocks/table-row"]]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(mR,{blockId:i,name:UC.UU,attributes:e,tagName:"tbody",...o})})}function wC(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}function zC(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,
3590 +I.jsx)(yR,{blockId:i,name:UC.UU,attributes:e,tagName:"tbody",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}jC.propTypes={},jC.defaultProps={},wC.propTypes={},zC.propTypes={},zC.defaultProps={},(0,M.xV)(UC.UU,UC.$t[0])&&(0,o.registerBlockType)(UC.UU,{title:(0,L.__)("Table Body","ablocks"),attributes:UC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(wC,{...t}),(0,I.jsx)(jC,{...t})]})},save:zC});var CC=i(929);const AC=[{label:(0,L.__)("Facebook","ablocks"),value:"Facebook"},{label:(0,L.__)("Twitter","ablocks"),value:"Twitter"},{label:(0,L.__)("LinkedIn","ablocks"),value:"LinkedIn"},{label:(0,L.__)("Pinterest","ablocks"),value:"Pinterest"},{label:(0,L.__)("Reddit","ablocks"),
3591 +value:"Reddit"},{label:(0,L.__)("Telegram","ablocks"),value:"Telegram"},{label:(0,L.__)("WhatsApp","ablocks"),value:"WhatsApp"},{label:(0,L.__)("Skype","ablocks"),value:"Skype"},{label:(0,L.__)("Tumblr","ablocks"),value:"Tumblr"},{label:(0,L.__)("Digg","ablocks"),value:"Digg"},{label:(0,L.__)("VK","ablocks"),value:"VK"},{label:(0,L.__)("Mix","ablocks"),value:"Mix"},{label:(0,L.__)("Pocket","ablocks"),value:"Pocket"},{label:(0,L.__)("Stumble","ablocks"),value:"Stumble"},{label:(0,L.__)("Gmail","ablocks"),value:"Gmail"},{label:(0,L.__)("Messenger","ablocks"),value:"Messenger"},{label:(0,L.__)("Flipboard","ablocks"),value:"Flipboard"},{label:(0,L.__)("Blogger","ablocks"),value:"Blogger"}],LC=[{label:(0,L.__)("Icon & Text","ablocks"),value:"Icon & Text"},{label:(0,L.__)("Icon","ablocks"),value:"Icon"},{label:(0,L.__)("Text","ablocks"),value:"Text"}],DC=[{label:(0,L.__)("Square","ablocks"),value:"Square"},{label:(0,L.__)("Rounded","ablocks"),value:"Rounded"},{label:(0,
3592 +L.__)("Circle","ablocks"),value:"Circle"}],NC=[{text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373"},{text:"Twitter",icon:{viewBox:"0 0 512 512",
3580 3593 path:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},buttonBackgroundColor:"ablocks-social-share-item--twitter-bg",iconBackgroundColor:"ablocks-social-share-item--twitter-icon-bg",link:"https://twitter.com/intent/tweet?url=",isOpen:!1,
3581 3594 backgroundH:"#1da1f2"},{text:"Telegram",icon:{viewBox:"0 0 448 512",path:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},buttonBackgroundColor:"ablocks-social-share-item--telegram-bg",iconBackgroundColor:"ablocks-social-share-item--telegram-icon-bg",link:"https://t.me/share/url?url=",isOpen:!1,backgroundH:"#1da1f2"},{text:"Print",icon:{viewBox:"0 0 512 512",path:"M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"
3582 3595 },buttonBackgroundColor:"ablocks-social-share-item---print-bg",iconBackgroundColor:"ablocks-social-share-item--print-icon-bg",link:"window.print()",backgroundH:"#4a4a4a",isOpen:!1},{text:"Email",icon:{viewBox:"0 0 640 512",path:"M496 128a144 144 0 0 0-119.74 224H263.74A144 144 0 1 0 144 416h352a144 144 0 0 0 0-288zM64 272a80 80 0 1 1 80 80 80 80 0 0 1-80-80zm432 80a80 80 0 1 1 80-80 80 80 0 0 1-80 80z"},buttonBackgroundColor:"ablocks-social-share-item--email-bg",iconBackgroundColor:"ablocks-social-share-item--email-icon-bg",link:"mailto:?subject=",backgroundH:"#d44638",isOpen:!1},{text:"WhatsApp",icon:{viewBox:"0 0 448 512",
3583 3596 path:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},buttonBackgroundColor:"ablocks-social-share-item--whatsapp-bg",
@@ -3592,23 +3605,23 @@
3592 3605 isOpen:!1},{text:"LinkedIn",icon:{viewBox:"0 0 448 512",path:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},buttonBackgroundColor:"ablocks-social-share-item--linkedin-bg",iconBackgroundColor:"ablocks-social-share-item--linkedin-icon-bg",link:"https://www.linkedin.com/feed/?linkOrigin=LI_BADGE&shareActive=true&shareUrl=",backgroundH:"#0077b5",isOpen:!1},{text:"Gmail",icon:{viewBox:"0 0 512 512",path:"M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"},
3593 3606 buttonBackgroundColor:"ablocks-social-share-item--gmail-bg",iconBackgroundColor:"ablocks-social-share-item--gmail-icon-bg",link:"https://mail.google.com/mail/?view=cm&fs=1&su=Check%20this%20out&body=",backgroundH:"#d14836",isOpen:!1},{text:"Messenger",icon:{viewBox:"0 0 24 24",path:"M12 0C5.373 0 0 4.975 0 11.111c0 3.497 1.745 6.616 4.472 8.652V24l4.086-2.242c1.09.301 2.246.464 3.442.464 6.627 0 12-4.974 12-11.111C24 4.975 18.627 0 12 0zm1.193 14.963l-3.056-3.259-5.963 3.259L10.732 8l3.13 3.259L19.732 8l-6.539 6.963z"},buttonBackgroundColor:"ablocks-social-share-item--messenger-bg",iconBackgroundColor:"ablocks-social-share-item--messenger-icon-bg",link:"https://www.facebook.com/dialog/send?link=",backgroundH:"#0084ff",isOpen:!1},{text:"Flipboard",icon:{viewBox:"0 0 448 512",path:"M0 32v448h448V32H0zm358.4 179.2h-89.6v89.6h-89.6v89.6H89.6V121.6h268.8v89.6z"},buttonBackgroundColor:"ablocks-social-share-item--flipboard-bg",
3594 3607 iconBackgroundColor:"ablocks-social-share-item--flipboard-icon-bg",link:"https://share.flipboard.com/bookmarklet/popout?v=2&url=",backgroundH:"#e12828",isOpen:!1},{text:"Blogger",icon:{viewBox:"0 0 448 512",
3595 3608 path:"M162.4 196c4.8-4.9 6.2-5.1 36.4-5.1 27.2 0 28.1.1 32.1 2.1 5.8 2.9 8.3 7 8.3 13.6 0 5.9-2.4 10-7.6 13.4-2.8 1.8-4.5 1.9-31.1 2.1-16.4.1-29.5-.2-31.5-.8-10.3-2.9-14.1-17.7-6.6-25.3zm61.4 94.5c-53.9 0-55.8.2-60.2 4.1-3.5 3.1-5.7 9.4-5.1 13.9.7 4.7 4.8 10.1 9.2 12 2.2 1 14.1 1.7 56.3 1.2l47.9-.6 9.2-1.5c9-5.1 10.5-17.4 3.1-24.4-5.3-4.7-5-4.7-60.4-4.7zm223.4-130.1c-3.5-28.4-23-50.4-51.8-58.5L393.7 101c-10.2-2.9-23.3-4.5-37.9-4.5-7.3 0-13.4.7-18.8 1.8-11.1 2.2-17.6 3.9-26.6 7.1-11.7 4.2-14.1 5.3-24.9 11.7-12.2 7.2-15.9 10.1-23.3 18.2-4.9 5.4-13.3 19.1-14.2 23.2-1.9 8.7-3.6 20.3-4.8 33.7a281.3 281.3 0 0 0-.1 28.5c0 147.8 68.5 158.4 207.6 158.4 128.8 0 178.8-11.8 178.8-158.4 0-92.2-14.3-149.8-61.4-158.7zM331 320.2c-3.9 28.6-32.2 48.6-71.4 50.4-27.2 1.3-108.2.3-108.2.3-23.8 0-31.5-5.7-31.5-31.5v-108c0-23.8 7.7-31.5 31.5-31.5 0 0 81-.3 108.2.3 39.2 1.8 67.5 21.8 71.4 50.4 3.2 23.3 3.2 46.8 0 69.6z"},buttonBackgroundColor:"ablocks-social-share-item--blogger-bg",
3596 -iconBackgroundColor:"ablocks-social-share-item--blogger-icon-bg",link:"https://www.blogger.com/blog-this.g?u=",backgroundH:"#ff5722",isOpen:!1}],dC=((0,L.__)("vertical","ablocks"),(0,L.__)("horizontal","ablocks"),(0,L.__)("Start","ablocks"),(0,L.__)("End","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Between","ablocks"),(0,L.__)("Around","ablocks"),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:"M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"})})
3597 -})),uC=t=>"px"===t?200:"em"===t||"rem"===t?15:200;function pC(t){const{attributes:e,setAttributes:i}=t,{lists:o,stack:a,spaceBetween:n,verticalAlignment:s,viewButton:r,shape:b,windowsPopUp:c,buttonHover:d,buttonBackground:u,shareSize:p,shareIconSize:m,shareButtonIconColor:h,shareBar:g,textStroke:f,textShadow:y,typography:T,shareItemIconSize:H,itemIconHeight:M,itemIconWidth:x,itemTextHeight:k,itemTextWidth:v,horizontalAlignment:_,shareButtonIconColorH:R}=e,S=o?.length?o[o.length-1].id+1:0,W=(t,e,a)=>{const l=[...o],n={...t,[e]:a};l[t?.id]=n,i({lists:l})};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-social-shares-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Social Share","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!0,label:(0,L.__)("Stack","ablocks"),options:[{
3609 +iconBackgroundColor:"ablocks-social-share-item--blogger-icon-bg",link:"https://www.blogger.com/blog-this.g?u=",backgroundH:"#ff5722",isOpen:!1}],IC=((0,L.__)("vertical","ablocks"),(0,L.__)("horizontal","ablocks"),(0,L.__)("Start","ablocks"),(0,L.__)("End","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Between","ablocks"),(0,L.__)("Around","ablocks"),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:"M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"})})
3610 +})),VC=t=>"px"===t?200:"em"===t||"rem"===t?15:200;function OC(t){const{attributes:e,setAttributes:i}=t,{lists:o,stack:a,spaceBetween:n,verticalAlignment:s,viewButton:r,shape:b,windowsPopUp:c,buttonHover:d,buttonBackground:u,shareSize:p,shareIconSize:m,shareButtonIconColor:h,shareBar:g,textStroke:f,textShadow:y,typography:T,shareItemIconSize:H,itemIconHeight:M,itemIconWidth:x,itemTextHeight:k,itemTextWidth:v,horizontalAlignment:_,shareButtonIconColorH:R}=e,S=o?.length?o[o.length-1].id+1:0,W=(t,e,a)=>{const l=[...o],n={...t,[e]:a};l[t?.id]=n,i({lists:l})};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-social-shares-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Social Share","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!0,label:(0,L.__)("Stack","ablocks"),options:[{
3598 3611 value:"horizontal",label:(0,L.__)("Horizontal","ablocks")},{value:"vertical",label:(0,L.__)("Vertical","ablocks")}],attributeName:"stack",attributeValue:a,setAttributes:i}),"vertical"===a?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wb,{isResponsive:!1,isInline:!0,allowDeselect:!0,label:(0,L.__)("Vertical alignment","ablocks"),options:[{label:(0,L.__)("Left","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--left"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--center"})},{label:(0,L.__)("Right","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--right"})}],attributeName:"verticalAlignment",attributeValue:s,setAttributes:i})}):(0,I.jsx)(Jt,{allowDeselect:!0,label:(0,L.__)("Horizontal alignment","ablocks"),options:[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"
3599 -},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],isInline:!1,attributeName:"horizontalAlignment",attributeValue:_,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("View","ablocks"),options:rC,attributeName:"viewButton",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ut,{label:(0,L.__)("Shape","ablocks"),options:bC,attributeName:"shape",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("windows PopUp","ablocks"),attributeValue:c,setAttributes:i,attributeName:"windowsPopUp"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Share Bar","ablocks"),attributeValue:g,setAttributes:i,attributeName:"shareBar"}),(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(o),[a]=e.splice(t.source.index,1);e.splice(t.destination.index,0,a),i({lists:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{
3612 +},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],isInline:!1,attributeName:"horizontalAlignment",attributeValue:_,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("View","ablocks"),options:LC,attributeName:"viewButton",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ut,{label:(0,L.__)("Shape","ablocks"),options:DC,attributeName:"shape",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("windows PopUp","ablocks"),attributeValue:c,setAttributes:i,attributeName:"windowsPopUp"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Share Bar","ablocks"),attributeValue:g,setAttributes:i,attributeName:"shareBar"}),(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(o),[a]=e.splice(t.source.index,1);e.splice(t.destination.index,0,a),i({lists:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{
3600 3613 ref:t.innerRef,...t.droppableProps,children:[o?.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t.id}`,index:e,children:e=>(0,I.jsxs)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-list",children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=o.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{t.stopPropagation()
3601 -;const a=o.filter(t=>t?.id!==e);i({lists:a})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t?.id===e),l=o[a],n=Array.from(o).sort((t,e)=>t.id-e.id),s={id:n[n.length-1].id+1,text:l?.text,icon:l?.icon,buttonBackgroundColor:l?.buttonBackgroundColor,iconBackgroundColor:l?.iconBackgroundColor,link:l?.link,backgroundH:l?.backgroundH,isOpen:!1},r=[...o,s];i({lists:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,I.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wl,{label:(0,L.__)("Button type","ablocks"),options:sC,value:sC.find(e=>e.value===t?.buttonType),onChange:e=>{const a=e?.value;((t,e,a)=>{const l=cC.find(t=>t.text===e),n=o.map(i=>i.id===t?{...i,[a]:e,text:l?.text||i.text,icon:l?.icon||i.icon,
3614 +;const a=o.filter(t=>t?.id!==e);i({lists:a})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t?.id===e),l=o[a],n=Array.from(o).sort((t,e)=>t.id-e.id),s={id:n[n.length-1].id+1,text:l?.text,icon:l?.icon,buttonBackgroundColor:l?.buttonBackgroundColor,iconBackgroundColor:l?.iconBackgroundColor,link:l?.link,backgroundH:l?.backgroundH,isOpen:!1},r=[...o,s];i({lists:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,I.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wl,{label:(0,L.__)("Button type","ablocks"),options:AC,value:AC.find(e=>e.value===t?.buttonType),onChange:e=>{const a=e?.value;((t,e,a)=>{const l=NC.find(t=>t.text===e),n=o.map(i=>i.id===t?{...i,[a]:e,text:l?.text||i.text,icon:l?.icon||i.icon,
3602 3615 buttonBackgroundColor:l?.buttonBackgroundColor||i.buttonBackgroundColor,iconBackgroundColor:l?.iconBackgroundColor||i.iconBackgroundColor,link:l?.link,backgroundH:l?.backgroundH}:i);i({lists:n})})(t?.id,a,"buttonType"),i({buttonType:a})}})}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[!("Text"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Icon color","ablocks"),attributeName:"shareBgColor"+t?.id,attributeValue:t["shareBgColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareBgColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon fill color","ablocks"),attributeName:"iconFillColor"+t?.id,attributeValue:t["iconFillColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"iconFillColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}})]}),!("Icon"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,I.jsx)(Ws,{label:(0,
3603 3616 L.__)("Text backgroun color","ablocks"),attributeName:"shareTextBgColor"+t?.id,attributeValue:t["shareTextBgColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareTextBgColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),"Icon & Text"!==r||"Circle"!==b&&"Rounded"!==b?null:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"backgroundColor"+t?.id,attributeValue:t["backgroundColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"backgroundColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}})]}),hover:(0,I.jsxs)(I.Fragment,{children:[!("Text"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"shareIconH"+t?.id,attributeValue:t["shareIconH"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareIconH"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),!("Icon"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,I.jsx)(Ws,{label:(0,L.__)("Text background Color","ablocks"),
3604 3617 attributeName:"shareTextH"+t?.id,attributeValue:t["shareTextH"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareTextH"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),"Icon & Text"!==r||"Circle"!==b&&"Rounded"!==b?null:(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover Color","ablocks"),attributeName:"backgroundColorH"+t?.id,attributeValue:t["backgroundColorH"+t?.id],setAttributes:i,resetHandler:()=>W(t,"backgroundColorH"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}})]})})})})})]})},t.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:S,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!0,
3605 -backgroundH:"#2d4373",buttonType:"Facebook"},e=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t]})},className:"ablocks-add-list-item-button"})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Space between","ablocks"),min:0,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"spaceBetween",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:nC.p9})})})}),g&&(0,I.jsx)(V,{title:(0,L.__)("Share Bar","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Share Size","ablocks"),isResponsive:!1,min:0,hasUnit:!0,attributeName:"shareSize",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],attributeValue:p,setAttributes:i,isInline:!1,attributeDefaultValue:nC.vz}),(0,I.jsx)(_t,{label:(0,L.__)("Share Icon Size","ablocks"),isResponsive:!1,min:0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],
3606 -hasUnit:!0,attributeName:"shareIconSize",attributeValue:m,setAttributes:i,isInline:!1,attributeDefaultValue:nC._2})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonBackground",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),isGradient:!0,attributeName:"shareButtonIconColor",attributeValue:h,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonHover",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),isGradient:!0,attributeName:"shareButtonIconColorH",attributeValue:R,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{})]})
3607 -})}),(0,I.jsx)(V,{title:(0,L.__)("Share Items","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:["Text"!==r&&(0,I.jsx)(_t,{label:(0,L.__)("Share Item Icon Size","ablocks"),isResponsive:!1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,attributeName:"shareItemIconSize",attributeValue:H,setAttributes:i,isInline:!1,attributeDefaultValue:nC.jI}),("Icon & Text"===r||"Icon"===r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Icon Label Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Width","ablocks"),attributeName:"itemIconWidth",attributeValue:x,setAttributes:i,isResponsive:!1,min:0,max:uC(x?.valueUnit||"px"),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,isInline:!1,attributeDefaultValue:nC.H1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Height","ablocks"),
3608 -attributeName:"itemIconHeight",attributeValue:M,setAttributes:i,isResponsive:!1,min:0,max:uC(M?.valueUnit||"px"),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,isInline:!1,attributeDefaultValue:nC.CS})]}),(0,I.jsx)(It,{margin:"30px"}),("Icon & Text"===r||"Text"===r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Text Label Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Text Width","ablocks"),attributeName:"itemTextWidth",attributeValue:v,setAttributes:i,isResponsive:!1,min:0,max:200,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,step:1,isInline:!1,attributeDefaultValue:nC.jM}),(0,I.jsx)(_t,{label:(0,L.__)("Text Height","ablocks"),attributeName:"itemTextHeight",attributeValue:k,setAttributes:i,isResponsive:!1,min:0,max:200,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,step:1,
3609 -isInline:!1,attributeDefaultValue:nC.YE})]})]}),style:(0,I.jsxs)(l().Fragment,{children:["Icon"!==r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:T,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:y,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:f,setAttributes:i,isResponsive:!0})]}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i,hasTransition:!1}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"shareItemShadow",attributeValue:e?.shareItemShadow||0,setAttributes:i}),(0,I.jsx)(It,{})]})})})]})})})}
3610 -pC.propTypes={};const mC={UU:"ablocks/social-shares",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},buttonType:{type:"string",default:"Facebook"},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square"},lists:{type:"array",default:[{id:0,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373",buttonType:"Facebook"},{id:1,text:"Twitter",icon:{viewBox:"0 0 512 512",
3618 +backgroundH:"#2d4373",buttonType:"Facebook"},e=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t]})},className:"ablocks-add-list-item-button"})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Space between","ablocks"),min:0,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"spaceBetween",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:CC.p9})})})}),g&&(0,I.jsx)(V,{title:(0,L.__)("Share Bar","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Share Size","ablocks"),isResponsive:!1,min:0,hasUnit:!0,attributeName:"shareSize",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],attributeValue:p,setAttributes:i,isInline:!1,attributeDefaultValue:CC.vz}),(0,I.jsx)(_t,{label:(0,L.__)("Share Icon Size","ablocks"),isResponsive:!1,min:0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],
3619 +hasUnit:!0,attributeName:"shareIconSize",attributeValue:m,setAttributes:i,isInline:!1,attributeDefaultValue:CC._2})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonBackground",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),isGradient:!0,attributeName:"shareButtonIconColor",attributeValue:h,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonHover",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),isGradient:!0,attributeName:"shareButtonIconColorH",attributeValue:R,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{})]})
3620 +})}),(0,I.jsx)(V,{title:(0,L.__)("Share Items","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:["Text"!==r&&(0,I.jsx)(_t,{label:(0,L.__)("Share Item Icon Size","ablocks"),isResponsive:!1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,attributeName:"shareItemIconSize",attributeValue:H,setAttributes:i,isInline:!1,attributeDefaultValue:CC.jI}),("Icon & Text"===r||"Icon"===r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Icon Label Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Width","ablocks"),attributeName:"itemIconWidth",attributeValue:x,setAttributes:i,isResponsive:!1,min:0,max:VC(x?.valueUnit||"px"),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,isInline:!1,attributeDefaultValue:CC.H1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Height","ablocks"),
3621 +attributeName:"itemIconHeight",attributeValue:M,setAttributes:i,isResponsive:!1,min:0,max:VC(M?.valueUnit||"px"),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,isInline:!1,attributeDefaultValue:CC.CS})]}),(0,I.jsx)(It,{margin:"30px"}),("Icon & Text"===r||"Text"===r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Text Label Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Text Width","ablocks"),attributeName:"itemTextWidth",attributeValue:v,setAttributes:i,isResponsive:!1,min:0,max:200,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,step:1,isInline:!1,attributeDefaultValue:CC.jM}),(0,I.jsx)(_t,{label:(0,L.__)("Text Height","ablocks"),attributeName:"itemTextHeight",attributeValue:k,setAttributes:i,isResponsive:!1,min:0,max:200,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,step:1,
3622 +isInline:!1,attributeDefaultValue:CC.YE})]})]}),style:(0,I.jsxs)(l().Fragment,{children:["Icon"!==r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:T,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:y,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:f,setAttributes:i,isResponsive:!0})]}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i,hasTransition:!1}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"shareItemShadow",attributeValue:e?.shareItemShadow||0,setAttributes:i}),(0,I.jsx)(It,{})]})})})]})})})}
3623 +OC.propTypes={};const YC={UU:"ablocks/social-shares",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},buttonType:{type:"string",default:"Facebook"},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square"},lists:{type:"array",default:[{id:0,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373",buttonType:"Facebook"},{id:1,text:"Twitter",icon:{viewBox:"0 0 512 512",
3611 3624 path:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},buttonBackgroundColor:"ablocks-social-share-item--twitter-bg",iconBackgroundColor:"ablocks-social-share-item--twitter-icon-bg",link:"https://twitter.com/intent/tweet?url=",isOpen:!1,
3612 3625 backgroundH:"#1da1f2",buttonType:"Twitter"},{id:2,text:"Telegram",icon:{viewBox:"0 0 448 512",path:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},buttonBackgroundColor:"ablocks-social-share-item--telegram-bg",iconBackgroundColor:"ablocks-social-share-item--telegram-icon-bg",link:"https://t.me/share/url?url=",isOpen:!1,backgroundH:"#007ab8",buttonType:"Telegram"}]},listIconsClasses:{type:"array",default:[]},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},windowsPopUp:{type:"boolean",default:!1},buttonBackground:{type:"string",default:""},buttonHover:{type:"string",default:""},shareBar:{type:"boolean",default:!0},shareBgColor:{type:"string",default:""},iconFillColor:{type:"string",default:"#ffffff"},shareTextBgColor:{type:"string",default:""},shareIconH:{
3613 3626 type:"string",default:""},shareTextH:{type:"string",default:""},backgroundColor:{type:"string",default:""},backgroundColorH:{type:"string",default:""},shareButtonIconColor:{type:"string",default:"#170a1b"},shareButtonIconColorH:{type:"string",default:""},belowItem:{type:"number",default:0},position:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},typographyGlobal:{type:"string",default:""},typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",
3614 3627 lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},horizontalAlignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},width:{type:"object",default:{widthType:"default",customWidth:"",customWidthUnit:"%"}},radius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",
@@ -3623,15 +3636,15 @@
3623 3636 imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",
3624 3637 externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",
3625 3638 xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{
3626 3639 mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{
3627 -type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function hC(t){const{attributes:e}=t,{block_id:i,lists:o,viewButton:a,shape:n,windowsPopUp:s,shareBar:r}=e,b=window.location.href;let c="";"rounded"===n?.toLowerCase()?c="ablocks-social-share-item--rounded":"circle"===n?.toLowerCase()&&(c="ablocks-social-share-item--circle");const d=t=>{s?(t=>{const e=(window.innerWidth-600)/2,i=(window.innerHeight-400)/2
3628 -;window.open(t,"_blank",`width=600,height=400,top=${i},left=${e}`)})(t):(t=>{window.open(t,"_blank")})(t)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:i,name:mC.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[r&&(0,I.jsx)("button",{"aria-label":(0,L.__)("Share on social media","ablocks"),title:(0,L.__)("Share on social media","ablocks"),className:"ablocks-social-share",children:dC}),o?.map((t,e)=>(0,I.jsxs)("a",{role:"link",tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&d(`${t?.link}${b}`)},style:{background:(0,Hs.qD)(t?.["backgroundColor"+t?.id])||"","--background-hover":(0,Hs.qD)(t["backgroundColorH"+t?.id])||(0,Hs.qD)(t.backgroundH)||""},className:`ablocks-social-share-item ${(0,Hs.qD)(t?.buttonBackgroundColor)} ${c} ${"Icon"===a&&"Circle"===n?"ablocks-social-share-item--circle-full":""}`,onClick:()=>d(`${t?.link}${b}`),children:["Text"!==a&&(0,I.jsx)("span",{style:{background:(0,
3629 -Hs.qD)(t?.["shareBgColor"+t?.id])||"","--hover-icon-bg-color":(0,Hs.qD)(t["shareIconH"+t?.id])||""},className:`ablocks-social-share-item--icon ${"Icon & Text"===a&&"Circle"!==n&&"Rounded"!==n?(0,Hs.qD)(t?.iconBackgroundColor):""} ${c} ${"Icon & Text"===a&&"Square"===n?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:t?.icon?.path,style:{fill:(0,Hs.qD)(t?.["iconFillColor"+t?.id])||"#ffffff"}})})}),"Icon"!==a&&(0,I.jsx)("span",{className:`ablocks-social-share-item--text ${c} ${"Icon & Text"===a&&"Square"===n?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:(0,Hs.qD)(t?.["shareTextBgColor"+t?.id])||"","--hover-text-bg-color":(0,Hs.qD)(t["shareTextH"+t?.id])||""},children:t?.text})]},e))]})})}const gC=(t,e="")=>{const{horizontalAlignment:i}=t,o={...(0,Eb.qD)({attributeValue:t.spaceBetween,attributeObjectKey:"value",
3630 -isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"gap",device:e})},a=t[`stack${e}`]||t?.stack,l=t[`verticalAlignment${e}`]||t?.verticalAlignment;return"vertical"===a?(o["flex-direction"]="column",l&&(o["align-items"]=l)):"horizontal"===a&&(o["flex-direction"]="row",i&&(o["justify-content"]=i)),{...o,...(0,Zt.qD)(t?.horizontalAlignment,"justify-content",e)}},fC=(t,e="")=>{const i={background:(0,Hs.qD)(t?.buttonBackground),...(0,Eb.qD)({attributeValue:t.shareSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:46,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.shareSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:46,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return{...(0,y.qD)(t?.border,e),...i}},yC=(t,e="")=>({background:(0,Hs.qD)(t?.buttonHover),...(0,y.a9)(t?.border,e)}),TC=(t,e="")=>({...(0,y.qD)(t?.itemBorder,e),...(0,H.qD)(t?.shareItemShadow)}),HC=(t,e="")=>({background:(0,
3631 -Hs.qD)(t?.backgroundH),...(0,y.a9)(t?.itemBorder,e),...(0,H.a9)(t?.shareItemShadow)}),MC=(t,e="")=>({...(0,Eb.qD)({attributeValue:t.shareItemIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:43,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}),xC=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemTextWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:80,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.itemTextHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:42,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})},o=(0,M.Zy)(t.typography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"";return{...i,...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,U.qD)(o,e,a),...(0,Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow)}};function kC(t){const{attributes:e}=t,{block_id:i,lists:o,shape:a,viewButton:n,windowsPopUp:s,shareBar:r}=e;let b=""
3632 -;return"rounded"===a?.toLowerCase()?b="ablocks-social-share-item--rounded":"circle"===a?.toLowerCase()&&(b="ablocks-social-share-item--circle"),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:mC.UU,attributes:e,children:[r&&(0,I.jsx)("button",{"aria-label":(0,L.__)("Share on social media","ablocks"),title:(0,L.__)("Share on social media","ablocks"),className:"ablocks-social-share",children:dC}),o?.map((t,e)=>(0,I.jsxs)("a",{"data-windowspopup":s,style:{background:(0,Hs.qD)(t?.["backgroundColor"+t?.id])||"","--background-hover":(0,Hs.qD)(t["backgroundColorH"+t?.id])||(0,Hs.qD)(t.backgroundH)||""},href:`${t?.link}`,target:"_blank",rel:"noopener noreferrer",className:`ablocks-social-share-item ${(0,Hs.qD)(t?.buttonBackgroundColor)} ${b} ${"Icon"===n&&"Circle"===a?"ablocks-social-share-item--circle-full":""}`,children:["Text"!==n&&(0,I.jsx)("span",{style:{background:(0,Hs.qD)(t?.["shareBgColor"+t?.id])||"","--hover-icon-bg-color":(0,Hs.qD)(t["shareIconH"+t?.id])||""},
3633 -className:`ablocks-social-share-item--icon ${"Icon & Text"===n&&"Circle"!==a&&"Rounded"!==a?(0,Hs.qD)(t?.iconBackgroundColor):""} ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:t?.icon?.path,style:{fill:(0,Hs.qD)(t?.["iconFillColor"+t?.id])||"#ffffff"}})})}),"Icon"!==n&&(0,I.jsx)("span",{className:`ablocks-social-share-item--text ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:(0,Hs.qD)(t?.["shareTextBgColor"+t?.id])||"","--hover-text-bg-color":(0,Hs.qD)(t["shareTextH"+t?.id])||""},children:t?.text})]},e))]})})}kC.propTypes={};const vC={UU:"ablocks/social-shares",uK:{block_id:{type:"string",default:""},buttonType:{type:"string",default:"Facebook"},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square"
3640 +type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function XC(t){const{attributes:e}=t,{block_id:i,lists:o,viewButton:a,shape:n,windowsPopUp:s,shareBar:r}=e,b=window.location.href;let c="";"rounded"===n?.toLowerCase()?c="ablocks-social-share-item--rounded":"circle"===n?.toLowerCase()&&(c="ablocks-social-share-item--circle");const d=t=>{s?(t=>{const e=(window.innerWidth-600)/2,i=(window.innerHeight-400)/2
3641 +;window.open(t,"_blank",`width=600,height=400,top=${i},left=${e}`)})(t):(t=>{window.open(t,"_blank")})(t)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:i,name:YC.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[r&&(0,I.jsx)("button",{"aria-label":(0,L.__)("Share on social media","ablocks"),title:(0,L.__)("Share on social media","ablocks"),className:"ablocks-social-share",children:IC}),o?.map((t,e)=>(0,I.jsxs)("a",{role:"link",tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&d(`${t?.link}${b}`)},style:{background:(0,Hs.qD)(t?.["backgroundColor"+t?.id])||"","--background-hover":(0,Hs.qD)(t["backgroundColorH"+t?.id])||(0,Hs.qD)(t.backgroundH)||""},className:`ablocks-social-share-item ${(0,Hs.qD)(t?.buttonBackgroundColor)} ${c} ${"Icon"===a&&"Circle"===n?"ablocks-social-share-item--circle-full":""}`,onClick:()=>d(`${t?.link}${b}`),children:["Text"!==a&&(0,I.jsx)("span",{style:{background:(0,
3642 +Hs.qD)(t?.["shareBgColor"+t?.id])||"","--hover-icon-bg-color":(0,Hs.qD)(t["shareIconH"+t?.id])||""},className:`ablocks-social-share-item--icon ${"Icon & Text"===a&&"Circle"!==n&&"Rounded"!==n?(0,Hs.qD)(t?.iconBackgroundColor):""} ${c} ${"Icon & Text"===a&&"Square"===n?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:t?.icon?.path,style:{fill:(0,Hs.qD)(t?.["iconFillColor"+t?.id])||"#ffffff"}})})}),"Icon"!==a&&(0,I.jsx)("span",{className:`ablocks-social-share-item--text ${c} ${"Icon & Text"===a&&"Square"===n?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:(0,Hs.qD)(t?.["shareTextBgColor"+t?.id])||"","--hover-text-bg-color":(0,Hs.qD)(t["shareTextH"+t?.id])||""},children:t?.text})]},e))]})})}const BC=(t,e="")=>{const{horizontalAlignment:i}=t,o={...(0,Eb.qD)({attributeValue:t.spaceBetween,attributeObjectKey:"value",
3643 +isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"gap",device:e})},a=t[`stack${e}`]||t?.stack,l=t[`verticalAlignment${e}`]||t?.verticalAlignment;return"vertical"===a?(o["flex-direction"]="column",l&&(o["align-items"]=l)):"horizontal"===a&&(o["flex-direction"]="row",i&&(o["justify-content"]=i)),{...o,...(0,Zt.qD)(t?.horizontalAlignment,"justify-content",e)}},EC=(t,e="")=>{const i={background:(0,Hs.qD)(t?.buttonBackground),...(0,Eb.qD)({attributeValue:t.shareSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:46,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.shareSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:46,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return{...(0,y.qD)(t?.border,e),...i}},FC=(t,e="")=>({background:(0,Hs.qD)(t?.buttonHover),...(0,y.a9)(t?.border,e)}),qC=(t,e="")=>({...(0,y.qD)(t?.itemBorder,e),...(0,H.qD)(t?.shareItemShadow)}),$C=(t,e="")=>({background:(0,
3644 +Hs.qD)(t?.backgroundH),...(0,y.a9)(t?.itemBorder,e),...(0,H.a9)(t?.shareItemShadow)}),GC=(t,e="")=>({...(0,Eb.qD)({attributeValue:t.shareItemIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:43,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}),ZC=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemTextWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:80,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.itemTextHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:42,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})},o=(0,M.Zy)(t.typography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"";return{...i,...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,U.qD)(o,e,a),...(0,Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow)}};function KC(t){const{attributes:e}=t,{block_id:i,lists:o,shape:a,viewButton:n,windowsPopUp:s,shareBar:r}=e;let b=""
3645 +;return"rounded"===a?.toLowerCase()?b="ablocks-social-share-item--rounded":"circle"===a?.toLowerCase()&&(b="ablocks-social-share-item--circle"),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:YC.UU,attributes:e,children:[r&&(0,I.jsx)("button",{"aria-label":(0,L.__)("Share on social media","ablocks"),title:(0,L.__)("Share on social media","ablocks"),className:"ablocks-social-share",children:IC}),o?.map((t,e)=>(0,I.jsxs)("a",{"data-windowspopup":s,style:{background:(0,Hs.qD)(t?.["backgroundColor"+t?.id])||"","--background-hover":(0,Hs.qD)(t["backgroundColorH"+t?.id])||(0,Hs.qD)(t.backgroundH)||""},href:`${t?.link}`,target:"_blank",rel:"noopener noreferrer",className:`ablocks-social-share-item ${(0,Hs.qD)(t?.buttonBackgroundColor)} ${b} ${"Icon"===n&&"Circle"===a?"ablocks-social-share-item--circle-full":""}`,children:["Text"!==n&&(0,I.jsx)("span",{style:{background:(0,Hs.qD)(t?.["shareBgColor"+t?.id])||"","--hover-icon-bg-color":(0,Hs.qD)(t["shareIconH"+t?.id])||""},
3646 +className:`ablocks-social-share-item--icon ${"Icon & Text"===n&&"Circle"!==a&&"Rounded"!==a?(0,Hs.qD)(t?.iconBackgroundColor):""} ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:t?.icon?.path,style:{fill:(0,Hs.qD)(t?.["iconFillColor"+t?.id])||"#ffffff"}})})}),"Icon"!==n&&(0,I.jsx)("span",{className:`ablocks-social-share-item--text ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:(0,Hs.qD)(t?.["shareTextBgColor"+t?.id])||"","--hover-text-bg-color":(0,Hs.qD)(t["shareTextH"+t?.id])||""},children:t?.text})]},e))]})})}KC.propTypes={};const JC={UU:"ablocks/social-shares",uK:{block_id:{type:"string",default:""},buttonType:{type:"string",default:"Facebook"},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square"
3634 3647 },lists:{type:"array",default:[{id:0,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373",buttonType:"Facebook"},{id:1,text:"Twitter",icon:{viewBox:"0 0 512 512",
3635 3648 path:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},buttonBackgroundColor:"ablocks-social-share-item--twitter-bg",iconBackgroundColor:"ablocks-social-share-item--twitter-icon-bg",link:"https://twitter.com/intent/tweet?url=",isOpen:!1,
3636 3649 backgroundH:"#1da1f2",buttonType:"Twitter"},{id:2,text:"Telegram",icon:{viewBox:"0 0 448 512",path:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},buttonBackgroundColor:"ablocks-social-share-item--telegram-bg",iconBackgroundColor:"ablocks-social-share-item--telegram-icon-bg",link:"https://t.me/share/url?url=",isOpen:!1,backgroundH:"#007ab8",buttonType:"Telegram"}]},listIconsClasses:{type:"array",default:[]},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},windowsPopUp:{type:"boolean",default:!1},buttonBackground:{type:"string",default:""},buttonHover:{type:"string",default:""},shareBar:{type:"boolean",default:!0},shareBgColor:{type:"string",default:""},iconFillColor:{type:"string",default:"#ffffff"},shareTextBgColor:{type:"string",default:""},shareIconH:{
3637 3650 type:"string",default:""},shareTextH:{type:"string",default:""},backgroundColor:{type:"string",default:""},backgroundColorH:{type:"string",default:""},shareButtonIconColor:{type:"string",default:"#170a1b"},shareButtonIconColorH:{type:"string",default:""},belowItem:{type:"number",default:0},position:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",
@@ -3646,16 +3659,16 @@
3646 3659 backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",
3647 3660 imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,
3648 3661 rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",
3649 3662 offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",
3650 -xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function _C(t){const{attributes:e}=t,{block_id:i,lists:o,shape:a,viewButton:n,windowsPopUp:s,shareBar:r}=e;let b=""
3651 -;return"rounded"===a?.toLowerCase()?b="ablocks-social-share-item--rounded":"circle"===a?.toLowerCase()&&(b="ablocks-social-share-item--circle"),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:vC.UU,attributes:e,children:[r&&(0,I.jsx)("button",{className:"ablocks-social-share",children:dC}),o?.map((t,e)=>(0,I.jsxs)("a",{"data-windowspopup":s,style:{background:t?.["backgroundColor"+t?.id]||"","--background-hover":t["backgroundColorH"+t?.id]||t.backgroundH||""},href:`${t?.link}`,target:"_blank",rel:"noopener noreferrer",className:`ablocks-social-share-item ${t?.buttonBackgroundColor} ${b} ${"Icon"===n&&"Circle"===a?"ablocks-social-share-item--circle-full":""}`,children:["Text"!==n&&(0,I.jsx)("span",{style:{background:t?.["shareBgColor"+t?.id]||"","--hover-icon-bg-color":t["shareIconH"+t?.id]||""},
3652 -className:`ablocks-social-share-item--icon ${"Icon & Text"===n&&"Circle"!==a&&"Rounded"!==a?t?.iconBackgroundColor:""} ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:t?.icon?.path,style:{fill:t?.["iconFillColor"+t?.id]||"#ffffff"}})})}),"Icon"!==n&&(0,I.jsx)("span",{className:`ablocks-social-share-item--text ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:t?.["shareTextBgColor"+t?.id]||"","--hover-text-bg-color":t["shareTextH"+t?.id]||""},children:t?.text})]},e))]})})}function RC(t){const{attributes:e,setAttributes:i}=t,{alignment:o,link:a,svgDrawColor:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,
3663 +xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function QC(t){const{attributes:e}=t,{block_id:i,lists:o,shape:a,viewButton:n,windowsPopUp:s,shareBar:r}=e;let b=""
3664 +;return"rounded"===a?.toLowerCase()?b="ablocks-social-share-item--rounded":"circle"===a?.toLowerCase()&&(b="ablocks-social-share-item--circle"),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:JC.UU,attributes:e,children:[r&&(0,I.jsx)("button",{className:"ablocks-social-share",children:IC}),o?.map((t,e)=>(0,I.jsxs)("a",{"data-windowspopup":s,style:{background:t?.["backgroundColor"+t?.id]||"","--background-hover":t["backgroundColorH"+t?.id]||t.backgroundH||""},href:`${t?.link}`,target:"_blank",rel:"noopener noreferrer",className:`ablocks-social-share-item ${t?.buttonBackgroundColor} ${b} ${"Icon"===n&&"Circle"===a?"ablocks-social-share-item--circle-full":""}`,children:["Text"!==n&&(0,I.jsx)("span",{style:{background:t?.["shareBgColor"+t?.id]||"","--hover-icon-bg-color":t["shareIconH"+t?.id]||""},
3665 +className:`ablocks-social-share-item--icon ${"Icon & Text"===n&&"Circle"!==a&&"Rounded"!==a?t?.iconBackgroundColor:""} ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:t?.icon?.path,style:{fill:t?.["iconFillColor"+t?.id]||"#ffffff"}})})}),"Icon"!==n&&(0,I.jsx)("span",{className:`ablocks-social-share-item--text ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:t?.["shareTextBgColor"+t?.id]||"","--hover-text-bg-color":t["shareTextH"+t?.id]||""},children:t?.text})]},e))]})})}function tA(t){const{attributes:e,setAttributes:i}=t,{alignment:o,link:a,svgDrawColor:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,
3653 3666 docs_url:"https://ablocks.pro/docs/ablocks-svg-draw-block/",children:(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0,viewSupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Animation Duration","ablocks"),min:1,max:30,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.duration||0,attributeName:"duration",setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}]}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:a,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,
3654 -I.jsx)(Ws,{label:(0,L.__)("Stroke color","ablocks"),attributeName:"svgDrawColor",attributeValue:n,setAttributes:i}),(0,I.jsx)(Bd,{attributes:e,setAttributes:i})]})})})})})})}_C.propTypes={},(0,M.xV)(mC.UU)&&(0,o.registerBlockType)(mC.UU,{title:(0,L.__)("Social Shares","ablocks"),attributes:mC.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}.ablocks-block--social-shares .ablocks-block-container",gC(i),gC(i,"Tablet"),gC(i,"Mobile"),e(t=>gC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-social-share",fC(i),fC(i,"Table"),fC(i,"Mobile")),
3655 -t.addClassStyles("{{WRAPPER}} .ablocks-social-share:hover",yC(i),yC(i,"Table"),yC(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-social-share > .ablocks-svg-icon",((t,e="")=>{const{shareButtonIconColor:i}=t,o={...(0,Eb.qD)({attributeValue:t.shareIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.shareIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return i&&(o.fill=`${(0,Hs.qD)(i)} !important`),{...o}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share > .ablocks-svg-icon:hover",(t=>{const e={};return t?.shareButtonIconColorH&&(e.fill=`${(0,Hs.qD)(t?.shareButtonIconColorH)} !important`),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item",TC(i),TC(i,"Tablet"),TC(i,"Mobile"),e(t=>TC(i,t))),
3656 -t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item:hover",HC(i),HC(i,"Tablet"),HC(i,"Mobile"),e(t=>HC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--icon",((t,e="")=>({...{...(0,Eb.qD)({attributeValue:t.itemIconWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:43,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.itemIconHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:42,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--icon>.ablocks-svg-icon",MC(i),MC(i,"Tablet"),MC(i,"Mobile"),e(t=>MC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--text",xC(i),xC(i,"Tablet"),xC(i,"Mobile"),e(t=>xC(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(pC,{...t}),(0,I.jsx)(hC,{...t})]})},save:kC,icon:(0,I.jsx)("span",{
3657 -className:"ablocks-icon ablocks-icon--social-share"}),deprecated:[{attributes:vC.uK,save:_C}]}),RC.propTypes={};const SC={UU:"ablocks/svg-draw",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},svgDrawColor:{type:"string",default:"gray"},duration:{type:"number",default:5},iconSvgPath:{type:"string",
3667 +I.jsx)(Ws,{label:(0,L.__)("Stroke color","ablocks"),attributeName:"svgDrawColor",attributeValue:n,setAttributes:i}),(0,I.jsx)(Bd,{attributes:e,setAttributes:i})]})})})})})})}QC.propTypes={},(0,M.xV)(YC.UU)&&(0,o.registerBlockType)(YC.UU,{title:(0,L.__)("Social Shares","ablocks"),attributes:YC.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}.ablocks-block--social-shares .ablocks-block-container",BC(i),BC(i,"Tablet"),BC(i,"Mobile"),e(t=>BC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-social-share",EC(i),EC(i,"Table"),EC(i,"Mobile")),
3668 +t.addClassStyles("{{WRAPPER}} .ablocks-social-share:hover",FC(i),FC(i,"Table"),FC(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-social-share > .ablocks-svg-icon",((t,e="")=>{const{shareButtonIconColor:i}=t,o={...(0,Eb.qD)({attributeValue:t.shareIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.shareIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return i&&(o.fill=`${(0,Hs.qD)(i)} !important`),{...o}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share > .ablocks-svg-icon:hover",(t=>{const e={};return t?.shareButtonIconColorH&&(e.fill=`${(0,Hs.qD)(t?.shareButtonIconColorH)} !important`),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item",qC(i),qC(i,"Tablet"),qC(i,"Mobile"),e(t=>qC(i,t))),
3669 +t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item:hover",$C(i),$C(i,"Tablet"),$C(i,"Mobile"),e(t=>$C(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--icon",((t,e="")=>({...{...(0,Eb.qD)({attributeValue:t.itemIconWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:43,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.itemIconHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:42,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--icon>.ablocks-svg-icon",GC(i),GC(i,"Tablet"),GC(i,"Mobile"),e(t=>GC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--text",ZC(i),ZC(i,"Tablet"),ZC(i,"Mobile"),e(t=>ZC(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(OC,{...t}),(0,I.jsx)(XC,{...t})]})},save:KC,icon:(0,I.jsx)("span",{
3670 +className:"ablocks-icon ablocks-icon--social-share"}),deprecated:[{attributes:JC.uK,save:QC}]}),tA.propTypes={};const eA={UU:"ablocks/svg-draw",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},svgDrawColor:{type:"string",default:"gray"},duration:{type:"number",default:5},iconSvgPath:{type:"string",
3658 3671 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
3659 3672 },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",
3660 3673 rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},
3661 3674 iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",
@@ -3665,10 +3678,10 @@
3665 3678 imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",
3666 3679 externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",
3667 3680 xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{
3668 3681 mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{
3669 -type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function WC(t){const{attributes:e,setAttributes:i}=t,{alignment:o}=e,{block_id:a,link:n}=e,{linkTarget:s,noFollow:r,keyValue:b,href:c}=n||{};let d={};return s&&(d.target="_blank"),d.rel=r?s?"nofollow noreferrer noopener":"nofollow":"noopener",b&&(d={...d,...(0,wb.jM)(b)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsx)(Yb.A,{
3670 -blockId:a,name:SC.UU,attributes:e,typography:[],children:c?(0,I.jsx)("a",{...d,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})]})}WC.propTypes={};const PC=(t={},e="")=>{const{alignment:i={}}=t,o={display:"flex"};return i["value"+e]&&(o["justify-content"]=i["value"+e]),o},UC=t=>{const e={};return t.duration&&(e["animation-duration"]=`${t.duration}s !important`),{stroke:(0,Hs.qD)(t?.svgDrawColor),...e}};function jC(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:SC.UU,attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}jC.propTypes={};const wC={UU:"ablocks/svg-draw",uK:{block_id:{type:"string",default:""},svgDrawColor:{
3682 +type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function iA(t){const{attributes:e,setAttributes:i}=t,{alignment:o}=e,{block_id:a,link:n}=e,{linkTarget:s,noFollow:r,keyValue:b,href:c}=n||{};let d={};return s&&(d.target="_blank"),d.rel=r?s?"nofollow noreferrer noopener":"nofollow":"noopener",b&&(d={...d,...(0,wb.jM)(b)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsx)(Yb.A,{
3683 +blockId:a,name:eA.UU,attributes:e,typography:[],children:c?(0,I.jsx)("a",{...d,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})]})}iA.propTypes={};const oA=(t={},e="")=>{const{alignment:i={}}=t,o={display:"flex"};return i["value"+e]&&(o["justify-content"]=i["value"+e]),o},aA=t=>{const e={};return t.duration&&(e["animation-duration"]=`${t.duration}s !important`),{stroke:(0,Hs.qD)(t?.svgDrawColor),...e}};function lA(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:eA.UU,attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}lA.propTypes={};const nA={UU:"ablocks/svg-draw",uK:{block_id:{type:"string",default:""},svgDrawColor:{
3671 3684 type:"string",default:"gray"},duration:{type:"number",default:5},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",
3672 3685 default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{
3673 3686 value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",
3674 3687 leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",
@@ -3677,37 +3690,37 @@
3677 3690 imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",
3678 3691 imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",
3679 3692 skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",
3680 3693 xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",
3681 -color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function zC(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:wC.UU,attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}zC.propTypes={},(0,M.xV)(SC.UU)&&(0,o.registerBlockType)(SC.UU,{title:(0,L.__)("SVG Draw","ablocks"),attributes:SC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function(t){
3682 -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-container",PC(i),PC(i,"Tablet"),PC(i,"Mobile"),e(t=>PC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} svg > path",UC(i),UC(i),UC(i),e(t=>UC(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,
3683 -Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(RC,{...t}),(0,I.jsx)(WC,{...t})]})},save:jC,deprecated:[{attributes:wC.uK,save:zC}]});const CC=t=>{const{attributes:e,setAttributes:i}=t,{allowHeading:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowHeading"})},AC=t=>{const{attributes:e,setAttributes:i}=t,{allowSubHeading:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,
3684 -attributeValue:o,setAttributes:i,attributeName:"allowSubHeading"})},LC=t=>{const{attributes:e,setAttributes:i}=t,{allowDes:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowDes"})},DC=t=>{const{attributes:e,setAttributes:i}=t,{allowRating:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowRating"})},NC=t=>{const{attributes:e,setAttributes:i}=t,{allowButton:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowButton"})},IC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{badgeText:a,badgePosition:l,badgeSize:n,badgeTextShadow:s,badgeTypography:r,badgeTextColor:b,badgeTextColorH:c,badgeBackground:d,badgeBackgroundH:u,badgePadding:p}=e;return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Badge","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),
3694 +color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function sA(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:nA.UU,attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}sA.propTypes={},(0,M.xV)(eA.UU)&&(0,o.registerBlockType)(eA.UU,{title:(0,L.__)("SVG Draw","ablocks"),attributes:eA.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function(t){
3695 +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-container",oA(i),oA(i,"Tablet"),oA(i,"Mobile"),e(t=>oA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} svg > path",aA(i),aA(i),aA(i),e(t=>aA(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,
3696 +Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(tA,{...t}),(0,I.jsx)(iA,{...t})]})},save:lA,deprecated:[{attributes:nA.uK,save:sA}]});const rA=t=>{const{attributes:e,setAttributes:i}=t,{allowHeading:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowHeading"})},bA=t=>{const{attributes:e,setAttributes:i}=t,{allowSubHeading:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,
3697 +attributeValue:o,setAttributes:i,attributeName:"allowSubHeading"})},cA=t=>{const{attributes:e,setAttributes:i}=t,{allowDes:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowDes"})},dA=t=>{const{attributes:e,setAttributes:i}=t,{allowRating:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowRating"})},uA=t=>{const{attributes:e,setAttributes:i}=t,{allowButton:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowButton"})},pA=t=>{const{attributes:e,setAttributes:i,context:o}=t,{badgeText:a,badgePosition:l,badgeSize:n,badgeTextShadow:s,badgeTypography:r,badgeTextColor:b,badgeTextColorH:c,badgeBackground:d,badgeBackgroundH:u,badgePadding:p}=e;return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Badge","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),
3685 3698 attributeName:"badgePosition",attributeValue:l,setAttributes:i,options:[{label:"top-left",value:"top-left",icon:"arrow-left"},{label:"bottom-left",value:"bottom-left",icon:"arrow-down"},{label:"top-right",value:"top-right",icon:"arrow-right"},{label:"bottom-right",value:"bottom-right",icon:"arrow-down"}],isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"badgeText",attributeValue:a,setAttributes:i,isInline:!1,context:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"}],isResponsive:!1,attributeValue:n||"sm",attributeName:"badgeSize",setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"badgeTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,
3686 3699 L.__)("Text Shadow","ablocks"),attributeName:"badgeTextShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"badgeTextColor",attributeValue:b||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"badgeBackground",attributeValue:d||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"badgeTextColorH",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"badgeBackgroundH",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.badgeTransition||0,
3687 -attributeName:"badgeTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"badgeBorder",attributeValue:e?.badgeBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"badgePadding",attributeValue:p,setAttributes:i})]})})})})},VC=t=>{const{attributes:e,setAttributes:i}=t,{iconLink:o,iconPrimaryColorH:a,iconBackgroundColorH:l,iconMargin:n}=e;return(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"icon",attributes:e,setAttributes:i}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"iconLink",attributeValue:o,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"iconMargin",
3688 -attributeValue:n,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconPrimaryColorH",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"iconBackgroundColorH",attributeValue:l,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.iconTransition||0,attributeName:"iconTransition",setAttributes:i})]})})]})})})},OC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{heading:a,headingTag:l,headingTypography:n,headingTextShadow:s,headingTextStroke:r,headingTextColor:b,headingTextColorHover:c,headingMargin:d}=e;return(0,I.jsx)(V,{title:(0,L.__)("Heading","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,
3700 +attributeName:"badgeTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"badgeBorder",attributeValue:e?.badgeBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"badgePadding",attributeValue:p,setAttributes:i})]})})})})},mA=t=>{const{attributes:e,setAttributes:i}=t,{iconLink:o,iconPrimaryColorH:a,iconBackgroundColorH:l,iconMargin:n}=e;return(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"icon",attributes:e,setAttributes:i}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"iconLink",attributeValue:o,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"iconMargin",
3701 +attributeValue:n,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconPrimaryColorH",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"iconBackgroundColorH",attributeValue:l,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.iconTransition||0,attributeName:"iconTransition",setAttributes:i})]})})]})})})},hA=t=>{const{attributes:e,setAttributes:i,context:o}=t,{heading:a,headingTag:l,headingTypography:n,headingTextShadow:s,headingTextStroke:r,headingTextColor:b,headingTextColorHover:c,headingMargin:d}=e;return(0,I.jsx)(V,{title:(0,L.__)("Heading","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,
3689 3702 L.__)("Title","ablocks"),attributeName:"heading",attributeValue:a,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks"),context:o}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"headingTag",attributeValue:l,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"headingTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"headingTextShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"headingTextStroke",attributeValue:r,setAttributes:i,isResponsive:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"headingTextColor",attributeValue:b,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{
3690 -label:(0,L.__)("Color","ablocks"),attributeName:"headingTextColorHover",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.headingTransition||0,attributeName:"headingTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"headingMargin",attributeValue:d,setAttributes:i})]})})})},YC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{subHeading:a,subHeadingTag:l,subHeadingTypography:n,subHeadingTextShadow:s,subHeadingTextStroke:r,subHeadingTextColor:b,subHeadingTextColorHover:c,subHeadingMargin:d}=e;return(0,I.jsx)(V,{title:(0,L.__)("Sub Heading","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"subHeading",attributeValue:a,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks"),context:o}),(0,
3703 +label:(0,L.__)("Color","ablocks"),attributeName:"headingTextColorHover",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.headingTransition||0,attributeName:"headingTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"headingMargin",attributeValue:d,setAttributes:i})]})})})},gA=t=>{const{attributes:e,setAttributes:i,context:o}=t,{subHeading:a,subHeadingTag:l,subHeadingTypography:n,subHeadingTextShadow:s,subHeadingTextStroke:r,subHeadingTextColor:b,subHeadingTextColorHover:c,subHeadingMargin:d}=e;return(0,I.jsx)(V,{title:(0,L.__)("Sub Heading","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"subHeading",attributeValue:a,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks"),context:o}),(0,
3691 3704 I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"subHeadingTag",attributeValue:l,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"subHeadingTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"subHeadingTextShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"subHeadingTextStroke",attributeValue:r,setAttributes:i,isResponsive:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subHeadingTextColor",attributeValue:b,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subHeadingTextColorHover",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,
3692 -L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.subHeadingTransition||0,attributeName:"subHeadingTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"subHeadingMargin",attributeValue:d,setAttributes:i})]})})})},XC=t=>{const{attributes:e,setAttributes:i}=t,{desSize:o,desTextShadow:a,desTypography:l,desTextColor:n,desTextColorHover:s,des:r,desTextStroke:b,desDropCaps:c,desDropCapsTextColor:d,desMargin:u}=e;return(0,I.jsx)(V,{title:(0,L.__)("Description","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"des",attributeValue:r,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Drop caps","ablocks"),attributeValue:e.desDropCaps,setAttributes:i,attributeName:"desDropCaps"}),c&&(0,
3705 +L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.subHeadingTransition||0,attributeName:"subHeadingTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"subHeadingMargin",attributeValue:d,setAttributes:i})]})})})},fA=t=>{const{attributes:e,setAttributes:i}=t,{desSize:o,desTextShadow:a,desTypography:l,desTextColor:n,desTextColorHover:s,des:r,desTextStroke:b,desDropCaps:c,desDropCapsTextColor:d,desMargin:u}=e;return(0,I.jsx)(V,{title:(0,L.__)("Description","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"des",attributeValue:r,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Drop caps","ablocks"),attributeValue:e.desDropCaps,setAttributes:i,attributeName:"desDropCaps"}),c&&(0,
3693 3706 I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"desDropCapsTextColor",attributeValue:d,setAttributes:i})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"desTypography",attributeValue:l,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"desTextShadow",attributeValue:a,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:b,setAttributes:i,isResponsive:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"desTextColor",attributeValue:n,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"desTextColorHover",attributeValue:s,setAttributes:i}),(0,I.jsx)(_t,{label:(0,
3694 -L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.desTransition||0,attributeName:"desTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"desMargin",attributeValue:u,setAttributes:i})]})})})};var BC=i(34415);const EC=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}},FC=t=>{const{attributes:e,setAttributes:i}=t,{ratingScale:o,ratingColor:a,ratingColorHover:l,ratingUnmarkedColor:n,ratingNumberPosition:s,ratingUnmarkedColorHover:r,showRatingNumber:b,showCount:c,spacing:d,ratingNumberColor:u,ratingNumberTypography:p,rating:m,ratingNumberGap:h,ratingMargin:g}=e,f=[{label:(0,L.__)("0 to 1","ablocks"),value:1},{label:(0,L.__)("0 to 5","ablocks"),value:5},{label:(0,L.__)("0 to 10","ablocks"),value:10}],y=lt(),T=(0,M.Ic)(h,"valueUnit",y);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{title:(0,L.__)("Start Rating","ablocks"),initialOpen:!1,
3707 +L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.desTransition||0,attributeName:"desTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"desMargin",attributeValue:u,setAttributes:i})]})})})};var yA=i(34415);const TA=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}},HA=t=>{const{attributes:e,setAttributes:i}=t,{ratingScale:o,ratingColor:a,ratingColorHover:l,ratingUnmarkedColor:n,ratingNumberPosition:s,ratingUnmarkedColorHover:r,showRatingNumber:b,showCount:c,spacing:d,ratingNumberColor:u,ratingNumberTypography:p,rating:m,ratingNumberGap:h,ratingMargin:g}=e,f=[{label:(0,L.__)("0 to 1","ablocks"),value:1},{label:(0,L.__)("0 to 5","ablocks"),value:5},{label:(0,L.__)("0 to 10","ablocks"),value:10}],y=lt(),T=(0,M.Ic)(h,"valueUnit",y);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{title:(0,L.__)("Start Rating","ablocks"),initialOpen:!1,
3695 3708 children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Scale","ablocks"),options:f,attributeName:"ratingScale",attributeValue:o,onChangeHandler:t=>{i({ratingScale:t,rating:e?.rating>t?t:e?.rating})}}),(0,I.jsx)(As,{label:(0,L.__)("Rating","ablocks"),attributeName:"rating",attributeValue:m,step:.1,setAttributes:i,disableDynamicContent:!1}),(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"starIcon",attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Rating number","ablocks"),attributeName:"showRatingNumber",attributeValue:b,setAttributes:i,isResponsive:!1}),b&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Total Rating number","ablocks"),attributeName:"showCount",attributeValue:c,setAttributes:i,isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"spacing",attributeValue:d,setAttributes:i,
3696 -attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1,attributeDefaultValue:BC.CB,autoSyncRange:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"ratingMargin",attributeValue:g,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Marked Color","ablocks"),attributeName:"ratingColor",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColor",attributeValue:n,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Marked Color","ablocks"),attributeName:"ratingColorHover",attributeValue:l,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColorHover",attributeValue:r,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),
3697 -min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.ratingTransition||0,attributeName:"ratingTransition",setAttributes:i})]})})]})})}),b&&(0,I.jsx)(V,{title:(0,L.__)("Rating Number","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,attributeName:"ratingNumberPosition",attributeObjectKey:"ratingNumberPosition",attributeValue:s,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"ratingNumberGap",attributeObjectKey:"value",attributeValue:h,setAttributes:i,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:1,max:EC(T),isInline:!1,hasUnit:!0,attributeDefaultValue:BC.ZO,autoSyncRange:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,
3698 -I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"ratingNumberColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ratingNumberTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})},qC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{btnText:a,btnSize:l,btnTextShadow:n,btnTypography:s,btnTextColor:r,btnTextColorH:b,btnBackground:c,btnBackgroundH:d,btnPadding:u,btnMargin:p,btnIconPosition:m,btnLink:h,btnShowIcon:g}=e;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{title:(0,L.__)("Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"btnText",attributeValue:a,setAttributes:i,isInline:!1,context:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,
3709 +attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1,attributeDefaultValue:yA.CB,autoSyncRange:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"ratingMargin",attributeValue:g,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Marked Color","ablocks"),attributeName:"ratingColor",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColor",attributeValue:n,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Marked Color","ablocks"),attributeName:"ratingColorHover",attributeValue:l,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColorHover",attributeValue:r,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),
3710 +min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.ratingTransition||0,attributeName:"ratingTransition",setAttributes:i})]})})]})})}),b&&(0,I.jsx)(V,{title:(0,L.__)("Rating Number","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,attributeName:"ratingNumberPosition",attributeObjectKey:"ratingNumberPosition",attributeValue:s,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"ratingNumberGap",attributeObjectKey:"value",attributeValue:h,setAttributes:i,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:1,max:TA(T),isInline:!1,hasUnit:!0,attributeDefaultValue:yA.ZO,autoSyncRange:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,
3711 +I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"ratingNumberColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ratingNumberTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})},MA=t=>{const{attributes:e,setAttributes:i,context:o}=t,{btnText:a,btnSize:l,btnTextShadow:n,btnTypography:s,btnTextColor:r,btnTextColorH:b,btnBackground:c,btnBackgroundH:d,btnPadding:u,btnMargin:p,btnIconPosition:m,btnLink:h,btnShowIcon:g}=e;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{title:(0,L.__)("Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"btnText",attributeValue:a,setAttributes:i,isInline:!1,context:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,
3699 3712 L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:l||"sm",attributeName:"btnSize",setAttributes:i}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"btnLink",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"btnShowIcon",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"btnTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"btnTextShadow",attributeValue:n,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
3700 3713 attributeName:"btnTextColor",attributeValue:r||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"btnBackground",attributeValue:c||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"btnTextColorH",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"btnBackgroundH",attributeValue:d,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.btnTransition||0,attributeName:"btnTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"btnBorder",attributeValue:e?.btnBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,
3701 3714 attributeName:"btnPadding",attributeValue:u,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"btnMargin",attributeValue:p,setAttributes:i})]})})}),g&&(0,I.jsx)(V,{title:(0,L.__)("Button Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"btnIcon",attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:m||"left",attributeName:"btnIconPosition",setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,attributePrefix:"btnIcon",isHoverColor:!0,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,
3702 -isResponsive:!1,attributeName:"btnIconSpace",attributeValue:e?.btnIconSpace,setAttributes:i,attributeObjectKey:"iconSpace"})]})})})]})};var $C=i(91353);function GC(t){const{attributes:e,setAttributes:i}=t,{iconPlacement:o,iconGap:a,contentGap:n,blockElements:s,alignment:r,iconAlignment:b,allowButtonHover:c,allowBadge:d,allowIcon:u,allowBadgeHover:p,allowHeading:m,allowSubHeading:h,allowDes:g,allowRating:f,allowButton:y}=e,T=e=>{switch(e){case 0:return(0,I.jsx)(CC,{...t});case 1:return(0,I.jsx)(AC,{...t});case 2:return(0,I.jsx)(LC,{...t});case 3:return(0,I.jsx)(DC,{...t});case 4:return(0,I.jsx)(NC,{...t})}};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-flip-box-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Info Box","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:[e.allowIcon?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{allowDeselect:!0,
3703 -isResponsive:!0,label:(0,L.__)("Icon placement","ablocks"),options:[{value:"row",label:(0,L.__)("Left","ablocks")},{value:"column",label:(0,L.__)("Top","ablocks")},{value:"row-reverse",label:(0,L.__)("Right","ablocks")}],attributeName:"iconPlacement",attributeValue:o,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Icon Alignment","ablocks"),options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"iconAlignment",attributeValue:b,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"iconGap",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:$C.AZ})]}):null,(0,I.jsx)(Jt,{label:(0,L.__)("Content Alignment","ablocks"),options:[{label:"flex-start",
3704 -value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:r,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Content Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"contentGap",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:$C.c8}),y?(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Button hover","ablocks"),attributeValue:c,setAttributes:i,attributeName:"allowButtonHover"}):null,(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Badge","ablocks"),attributeValue:d,setAttributes:i,attributeName:"allowBadge"}),d?(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Badge hover","ablocks"),attributeValue:p,setAttributes:i,attributeName:"allowBadgeHover"}):null,(0,I.jsx)(Ot,{isResponsive:!1,
3715 +isResponsive:!1,attributeName:"btnIconSpace",attributeValue:e?.btnIconSpace,setAttributes:i,attributeObjectKey:"iconSpace"})]})})})]})};var xA=i(91353);function kA(t){const{attributes:e,setAttributes:i}=t,{iconPlacement:o,iconGap:a,contentGap:n,blockElements:s,alignment:r,iconAlignment:b,allowButtonHover:c,allowBadge:d,allowIcon:u,allowBadgeHover:p,allowHeading:m,allowSubHeading:h,allowDes:g,allowRating:f,allowButton:y}=e,T=e=>{switch(e){case 0:return(0,I.jsx)(rA,{...t});case 1:return(0,I.jsx)(bA,{...t});case 2:return(0,I.jsx)(cA,{...t});case 3:return(0,I.jsx)(dA,{...t});case 4:return(0,I.jsx)(uA,{...t})}};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-flip-box-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Info Box","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:[e.allowIcon?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{allowDeselect:!0,
3716 +isResponsive:!0,label:(0,L.__)("Icon placement","ablocks"),options:[{value:"row",label:(0,L.__)("Left","ablocks")},{value:"column",label:(0,L.__)("Top","ablocks")},{value:"row-reverse",label:(0,L.__)("Right","ablocks")}],attributeName:"iconPlacement",attributeValue:o,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Icon Alignment","ablocks"),options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"iconAlignment",attributeValue:b,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"iconGap",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:xA.AZ})]}):null,(0,I.jsx)(Jt,{label:(0,L.__)("Content Alignment","ablocks"),options:[{label:"flex-start",
3717 +value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:r,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Content Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"contentGap",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:xA.c8}),y?(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Button hover","ablocks"),attributeValue:c,setAttributes:i,attributeName:"allowButtonHover"}):null,(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Badge","ablocks"),attributeValue:d,setAttributes:i,attributeName:"allowBadge"}),d?(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Badge hover","ablocks"),attributeValue:p,setAttributes:i,attributeName:"allowBadgeHover"}):null,(0,I.jsx)(Ot,{isResponsive:!1,
3705 3718 label:(0,L.__)("Enable Icon","ablocks"),attributeValue:e.allowIcon,setAttributes:i,attributeName:"allowIcon"}),(0,I.jsx)(It,{}),(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(s),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({blockElements:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[(0,I.jsx)("h3",{className:"ablocks-info-drag",children:"Draggable items"}),s?.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t.id}`,index:e,children:e=>(0,I.jsx)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-list",children:(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper info",role:"presentation",onKeyDown:()=>{},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,
3706 -I.jsx)("span",{className:"ablocks-list-text",children:t?.slug})]}),T(t?.id)]})})},t.id)),t.placeholder]})})})]})}),d&&(0,I.jsx)(IC,{...t}),u&&(0,I.jsx)(VC,{...t}),m&&(0,I.jsx)(OC,{...t}),h&&(0,I.jsx)(YC,{...t}),g&&(0,I.jsx)(XC,{...t}),f&&(0,I.jsx)(FC,{...t}),y&&(0,I.jsx)(qC,{...t})]})})})}GC.propTypes={};const ZC=t=>{const{attributes:e,setAttributes:i}=t,{badgeSize:o}=e,a=(0,D.useBlockProps)();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("a",{href:"#",className:s()("ablocks-info-box-badge-link",`ablocks-info-box-badge-link--${o}`,e.allowBadgeHover?"ablocks-badge-hover-enable":""),children:(0,I.jsx)($c,{...a,tagName:"span",identifier:"badgeText",value:e.badgeText,withoutInteractiveFormatting:!0,placeholder:e.badgeText,className:"ablocks-info-box-badge-link-text",onChange:t=>i({badgeText:t})})})})},KC=t=>{const{attributes:e}=t,{iconLink:i}=e,{linkTarget:o,noFollow:a,keyValue:n,href:s}=i||{};let r={};return o&&(r.target="_blank"),
3707 -r.rel=a?o?"nofollow noreferrer noopener":"nofollow":"noopener",n&&(r={...r,...(0,wb.jM)(n)}),(0,I.jsx)(l().Fragment,{children:s?(0,I.jsx)("a",{...r,children:(0,I.jsx)(Fd,{attributes:e,attributePrefix:"icon"})}):(0,I.jsx)(Fd,{attributes:e,attributePrefix:"icon"})})},JC=t=>{const{attributes:e,setAttributes:i}=t,{headingTag:o}=e;return(0,I.jsx)($c,{tagName:o,value:e.heading,onChange:t=>i({heading:t}),placeholder:(0,L.__)("Enter your heading..","ablocks"),className:"ablocks-info-box-heading"})},QC=t=>{const{attributes:e,setAttributes:i}=t,{subHeadingTag:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)($c,{tagName:o,value:e.subHeading,className:"ablocks-info-box-sub-heading",onChange:t=>i({subHeading:t}),placeholder:(0,L.__)("Enter your subHeading..","ablocks")})})},tA=t=>{const{attributes:e,setAttributes:i}=t,{des:o,desTag:a,desDropCaps:l,desSize:n}=e;return(0,I.jsx)($c,{tagName:a||"p",value:o,placeholder:(0,L.__)("Enter your text..","ablocks"),onChange:t=>i({des:t}),
3708 -className:s()("ablocks-info-box-text",`ablocks-info-box-text-${n}`,{"ablocks-info-box-text-drop-caps":l})})},eA=t=>{const{attributes:e}=t,{ratingScale:i,rating:o,showCount:a,showRatingNumber:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-info-box-star-ratings",children:[(0,I.jsx)("div",{className:"ablocks-info-box-star-ratings-icons",children:Array.from({length:i?Number(i):5}).map((t,i)=>{const a=i+1;let l=0;return a<=Math.floor(o)?l=100:a===Math.floor(o)+1&&(l=o%1*100),(0,I.jsxs)("div",{className:"ablocks-info-box-rating",children:[(0,I.jsx)("div",{className:"ablocks-info-box-rating__fill",style:{width:`${l}%`},children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-info-box-rating__unfill",children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})})]},i)})}),n&&(0,I.jsxs)("span",{className:"ablocks-info-box-star-rating-number",children:[(0,I.jsx)($c,{tagName:"span",value:`${o}`,
3709 -onChange:t=>setAttributes({rating:t}),placeholder:"Enter your rating.."}),a?`/${i}`:""]})]})})},iA=t=>{const{attributes:e,setAttributes:i}=t,{btnSize:o,btnIconPosition:a,btnIconClass:n,btnShowIcon:r,btnLink:{linkTarget:b,noFollow:c,keyValue:d}}=e,u=(0,D.useBlockProps)();let p={};return b&&(p.target="_blank"),p.rel=c?b?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(p={...p,...(0,wb.jM)(d)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("a",{...p,className:s()("ablocks-info-box-btn-link",`ablocks-info-box-btn-link--${o}`,{[`ablocks-info-box-btn-link--icon-${a}`]:n&&a},e.allowButtonHover?"ablocks-button-hover-enable":""),children:[r&&(0,I.jsx)(Fd,{attributePrefix:"btnIcon",attributes:e}),(0,I.jsx)($c,{...u,tagName:"span",identifier:"btnText",value:e.btnText,withoutInteractiveFormatting:!0,placeholder:e.btnText,className:"ablocks-info-box-btn-link-text",onChange:t=>i({btnText:t})})]})})},oA={UU:"ablocks/info-box",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",
3719 +I.jsx)("span",{className:"ablocks-list-text",children:t?.slug})]}),T(t?.id)]})})},t.id)),t.placeholder]})})})]})}),d&&(0,I.jsx)(pA,{...t}),u&&(0,I.jsx)(mA,{...t}),m&&(0,I.jsx)(hA,{...t}),h&&(0,I.jsx)(gA,{...t}),g&&(0,I.jsx)(fA,{...t}),f&&(0,I.jsx)(HA,{...t}),y&&(0,I.jsx)(MA,{...t})]})})})}kA.propTypes={};const vA=t=>{const{attributes:e,setAttributes:i}=t,{badgeSize:o}=e,a=(0,D.useBlockProps)();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("a",{href:"#",className:s()("ablocks-info-box-badge-link",`ablocks-info-box-badge-link--${o}`,e.allowBadgeHover?"ablocks-badge-hover-enable":""),children:(0,I.jsx)($c,{...a,tagName:"span",identifier:"badgeText",value:e.badgeText,withoutInteractiveFormatting:!0,placeholder:e.badgeText,className:"ablocks-info-box-badge-link-text",onChange:t=>i({badgeText:t})})})})},_A=t=>{const{attributes:e}=t,{iconLink:i}=e,{linkTarget:o,noFollow:a,keyValue:n,href:s}=i||{};let r={};return o&&(r.target="_blank"),
3720 +r.rel=a?o?"nofollow noreferrer noopener":"nofollow":"noopener",n&&(r={...r,...(0,wb.jM)(n)}),(0,I.jsx)(l().Fragment,{children:s?(0,I.jsx)("a",{...r,children:(0,I.jsx)(Fd,{attributes:e,attributePrefix:"icon"})}):(0,I.jsx)(Fd,{attributes:e,attributePrefix:"icon"})})},RA=t=>{const{attributes:e,setAttributes:i}=t,{headingTag:o}=e;return(0,I.jsx)($c,{tagName:o,value:e.heading,onChange:t=>i({heading:t}),placeholder:(0,L.__)("Enter your heading..","ablocks"),className:"ablocks-info-box-heading"})},SA=t=>{const{attributes:e,setAttributes:i}=t,{subHeadingTag:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)($c,{tagName:o,value:e.subHeading,className:"ablocks-info-box-sub-heading",onChange:t=>i({subHeading:t}),placeholder:(0,L.__)("Enter your subHeading..","ablocks")})})},WA=t=>{const{attributes:e,setAttributes:i}=t,{des:o,desTag:a,desDropCaps:l,desSize:n}=e;return(0,I.jsx)($c,{tagName:a||"p",value:o,placeholder:(0,L.__)("Enter your text..","ablocks"),onChange:t=>i({des:t}),
3721 +className:s()("ablocks-info-box-text",`ablocks-info-box-text-${n}`,{"ablocks-info-box-text-drop-caps":l})})},PA=t=>{const{attributes:e}=t,{ratingScale:i,rating:o,showCount:a,showRatingNumber:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-info-box-star-ratings",children:[(0,I.jsx)("div",{className:"ablocks-info-box-star-ratings-icons",children:Array.from({length:i?Number(i):5}).map((t,i)=>{const a=i+1;let l=0;return a<=Math.floor(o)?l=100:a===Math.floor(o)+1&&(l=o%1*100),(0,I.jsxs)("div",{className:"ablocks-info-box-rating",children:[(0,I.jsx)("div",{className:"ablocks-info-box-rating__fill",style:{width:`${l}%`},children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-info-box-rating__unfill",children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})})]},i)})}),n&&(0,I.jsxs)("span",{className:"ablocks-info-box-star-rating-number",children:[(0,I.jsx)($c,{tagName:"span",value:`${o}`,
3722 +onChange:t=>setAttributes({rating:t}),placeholder:"Enter your rating.."}),a?`/${i}`:""]})]})})},UA=t=>{const{attributes:e,setAttributes:i}=t,{btnSize:o,btnIconPosition:a,btnIconClass:n,btnShowIcon:r,btnLink:{linkTarget:b,noFollow:c,keyValue:d}}=e,u=(0,D.useBlockProps)();let p={};return b&&(p.target="_blank"),p.rel=c?b?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(p={...p,...(0,wb.jM)(d)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("a",{...p,className:s()("ablocks-info-box-btn-link",`ablocks-info-box-btn-link--${o}`,{[`ablocks-info-box-btn-link--icon-${a}`]:n&&a},e.allowButtonHover?"ablocks-button-hover-enable":""),children:[r&&(0,I.jsx)(Fd,{attributePrefix:"btnIcon",attributes:e}),(0,I.jsx)($c,{...u,tagName:"span",identifier:"btnText",value:e.btnText,withoutInteractiveFormatting:!0,placeholder:e.btnText,className:"ablocks-info-box-btn-link-text",onChange:t=>i({btnText:t})})]})})},jA={UU:"ablocks/info-box",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",
3710 3723 default:""},blockElements:{type:"array",default:[{id:0,slug:"Heading"},{id:1,slug:"Sub-Heading"},{id:2,slug:"Description"},{id:3,slug:"Rating"},{id:4,slug:"Button"}]},des:{type:"string",source:"html",selector:".ablocks-info-box-text",default:"Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!"},allowBadgeHover:{type:"boolean",default:!1},allowButtonHover:{type:"boolean",default:!1},allowBadge:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!0},allowHeading:{type:"boolean",default:!0},allowSubHeading:{type:"boolean",default:!1},allowDes:{type:"boolean",default:!0},allowRating:{type:"boolean",default:!1},allowButton:{type:"boolean",default:!0},badgeText:{type:"string",default:"Featured"},badgeSize:{type:"string",default:"xs"},badgeTextColor:{type:"string",default:"#13191B"},badgeTextColorH:{type:"string",default:""},badgeBackground:{type:"string",default:"#DDDDDF"},badgeBackgroundH:{type:"string",
3711 3724 default:""},badgeTransition:{type:"number",default:""},iconPrimaryColorH:{type:"string",default:""},iconBackgroundColorH:{type:"string",default:""},iconTransition:{type:"number",default:""},heading:{type:"string",source:"html",selector:".ablocks-info-box-heading",default:"Your Info Box Title"},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B"},headingTextColorHover:{type:"string",default:""},headingTransition:{type:"number",default:""},subHeading:{type:"string",source:"html",selector:".ablocks-info-box-sub-heading",default:"Your Info Box Sub Title"},subHeadingTag:{type:"string",default:"h3"},subHeadingTextColor:{type:"string",default:"#13191B"},subHeadingTextColorHover:{type:"string",default:""},subHeadingTransition:{type:"number",default:""},desDropCaps:{type:"boolean",default:!1},desDropCapsTextColor:{type:"string",default:"#0f2aff"},desSize:{type:"string",default:"sm"},desGraphSize:{type:"string",default:"sm"},desTextColor:{type:"string",
3712 3725 default:"#595959"},desTextColorHover:{type:"string",default:""},desTransition:{type:"number",default:""},ratingScale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingColorHover:{type:"string",default:""},ratingUnmarkedColor:{type:"string",default:"#696969"},ratingTransition:{type:"number",default:""},ratingUnmarkedColorHover:{type:"string",default:""},ratingShowCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},showCount:{type:"boolean",default:!0},ratingNumberColor:{type:"string",default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},btnText:{type:"string",default:"Learn More"},btnSize:{type:"string",default:"sm"},btnTextColor:{type:"string",default:"#FAFAFA"},btnTextColorH:{type:"string",default:""},btnBackground:{type:"string",default:"#13191B"},btnBackgroundH:{type:"string",default:""},btnTransition:{type:"number",default:""},btnIconPosition:{type:"string",default:"right"},btnIconSpace:{type:"number",
3713 3726 default:10},btnShowIcon:{type:"boolean",default:!0},stack:{type:"string",default:""},alignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},iconPlacement:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},badgeBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",
@@ -3738,36 +3751,36 @@
3738 3751 imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,
3739 3752 videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",
3740 3753 yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,
3741 3754 maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{
3742 -animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function aA(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:i,name:oA.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[e.allowBadge?(0,I.jsx)(ZC,{...t}):null,e.allowIcon?(0,I.jsx)(KC,{...t}):null,(0,
3743 -I.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,I.jsx)(JC,{...t});case 1:return n&&(0,I.jsx)(QC,{...t});case 2:return s&&(0,I.jsx)(tA,{...t});case 3:return r&&(0,I.jsx)(eA,{...t});case 4:return b&&(0,I.jsx)(iA,{...t})}})(e?.id))})]})]})}aA.propTypes={};const lA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.iconGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"gap",device:e})};return t.iconPlacement["value"+e]&&(i.display="flex",i["flex-direction"]=t.iconPlacement["value"+e]),t.iconAlignment["value"+e]&&(i["align-items"]=t.iconAlignment["value"+e]),i},nA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.badgeTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};t.badgePosition["value"+e]&&("top-left"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.top=`-${t._padding["common"+e]}px`,
3755 +animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function wA(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:i,name:jA.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[e.allowBadge?(0,I.jsx)(vA,{...t}):null,e.allowIcon?(0,I.jsx)(_A,{...t}):null,(0,
3756 +I.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,I.jsx)(RA,{...t});case 1:return n&&(0,I.jsx)(SA,{...t});case 2:return s&&(0,I.jsx)(WA,{...t});case 3:return r&&(0,I.jsx)(PA,{...t});case 4:return b&&(0,I.jsx)(UA,{...t})}})(e?.id))})]})]})}wA.propTypes={};const zA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.iconGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"gap",device:e})};return t.iconPlacement["value"+e]&&(i.display="flex",i["flex-direction"]=t.iconPlacement["value"+e]),t.iconAlignment["value"+e]&&(i["align-items"]=t.iconAlignment["value"+e]),i},CA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.badgeTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};t.badgePosition["value"+e]&&("top-left"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.top=`-${t._padding["common"+e]}px`,
3744 3757 i.left=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.top||t._padding.topTablet||t._padding.topMobile||(i.top="-30px"),t._padding.left||t._padding.leftTablet||t._padding.leftMobile||(i.left="-30px")),i.bottom="auto",i.right="auto"):"top-right"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.top=`-${t._padding["common"+e]}px`,i.right=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.top||t._padding.topTablet||t._padding.topMobile||(i.top="-30px"),t._padding.right||t._padding.rightTablet||t._padding.rightMobile||(i.right="-30px")),i.left="auto",i.bottom="auto"):"bottom-left"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.bottom=`-${t._padding["common"+e]}px`,
3745 3758 i.left=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.bottom||t._padding.bottomTablet||t._padding.bottomMobile||(i.bottom="-30px"),t._padding.left||t._padding.leftTablet||t._padding.leftMobile||(i.left="-30px")),i.top="auto",i.right="auto"):"bottom-right"===t.badgePosition["value"+e]&&(t._padding["common"+e]?(i.bottom=`-${t._padding["common"+e]}px`,i.right=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.bottom||t._padding.bottomTablet||t._padding.bottomMobile||(i.bottom="-30px"),t._padding.right||t._padding.rightTablet||t._padding.rightMobile||(i.right="-30px")),i.left="auto",i.top="auto")),t.badgePosition["value"+e]&&("top-left"===t.badgePosition["value"+e]?(t._padding["top"+e]?i.top=`-${t._padding["top"+e]}px`:t._padding.top||t._padding.topTablet||t._padding.topMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.top="-30px"),
3746 3759 t._padding["left"+e]?i.left=`-${t._padding["left"+e]}px`:t._padding.left||t._padding.leftTablet||t._padding.leftMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.left="-30px"),i.bottom="auto",i.right="auto"):"top-right"===t.badgePosition["value"+e]?(t._padding["top"+e]?i.top=`-${t._padding["top"+e]}px`:t._padding.top||t._padding.topTablet||t._padding.topMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.top="-30px"),t._padding["right"+e]?i.right=`-${t._padding["right"+e]}px`:t._padding.right||t._padding.rightTablet||t._padding.rightMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.right="-30px"),i.left="auto",i.bottom="auto"):"bottom-left"===t.badgePosition["value"+e]?(t._padding["bottom"+e]?i.bottom=`-${t._padding["bottom"+e]}px`:t._padding.bottom||t._padding.bottomTablet||t._padding.bottomMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.bottom="-30px"),
3747 3760 t._padding["left"+e]?i.left=`-${t._padding["left"+e]}px`:t._padding.left||t._padding.leftTablet||t._padding.leftMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.left="-30px"),i.top="auto",i.right="auto"):"bottom-right"===t.badgePosition["value"+e]&&(t._padding["bottom"+e]?i.bottom=`-${t._padding["bottom"+e]}px`:t._padding.bottom||t._padding.bottomTablet||t._padding.bottomMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.bottom="-30px"),t._padding["right"+e]?i.right=`-${t._padding["right"+e]}px`:t._padding.right||t._padding.rightTablet||t._padding.rightMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.right="-30px"),i.left="auto",i.top="auto"));const o=(0,M.Zy)(t.badgeTypography,{weight:"400"}),a=t.badgeTypographyGlobal?t.badgeTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.badgeTextColor),background:(0,Hs.qD)(t?.badgeBackground),...(0,y.qD)(t?.badgeBorder,e),...(0,U.qD)(o,e,a),...(0,
3748 -c.qD)(t?.badgePadding,"padding",e)}},sA=(t,e="")=>({color:(0,Hs.qD)(t?.badgeTextColorH),background:(0,Hs.qD)(t?.badgeTextColorH),...(0,y.a9)(t?.badgeBorder,e)}),rA=t=>({...(0,fc.qD)(t?.badgeTextShadow)}),bA=(t,e="")=>{const i=(0,M.Zy)(t?.iconMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},cA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.contentGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e})};return t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),i},dA=(t,e="")=>{const i=(0,M.Zy)(t.headingTypography,{weight:"500"}),o=[];"flex-start"===t.alignment["value"+e]?o["text-align"]="left":"flex-end"===t.alignment["value"+e]?o["text-align"]="right":o["text-align"]=t.alignment["value"+e];const a=(0,M.Zy)(t?.headingMargin,{unit:"px"}),l=t.headingTypographyGlobal?t.headingTypographyGlobal:[];return{...o,color:(0,Hs.qD)(t?.headingTextColor),...(0,U.qD)(i,e,l),...(0,Mc.qD)(t?.headingTextStroke,e),
3749 -...(0,fc.qD)(t?.headingTextShadow),...(0,c.qD)(a,"margin",e)}},uA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.headingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.headingTextColorHover&&(i.color=(0,Hs.qD)(t?.headingTextColorHover)),i},pA=(t,e="")=>{const i=(0,M.Zy)(t.subHeadingTypography,{weight:"400"}),o=[];"flex-start"===t.alignment["value"+e]?o["text-align"]="left":"flex-end"===t.alignment["value"+e]?o["text-align"]="right":o["text-align"]=t.alignment["value"+e];const a=(0,M.Zy)(t?.subHeadingMargin,{unit:"px"}),l=t.subHeadingTypographyGlobal?t.subHeadingTypographyGlobal:[];return{...o,color:(0,Hs.qD)(t?.subHeadingTextColor),...(0,U.qD)(i,e,l),...(0,Mc.qD)(t?.subHeadingTextStroke,e),...(0,fc.qD)(t?.subHeadingTextShadow),...(0,c.qD)(a,"margin",e)}},mA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.subHeadingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",
3750 -property:"transition-duration",device:e})};return t.subHeadingTextColorHover&&(i.color=(0,Hs.qD)(t?.subHeadingTextColorHover)),i},hA=(t,e="")=>{const i=[];"flex-start"===t.alignment["value"+e]?i["text-align"]="left":"flex-end"===t.alignment["value"+e]?i["text-align"]="right":i["text-align"]=t.alignment["value"+e];const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=(0,M.Zy)(t?.desMargin,{unit:"px"}),l=t.desTypographyGlobal?t.desTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.desTextColor),...(0,U.qD)(o,e,l),...(0,Mc.qD)(t?.desTextStroke,e),...(0,fc.qD)(t?.desTextShadow),...(0,c.qD)(a,"margin",e)}},gA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.desTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.desTextColorHover&&(i.color=(0,Hs.qD)(t?.desTextColorHover)),i},fA=t=>{const e={};return t.desDropCapsTextColor&&(e.color=(0,Hs.qD)(t?.desDropCapsTextColor)),e},yA=(t,e="")=>{const i=(0,M.Zy)(t?.ratingMargin,{
3751 -unit:"px"});return{...{...(0,Eb.qD)({attributeValue:t?.ratingNumberGap,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,property:"gap",device:e}),...(0,c.qD)(i,"margin",e)},...(0,Zt.qD)(t?.alignment,"justify-content",e)}},TA=(t,e="")=>{const i=[];""!==t.ratingNumberPosition&&("left"===t.ratingNumberPosition?i.order="-5":i.order="10");const o=(0,M.Zy)(t.ratingNumberTypography,{weight:"400"}),a=t.ratingNumberTypographyGlobal?t.ratingNumberTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.ratingNumberColor),...(0,U.qD)(o,e,a)}},HA=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.spacing,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,property:"gap",device:e})}),MA=t=>{const e=[];return t.ratingColor&&(e.fill=(0,Hs.qD)(t?.ratingColor)),e},xA=t=>{const e=[];return t.ratingUnmarkedColor&&(e.fill=(0,Hs.qD)(t?.ratingUnmarkedColor)),e},kA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.ratingTransition,
3752 -attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.ratingColorHover&&(i.fill=(0,Hs.qD)(t?.ratingColorHover)),i},vA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.ratingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.ratingUnmarkedColorHover&&(i.fill=(0,Hs.qD)(t?.ratingUnmarkedColorHover)),i},_A=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.btnTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e}),...(0,Eb.qD)({attributeValue:t?.btnIconSpace,attributeObjectKey:"value",defaultValue:10,unitDefaultValue:"px",property:"column-gap",device:e})},o=(0,M.Zy)(t.btnTypography,{weight:"400"}),a=(0,M.Zy)(t?.btnMargin,{unit:"px"}),l=t.btnTypographyGlobal?t.btnTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.btnTextColor),background:(0,Hs.qD)(t?.btnBackground),...(0,y.qD)(t?.btnBorder,e),
3753 -...(0,U.qD)(o,e,l),...(0,c.qD)(t?.btnPadding,"padding",e),...(0,c.qD)(a,"margin",e)}},RA=(t,e="")=>({color:(0,Hs.qD)(t?.btnTextColorH),background:(0,Hs.qD)(t?.btnBackgroundH),...(0,y.a9)(t?.btnBorder,e)}),SA=t=>{const e={};return t?.btnTextColorH&&(e.fill=(0,Hs.qD)(t?.btnTextColorH)),e},WA=t=>({...(0,fc.qD)(t?.btnTextShadow)}),PA=[{name:"Start",icon:(0,I.jsx)("img",{src:M.hq+"assets/images/info-box/start.svg",alt:"start"}),attributes:{variationSelected:"row",iconAlignment:{value:"flex-start"},contentAlignment:{value:"flex-start"}},scope:["block"]},{name:"Middle",icon:(0,I.jsx)("img",{src:M.hq+"assets/images/info-box/middle.svg",alt:"middle"}),attributes:{variationSelected:"column",iconAlignment:{value:"center"},contentAlignment:{value:"center"}},scope:["block"]},{name:"End",icon:(0,I.jsx)("img",{src:M.hq+"assets/images/info-box/end.svg",alt:"end"}),attributes:{variationSelected:"row-reverse",iconAlignment:{value:"flex-start"},contentAlignment:{value:"flex-end"}},scope:["block"]
3754 -}],UA=t=>{const{clientId:e,setAttributes:i,defaultVariation:o}=t;return(0,I.jsxs)("div",{className:"ablocks-info-box-block-variation-picker",children:[(0,I.jsx)("span",{className:"ablocks-variation-picker-delete-button ablocks-icon ablocks-icon--close",onClick:()=>wp.data.dispatch("core/block-editor").removeBlock(e),role:"presentation"}),(0,I.jsx)(D.__experimentalBlockVariationPicker,{label:(0,L.__)("Select, Customize, Shine Bright!","ablocks"),instructions:(0,L.__)("","ablocks"),variations:PA,onSelect:t=>((t=o)=>{if(t.attributes){const e={value:"",valueTablet:"",valueMobile:""};e.value=t.attributes.variationSelected,i({alignment:t.attributes.contentAlignment,iconPlacement:e,iconAlignment:t.attributes.iconAlignment})}})(t)})]})},jA=t=>{const{attributes:e}=t,{badgeSize:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("a",{href:"#",className:s()("ablocks-info-box-badge-link",`ablocks-info-box-badge-link--${i}`,e.allowBadgeHover?"ablocks-badge-hover-enable":""),children:(0,
3755 -I.jsx)(D.RichText.Content,{tagName:"span",value:e.badgeText,className:"ablocks-info-box-badge-link-text"})})})},wA=t=>{const{attributes:e}=t,{iconLink:i}=e,{linkTarget:o,noFollow:a,keyValue:n,href:s}=i||{};let r={};return s&&(r.href=s),o&&(r.target="_blank"),r.rel=a?o?"nofollow noreferrer noopener":"nofollow":"noopener",n&&(r={...r,...(0,wb.jM)(n)}),(0,I.jsx)(l().Fragment,{children:s?(0,I.jsx)("a",{...r,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})},zA=t=>{const{attributes:e}=t,{headingTag:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.RichText.Content,{tagName:i,className:"ablocks-info-box-heading",value:e.heading})})},CA=t=>{const{attributes:e}=t,{subHeadingTag:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.RichText.Content,{tagName:i,className:"ablocks-info-box-sub-heading",value:e.subHeading})})},AA=t=>{const{attributes:e}=t,{desDropCaps:i,desSize:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.RichText.Content,{tagName:"p",
3756 -className:s()("ablocks-info-box-text",`ablocks-info-box-text-${o}`,{"ablocks-info-box-text-drop-caps":i}),value:e.des})})},LA=t=>{const{attributes:e}=t,{ratingScale:i,rating:o,showCount:a,showRatingNumber:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-info-box-star-ratings",children:[(0,I.jsx)("div",{className:"ablocks-info-box-star-ratings-icons",children:Array.from({length:i?Number(i):5}).map((t,i)=>{const a=i+1;let l=0;return a<=Math.floor(o)?l=100:a===Math.floor(o)+1&&(l=o%1*100),(0,I.jsxs)("div",{className:"ablocks-info-box-rating",children:[(0,I.jsx)("div",{className:"ablocks-info-box-rating__fill",style:{width:`${l}%`},children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-info-box-rating__unfill",children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})})]},i)})}),n&&(0,I.jsxs)("span",{className:"ablocks-info-box-star-rating-number",children:[o,a?`/${i}`:""]})]})})},DA=t=>{
3757 -const{attributes:e}=t,{btnSize:i,btnIconPosition:o,btnIconClass:a,btnShowIcon:n,btnLink:{href:r,linkTarget:b,noFollow:c,keyValue:d}}=e;let u={};return r&&(u.href=r),b&&(u.target="_blank"),u.rel=c?b?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",d&&(u={...u,...(0,wb.jM)(d)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("a",{...u,className:s()("ablocks-info-box-btn-link",`ablocks-info-box-btn-link--${i}`,{[`ablocks-info-box-btn-link--icon-${o}`]:a&&o},e.allowButtonHover?"ablocks-button-hover-enable":""),children:[n&&(0,I.jsx)(Fd,{attributePrefix:"btnIcon",attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",value:e.btnText,className:"ablocks-info-box-btn-link-text"})]})})};function NA(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:oA.UU,attributes:e,children:[e.allowBadge?(0,I.jsx)(jA,{...t
3758 -}):null,e.allowIcon?(0,I.jsx)(wA,{...t}):null,(0,I.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,I.jsx)(zA,{...t});case 1:return n&&(0,I.jsx)(CA,{...t});case 2:return s&&(0,I.jsx)(AA,{...t});case 3:return r&&(0,I.jsx)(LA,{...t});case 4:return b&&(0,I.jsx)(DA,{...t})}})(e?.id))})]})})}function IA(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:oA.UU,attributes:e,children:[e.allowBadge?(0,I.jsx)(jA,{...t}):null,e.allowIcon?(0,I.jsx)(wA,{...t}):null,(0,I.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,I.jsx)(zA,{...t});case 1:return n&&(0,I.jsx)(CA,{...t});case 2:return s&&(0,I.jsx)(AA,{...t});case 3:return r&&(0,I.jsx)(LA,{...t});case 4:return b&&(0,I.jsx)(DA,{...t})}})(e?.id))})]})})}
3759 -NA.propTypes={},IA.propTypes={};(0,M.xV)(oA.UU)&&(0,o.registerBlockType)(oA.UU,{attributes:oA.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--info-box"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]),(0,a.useEffect)(()=>{if(!i.iconPlacement||""===i.iconPlacement.value&&""!==i.stack){const t={value:i.stack||"",valueTablet:"",valueMobile:""};o({iconPlacement:t,stack:""})}},[]);const s=(0,a.useMemo)(()=>{if(!i?.iconPlacement)return"";let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container",lA(i),lA(i,"Tablet"),lA(i,"Mobile"),e(t=>lA(i,t))),
3760 -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link",nA(i),nA(i,"Tablet"),nA(i,"Mobile"),e(t=>nA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link:hover",sA(i,""),sA(i,"Tablet"),sA(i,"Mobile"),e(t=>sA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link > .ablocks-info-box-badge-link-text",rA(i),rA(i),rA(i),e(t=>rA(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content",cA(i),cA(i,"Tablet"),cA(i,"Mobile"),e(t=>cA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),
3761 -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap",bA(i),bA(i,"Tablet"),bA(i,"Mobile"),e(t=>bA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap:hover, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-icon-wrap > img.ablocks-image-icon, {{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > a .ablocks-icon-wrap > img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),
3761 +c.qD)(t?.badgePadding,"padding",e)}},AA=(t,e="")=>({color:(0,Hs.qD)(t?.badgeTextColorH),background:(0,Hs.qD)(t?.badgeTextColorH),...(0,y.a9)(t?.badgeBorder,e)}),LA=t=>({...(0,fc.qD)(t?.badgeTextShadow)}),DA=(t,e="")=>{const i=(0,M.Zy)(t?.iconMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},NA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.contentGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e})};return t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),i},IA=(t,e="")=>{const i=(0,M.Zy)(t.headingTypography,{weight:"500"}),o=[];"flex-start"===t.alignment["value"+e]?o["text-align"]="left":"flex-end"===t.alignment["value"+e]?o["text-align"]="right":o["text-align"]=t.alignment["value"+e];const a=(0,M.Zy)(t?.headingMargin,{unit:"px"}),l=t.headingTypographyGlobal?t.headingTypographyGlobal:[];return{...o,color:(0,Hs.qD)(t?.headingTextColor),...(0,U.qD)(i,e,l),...(0,Mc.qD)(t?.headingTextStroke,e),
3762 +...(0,fc.qD)(t?.headingTextShadow),...(0,c.qD)(a,"margin",e)}},VA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.headingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.headingTextColorHover&&(i.color=(0,Hs.qD)(t?.headingTextColorHover)),i},OA=(t,e="")=>{const i=(0,M.Zy)(t.subHeadingTypography,{weight:"400"}),o=[];"flex-start"===t.alignment["value"+e]?o["text-align"]="left":"flex-end"===t.alignment["value"+e]?o["text-align"]="right":o["text-align"]=t.alignment["value"+e];const a=(0,M.Zy)(t?.subHeadingMargin,{unit:"px"}),l=t.subHeadingTypographyGlobal?t.subHeadingTypographyGlobal:[];return{...o,color:(0,Hs.qD)(t?.subHeadingTextColor),...(0,U.qD)(i,e,l),...(0,Mc.qD)(t?.subHeadingTextStroke,e),...(0,fc.qD)(t?.subHeadingTextShadow),...(0,c.qD)(a,"margin",e)}},YA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.subHeadingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",
3763 +property:"transition-duration",device:e})};return t.subHeadingTextColorHover&&(i.color=(0,Hs.qD)(t?.subHeadingTextColorHover)),i},XA=(t,e="")=>{const i=[];"flex-start"===t.alignment["value"+e]?i["text-align"]="left":"flex-end"===t.alignment["value"+e]?i["text-align"]="right":i["text-align"]=t.alignment["value"+e];const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=(0,M.Zy)(t?.desMargin,{unit:"px"}),l=t.desTypographyGlobal?t.desTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.desTextColor),...(0,U.qD)(o,e,l),...(0,Mc.qD)(t?.desTextStroke,e),...(0,fc.qD)(t?.desTextShadow),...(0,c.qD)(a,"margin",e)}},BA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.desTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.desTextColorHover&&(i.color=(0,Hs.qD)(t?.desTextColorHover)),i},EA=t=>{const e={};return t.desDropCapsTextColor&&(e.color=(0,Hs.qD)(t?.desDropCapsTextColor)),e},FA=(t,e="")=>{const i=(0,M.Zy)(t?.ratingMargin,{
3764 +unit:"px"});return{...{...(0,Eb.qD)({attributeValue:t?.ratingNumberGap,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,property:"gap",device:e}),...(0,c.qD)(i,"margin",e)},...(0,Zt.qD)(t?.alignment,"justify-content",e)}},qA=(t,e="")=>{const i=[];""!==t.ratingNumberPosition&&("left"===t.ratingNumberPosition?i.order="-5":i.order="10");const o=(0,M.Zy)(t.ratingNumberTypography,{weight:"400"}),a=t.ratingNumberTypographyGlobal?t.ratingNumberTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.ratingNumberColor),...(0,U.qD)(o,e,a)}},$A=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.spacing,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,property:"gap",device:e})}),GA=t=>{const e=[];return t.ratingColor&&(e.fill=(0,Hs.qD)(t?.ratingColor)),e},ZA=t=>{const e=[];return t.ratingUnmarkedColor&&(e.fill=(0,Hs.qD)(t?.ratingUnmarkedColor)),e},KA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.ratingTransition,
3765 +attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.ratingColorHover&&(i.fill=(0,Hs.qD)(t?.ratingColorHover)),i},JA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.ratingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.ratingUnmarkedColorHover&&(i.fill=(0,Hs.qD)(t?.ratingUnmarkedColorHover)),i},QA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.btnTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e}),...(0,Eb.qD)({attributeValue:t?.btnIconSpace,attributeObjectKey:"value",defaultValue:10,unitDefaultValue:"px",property:"column-gap",device:e})},o=(0,M.Zy)(t.btnTypography,{weight:"400"}),a=(0,M.Zy)(t?.btnMargin,{unit:"px"}),l=t.btnTypographyGlobal?t.btnTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.btnTextColor),background:(0,Hs.qD)(t?.btnBackground),...(0,y.qD)(t?.btnBorder,e),
3766 +...(0,U.qD)(o,e,l),...(0,c.qD)(t?.btnPadding,"padding",e),...(0,c.qD)(a,"margin",e)}},tL=(t,e="")=>({color:(0,Hs.qD)(t?.btnTextColorH),background:(0,Hs.qD)(t?.btnBackgroundH),...(0,y.a9)(t?.btnBorder,e)}),eL=t=>{const e={};return t?.btnTextColorH&&(e.fill=(0,Hs.qD)(t?.btnTextColorH)),e},iL=t=>({...(0,fc.qD)(t?.btnTextShadow)}),oL=[{name:"Start",icon:(0,I.jsx)("img",{src:M.hq+"assets/images/info-box/start.svg",alt:"start"}),attributes:{variationSelected:"row",iconAlignment:{value:"flex-start"},contentAlignment:{value:"flex-start"}},scope:["block"]},{name:"Middle",icon:(0,I.jsx)("img",{src:M.hq+"assets/images/info-box/middle.svg",alt:"middle"}),attributes:{variationSelected:"column",iconAlignment:{value:"center"},contentAlignment:{value:"center"}},scope:["block"]},{name:"End",icon:(0,I.jsx)("img",{src:M.hq+"assets/images/info-box/end.svg",alt:"end"}),attributes:{variationSelected:"row-reverse",iconAlignment:{value:"flex-start"},contentAlignment:{value:"flex-end"}},scope:["block"]
3767 +}],aL=t=>{const{clientId:e,setAttributes:i,defaultVariation:o}=t;return(0,I.jsxs)("div",{className:"ablocks-info-box-block-variation-picker",children:[(0,I.jsx)("span",{className:"ablocks-variation-picker-delete-button ablocks-icon ablocks-icon--close",onClick:()=>wp.data.dispatch("core/block-editor").removeBlock(e),role:"presentation"}),(0,I.jsx)(D.__experimentalBlockVariationPicker,{label:(0,L.__)("Select, Customize, Shine Bright!","ablocks"),instructions:(0,L.__)("","ablocks"),variations:oL,onSelect:t=>((t=o)=>{if(t.attributes){const e={value:"",valueTablet:"",valueMobile:""};e.value=t.attributes.variationSelected,i({alignment:t.attributes.contentAlignment,iconPlacement:e,iconAlignment:t.attributes.iconAlignment})}})(t)})]})},lL=t=>{const{attributes:e}=t,{badgeSize:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("a",{href:"#",className:s()("ablocks-info-box-badge-link",`ablocks-info-box-badge-link--${i}`,e.allowBadgeHover?"ablocks-badge-hover-enable":""),children:(0,
3768 +I.jsx)(D.RichText.Content,{tagName:"span",value:e.badgeText,className:"ablocks-info-box-badge-link-text"})})})},nL=t=>{const{attributes:e}=t,{iconLink:i}=e,{linkTarget:o,noFollow:a,keyValue:n,href:s}=i||{};let r={};return s&&(r.href=s),o&&(r.target="_blank"),r.rel=a?o?"nofollow noreferrer noopener":"nofollow":"noopener",n&&(r={...r,...(0,wb.jM)(n)}),(0,I.jsx)(l().Fragment,{children:s?(0,I.jsx)("a",{...r,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})},sL=t=>{const{attributes:e}=t,{headingTag:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.RichText.Content,{tagName:i,className:"ablocks-info-box-heading",value:e.heading})})},rL=t=>{const{attributes:e}=t,{subHeadingTag:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.RichText.Content,{tagName:i,className:"ablocks-info-box-sub-heading",value:e.subHeading})})},bL=t=>{const{attributes:e}=t,{desDropCaps:i,desSize:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.RichText.Content,{tagName:"p",
3769 +className:s()("ablocks-info-box-text",`ablocks-info-box-text-${o}`,{"ablocks-info-box-text-drop-caps":i}),value:e.des})})},cL=t=>{const{attributes:e}=t,{ratingScale:i,rating:o,showCount:a,showRatingNumber:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-info-box-star-ratings",children:[(0,I.jsx)("div",{className:"ablocks-info-box-star-ratings-icons",children:Array.from({length:i?Number(i):5}).map((t,i)=>{const a=i+1;let l=0;return a<=Math.floor(o)?l=100:a===Math.floor(o)+1&&(l=o%1*100),(0,I.jsxs)("div",{className:"ablocks-info-box-rating",children:[(0,I.jsx)("div",{className:"ablocks-info-box-rating__fill",style:{width:`${l}%`},children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-info-box-rating__unfill",children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})})]},i)})}),n&&(0,I.jsxs)("span",{className:"ablocks-info-box-star-rating-number",children:[o,a?`/${i}`:""]})]})})},dL=t=>{
3770 +const{attributes:e}=t,{btnSize:i,btnIconPosition:o,btnIconClass:a,btnShowIcon:n,btnLink:{href:r,linkTarget:b,noFollow:c,keyValue:d}}=e;let u={};return r&&(u.href=r),b&&(u.target="_blank"),u.rel=c?b?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",d&&(u={...u,...(0,wb.jM)(d)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("a",{...u,className:s()("ablocks-info-box-btn-link",`ablocks-info-box-btn-link--${i}`,{[`ablocks-info-box-btn-link--icon-${o}`]:a&&o},e.allowButtonHover?"ablocks-button-hover-enable":""),children:[n&&(0,I.jsx)(Fd,{attributePrefix:"btnIcon",attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",value:e.btnText,className:"ablocks-info-box-btn-link-text"})]})})};function uL(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:jA.UU,attributes:e,children:[e.allowBadge?(0,I.jsx)(lL,{...t
3771 +}):null,e.allowIcon?(0,I.jsx)(nL,{...t}):null,(0,I.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,I.jsx)(sL,{...t});case 1:return n&&(0,I.jsx)(rL,{...t});case 2:return s&&(0,I.jsx)(bL,{...t});case 3:return r&&(0,I.jsx)(cL,{...t});case 4:return b&&(0,I.jsx)(dL,{...t})}})(e?.id))})]})})}function pL(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:jA.UU,attributes:e,children:[e.allowBadge?(0,I.jsx)(lL,{...t}):null,e.allowIcon?(0,I.jsx)(nL,{...t}):null,(0,I.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,I.jsx)(sL,{...t});case 1:return n&&(0,I.jsx)(rL,{...t});case 2:return s&&(0,I.jsx)(bL,{...t});case 3:return r&&(0,I.jsx)(cL,{...t});case 4:return b&&(0,I.jsx)(dL,{...t})}})(e?.id))})]})})}
3772 +uL.propTypes={},pL.propTypes={};(0,M.xV)(jA.UU)&&(0,o.registerBlockType)(jA.UU,{attributes:jA.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--info-box"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]),(0,a.useEffect)(()=>{if(!i.iconPlacement||""===i.iconPlacement.value&&""!==i.stack){const t={value:i.stack||"",valueTablet:"",valueMobile:""};o({iconPlacement:t,stack:""})}},[]);const s=(0,a.useMemo)(()=>{if(!i?.iconPlacement)return"";let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container",zA(i),zA(i,"Tablet"),zA(i,"Mobile"),e(t=>zA(i,t))),
3773 +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link",CA(i),CA(i,"Tablet"),CA(i,"Mobile"),e(t=>CA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link:hover",AA(i,""),AA(i,"Tablet"),AA(i,"Mobile"),e(t=>AA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link > .ablocks-info-box-badge-link-text",LA(i),LA(i),LA(i),e(t=>LA(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content",NA(i),NA(i,"Tablet"),NA(i,"Mobile"),e(t=>NA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),
3774 +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap",DA(i),DA(i,"Tablet"),DA(i,"Mobile"),e(t=>DA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap:hover, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-icon-wrap > img.ablocks-image-icon, {{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > a .ablocks-icon-wrap > img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),
3762 3775 t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-icon-wrap > img.ablocks-image-icon, {{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > a .ablocks-icon-wrap > img.ablocks-image-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > .ablocks-icon-wrap svg.ablocks-svg-icon , {{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > a .ablocks-icon-wrap svg.ablocks-svg-icon",((t,e="")=>{
3763 -const i={...(0,Eb.qD)({attributeValue:t?.iconTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.iconPrimaryColorH&&(i.fill=(0,Hs.qD)(t?.iconPrimaryColorH)),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > .ablocks-icon-wrap , {{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > a .ablocks-icon-wrap",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.iconTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.iconBackgroundColorH&&(i.background=t.iconBackgroundColorH),i})(i));const o=dA(i);return i?.headingTextColor&&(o.color=i.headingTextColor),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-heading",dA(i),dA(i,"Tablet"),dA(i,"Mobile"),e(t=>dA(i,t))),
3764 -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-heading",uA(i),uA(i,"Tablet"),uA(i,"Mobile"),e(t=>uA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-sub-heading",pA(i),pA(i,"Tablet"),pA(i,"Mobile"),e(t=>pA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-sub-heading",mA(i),mA(i,"Tablet"),mA(i,"Mobile"),e(t=>mA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text",hA(i),hA(i,"Tablet"),hA(i,"Mobile"),e(t=>hA(i,t))),
3765 -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text",gA(i),gA(i,"Tablet"),gA(i,"Mobile"),e(t=>gA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text-drop-caps::first-letter",fA(i),fA(i),fA(i),e(t=>fA(i))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings",yA(i),yA(i,"Tablet"),yA(i,"Mobile"),e(t=>yA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap , {{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap",(0,Ud.PT)(i,"","starIcon"),(0,Ud.PT)(i,"Tablet","starIcon"),(0,Ud.PT)(i,"Mobile","starIcon"),e(t=>(0,Ud.PT)(i,t,"starIcon"))),
3766 -t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons",HA(i),HA(i,"Tablet"),HA(i,"Mobile"),e(t=>HA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap > svg",MA(i),MA(i),MA(i),e(t=>MA(i))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap > svg",xA(i),xA(i),xA(i),e(t=>xA(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-star-ratings > .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap > svg",kA(i),kA(i,"Tablet"),kA(i,"Mobile"),e(t=>kA(i,t))),
3767 -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-star-ratings > .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap > svg",vA(i),vA(i,"Tablet"),vA(i,"Mobile"),e(t=>vA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-rating-number",TA(i),TA(i,"Tablet"),TA(i,"Mobile"),e(t=>TA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link",_A(i),_A(i,"Tablet"),_A(i,"Mobile"),e(t=>_A(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link:hover",RA(i,""),RA(i,"Tablet"),RA(i,"Mobile"),e(t=>RA(i,t))),
3768 -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link:hover > .ablocks-icon-wrap > svg.ablocks-svg-icon",SA(i),SA(i),SA(i),e(t=>SA(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link > .ablocks-info-box-btn-link-text",WA(i),WA(i),WA(i),e(t=>WA(i))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap",(0,Ud.PT)(i,"","btnIcon"),(0,Ud.PT)(i,"Tablet","btnIcon"),(0,Ud.PT)(i,"Mobile","btnIcon"),e(t=>(0,Ud.PT)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap:hover",(0,Ud.fW)(i,"","btnIcon"),(0,Ud.fW)(i,"Tablet","btnIcon"),(0,Ud.fW)(i,"Mobile","btnIcon"),e(t=>(0,Ud.fW)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,Ud.eG)(i,"","btnIcon"),(0,
3769 -Ud.eG)(i,"Tablet","btnIcon"),(0,Ud.eG)(i,"Mobile","btnIcon"),e(t=>(0,Ud.eG)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap > svg.ablocks-svg-icon:hover",(0,Ud.RV)(i,"","btnIcon"),(0,Ud.RV)(i,"Tablet","btnIcon"),(0,Ud.RV)(i,"Mobile","btnIcon"),e(t=>(0,Ud.RV)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap:hover > svg.ablocks-svg-icon",(0,Ud.RV)(i,"","btnIcon"),(0,Ud.RV)(i,"Tablet","btnIcon"),(0,Ud.RV)(i,"Mobile","btnIcon"),e(t=>(0,Ud.RV)(i,t,"btnIcon"))),t.generateCSS()},[i]);return""===i?.iconPlacement?.value?(0,I.jsx)(UA,{...t}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(GC,{...t}),(0,I.jsx)(aA,{...t})]})},save:NA,variations:PA,deprecated:[{attributes:{block_id:{type:"string",default:""},blockElements:{type:"array",default:[{id:0,slug:"Heading"},{id:1,slug:"Sub-Heading"},{id:2,slug:"Description"},{id:3,slug:"Rating"},{id:4,slug:"Button"}]},des:{
3776 +const i={...(0,Eb.qD)({attributeValue:t?.iconTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.iconPrimaryColorH&&(i.fill=(0,Hs.qD)(t?.iconPrimaryColorH)),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > .ablocks-icon-wrap , {{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > a .ablocks-icon-wrap",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.iconTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.iconBackgroundColorH&&(i.background=t.iconBackgroundColorH),i})(i));const o=IA(i);return i?.headingTextColor&&(o.color=i.headingTextColor),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-heading",IA(i),IA(i,"Tablet"),IA(i,"Mobile"),e(t=>IA(i,t))),
3777 +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-heading",VA(i),VA(i,"Tablet"),VA(i,"Mobile"),e(t=>VA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-sub-heading",OA(i),OA(i,"Tablet"),OA(i,"Mobile"),e(t=>OA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-sub-heading",YA(i),YA(i,"Tablet"),YA(i,"Mobile"),e(t=>YA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text",XA(i),XA(i,"Tablet"),XA(i,"Mobile"),e(t=>XA(i,t))),
3778 +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text",BA(i),BA(i,"Tablet"),BA(i,"Mobile"),e(t=>BA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text-drop-caps::first-letter",EA(i),EA(i),EA(i),e(t=>EA(i))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings",FA(i),FA(i,"Tablet"),FA(i,"Mobile"),e(t=>FA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap , {{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap",(0,Ud.PT)(i,"","starIcon"),(0,Ud.PT)(i,"Tablet","starIcon"),(0,Ud.PT)(i,"Mobile","starIcon"),e(t=>(0,Ud.PT)(i,t,"starIcon"))),
3779 +t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons",$A(i),$A(i,"Tablet"),$A(i,"Mobile"),e(t=>$A(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap > svg",GA(i),GA(i),GA(i),e(t=>GA(i))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap > svg",ZA(i),ZA(i),ZA(i),e(t=>ZA(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-star-ratings > .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap > svg",KA(i),KA(i,"Tablet"),KA(i,"Mobile"),e(t=>KA(i,t))),
3780 +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-star-ratings > .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap > svg",JA(i),JA(i,"Tablet"),JA(i,"Mobile"),e(t=>JA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-rating-number",qA(i),qA(i,"Tablet"),qA(i,"Mobile"),e(t=>qA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link",QA(i),QA(i,"Tablet"),QA(i,"Mobile"),e(t=>QA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link:hover",tL(i,""),tL(i,"Tablet"),tL(i,"Mobile"),e(t=>tL(i,t))),
3781 +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link:hover > .ablocks-icon-wrap > svg.ablocks-svg-icon",eL(i),eL(i),eL(i),e(t=>eL(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link > .ablocks-info-box-btn-link-text",iL(i),iL(i),iL(i),e(t=>iL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap",(0,Ud.PT)(i,"","btnIcon"),(0,Ud.PT)(i,"Tablet","btnIcon"),(0,Ud.PT)(i,"Mobile","btnIcon"),e(t=>(0,Ud.PT)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap:hover",(0,Ud.fW)(i,"","btnIcon"),(0,Ud.fW)(i,"Tablet","btnIcon"),(0,Ud.fW)(i,"Mobile","btnIcon"),e(t=>(0,Ud.fW)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,Ud.eG)(i,"","btnIcon"),(0,
3782 +Ud.eG)(i,"Tablet","btnIcon"),(0,Ud.eG)(i,"Mobile","btnIcon"),e(t=>(0,Ud.eG)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap > svg.ablocks-svg-icon:hover",(0,Ud.RV)(i,"","btnIcon"),(0,Ud.RV)(i,"Tablet","btnIcon"),(0,Ud.RV)(i,"Mobile","btnIcon"),e(t=>(0,Ud.RV)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap:hover > svg.ablocks-svg-icon",(0,Ud.RV)(i,"","btnIcon"),(0,Ud.RV)(i,"Tablet","btnIcon"),(0,Ud.RV)(i,"Mobile","btnIcon"),e(t=>(0,Ud.RV)(i,t,"btnIcon"))),t.generateCSS()},[i]);return""===i?.iconPlacement?.value?(0,I.jsx)(aL,{...t}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(kA,{...t}),(0,I.jsx)(wA,{...t})]})},save:uL,variations:oL,deprecated:[{attributes:{block_id:{type:"string",default:""},blockElements:{type:"array",default:[{id:0,slug:"Heading"},{id:1,slug:"Sub-Heading"},{id:2,slug:"Description"},{id:3,slug:"Rating"},{id:4,slug:"Button"}]},des:{
3770 3783 type:"string",source:"html",selector:".ablocks-info-box-text",default:"Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!"},allowBadgeHover:{type:"boolean",default:!1},allowButtonHover:{type:"boolean",default:!1},allowBadge:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!0},allowHeading:{type:"boolean",default:!0},allowSubHeading:{type:"boolean",default:!1},allowDes:{type:"boolean",default:!0},allowRating:{type:"boolean",default:!1},allowButton:{type:"boolean",default:!0},badgeText:{type:"string",default:"Featured"},badgeSize:{type:"string",default:"xs"},badgeTextColor:{type:"string",default:"#13191B"},badgeTextColorH:{type:"string",default:""},badgeBackground:{type:"string",default:"#DDDDDF"},badgeBackgroundH:{type:"string",default:""},badgeTransition:{type:"number",default:""},iconPrimaryColorH:{type:"string",default:""},iconTransition:{type:"number",default:""},heading:{type:"string",
3771 3784 source:"html",selector:".ablocks-info-box-heading",default:"Your Info Box Title"},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B"},headingTextColorHover:{type:"string",default:""},headingTransition:{type:"number",default:""},subHeading:{type:"string",source:"html",selector:".ablocks-info-box-sub-heading",default:"Your Info Box Sub Title"},subHeadingTag:{type:"string",default:"h4"},subHeadingTextColor:{type:"string",default:"#13191B"},subHeadingTextColorHover:{type:"string",default:""},subHeadingTransition:{type:"number",default:""},desDropCaps:{type:"boolean",default:!1},desDropCapsTextColor:{type:"string",default:"#0f2aff"},desGraphSize:{type:"string",default:"sm"},desSize:{type:"string",default:"sm"},desTextColor:{type:"string",default:"#74777C"},desTextColorHover:{type:"string",default:"gray"},desTransition:{type:"number",default:""},ratingScale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingColorHover:{
3772 3785 type:"string",default:""},ratingUnmarkedColor:{type:"string",default:"#696969"},ratingTransition:{type:"number",default:""},ratingUnmarkedColorHover:{type:"string",default:""},ratingShowCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},ratingNumberColor:{type:"string",default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},btnText:{type:"string",default:"Learn More"},btnSize:{type:"string",default:"sm"},btnTextColor:{type:"string",default:"#FAFAFA"},btnTextColorH:{type:"string",default:""},btnBackground:{type:"string",default:"#13191B"},btnBackgroundH:{type:"string",default:""},btnTransition:{type:"number",default:""},btnIconPosition:{type:"string",default:"right"},btnIconSpace:{type:"number",default:10},btnShowIcon:{type:"boolean",default:!0},alignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},stack:{type:"string",default:""},badgeBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",
3773 3786 borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",
@@ -3792,16 +3805,16 @@
3792 3805 imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",
3793 3806 imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",
3794 3807 offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",
3795 3808 scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{
3796 -animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:IA}]}),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");const VA=[{value:"default",label:(0,L.__)("Default","ablocks")},{value:"style2",label:(0,L.__)("Hidden Coupon","ablocks")},{value:"style3",label:(0,L.__)("Simple Coupon","ablocks")},{value:"style4",label:(0,L.__)("Coupon Overlay","ablocks")}],OA=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",
3797 -icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}];function YA(t){const{attributes:e,setAttributes:i}=t,{couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:s,isShowIcon:r,couponTypography:b,couponTextShadow:c,buttonTypography:d,buttonTextShadow:u,couponCodeColor:p,couponCodeBgColor:m,couponBtnTextColor:h,couponBtnBgColor:g,couponPadding:f,buttonPadding:y,position:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-coupon-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Coupon Code","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["style3"===o&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeName:"isShowIcon",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"position",attributeValue:T,
3798 -setAttributes:i,options:OA,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),attributeValue:o,setAttributes:i,attributeName:"couponStyle",options:VA}),(0,I.jsx)(Kl,{label:(0,L.__)("Coupon","ablocks"),attributeValue:a,setAttributes:i,attributeName:"couponCode",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:["style3"!==o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor",attributeValue:m||"#fff",setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
3809 +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:pL}]}),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");const mL=[{value:"default",label:(0,L.__)("Default","ablocks")},{value:"style2",label:(0,L.__)("Hidden Coupon","ablocks")},{value:"style3",label:(0,L.__)("Simple Coupon","ablocks")},{value:"style4",label:(0,L.__)("Coupon Overlay","ablocks")}],hL=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",
3810 +icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}];function gL(t){const{attributes:e,setAttributes:i}=t,{couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:s,isShowIcon:r,couponTypography:b,couponTextShadow:c,buttonTypography:d,buttonTextShadow:u,couponCodeColor:p,couponCodeBgColor:m,couponBtnTextColor:h,couponBtnBgColor:g,couponPadding:f,buttonPadding:y,position:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-coupon-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Coupon Code","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["style3"===o&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeName:"isShowIcon",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"position",attributeValue:T,
3811 +setAttributes:i,options:hL,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),attributeValue:o,setAttributes:i,attributeName:"couponStyle",options:mL}),(0,I.jsx)(Kl,{label:(0,L.__)("Coupon","ablocks"),attributeValue:a,setAttributes:i,attributeName:"couponCode",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:["style3"!==o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor",attributeValue:m||"#fff",setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
3799 3812 attributeName:"couponPadding",attributeValue:f,setAttributes:i,isResponsive:!0}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{label:(0,L.__)("Borders","ablocks"),attributeName:"couponBorder",attributeValue:e?.couponBorder,setAttributes:i})]}),"style3"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor",attributeValue:m||"#fff",setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
3800 3813 attributeName:"couponPadding",attributeValue:f,setAttributes:i,isResponsive:!0}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{label:(0,L.__)("Border","ablocks"),attributeName:"couponBorder",attributeValue:e?.couponBorder,setAttributes:i})]})]})})}),"style3"!==o&&(0,I.jsx)(V,{title:(0,L.__)("Coupon Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["style3"!==o&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeName:"isShowIcon",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("Button Text","ablocks"),attributeValue:n,setAttributes:i,attributeName:"couponBtnText",isResponsive:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("After Copy Text","ablocks"),attributeValue:s,setAttributes:i,attributeName:"couponBtnAfterCopyText",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:["style3"!==o&&(0,I.jsxs)(I.Fragment,{
3801 3814 children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"buttonTextShadow",attributeValue:u,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"couponBtnTextColor",attributeValue:h||"#fff",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"couponBtnBgColor",attributeValue:g||"#000",setAttributes:i}),"default"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),attributeName:"buttonPadding",attributeValue:y,setAttributes:i,isResponsive:!0}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{label:(0,L.__)("Border","ablocks"),attributeName:"buttonBorder",attributeValue:e?.buttonBorder,setAttributes:i})]})]
3802 3815 }),"style3"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor",attributeValue:m||"#fff",setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),attributeName:"couponPadding",attributeValue:f,setAttributes:i,isResponsive:!0}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{label:(0,L.__)("Border","ablocks"),attributeName:"couponBorder",attributeValue:e?.couponBorder,setAttributes:i})]})]})})}),r&&(0,
3803 -I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}YA.propTypes={},YA.defaultProps={};const XA={UU:"ablocks/coupon",uK:{iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string",
3816 +I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}gL.propTypes={},gL.defaultProps={};const fL={UU:"ablocks/coupon",uK:{iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string",
3804 3817 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
3805 3818 },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",
3806 3819 rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},position:{type:"object",default:{
3807 3820 value:"left",valueTablet:"",valueMobile:""}},couponTypographyGlobal:{type:"string",default:""},couponTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},couponTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",
@@ -3817,14 +3830,14 @@
3817 3830 imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",
3818 3831 externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",
3819 3832 xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{
3820 3833 mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{
3821 -type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},BA=t=>{let e=t.querySelector(".ablocks-coupon-clipboard"),i=e;const o=t.getAttribute("data-coupon-code"),a=t.getAttribute("data-clipboard-text"),l=t.getAttribute("data-clipped-text"),n=t.getAttribute("data-coupon-style");let s=a;"default"===n||"style2"===n?(e=t.querySelector(".ablocks-coupon-clipboard"),i=t.querySelector(".ablocks-coupon-clipboard-text"),
3822 -s=a):"style4"===n?(e=t.querySelector(".ablocks-coupon-clipboard"),i=e,s=a):(e=t.querySelector(".ablocks-coupon-code"),i=t.querySelector(".ablocks-coupon-code-text"),s=o),e?.addEventListener("click",()=>{((t,e,i,o,a)=>{((t,e,i,o=3e3)=>{const a=document.createElement("textarea");a.value=t,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),e&&e(),i&&setTimeout(()=>{i()},o)})(e,()=>{"style4"===o?t.style.opacity=0:t.textContent=i},()=>("style4"!==o&&(t.textContent=a),t.style.opacity=1),3e3)})(i,o,l,n,s)})};function EA(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:n,couponBtnText:r,couponBtnAfterCopyText:b,isShowIcon:c}=e,{isDynamicEnabled:d,data:u}=id({attributeValue:n}),{isDynamicEnabled:p,data:m}=id({attributeValue:r}),{isDynamicEnabled:h,data:g}=id({attributeValue:b}),f=(0,D.useBlockProps)();return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${i}`);null!==t&&BA(t)},[i,o,d?u:n,p?m:r,h?g:b,f]),(0,I.jsx)(l().Fragment,{
3823 -children:(0,I.jsxs)(Yb.A,{blockId:i,name:XA.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":d?u:n,"data-clipboard-text":p?m:r,"data-clipped-text":h?g:b,"data-coupon-style":o},children:[(0,I.jsxs)("div",{className:"ablocks-coupon-code",children:[c&&"style3"===o&&(0,I.jsx)(Fd,{attributes:e}),"style3"!==o&&d?u:n,"style3"===o&&(0,I.jsx)("span",{className:"ablocks-coupon-code-text",children:d?u:n}),("style2"===o||"style4"===o)&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:p?m:r})]})]}),"default"===o&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:p?m:r})]})]})})}EA.propTypes={},
3824 -EA.defaultProps={};const FA=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["justify-content"]=i["value"+e]+" !important"),{...o}},qA=(t,e="")=>{const i=(0,M.Zy)(t.couponTypography,{weight:"400"}),o=(0,M.Zy)(t.couponBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.couponPadding,{unit:"px"}),l=t.couponTypographyGlobal?t.couponTypographyGlobal:"";return{color:(0,Hs.qD)(t?.couponCodeColor),background:(0,Hs.qD)(t?.couponCodeBgColor),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,U.qD)(i,e,l),...(0,fc.qD)(t?.couponTextShadow)}},$A=(t,e="")=>{const i=(0,M.Zy)(t.couponBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},GA=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.buttonPadding,{unit:"px"});return{color:(0,Hs.qD)(t?.couponBtnTextColor),background:(0,Hs.qD)(t?.couponBtnBgColor),...(0,y.qD)(a,e),...(0,
3825 -c.qD)(l,"padding",e),...(0,U.qD)(i,e,o),...(0,fc.qD)(t?.buttonTextShadow)}},ZA=(t,e="")=>{const i=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function KA(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:r,isShowIcon:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:XA.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":a,"data-clipboard-text":n,"data-clipped-text":r,"data-coupon-style":o},children:[(0,I.jsxs)("div",{className:"ablocks-coupon-code",children:[b&&"style3"===o&&(0,I.jsx)(Fd,{attributes:e}),"style3"!==o&&a,"style3"===o&&(0,I.jsx)("span",{className:"ablocks-coupon-code-text",children:a}),("style2"===o||"style4"===o)&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{
3826 -attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]}),"default"===o&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]})})}KA.propTypes={},KA.defaultProps={};const JA={UU:"ablocks/coupon",uK:{iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string",
3834 +type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},yL=t=>{let e=t.querySelector(".ablocks-coupon-clipboard"),i=e;const o=t.getAttribute("data-coupon-code"),a=t.getAttribute("data-clipboard-text"),l=t.getAttribute("data-clipped-text"),n=t.getAttribute("data-coupon-style");let s=a;"default"===n||"style2"===n?(e=t.querySelector(".ablocks-coupon-clipboard"),i=t.querySelector(".ablocks-coupon-clipboard-text"),
3835 +s=a):"style4"===n?(e=t.querySelector(".ablocks-coupon-clipboard"),i=e,s=a):(e=t.querySelector(".ablocks-coupon-code"),i=t.querySelector(".ablocks-coupon-code-text"),s=o),e?.addEventListener("click",()=>{((t,e,i,o,a)=>{((t,e,i,o=3e3)=>{const a=document.createElement("textarea");a.value=t,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),e&&e(),i&&setTimeout(()=>{i()},o)})(e,()=>{"style4"===o?t.style.opacity=0:t.textContent=i},()=>("style4"!==o&&(t.textContent=a),t.style.opacity=1),3e3)})(i,o,l,n,s)})};function TL(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:n,couponBtnText:r,couponBtnAfterCopyText:b,isShowIcon:c}=e,{isDynamicEnabled:d,data:u}=id({attributeValue:n}),{isDynamicEnabled:p,data:m}=id({attributeValue:r}),{isDynamicEnabled:h,data:g}=id({attributeValue:b}),f=(0,D.useBlockProps)();return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${i}`);null!==t&&yL(t)},[i,o,d?u:n,p?m:r,h?g:b,f]),(0,I.jsx)(l().Fragment,{
3836 +children:(0,I.jsxs)(Yb.A,{blockId:i,name:fL.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":d?u:n,"data-clipboard-text":p?m:r,"data-clipped-text":h?g:b,"data-coupon-style":o},children:[(0,I.jsxs)("div",{className:"ablocks-coupon-code",children:[c&&"style3"===o&&(0,I.jsx)(Fd,{attributes:e}),"style3"!==o&&d?u:n,"style3"===o&&(0,I.jsx)("span",{className:"ablocks-coupon-code-text",children:d?u:n}),("style2"===o||"style4"===o)&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:p?m:r})]})]}),"default"===o&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:p?m:r})]})]})})}TL.propTypes={},
3837 +TL.defaultProps={};const HL=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["justify-content"]=i["value"+e]+" !important"),{...o}},ML=(t,e="")=>{const i=(0,M.Zy)(t.couponTypography,{weight:"400"}),o=(0,M.Zy)(t.couponBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.couponPadding,{unit:"px"}),l=t.couponTypographyGlobal?t.couponTypographyGlobal:"";return{color:(0,Hs.qD)(t?.couponCodeColor),background:(0,Hs.qD)(t?.couponCodeBgColor),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,U.qD)(i,e,l),...(0,fc.qD)(t?.couponTextShadow)}},xL=(t,e="")=>{const i=(0,M.Zy)(t.couponBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},kL=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.buttonPadding,{unit:"px"});return{color:(0,Hs.qD)(t?.couponBtnTextColor),background:(0,Hs.qD)(t?.couponBtnBgColor),...(0,y.qD)(a,e),...(0,
3838 +c.qD)(l,"padding",e),...(0,U.qD)(i,e,o),...(0,fc.qD)(t?.buttonTextShadow)}},vL=(t,e="")=>{const i=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function _L(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:r,isShowIcon:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:fL.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":a,"data-clipboard-text":n,"data-clipped-text":r,"data-coupon-style":o},children:[(0,I.jsxs)("div",{className:"ablocks-coupon-code",children:[b&&"style3"===o&&(0,I.jsx)(Fd,{attributes:e}),"style3"!==o&&a,"style3"===o&&(0,I.jsx)("span",{className:"ablocks-coupon-code-text",children:a}),("style2"===o||"style4"===o)&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{
3839 +attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]}),"default"===o&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]})})}_L.propTypes={},_L.defaultProps={};const RL={UU:"ablocks/coupon",uK:{iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string",
3827 3840 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
3828 3841 },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",
3829 3842 valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},position:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},couponTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},couponTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},buttonTypography:{type:"object",default:{
3830 3843 fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},couponPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonPadding:{
@@ -3839,24 +3852,22 @@
3839 3852 imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",
3840 3853 transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",
3841 3854 flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",
3842 3855 yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",
3843 -spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function QA(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:r,isShowIcon:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:JA.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":a,"data-clipboard-text":n,"data-clipped-text":r,"data-coupon-style":o},children:[(0,I.jsxs)("div",{className:"ablocks-coupon-code",children:[b&&"style3"===o&&(0,I.jsx)(Fd,{attributes:e}),"style3"!==o&&a,"style3"===o&&(0,I.jsx)("span",{className:"ablocks-coupon-code-text",children:a}),("style2"===o||"style4"===o)&&(0,I.jsxs)("div",{
3844 -className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]}),"default"===o&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]})})}QA.propTypes={},QA.defaultProps={},(0,M.xV)(XA.UU)&&(0,o.registerBlockType)(XA.UU,{title:(0,L.__)("Coupon","ablocks"),attributes:XA.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-coupon"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return""
3845 -;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",FA(i),FA(i,"Tablet"),FA(i,"Mobile"),e(t=>FA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,
3846 -Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-code",qA(i),qA(i,"Tablet"),qA(i,"Mobile"),e(t=>qA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-code:hover",$A(i),$A(i,"Tablet"),$A(i,"Mobile"),e(t=>$A(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-clipboard",GA(i),GA(i,"Tablet"),GA(i,"Mobile"),e(t=>GA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-clipboard:hover",ZA(i),ZA(i,"Tablet"),ZA(i,"Mobile"),e(t=>ZA(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(YA,{...t}),(0,I.jsx)(EA,{...t})]})},save:KA,deprecated:[{attributes:JA.uK,save:QA}]});var tL=i(50174);const eL=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,
3847 -L.__)("Right","ablocks"),value:"right",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],iL=t=>["top","bottom"].includes(t?.contentPosition),oL=(t,e)=>{const i={},o=t[e?`showDate${e}`:"showDate"];return"center"===t.contentPosition&&(i.display=o?"block":"none"),i},aL=(t,e)=>{const i={},o=t[e?`showDate${e}`:"showDate"];return("left"===t.contentPosition||"right"===t.contentPosition||iL(t))&&(i.display=o?"block":"none"),"center"===t.contentPosition&&(i.display="block"),i},lL=(t,e)=>{const i={};return""!==e&&"Tablet"!==e||(i.display="none"),!1===t[`showDate${e}`]&&"Mobile"===e&&(i.display="none"),!0===t[`showDate${e}`]&&"Mobile"===e&&(i.display="block"),i},nL=(t,e)=>{const i={},o=t[`showDate${e}`]||null;return"Mobile"===e?"left"===t.contentPosition?i.left="calc(35px / 2) !important":"right"===t.contentPosition&&(i.right="calc(35px / 2) !important"):"left"===t.contentPosition?(i.left=o?"calc(30% / 2) !important":"calc(61px / 2) !important",
3848 -i.right="auto !important"):"right"===t.contentPosition&&(i.right=o?"calc(30% / 2) !important":"calc(61px / 2) !important",i.left="auto !important"),i},sL=(t,e="")=>({fill:(0,Hs.qD)(t?.iconColor),...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:18,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:18,unitDefaultValue:"px",property:"height",device:e})}),rL=t=>({background:(0,Hs.qD)(t?.iconBackgroundColor),...(0,Eb.qD)({attributeValue:t?.iconBackgroundSize,attributeObjectKey:"value",defaultValue:48,property:"width"}),...(0,Eb.qD)({attributeValue:t?.iconBackgroundSize,attributeObjectKey:"value",defaultValue:48,property:"height"})}),bL=(t,e="")=>({background:(0,Hs.qD)(t?.thicknessColor),...(0,Eb.qD)({attributeValue:t?.thickness,attributeObjectKey:"value",defaultValue:3,property:"width"}),...(0,Eb.qD)({
3849 -attributeValue:t?.lineLeft,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"px",property:"margin-left",device:e}),...(0,Eb.qD)({attributeValue:t?.lineRight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"px",property:"margin-right",device:e})}),cL=(t,e="")=>iL(t)?{"--ablocks-content-timeline-icon-size":`${t?.iconBackgroundSize||48}px`}:{...(0,Eb.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"margin-top",device:e})},dL=(t,e="")=>iL(t)?(0,Eb.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e}):{},uL=t=>({background:(0,Hs.qD)(t?.contentBackgroundColor)}),pL=(t,e="")=>({padding:"15px",...(0,c.qD)(t?.contentPadding,"padding",e)}),mL=t=>{const e={};return t?.contentBackgroundColor&&(e["border-left-color"]=(0,Hs.qD)(t?.contentBackgroundColor),
3850 -e["border-right-color"]=(0,Hs.qD)(t?.contentBackgroundColor)),e},hL=(t,e="")=>{const i=(0,M.Zy)(t.dateTypography,{weight:"400"}),o=t.dateTypographyGlobal?t.dateTypographyGlobal:"";return{color:(0,Hs.qD)(t?.dateColor),...(0,U.qD)(i,e,o)}},gL=t=>{const e={};return iL(t)||("top"===t?.arrowAlignment&&(e.height="35px",e.top="10%",e.transform="translateY(-50%)",e.WebkitTransform="translateY(-50%)"),"bottom"===t?.arrowAlignment&&(e.height="35px",e.top="90%",e.transform="translateY(-50%)",e.WebkitTransform="translateY(-50%)"),"centre"===t?.arrowAlignment&&(e.height="35px",e.top="50%",e.transform="translateY(-50%)",e.WebkitTransform="translateY(-50%)")),e},fL=t=>{const e={};return iL(t)?(e["align-self"]="stretch",e["text-align"]=t?.dateAlign||"left",e):("top"===t?.arrowAlignment?(e["align-self"]="flex-start",e["margin-top"]=t?.iconBackgroundSize?t.iconBackgroundSize/4+"px":0):"bottom"===t?.arrowAlignment?(e["align-self"]="flex-end",
3851 -e["margin-bottom"]=t?.iconBackgroundSize?t.iconBackgroundSize/4+"px":0):e["align-self"]="center",e)},yL=t=>{const e={};return e["align-self"]="top"===t?.arrowAlignment?"flex-start":"bottom"===t?.arrowAlignment?"flex-end":"center",e},TL=({attributes:t,setAttributes:e})=>{const{arrowAlignment:i,contentPosition:o,iconBackgroundColor:a,iconColor:n,thicknessColor:s,dateFormat:r,contentBackgroundColor:b,showDate:c,showDateTablet:d,showDateMobile:u,dateColor:p,dateTypography:m,contentPadding:h,datePadding:g,dateAlign:f,dateBackground:y,connectorAnimationColor:T,showAnimation:H}=t,x=lt(),k=iL(t);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:t,setAttributes:e,docs_url:"https://ablocks.pro/docs/ablocks-content-timeline-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Content Timeline","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!1,label:(0,
3852 -L.__)("Content Position","ablocks"),options:[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"}],attributeName:"contentPosition",attributeValue:o,setAttributes:e}),(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!1,label:(0,L.__)("Arrow Alignment","ablocks"),options:[{label:k?(0,L.__)("Start","ablocks"):(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:k?(0,L.__)("End","ablocks"):(0,L.__)("Bottom","ablocks"),value:"bottom"}],attributeName:"arrowAlignment",attributeValue:i,setAttributes:e}),""===x&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Date","ablocks"),attributeValue:c,setAttributes:e,attributeName:"showDate"}),"Tablet"===x&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Date","ablocks"),attributeValue:d,setAttributes:e,
3853 -attributeName:"showDateTablet"}),"Mobile"===x&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Date","ablocks"),attributeValue:u,setAttributes:e,attributeName:"showDateMobile"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeName:"contentBackgroundColor",attributeValue:b,setAttributes:e}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),attributeName:"itemGap",attributeObjectKey:"value",attributeValue:t?.itemGap,setAttributes:e,hasUnit:!0,step:1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:tL.Qk}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:h,setAttributes:e})]})})}),t[`showDate${x}`]&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Date","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,
3854 -L.__)("Date Format","ablocks"),options:M.vL,attributeValue:r,attributeName:"dateFormat",setAttributes:e,allowDeselect:!1,isResponsive:!1}),"Mobile"===x&&(0,I.jsx)(Wb,{isResponsive:!1,isInline:!0,label:(0,L.__)("Date Alignment","ablocks"),options:eL,attributeName:"dateAlign",attributeValue:f,setAttributes:e})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Date Typography","ablocks"),attributeName:"dateTypography",attributeValue:m,setAttributes:e,isResponsive:!0,attributes:t}),(0,I.jsx)(Ws,{label:(0,L.__)("Date Color","ablocks"),attributeName:"dateColor",attributeValue:p,setAttributes:e}),"Mobile"===x&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Date Background","ablocks"),attributeName:"dateBackground",attributeValue:y,setAttributes:e}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"datePadding",attributeValue:g,setAttributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!0,isHeader:!0
3855 -}),(0,I.jsx)(Us,{attributeName:"dateBorder",attributeValue:t?.dateBorder,setAttributes:e})]})]})})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Connectors","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"contentTimeLineIcon",attributes:t,setAttributes:e,legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"iconSize",attributeValue:t?.iconSize,setAttributes:e,attributeDefaultValue:tL.RK}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Background Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"iconBackgroundSize",attributeValue:t?.iconBackgroundSize,setAttributes:e,attributeDefaultValue:tL.BI}),!k&&"right"!==o&&(0,I.jsx)(_t,{label:(0,L.__)("Line Left","ablocks"),min:-100,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"lineLeft",attributeValue:t?.lineLeft,
3856 -setAttributes:e,attributeDefaultValue:tL.ah,autoSyncRange:!1}),"right"===o&&(0,I.jsx)(_t,{label:(0,L.__)("Right Line","ablocks"),min:-100,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"lineRight",attributeValue:t?.lineRight,setAttributes:e,attributeDefaultValue:tL.x7,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Connector Thickness","ablocks"),min:1,max:10,isInline:!1,isResponsive:!1,attributeName:"thickness",attributeValue:t?.thickness,setAttributes:e,attributeDefaultValue:tL.Xf})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Connector Color","ablocks"),attributeName:"thicknessColor",attributeValue:s,setAttributes:e}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Animation","ablocks"),attributeValue:H,setAttributes:e,attributeName:"showAnimation"}),H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Connector Animation Color","ablocks"),attributeName:"connectorAnimationColor",attributeValue:T,setAttributes:e}),(0,
3857 -I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)("Animation color only work at frontend.","ablocks")})]}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:n,setAttributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Background Color","ablocks"),attributeName:"iconBackgroundColor",attributeValue:a,setAttributes:e})]})})})]})})})},HL={UU:"ablocks/content-timeline",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},iconColor:{type:"string",default:"#000000"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean"},showDateMobile:{type:"boolean",default:!0},showAnimation:{type:"boolean",default:!1},connectorAnimationColor:{type:"string",default:"00ad6b"},dateColor:{type:"string",default:"#333333"},dateFormat:{type:"string",
3858 -default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},lineLeft:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},lineRight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconSvgPath:{type:"string",
3856 +spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function SL(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:r,isShowIcon:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:RL.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":a,"data-clipboard-text":n,"data-clipped-text":r,"data-coupon-style":o},children:[(0,I.jsxs)("div",{className:"ablocks-coupon-code",children:[b&&"style3"===o&&(0,I.jsx)(Fd,{attributes:e}),"style3"!==o&&a,"style3"===o&&(0,I.jsx)("span",{className:"ablocks-coupon-code-text",children:a}),("style2"===o||"style4"===o)&&(0,I.jsxs)("div",{
3857 +className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]}),"default"===o&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]})})}SL.propTypes={},SL.defaultProps={},(0,M.xV)(fL.UU)&&(0,o.registerBlockType)(fL.UU,{title:(0,L.__)("Coupon","ablocks"),attributes:fL.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-coupon"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return""
3858 +;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",HL(i),HL(i,"Tablet"),HL(i,"Mobile"),e(t=>HL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,
3859 +Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-code",ML(i),ML(i,"Tablet"),ML(i,"Mobile"),e(t=>ML(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-code:hover",xL(i),xL(i,"Tablet"),xL(i,"Mobile"),e(t=>xL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-clipboard",kL(i),kL(i,"Tablet"),kL(i,"Mobile"),e(t=>kL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-clipboard:hover",vL(i),vL(i,"Tablet"),vL(i,"Mobile"),e(t=>vL(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(gL,{...t}),(0,I.jsx)(TL,{...t})]})},save:_L,deprecated:[{attributes:RL.uK,save:SL}]});var WL=i(50174);(0,L.__)("Left","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Right","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Bottom","ablocks");const PL=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,
3860 +L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("Right","ablocks"),value:"right",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],UL=t=>["top","bottom"].includes(t?.contentPosition),jL=(t,e)=>{const i={},o=t[e?`showDate${e}`:"showDate"];return"center"===t.contentPosition&&(i.display=o?"block":"none"),i},wL=(t,e)=>{const i={},o=t[e?`showDate${e}`:"showDate"];return("left"===t.contentPosition||"right"===t.contentPosition||UL(t))&&(i.display=o?"block":"none"),"center"===t.contentPosition&&(i.display="block"),i},zL=(t,e)=>{const i={};return""!==e&&"Tablet"!==e||(i.display="none"),!1===t[`showDate${e}`]&&"Mobile"===e&&(i.display="none"),!0===t[`showDate${e}`]&&"Mobile"===e&&(i.display="block"),i},CL=(t,e="")=>({fill:(0,Hs.qD)(t?.iconColor),...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:18,unitDefaultValue:"px",
3861 +property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:18,unitDefaultValue:"px",property:"height",device:e})}),AL=t=>({background:(0,Hs.qD)(t?.iconBackgroundColor),...(0,Eb.qD)({attributeValue:t?.iconBackgroundSize,attributeObjectKey:"value",defaultValue:48,property:"width"}),...(0,Eb.qD)({attributeValue:t?.iconBackgroundSize,attributeObjectKey:"value",defaultValue:48,property:"height"})}),LL=t=>({background:(0,Hs.qD)(t?.thicknessColor),...(0,Eb.qD)({attributeValue:t?.thickness,attributeObjectKey:"value",defaultValue:3,property:"width"})}),DL=(t,e="")=>{const i={"--ablocks-content-timeline-icon-size":`${t?.iconBackgroundSize||48}px`};return UL(t)?i:{...e?{}:i,...(0,Eb.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"margin-top",device:e})}},NL=(t,e="")=>UL(t)?(0,Eb.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",isResponsive:!0,
3862 +hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e}):{},IL=t=>({background:(0,Hs.qD)(t?.contentBackgroundColor)}),VL=(t,e="")=>({padding:"15px",...(0,c.qD)(t?.contentPadding,"padding",e)}),OL=t=>{const e={};return t?.contentBackgroundColor&&(e["border-left-color"]=(0,Hs.qD)(t?.contentBackgroundColor),e["border-right-color"]=(0,Hs.qD)(t?.contentBackgroundColor)),e},YL=(t,e="")=>{const i=(0,M.Zy)(t.dateTypography,{weight:"400"}),o=t.dateTypographyGlobal?t.dateTypographyGlobal:"";return{color:(0,Hs.qD)(t?.dateColor),...(0,U.qD)(i,e,o)}},XL=t=>{const e={};return UL(t)?(e["align-self"]="stretch",e["text-align"]=t?.dateAlign||"left",e):("top"===t?.arrowAlignment?(e["align-self"]="flex-start",e["margin-top"]=t?.iconBackgroundSize?t.iconBackgroundSize/4+"px":0):"bottom"===t?.arrowAlignment?(e["align-self"]="flex-end",e["margin-bottom"]=t?.iconBackgroundSize?t.iconBackgroundSize/4+"px":0):e["align-self"]="center",e)},BL=t=>{const e={}
3863 +;return e["align-self"]="top"===t?.arrowAlignment?"flex-start":"bottom"===t?.arrowAlignment?"flex-end":"center",e},EL=({attributes:t,setAttributes:e})=>{const{arrowAlignment:i,contentPosition:o,iconBackgroundColor:a,iconColor:n,thicknessColor:s,dateFormat:r,contentBackgroundColor:b,showDate:c,showDateTablet:d,showDateMobile:u,dateColor:p,dateTypography:m,contentPadding:h,datePadding:g,dateAlign:f,dateBackground:y,connectorAnimationColor:T,showAnimation:H}=t,x=lt(),k=UL(t);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:t,setAttributes:e,docs_url:"https://ablocks.pro/docs/ablocks-content-timeline-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Content Timeline","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-content-timeline-settings__button-group",children:(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!1,label:(0,
3864 +L.__)("Content Position","ablocks"),options:[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"}],attributeName:"contentPosition",attributeValue:o,setAttributes:e})}),(0,I.jsx)("div",{className:"ablocks-content-timeline-settings__button-group ablocks-content-timeline-settings__button-group--arrow-alignment",children:(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!1,label:(0,L.__)("Arrow Alignment","ablocks"),options:[{label:k?(0,L.__)("Start","ablocks"):(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:k?(0,L.__)("End","ablocks"):(0,L.__)("Bottom","ablocks"),value:"bottom"}],attributeName:"arrowAlignment",attributeValue:i,setAttributes:e})}),""===x&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Date","ablocks"),attributeValue:c,setAttributes:e,
3865 +attributeName:"showDate"}),"Tablet"===x&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Date","ablocks"),attributeValue:d,setAttributes:e,attributeName:"showDateTablet"}),"Mobile"===x&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Date","ablocks"),attributeValue:u,setAttributes:e,attributeName:"showDateMobile"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeName:"contentBackgroundColor",attributeValue:b,setAttributes:e}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),attributeName:"itemGap",attributeObjectKey:"value",attributeValue:t?.itemGap,setAttributes:e,hasUnit:!0,step:1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:WL.Qk}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:h,setAttributes:e})]})})}),t[`showDate${x}`]&&(0,
3866 +I.jsx)(N.PanelBody,{title:(0,L.__)("Date","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Date Format","ablocks"),options:M.vL,attributeValue:r,attributeName:"dateFormat",setAttributes:e,allowDeselect:!1,isResponsive:!1}),"Mobile"===x&&(0,I.jsx)(Wb,{isResponsive:!1,isInline:!0,label:(0,L.__)("Date Alignment","ablocks"),options:PL,attributeName:"dateAlign",attributeValue:f,setAttributes:e})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Date Typography","ablocks"),attributeName:"dateTypography",attributeValue:m,setAttributes:e,isResponsive:!0,attributes:t}),(0,I.jsx)(Ws,{label:(0,L.__)("Date Color","ablocks"),attributeName:"dateColor",attributeValue:p,setAttributes:e}),"Mobile"===x&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Date Background","ablocks"),attributeName:"dateBackground",attributeValue:y,setAttributes:e}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
3867 +isResponsive:!0,attributeName:"datePadding",attributeValue:g,setAttributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!0,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"dateBorder",attributeValue:t?.dateBorder,setAttributes:e})]})]})})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Connectors","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"contentTimeLineIcon",attributes:t,setAttributes:e,legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"iconSize",attributeValue:t?.iconSize,setAttributes:e,attributeDefaultValue:WL.RK}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Background Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"iconBackgroundSize",attributeValue:t?.iconBackgroundSize,setAttributes:e,attributeDefaultValue:WL.BI}),(0,I.jsx)(_t,{label:(0,
3868 +L.__)("Connector Thickness","ablocks"),min:1,max:10,isInline:!1,isResponsive:!1,attributeName:"thickness",attributeValue:t?.thickness,setAttributes:e,attributeDefaultValue:WL.Xf})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Connector Color","ablocks"),attributeName:"thicknessColor",attributeValue:s,setAttributes:e}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Animation","ablocks"),attributeValue:H,setAttributes:e,attributeName:"showAnimation"}),H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Connector Animation Color","ablocks"),attributeName:"connectorAnimationColor",attributeValue:T,setAttributes:e})," "]}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:n,setAttributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Background Color","ablocks"),attributeName:"iconBackgroundColor",attributeValue:a,setAttributes:e})]})})})]})})})},FL={UU:"ablocks/content-timeline",uK:{block_id:{
3869 +type:"string",default:""},blockVersion:{type:"number",default:""},iconColor:{type:"string",default:"#000000"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean"},showDateMobile:{type:"boolean",default:!0},showAnimation:{type:"boolean",default:!1},connectorAnimationColor:{type:"string",default:"00ad6b"},dateColor:{type:"string",default:"#333333"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconSvgPath:{type:"string",
3859 3870 default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},contentTimeLineIconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},contentTimeLineIconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},contentTimeLineIconImageUrl:{type:"string",default:""},contentTimeLineIconImageID:{type:"number",default:0},contentTimeLineIconImageSize:{type:"string",default:""},contentTimeLineIconColor:{type:"string",default:"#69727d"},contentTimeLineIconBgColor:{type:"string",default:""},contentTimeLineIconHoverColor:{type:"string",default:""},contentTimeLineIconHoverBgColor:{type:"string",default:""},
3860 3871 contentTimeLineIconType:{type:"string",default:"default"},contentTimeLineIconShape:{type:"string",default:"circle"},contentTimeLineIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},contentTimeLineIconBoxShadow:{type:"object",default:{preset:"",
3861 3872 shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},contentTimeLineIconSize:{type:"number",default:55},contentTimeLineIconRotate:{type:"number",default:0},contentTimeLineIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIcontransitionDuration:{type:"number",default:0},contentTimeLineIconImageWidth:{type:"number",default:0},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},dateAlign:{type:"string",
3862 3873 default:"left"},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateTypographyGlobal:{type:"string",default:""},dateTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},
@@ -3869,17 +3880,19 @@
3869 3880 imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{
3870 3881 zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,
3871 3882 rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",
3872 3883 maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,
3873 -easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},ML=t=>"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(t):setTimeout(t,16);class xL{constructor(t,e=!1){this.contentTimeline=t,this.timelineElement=t.querySelector(".ablocks-block-content-timeline"),this.blockTopHeight=this.contentTimeline.getBoundingClientRect().top+window.scrollY,this.editor=e,this.arrowAlignment=this.timelineElement.getAttribute("data-arrow-alignment"),this.animationColor=this.timelineElement.getAttribute("data-animation-color"),this.showAnimation=this.timelineElement.getAttribute("data-show-animation"),
3874 -this.lineElement=this.contentTimeline.querySelector(".ablocks-block-content-timeline__line"),this.lineInnerElement=this.contentTimeline.querySelector(".ablocks-block-content-timeline__line__inner"),this.childBlocks=Array.from(this.contentTimeline.querySelectorAll(".ablocks-block-content-timeline-child")),this.handleScroll=this.handleScroll.bind(this),this.updateTimeline=this.updateTimeline.bind(this);const i=document.querySelector(".interface-navigable-region.interface-interface-skeleton__content");this.editorDiv=i,this.init()}init(){this.updateTimeline(),this.handleScroll(),window.addEventListener("scroll",this.handleScroll),void 0!==window.ResizeObserver&&(this.resizeObserver=new window.ResizeObserver(()=>ML(()=>{(this.hasHorizontalPosition()||this.wasHorizontal)&&(this.updateTimeline(),this.handleScroll())})),this.resizeObserver.observe(this.timelineElement))}updateTimeline(){if(0===this.childBlocks.length||!this.lineElement)return;if(this.wasHorizontal=this.isHorizontal(),
3875 -this.wasHorizontal)return void this.updateHorizontalTimeline();if(this.resetHorizontalLineStyles(),this.hasHorizontalPosition())return void this.updateStackedTimeline();const[t,e]=[this.childBlocks[0],this.childBlocks[this.childBlocks.length-1]],[i,o]=[t.getBoundingClientRect().height,e.getBoundingClientRect().height];switch(this.arrowAlignment){case"center":this.lineElement.style.top=i/2+"px",this.lineElement.style.bottom=o/2+"px";break;case"bottom":this.lineElement.style.top=`${i}px`,this.lineElement.style.bottom=o/o+"px";break;case"top":this.lineElement.style.top=i/i+"px",this.lineElement.style.bottom=`${o}px`}this.lineInnerElement.style.height="0px"}hasHorizontalPosition(){return this.timelineElement.classList.contains("ablocks-block-content-timeline--top")||this.timelineElement.classList.contains("ablocks-block-content-timeline--bottom")}isHorizontal(){
3876 -return!(!this.hasHorizontalPosition()||!this.childBlocks[0]?.parentElement)&&"row"===window.getComputedStyle(this.childBlocks[0].parentElement).flexDirection}resetHorizontalLineStyles(){["left","width","height","marginLeft","marginRight"].forEach(t=>{this.lineElement.style[t]=""}),this.lineInnerElement.style.width=""}updateHorizontalTimeline(){const t=this.childBlocks.map(t=>t.querySelector(".ablocks__in-view-icon")).filter(Boolean);if(0===t.length)return;this.resetHorizontalLineStyles();const e=parseFloat(window.getComputedStyle(this.lineElement).width)||3,i=this.timelineElement.getBoundingClientRect(),o=t[0].getBoundingClientRect(),a=t[t.length-1].getBoundingClientRect(),l=o.left+o.width/2,n=a.left+a.width/2,s=o.top+o.height/2;this.lineElement.style.top=s-i.top-e/2+"px",this.lineElement.style.bottom="auto",this.lineElement.style.left=l-i.left+"px",this.lineElement.style.width=`${Math.max(n-l,0)}px`,this.lineElement.style.height=`${e}px`,this.lineElement.style.marginLeft="0px",
3877 -this.lineElement.style.marginRight="0px",this.lineInnerElement.style.height="100%",this.lineInnerElement.style.width="0px"}updateStackedTimeline(){const t=this.childBlocks.map(t=>t.querySelector(".ablocks__in-view-icon")).filter(Boolean);if(0===t.length)return;const e=this.timelineElement.getBoundingClientRect(),i=t[0].getBoundingClientRect(),o=t[t.length-1].getBoundingClientRect();this.lineElement.style.top=i.top+i.height/2-e.top+"px",this.lineElement.style.bottom=e.bottom-(o.top+o.height/2)+"px",this.lineInnerElement.style.height="0px"}handleHorizontalScroll(){const t="true"===this.showAnimation&&!this.editor&&this.timelineElement.getBoundingClientRect().top<window.innerHeight/2;this.childBlocks.forEach(e=>{const i=e.querySelector(".ablocks-icon-wrap");i&&(i.style.backgroundColor=t?(0,Hs.qD)(this.animationColor):"")}),this.lineInnerElement&&("true"===this.showAnimation&&(this.lineInnerElement.style.backgroundColor=(0,Hs.qD)(this.animationColor)),
3878 -this.lineInnerElement.style.width=t?"100%":"0px")}handleScroll(){ML(()=>{if(this.isHorizontal())return void this.handleHorizontalScroll();let t=0;const e=window.scrollY;this.childBlocks.forEach(i=>{t+=i.getBoundingClientRect().height;const o=i.querySelector(".ablocks-icon-wrap");e-this.blockTopHeight>t-i.getBoundingClientRect().height?"true"===this.showAnimation&&!1===this.editor&&(o.style.backgroundColor=(0,Hs.qD)(this.animationColor)):o.style.backgroundColor=""}),this.lineInnerElement&&("true"===this.showAnimation&&(this.lineInnerElement.style.backgroundColor=(0,Hs.qD)(this.animationColor)),this.editor||(this.lineInnerElement.style.height=e-this.blockTopHeight+"px"))})}destroy(){window.removeEventListener("scroll",this.handleScroll),this.resizeObserver&&this.resizeObserver.disconnect()}}const kL=t=>{
3879 -const{attributes:e,clientId:i,isSelected:o}=t,{block_id:l,contentPosition:n,arrowAlignment:b,iconColor:c,iconBackgroundColor:d,thicknessColor:u,showAnimation:p,connectorAnimationColor:m,contentBackgroundColor:h,showDate:g,showDateTablet:f,showDateMobile:y,dateFormat:T,dateColor:H,dateAlign:x,dateBackground:k}=e,{updateBlockAttributes:v}=(0,r.useDispatch)("core/block-editor"),_=(0,r.useSelect)(t=>t("core/block-editor").getBlockOrder(i).join(","),[i]);(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${l}.ablocks-block--content-timeline`);let e=null;t&&(e=new xL(t,!0),e.updateTimeline());const i=()=>{e&&e.updateTimeline()};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),e&&e.destroy()}},[l,b,n,_]),(0,a.useEffect)(()=>{o&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(i);t.length>0&&t.forEach(t=>{const i=t.clientId;v(i,{contentPosition:n,arrowAlignmentment:b,iconColor:c,iconBackgroundColor:d,thicknessColor:u,showAnimation:p,
3880 -connectorAnimationColor:m,contentBackgroundColor:h,showDate:g,showDateTablet:f,showDateMobile:y,dateFormat:T,dateColor:H,dateAlign:x,dateBackground:k,parentAttribute:e})})})()},[e,o,_]);const R="ablocks-block-content-timeline",S=s()(R,`${R}--outer-wrap`,`${R}--editor-preview-mode-desktop`,`${R}--${n}`),W=s()(`${R}__line`);return(0,I.jsx)(Yb.A,{blockId:l,name:HL.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:S,"data-arrow-alignment":b,"data-animation-color":m,"data-show-animation":p,children:[(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/content-timeline-child"],["ablocks/content-timeline-child"],["ablocks/content-timeline-child"]],templateLock:!1,allowedBlocks:["ablocks/content-timeline-child"]}),(0,I.jsx)("div",{className:W,children:(0,I.jsx)("div",{className:`${R}__line__inner`})})]})})};function vL(t){
3881 -const{attributes:e}=t,{block_id:i,contentPosition:o,arrowAlignment:a}=e,l="ablocks-block-content-timeline",n=s()(l,`${l}--outer-wrap`,`${l}--preview-mode-desktop`,`${l}--${o}`),r=s()(`${l}__line`);return(0,I.jsx)(sc,{blockId:i,name:HL.UU,attributes:e,children:(0,I.jsxs)("div",{className:n,"data-arrow-alignment":a,"data-animation-color":e?.connectorAnimationColor,"data-show-animation":e?.showAnimation,children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:r,children:(0,I.jsx)("div",{className:`${l}__line__inner`})})]})})}vL.propTypes={};const _L={UU:"ablocks/content-timeline",uK:{block_id:{type:"string",default:""},iconColor:{type:"string",default:"#000000"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",default:"#333333"
3884 +easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},qL="ablocks-block-content-timeline__marker--active",$L="--ablocks-ct-active-color",GL="--ablocks-ct-date-width",ZL=["top","bottom","left","right","width","height","margin-left","margin-right","transform"],KL=["width","height","transform","transform-origin"],JL=["top","bottom","left","right"];class QL{constructor(t,e=!1){var i;this.contentTimeline=t,this.editor=e,this.timelineElement=t.querySelector(".ablocks-block-content-timeline"),this.timelineElement&&(this.window=t.ownerDocument.defaultView||window,this.showAnimation="true"===this.timelineElement.getAttribute("data-show-animation"),
3885 +this.animationColor="string"==typeof(i=this.timelineElement.getAttribute("data-animation-color"))&&/^(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(i.trim())?`#${i.trim()}`:(0,Hs.qD)(i),this.lineElement=this.timelineElement.querySelector(".ablocks-block-content-timeline__line"),this.lineInnerElement=this.timelineElement.querySelector(".ablocks-block-content-timeline__line__inner"),this.childBlocks=Array.from(this.timelineElement.querySelectorAll(".ablocks-block-content-timeline-child")),this.markers=this.childBlocks.map(t=>t.querySelector(".ablocks__in-view-icon")).filter(Boolean),this.arrows=this.childBlocks.map(t=>({marker:t.querySelector(".ablocks__in-view-icon"),arrow:t.querySelector(".ablocks-block-content-timeline-child__arrow")})).filter(({marker:t,arrow:e})=>t&&e),this.geometry=null,this.dirty=!0,this.frameRequested=!1,this.destroyed=!1,this.handleScroll=this.handleScroll.bind(this),this.handleResize=this.handleResize.bind(this),this.markDirty=this.markDirty.bind(this),
3886 +this.frame=this.frame.bind(this),this.init())}init(){if(!this.lineElement||0===this.markers.length)return;this.animationColor&&this.timelineElement.style.setProperty($L,this.animationColor);const t=this.window;t.addEventListener("scroll",this.handleScroll,{passive:!0,capture:!0}),t.addEventListener("resize",this.handleResize),void 0!==t.ResizeObserver&&(this.resizeObserver=new t.ResizeObserver(this.markDirty),[this.timelineElement,...this.childBlocks,...this.markers].forEach(t=>this.resizeObserver.observe(t))),void 0!==t.MutationObserver&&(this.mutationObserver=new t.MutationObserver(this.markDirty),[this.timelineElement,...this.childBlocks].forEach(t=>this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}))),this.images=Array.from(this.timelineElement.querySelectorAll("img")).filter(t=>!t.complete),this.images.forEach(t=>t.addEventListener("load",this.markDirty));const e=this.contentTimeline.ownerDocument.fonts;e&&e.ready&&e.ready.then(this.markDirty).catch(()=>{}),
3887 +this.updateTimeline()}updateTimeline(){!this.destroyed&&this.lineElement&&(this.measure(),this.update())}handleScroll(){this.requestFrame()}handleResize(){this.markDirty()}markDirty(){this.dirty=!0,this.requestFrame()}requestFrame(){this.frameRequested||this.destroyed||(this.frameRequested=!0,this.window.requestAnimationFrame(this.frame))}frame(){this.frameRequested=!1,this.destroyed||(this.dirty&&this.measure(),this.update())}isHorizontal(){const t=this.timelineElement.classList.contains("ablocks-block-content-timeline--top")||this.timelineElement.classList.contains("ablocks-block-content-timeline--bottom"),e=this.childBlocks[0]?.parentElement;return t&&!!e&&"row"===this.window.getComputedStyle(e).flexDirection}setLineStyle(t,e){this.lineElement.style.setProperty(t,e,"important")}clearLineStyles(t=!1){ZL.forEach(t=>this.lineElement.style.removeProperty(t)),t&&this.lineInnerElement&&KL.forEach(t=>this.lineInnerElement.style.removeProperty(t))}equalizeDateColumns(t,e){
3888 +if(this.timelineElement.style.removeProperty(GL),t||!this.timelineElement.classList.contains("ablocks-block-content-timeline--left")&&!this.timelineElement.classList.contains("ablocks-block-content-timeline--right"))return!1;const i=Math.max(0,...this.childBlocks.map(t=>t.querySelector(".ablocks-block-content-timeline-child__date")?.getBoundingClientRect().width||0));return!(i<=0||(this.timelineElement.style.setProperty(GL,`${Math.ceil(i/e)}px`),0))}measure(){this.dirty=!1;const t=this.isHorizontal();this.clearLineStyles();let e=this.timelineElement.getBoundingClientRect();const i=e.width/(this.timelineElement.offsetWidth||1)||1,o=e.height/(this.timelineElement.offsetHeight||1)||1;this.equalizeDateColumns(t,i)&&(e=this.timelineElement.getBoundingClientRect());const a=e.left+this.timelineElement.clientLeft*i,l=e.top+this.timelineElement.clientTop*o,n=this.markers.map(t=>{const e=t.getBoundingClientRect();return{x:(e.left+e.width/2-a)/i,y:(e.top+e.height/2-l)/o}});this.scaleY=o
3889 +;const s=n[0],r=n[n.length-1];if(this.setLineStyle("margin-left","0px"),this.setLineStyle("margin-right","0px"),this.setLineStyle("right","auto"),this.setLineStyle("bottom","auto"),t){const t=parseFloat(this.window.getComputedStyle(this.lineElement).width)||3;this.setLineStyle("left",`${s.x}px`),this.setLineStyle("top",`${s.y}px`),this.setLineStyle("width",`${Math.max(r.x-s.x,0)}px`),this.setLineStyle("height",`${t}px`),this.setLineStyle("transform","translateY(-50%)")}else this.setLineStyle("left",`${s.x}px`),this.setLineStyle("top",`${s.y}px`),this.setLineStyle("height",`${Math.max(r.y-s.y,0)}px`),this.setLineStyle("transform","translateX(-50%)");this.positionArrows(t,i,o),this.geometry={horizontal:t,centers:n}}clearArrowStyles(){this.arrows.forEach(({arrow:t})=>JL.forEach(e=>t.style.removeProperty(e)))}positionArrows(t,e,i){this.clearArrowStyles()
3890 +;const o=this.timelineElement.classList.contains("ablocks-block-content-timeline--top")||this.timelineElement.classList.contains("ablocks-block-content-timeline--bottom");this.arrows.forEach(({marker:a,arrow:l})=>{const n=l.offsetParent;if(!n)return;const s=a.getBoundingClientRect(),r=n.getBoundingClientRect(),b=(t,e)=>l.style.setProperty(t,e,"important");if(t)return b("left",(s.left+s.width/2-r.left-n.clientLeft*e)/e-l.offsetWidth/2+"px"),void b("right","auto");const c=(s.top+s.height/2-r.top-n.clientTop*i)/i;b("top",`${o?c-l.offsetHeight/2:c}px`),b("bottom","auto")})}update(){if(!this.geometry||!this.lineInnerElement)return;const{horizontal:t,centers:e}=this.geometry;if(!this.showAnimation)return this.setFill(t,0),void this.markers.forEach(t=>t.classList.remove(qL));const i=this.timelineElement.getBoundingClientRect(),o=this.scaleY||1,a=(this.window.innerHeight/2-(i.top+this.timelineElement.clientTop*o))/o,l=e[0],n=e[e.length-1];if(t){const t=a>=l.y;return this.setFill(!0,t?1:0),
3891 +void this.markers.forEach(e=>e.classList.toggle(qL,t))}const s=n.y-l.y,r=s>0?(b=(a-l.y)/s,Math.min(Math.max(b,0),1)):0;var b;this.setFill(!1,r),this.markers.forEach((t,i)=>t.classList.toggle(qL,a>=e[i].y))}setFill(t,e){const i=this.lineInnerElement;i.style.setProperty("width","100%"),i.style.setProperty("height","100%"),i.style.setProperty("transform-origin",t?"left center":"center top"),i.style.setProperty("transform",t?`scaleX(${e})`:`scaleY(${e})`)}destroy(){this.destroyed||(this.destroyed=!0,this.lineElement&&(this.window.removeEventListener("scroll",this.handleScroll,{capture:!0}),this.window.removeEventListener("resize",this.handleResize),this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),(this.images||[]).forEach(t=>t.removeEventListener("load",this.markDirty)),this.clearLineStyles(!0),this.clearArrowStyles(),this.markers.forEach(t=>t.classList.remove(qL)),this.timelineElement.style.removeProperty($L),
3892 +this.timelineElement.style.removeProperty(GL)))}}const tD=t=>{const{attributes:e,clientId:i,isSelected:o}=t,{block_id:l,contentPosition:n,arrowAlignment:b,iconColor:c,iconBackgroundColor:d,thicknessColor:u,showAnimation:p,connectorAnimationColor:m,contentBackgroundColor:h,showDate:g,showDateTablet:f,showDateMobile:y,dateFormat:T,dateColor:H,dateAlign:x,dateBackground:k}=e,{updateBlockAttributes:v}=(0,r.useDispatch)("core/block-editor"),_=(0,r.useSelect)(t=>t("core/block-editor").getBlockOrder(i).join(","),[i]);(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${l}.ablocks-block--content-timeline`),e=t?new QL(t,!0):null;return()=>{e&&e.destroy()}},[l,b,n,_,p,m,e.iconBackgroundSize,e.iconSize,e.thickness]),(0,a.useEffect)(()=>{o&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(i);t.length>0&&t.forEach(t=>{const i=t.clientId;v(i,{contentPosition:n,arrowAlignmentment:b,iconColor:c,iconBackgroundColor:d,thicknessColor:u,showAnimation:p,connectorAnimationColor:m,
3893 +contentBackgroundColor:h,showDate:g,showDateTablet:f,showDateMobile:y,dateFormat:T,dateColor:H,dateAlign:x,dateBackground:k,parentAttribute:e})})})()},[e,o,_]);const R="ablocks-block-content-timeline",S=s()(R,`${R}--outer-wrap`,`${R}--editor-preview-mode-desktop`,`${R}--${n}`),W=s()(`${R}__line`);return(0,I.jsx)(Yb.A,{blockId:l,name:FL.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:S,"data-arrow-alignment":b,"data-animation-color":m,"data-show-animation":p,children:[(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/content-timeline-child"],["ablocks/content-timeline-child"],["ablocks/content-timeline-child"]],templateLock:!1,allowedBlocks:["ablocks/content-timeline-child"]}),(0,I.jsx)("div",{className:W,children:(0,I.jsx)("div",{className:`${R}__line__inner`})})]})})};function eD(t){
3894 +const{attributes:e}=t,{block_id:i,contentPosition:o,arrowAlignment:a}=e,l="ablocks-block-content-timeline",n=s()(l,`${l}--outer-wrap`,`${l}--preview-mode-desktop`,`${l}--${o}`),r=s()(`${l}__line`);return(0,I.jsx)(sc,{blockId:i,name:FL.UU,attributes:e,children:(0,I.jsxs)("div",{className:n,"data-arrow-alignment":a,"data-animation-color":e?.connectorAnimationColor,"data-show-animation":e?.showAnimation,children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:r,children:(0,I.jsx)("div",{className:`${l}__line__inner`})})]})})}eD.propTypes={};const iD={UU:"ablocks/content-timeline",uK:{block_id:{type:"string",default:""},iconColor:{type:"string",default:"#000000"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",default:"#333333"
3882 3895 },dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"number",default:18},contentTimeLineIconSvgPath:{type:"string",default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},contentTimeLineIconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},contentTimeLineIconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},
3883 3896 contentTimeLineIconImageUrl:{type:"string",default:""},contentTimeLineIconImageID:{type:"number",default:0},contentTimeLineIconImageSize:{type:"string",default:""},contentTimeLineIconColor:{type:"string",default:"#69727d"},contentTimeLineIconBgColor:{type:"string",default:""},contentTimeLineIconType:{type:"string",default:"default"},contentTimeLineIconShape:{type:"string",default:"circle"},contentTimeLineIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconSize:{type:"number",default:55},contentTimeLineIconRotate:{type:"number",default:0},contentTimeLineIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",
3884 3897 valueUnitMobile:""}},contentTimeLineIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIcontransitionDuration:{type:"number",default:0},contentTimeLineIconImageWidth:{type:"number",default:0},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},dateAlign:{type:"string",default:"left"},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",
3885 3898 fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,
@@ -3891,94 +3904,93 @@
3891 3904 imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",
3892 3905 imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",
3893 3906 offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",
3894 3907 scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{
3895 -animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function RL(t){const{attributes:e}=t,{block_id:i,contentPosition:o,arrowAlignment:a}=e,l="ablocks-block-content-timeline",n=s()(l,`${l}--outer-wrap`,`${l}--preview-mode-desktop`,`${l}--${o}`),r=s()(`${l}__line`);return(0,I.jsx)(hc,{blockId:i,name:_L.UU,attributes:e,children:(0,I.jsxs)("div",{className:n,"data-arrow-alignment":a,"data-animation-color":e?.connectorAnimationColor,"data-show-animation":e?.showAnimation,children:[(0,
3896 -I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:r,children:(0,I.jsx)("div",{className:`${l}__line__inner`})})]})})}function SL(t){const{attributes:e,setAttributes:i}=t,{text_date:o,changeChildIcon:a}=e,n=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Content Timeline Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access content timeline settings to display events in order.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-content-timeline-block/",children:(0,I.jsxs)(V,{title:(0,L.__)("Content Timeline Child","ablocks"),
3897 -initialOpen:!0,children:[!0===e[`showDate${n}`]&&(0,I.jsx)(Kl,{label:(0,L.__)("Date (mm/dd/yyyy)","ablocks"),attributeName:"text_date",attributeValue:o,setAttributes:i,isInline:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Change Icon","ablocks"),attributeValue:a,setAttributes:i,attributeName:"changeChildIcon"}),a&&(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0})]})})]})})}RL.propTypes={},(0,M.xV)(HL.UU)&&(0,o.registerBlockType)(HL.UU,{title:(0,L.__)("Content Timeline","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-timeline"}),attributes:HL.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{arrowAlignment:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null
3898 -;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date-inner",oL(i,""),oL(i,"Tablet"),oL(i,"Mobile"),e(t=>oL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date",aL(i,""),aL(i,"Tablet"),aL(i,"Mobile"),e(t=>aL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date",lL(i,""),lL(i,"Tablet"),lL(i,"Mobile"),e(t=>lL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--left .ablocks-block-content-timeline__line,.ablocks-block-content-timeline--right .ablocks-block-content-timeline__line",nL(i,""),nL(i,"Tablet"),nL(i,"Mobile"),e(t=>nL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-maker svg",sL(i),sL(i,"Tablet"),sL(i,"Mobile"),e(t=>sL(i,t))),
3899 -t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap .ablocks__in-view-icon",rL(i),rL(i),rL(i),e(t=>rL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline__line",bL(i),bL(i,"Tablet"),bL(i,"Mobile"),e(t=>bL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--field",cL(i),cL(i,"Tablet"),cL(i,"Mobile"),e(t=>cL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap > .block-editor-inner-blocks > .block-editor-block-list__layout",dL(i),dL(i,"Tablet"),dL(i,"Mobile"),e(t=>dL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap .ablocks__in-view-icon",yL(i),yL(i),yL(i),e(t=>yL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--field .ablocks-block-content-timeline-child__content-part",uL(i),uL(i),uL(i),e(t=>uL(i))),
3900 -t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__content-part .block-editor-block-list__layout",pL(i),pL(i,"Tablet"),pL(i,"Mobile"),e(t=>pL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__content-part .ablocks-block-content-timeline-child__arrow::after",mL(i),mL(i),mL(i),e(t=>mL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--line-center .ablocks-block-content-timeline-child__arrow",gL(i),gL(i),gL(i),e(t=>gL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date",fL(i),fL(i),fL(i),e(t=>fL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date, .ablocks-block-content-timeline-child__inner-content-date",hL(i),hL(i,"Tablet"),hL(i,"Mobile"),e(t=>hL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date",((t,e)=>{const i={};return t?.dateAlign&&(i["text-align"]=t?.dateAlign),{background:(0,Hs.qD)(t?.dateBackground),...i,...(0,
3901 -c.qD)(t?.datePadding,"padding",e),...(0,y.qD)(t?.dateBorder,e)}})(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date:hover",(t=>({...(0,y.a9)(t?.dateBorder,"Mobile")}))(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(TL,{...t}),(0,I.jsx)(kL,{...t})]})},save:vL,deprecated:[{attributes:_L.uK,save:t=>(0,I.jsx)(RL,{...t})}]}),SL.propTypes={},SL.defaultProps={};const WL={UU:"ablocks/content-timeline-child",$t:["ablocks/content-timeline"],uK:{block_id:{type:"string",default:""},text_date:{type:"string",default:"January 1, 2024"},indexContent:{type:"number"},parentAttribute:{type:"object",default:{}},changeChildIcon:{type:"boolean",default:!1},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},iconColor:{type:"string",default:"#69727d"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},
3902 -showAnimation:{type:"boolean",default:!0},connectorAnimationColor:{type:"string",default:"#00ad6b"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",default:"#333333"},dateAlign:{type:"string",default:"left"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"number",default:55},iconSvgPath:{type:"string",
3903 -default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",
3904 -unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconRotate:{type:"number",default:0},iconSizing:{
3905 -type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},dateTypographyGlobal:{type:"string",default:""},dateTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",
3906 -letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",
3907 -commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",
3908 -rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",
3909 -left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",
3910 -commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",
3911 -leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",
3912 -imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",
3913 -imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",
3914 -offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",
3915 -scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",
3916 -animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};var PL=i(38443);const UL=t=>{
3917 -const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:b,indexContent:c,text_date:d,changeChildIcon:u,parentAttribute:p}=e;(0,a.useEffect)(()=>{const t=(0,r.select)("core/block-editor").getBlockIndex(b);i({indexContent:t})},[]);const m={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(n).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},h=0===Object.keys(p).length,g=void 0!==c&&c%2==0,f=void 0!==c&&c%2==1,y=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":g&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-center-left-side":f&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,
3918 -[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),T=e?.dateFormat&&d?(0,PL.format)(e?.dateFormat,d):d,H=e?.dateFormat&&d?(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,PL.format)(e?.dateFormat,d)}):(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:d}),M=s()("ablocks-block-content-timeline-child__date");return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sR,{blockId:b,name:WL.UU,attributes:e,className:y,children:[u||h?(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributePrefix:"contentTimeLineIcon",attributes:p})}),(0,I.jsxs)("div",{className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,I.jsx)(D.InnerBlocks,{...m}),(0,I.jsx)("div",{
3919 -className:"ablocks-block-content-timeline-child__inner-content-date",children:T}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,I.jsx)("div",{className:M,children:H})]})})},jL={UU:"ablocks/content-timeline-child",uK:{block_id:{type:"string",default:""},text_date:{type:"string",default:"January 1, 2024"},indexContent:{type:"number"},parentAttribute:{type:"object",default:{}},changeChildIcon:{type:"boolean",default:!1},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},iconColor:{type:"string",default:"#69727d"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},showAnimation:{type:"boolean",default:!0},connectorAnimationColor:{type:"string",default:"#00ad6b"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",
3920 -default:"#333333"},dateAlign:{type:"string",default:"left"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"number",default:55},iconSvgPath:{type:"string",default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},
3921 -iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},
3922 -icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},dateTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",
3923 -leftMobile:"",unitMobile:""}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",
3924 -bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",
3925 -leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{
3926 -borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",
3927 -topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",
3928 -vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",
3929 -imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},
3930 -_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,
3931 -rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",
3932 -maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",
3933 -default:""}}};(0,M.xV)(WL.UU,WL.$t[0])&&(0,o.registerBlockType)(WL.UU,{title:(0,L.__)("Content Timeline Child","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-timeline-child"}),attributes:WL.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(SL,{...t}),(0,I.jsx)(UL,{...t})]})},save:t=>{const{attributes:e}=t,{block_id:i,indexContent:o,text_date:a,changeChildIcon:l,parentAttribute:n}=e,r=0===Object.keys(n).length,b=void 0!==o&&o%2==0,c=void 0!==o&&o%2==1,d=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":b&&"center"===e?.contentPosition,
3934 -"ablocks-block-content-timeline-child--content-center-left-side":c&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),u=e?.dateFormat&&a?(0,PL.format)(e?.dateFormat,a):a,p=e?.dateFormat&&a?(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,PL.format)(e?.dateFormat,a)}):(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:a}),m=s()("ablocks-block-content-timeline-child__date");return(0,I.jsxs)(dR,{blockId:i,name:WL.UU,attributes:e,className:d,children:[l||r?(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{
3935 -attributePrefix:"contentTimeLineIcon",attributes:n})}),(0,I.jsxs)("div",{className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__inner-content-date",children:u}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,I.jsx)("div",{className:m,children:p})]})},deprecated:[{attributes:jL.uK,save:t=>{const{attributes:e}=t,{block_id:i,indexContent:o,text_date:a,changeChildIcon:l,parentAttribute:n}=e,r=0===Object.keys(n).length,b=void 0!==o&&o%2==0,c=void 0!==o&&o%2==1,d=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":b&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-center-left-side":c&&"center"===e?.contentPosition,
3936 -"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),u=e?.dateFormat&&a?(0,PL.format)(e?.dateFormat,a):a,p=e?.dateFormat&&a?(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,PL.format)(e?.dateFormat,a)}):(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:a}),m=s()("ablocks-block-content-timeline-child__date");return(0,I.jsxs)(dR,{blockId:i,name:jL.UU,attributes:e,className:d,children:[l||r?(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributePrefix:"contentTimeLineIcon",attributes:n})}),(0,I.jsxs)("div",{
3937 -className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__inner-content-date",children:u}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,I.jsx)("div",{className:m,children:p})]})}}]});var wL=i(8697);const zL=t=>{const e=[],i=[];t.forEach(t=>{const o=parseInt(t.tag.replace("h",""),10),a={element:(0,I.jsx)("a",{href:`#${t.anchor}`,children:t.content}),level:o,subItems:[]};for(;i.length&&i[i.length-1].level>=o;)i.pop();i.length>0?i[i.length-1].subItems.push(a):e.push(a),i.push(a)});const o=t=>(0,I.jsx)("ol",{className:"ablocks-toc-list",children:t.map((t,e)=>(0,I.jsxs)("li",{className:"ablocks-toc-item",children:[t.element,t.subItems.length>0&&o(t.subItems)]},e))});return o(e)},CL=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Bullet","ablocks"),value:"disc"},{label:(0,
3938 -L.__)("Number","ablocks"),value:"decimal"},{label:(0,L.__)("Roman Number","ablocks"),value:"lower-roman"},{label:(0,L.__)("Alphabet","ablocks"),value:"lower-alpha"},{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}];function AL(t){const{attributes:e,setAttributes:i,context:o}=t,{tocTableTitle:a,H1:n,H2:s,H3:r,H4:b,H5:c,H6:d,markerView:u,titleColor:p,titleTypography:m,hideTitle:h,collapSible:g,contentTypography:f,itemColor:y,headerBG:T,iconColor:H,bodyBG:M,header_padding:x,list_padding:k,activeColor:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-of-content-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Table of Content Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Show Title","ablocks"),attributeValue:h,setAttributes:i,
3939 -attributeName:"hideTitle",isResponsive:!1}),h&&(0,I.jsx)(Kl,{label:(0,L.__)("Title","ablocks"),attributeName:"tocTableTitle",attributeValue:a,setAttributes:i,context:o}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Choose heading tags to generate table","ablocks"),isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H1","ablocks"),attributeValue:n,setAttributes:i,attributeName:"H1",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H2","ablocks"),attributeValue:s,setAttributes:i,attributeName:"H2",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H3","ablocks"),attributeValue:r,setAttributes:i,attributeName:"H3",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H4","ablocks"),attributeValue:b,setAttributes:i,attributeName:"H4",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H5","ablocks"),attributeValue:c,setAttributes:i,attributeName:"H5",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H6","ablocks"),attributeValue:d,setAttributes:i,attributeName:"H6",isResponsive:!1})]}),style:(0,
3940 -I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,L.__)("Header Style","ablocks")}),(0,I.jsx)(Ws,{label:(0,L.__)("Title Color","ablocks"),attributeName:"titleColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Title Typography","ablocks"),attributeName:"titleTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Header Background","ablocks"),isGradient:!1,attributeName:"headerBG",attributeValue:T,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"header_padding",attributeValue:x,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Lists Settings","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,
3941 -I.jsx)(Ut,{label:(0,L.__)("Marker View","ablocks"),options:CL,isResponsive:!1,attributeValue:u,attributeName:"markerView",setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("List Gap","ablocks"),min:1,max:100,hasUnit:!0,isInline:!1,unitOptions:[{value:"px",label:"px"}],isResponsive:!1,attributeName:"listItemGap",attributeValue:e?.listItemGap,setAttributes:i,attributeDefaultValue:wL.GJ}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"contentTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"itemColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Item Color","ablocks"),isGradient:!1,attributeName:"activeColor",attributeValue:e?.activeColor,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"bodyBG",attributeValue:M,setAttributes:i}),(0,I.jsx)(xt,{
3942 -label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"list_padding",attributeValue:k,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Collapsible Settings","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Make Content Collapsible","ablocks"),attributeValue:g,setAttributes:i,attributeName:"collapSible",isResponsive:!1}),g&&(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:wL.RK}),g&&(0,I.jsx)(Yd,{label:(0,L.__)("Open Icon","ablocks"),attributes:e,setAttributes:i,attributePrefix:"openIcon",legacySupport:!0}),g&&(0,I.jsx)(Yd,{label:(0,L.__)("Close Icon","ablocks"),attributes:e,setAttributes:i,attributePrefix:"closeIcon",legacySupport:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"iconColor",
3943 -attributeValue:H,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Icon Padding","ablocks"),isResponsive:!1,attributeName:"icon_padding",attributeValue:e?.icon_padding||{},setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"iconBorder",attributeValue:e?.iconBorder||{},setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"iconBoxShadow",attributeValue:e?.iconBoxShadow||{},setAttributes:i})]})})})]})})})}AL.propTypes={},AL.defaultProps={};const LL={UU:"ablocks/table-of-content",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},tocTableTitle:{type:"string",default:"Table Of Contents"},H1:{type:"boolean",default:!0},H2:{type:"boolean",default:!0},H3:{type:"boolean",default:!0},H4:{type:"boolean",default:!0},H5:{type:"boolean",default:!0},H6:{type:"boolean",default:!0},hideTitle:{
3944 -type:"boolean",default:!0},collapSible:{type:"boolean",default:!0},markerView:{type:"string",default:"disc"},titleColor:{type:"string",default:"#000000"},itemColor:{type:"string",default:"#333"},iconColor:{type:"string"},activeColor:{type:"string",default:"#2763f3"},headerBG:{type:"string",default:"#ddd"},bodyBG:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",
3945 -wordSpacingUnitMobile:"px"}},contentTypographyGlobal:{type:"string",default:""},contentTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",
3946 -topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",
3947 -unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,
3948 -isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",
3949 -topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},header_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},icon_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",
3950 -topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},list_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},openIconSvgPath:{type:"string",default:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},openIconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},
3951 -openIconClass:{type:"string",default:"fas fa-chevron-down"},openIconImageUrl:{type:"string",default:""},openIconImageID:{type:"number",default:0},openIconImageSize:{type:"string",default:""},openIconColor:{type:"string",default:"#69727d"},openIconBgColor:{type:"string",default:""},openIconHoverColor:{type:"string",default:""},openIconHoverBgColor:{type:"string",default:""},openIconType:{type:"string",default:"default"},openIconShape:{type:"string",default:"circle"},openIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},openIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",
3952 -isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},openIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},openIconSize:{type:"number",default:55},openIconRotate:{type:"number",default:0},openIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},openIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},openIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",
3953 -valueUnitMobile:""}},openIcontransitionDuration:{type:"number",default:0},openIconImageWidth:{type:"number",default:0},closeIconSvgPath:{type:"string",default:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},closeIconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},closeIconClass:{type:"string",default:"fas fa-chevron-up"},closeIconImageUrl:{type:"string",default:""},closeIconImageID:{type:"number",default:0},closeIconImageSize:{type:"string",default:""},closeIconColor:{type:"string",default:"#69727d"},closeIconBgColor:{type:"string",default:""},closeIconHoverColor:{type:"string",default:""},
3954 -closeIconHoverBgColor:{type:"string",default:""},closeIconType:{type:"string",default:"default"},closeIconShape:{type:"string",default:"circle"},closeIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},closeIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},closeIconBoxShadow:{type:"object",default:{preset:"",
3955 -shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},closeIconSize:{type:"number",default:55},closeIconRotate:{type:"number",default:0},closeIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},closeIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},closeIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},closeIcontransitionDuration:{type:"number",default:0},closeIconImageWidth:{type:"number",default:0},iconSize:{type:"number",default:20},listItemGap:{type:"object",default:{value:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,
3956 -isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",
3957 -commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",
3958 -bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",
3959 -backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",
3960 -imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,
3961 -rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",
3962 -offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",
3963 -xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{
3964 -type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function DL(t){const[e,i]=(0,Yt.useState)([]),{attributes:o,setAttributes:a}=t,{block_id:n,tocTableTitle:s,hideTitle:b,openIconClass:c,closeIconClass:d,collapSible:u,isCollapsed:p}=o,m=(0,r.useSelect)(t=>t("core/editor").getEditedPostContent());return(0,Yt.useEffect)(()=>{const t=((t,e)=>{const{H1:i,H2:o,H3:a,H4:l,H5:n,H6:s}=e,r=(new DOMParser).parseFromString(t,"text/html");let b="";return i&&(b+="h1, "),o&&(b+="h2, "),a&&(b+="h3, "),l&&(b+="h4, "),n&&(b+="h5, "),s&&(b+="h6, "),b.endsWith(", ")&&(b=b.slice(0,-2)),(b?[...r.querySelectorAll(b)]:[]).map(t=>({content:t.textContent,anchor:t.textContent.toLowerCase().replace(/\s+/g,"-"),tag:t.tagName.toLowerCase()}))})(m,o);i(t)},[m]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{
3965 -blockId:n,name:LL.UU,attributes:o,typography:[{fontFamily:o.search_typography?.fontFamily,weight:o.search_typography?.weight}],children:[b&&(0,I.jsxs)("div",{className:"ablocks-toc__header",children:[(0,I.jsx)($c,{"aria-label":(0,L.__)("Add title","ablocks"),className:"ablocks-toc__header-title",value:s,placeholder:o.tocTableTitle,tagName:"span",identifier:"text",withoutInteractiveFormatting:!0,onChange:t=>a({tocTableTitle:t})}),u&&(0,I.jsx)("span",{role:"presentation",className:"ablocks-toc__header-toggle-icon",onClick:()=>{a({isCollapsed:!p})},children:p?d&&(0,I.jsx)(Fd,{attributePrefix:"closeIcon",attributes:o}):c&&(0,I.jsx)(Fd,{attributePrefix:"openIcon",attributes:o})})]}),p&&(0,I.jsxs)("div",{className:"ablocks-toc-body",children:[" ",zL(e)," "]})]})})}DL.propTypes={};const NL=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:{};return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},IL=(t,e="")=>({background:(0,
3966 -Hs.qD)(t?.headerBG),...(0,y.qD)(t?.headerBorder,e),...(0,c.qD)(t?.header_padding,"padding",e)}),VL=(t,e="")=>({...(0,y.a9)(t?.headerBorder,e)}),OL=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o=t.contentTypographyGlobal?t.contentTypographyGlobal:{};return{color:(0,Hs.qD)(t?.itemColor),...(0,U.qD)(i,e,o),...(0,Eb.qD)({attributeValue:t.listItemGap,isResponsive:!1,property:"line-height",defaultValue:30,hasUnit:!0,unitDefaultValue:"px",device:e})}},YL=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o={color:(0,Hs.qD)(t?.itemColor),...(0,U.qD)(i,e)};return t?.itemColor&&(o.color=t?.itemColor),o},XL=(t,e="")=>{const i={color:(0,Hs.qD)(t?.itemColor)};return t?.activeColor&&(i.color=t?.activeColor),i},BL=(t,e)=>({...{fill:(0,Hs.qD)(t?.iconColor),...(0,Eb.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,property:"font-size",defaultValue:20,unitDefaultValue:"px",device:e})},...(0,y.qD)(t?.iconBorder,e),...(0,H.qD)(t?.iconBoxShadow,e),
3967 -...(0,c.qD)(t?.icon_padding,"padding",e)}),EL=(t,e="")=>({...(0,y.a9)(t?.iconBorder,e),...(0,H.a9)(t?.iconBoxShadow,e)}),FL=(t,e="")=>({background:(0,Hs.qD)(t?.bodyBG),...(0,c.qD)(t?.list_padding,"padding",e)}),qL=t=>{const e={};return["decimal","disc","circle","square","lower-alpha","lower-roman","none"].includes(t?.markerView)&&(e["list-style-type"]=t.markerView),e};(0,M.xV)(LL.UU)&&(0,o.registerBlockType)(LL.UU,{title:(0,L.__)("Table Of Content","ablocks"),attributes:LL.uK,icon:(0,I.jsx)("span",{className:" ablocks-icon ablocks-icon--table-of-content"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return""
3968 -;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-toc__header",IL(i),IL(i,"Tablet"),IL(i,"Mobile"),e(t=>IL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header:hover",VL(i),VL(i,"Tablet"),VL(i,"Mobile"),e(t=>VL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-title",NL(i),NL(i,"Tablet"),NL(i,"Mobile"),e(t=>NL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body",FL(i),FL(i,"Tablet"),FL(i,"Mobile"),e(t=>FL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-toggle-icon .ablocks-icon-wrap",BL(i),BL(i,"Tablet"),BL(i,"Mobile"),e(t=>BL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-toggle-icon .ablocks-icon-wrap:hover",EL(i),EL(i,"Tablet"),EL(i,"Mobile"),e(t=>EL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body .ablocks-toc-list",qL(i),qL(i),qL(i),e(t=>qL(i))),
3969 -t.addClassStyles("{{WRAPPER}} .ablocks-toc-list,\n\t\t{{WRAPPER}} .ablocks-toc-list li a",YL(i),YL(i,"Tablet"),YL(i,"Mobile"),e(t=>YL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body .ablocks-toc-list li a",OL(i),OL(i,"Tablet"),OL(i,"Mobile"),e(t=>OL(i,t))),t.addClassStyles("{{WRAPPER}} a.ablocks-toc-item-link.active",XL(i),XL(i,"Tablet"),XL(i,"Mobile"),e(t=>XL(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(AL,{...t}),(0,I.jsx)(DL,{...t})]})},save:()=>null});var $L=i(50782);(0,L.__)("Align text left","ablocks"),(0,L.__)("Align text center","ablocks"),(0,L.__)("Align text right","ablocks"),(0,L.__)("Align text justify","ablocks");const GL=[{label:(0,L.__)("Puls Effect","ablocks"),value:"ablocks-hotspot-puls-effect 1s ease infinite"},{label:(0,L.__)("Soft Beat","ablocks"),value:"ablocks-hotspot-soft-beat 1.5s ease-in-out infinite"},{label:(0,L.__)("Glow","ablocks"),value:"ablocks-hotspot-glow 2s ease-in-out infinite"
3970 -},{label:(0,L.__)("None","ablocks"),value:""}],ZL=[{label:(0,L.__)("On Hover","ablocks"),value:"onHover"},{label:(0,L.__)("On Click","ablocks"),value:"onClick"}],KL=[{label:(0,L.__)("Fade In","ablocks"),value:"ablocks-hotspot-fadeIn"},{label:(0,L.__)("Fade Grow","ablocks"),value:"ablocks-hotspot-fadeGrow"},{label:(0,L.__)("Slide In Top","ablocks"),value:"ablocks-hotspot-slideInTop"},{label:(0,L.__)("Slide In Bottom","ablocks"),value:"ablocks-hotspot-slideInBottom"},{label:(0,L.__)("Slide In Left","ablocks"),value:"ablocks-hotspot-slideInLeft"},{label:(0,L.__)("Slide In Right","ablocks"),value:"ablocks-hotspot-slideInRight"},{label:(0,L.__)("None","ablocks"),value:""}],JL=[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"}],QL=[{label:(0,L.__)("Full","ablocks"),value:"full"},{label:(0,L.__)("Large","ablocks"),value:"large"},{label:(0,
3971 -L.__)("Medium","ablocks"),value:"medium"},{label:(0,L.__)("Thumbnail","ablocks"),value:"thumbnail"}],tD=t=>!(!t||"Empty"===t.iconClass||!t.iconSvgPath&&!t.iconImageUrl);function eD(t){const{attributes:e,setAttributes:i,clientId:a}=t,{lists:n,animationType:s,contentTrigger:b,contentAnimation:c,contentPosition:d,pinColor:u,pinColorEffect:p,pinHoverColor:m,pinSize:h,pinHoverSize:g,pinIconColor:f,pinIconSize:y,backgroundColor:T,childWidth:H,selectedImageSize:M}=e,{insertBlock:x,removeBlock:k}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{getBlockOrder:v}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor");let _=n.length>0?n[n.length-1].id+1:1;const R=()=>{const t=n.length,e=(0,o.createBlock)("ablocks/image-hotspot-child");x(e,t,a)},S=(t,e,o)=>{const a=n.map(i=>i.id===t.id?{...i,[e]:o}:i);i({lists:a})},W=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,
3972 -docs_url:"https://ablocks.pro/docs/ablocks-image-hotspot-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("General","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,onSelectImageHandler:t=>{i({imageSizes:t.sizes,backgroundImage:t.url})},onRemoveImageHandler:()=>{i({backgroundImage:void 0})},attributeName:"backgroundImage",setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Image Size","ablocks"),options:QL,attributeName:"selectedImageSize",attributeValue:M,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Animations","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Trigger","ablocks"),options:ZL,attributeName:"contentTrigger",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Hotspot","ablocks"),options:GL,attributeName:"animationType",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Content","ablocks"),options:KL,
3973 -attributeName:"contentAnimation",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Position","ablocks"),options:JL,attributeName:"contentPosition",attributeValue:d,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"pinColor",attributeValue:u,setAttributes:i,resetHandler:()=>{i({pinColor:""})},onChangeHandler:(t,e)=>{i({pinColor:e})}}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Effect","ablocks"),attributeName:"pinColorEffect",attributeValue:p,setAttributes:i,resetHandler:()=>i({pinColorEffect:""}),onChangeHandler:(t,e)=>{i({pinColorEffect:e})}}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeName:"pinHoverColor",attributeValue:m,setAttributes:i,resetHandler:()=>i({pinHoverColor:""}),onChangeHandler:(t,e)=>{i({pinHoverColor:e})}}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"pinIconColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(_t,{label:(0,
3974 -L.__)("Icon Size (%)","ablocks"),min:10,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"pinIconSize",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Hotspot Size","ablocks"),min:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:h,onChangeHandler:t=>{i({pinSize:t})},setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Effect Size(on Hover)","ablocks"),min:1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:g,onChangeHandler:t=>{i({pinHoverSize:t})},setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Hotspot","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{children:n?.map((t,e)=>(0,I.jsx)("div",{children:(0,I.jsxs)("div",{className:"ablocks-editor-list",children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=n.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{
3975 -borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsx)("div",{className:"ablocks-editor-list__content-wrapper",children:(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:o=>((t,e,o)=>{t.stopPropagation();const l=n.filter(t=>t?.id!==e),s=v(a);k(s[o],!1),i({lists:l})})(o,t?.id,e),role:"presentation",onKeyDown:()=>{}}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:t=>((t,e,o)=>{t.stopPropagation();const a=n[o],l={id:_,text:a?.text,xAxis:a?.xAxis,yAxis:a?.yAxis,isOpen:!1,pinColor:a?.pinColor,pinColorEffect:a?.pinColorEffect,pinHoverColor:a?.pinHoverColor,pinSize:a?.pinSize,pinHoverSize:a?.pinHoverSize,icon:a?.icon},s=[...n,l];R(),i({lists:s})})(t,0,e),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,I.jsx)("div",{
3976 -className:"ablocks-editor-list__inner-content",children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeValue:t?.text,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,text:e}:i);i({lists:o})},setAttributes:i,isInline:!1}),(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:t?.icon||{},setAttributes:e=>S(t,"icon",{...t?.icon,...e}),legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Horizontal Position","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:{value:n[e]?.xAxis,valueTablet:n[e]?.xAxisTab,valueMobile:n[e]?.xAxisMob},onChangeHandler:e=>((t,e)=>{const o="Mobile"===W?"xAxisMob":"Tablet"===W?"xAxisTab":"xAxis",a=n.map(i=>i.id===e?{...i,[o]:t}:i);i({lists:a})})(e,t?.id),setAttributes:i,attributeObjectKey:"value"}),(0,I.jsx)(_t,{label:(0,L.__)("Vertical Position","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:{value:n[e]?.yAxis,
3977 -valueTablet:n[e]?.yAxisTab,valueMobile:n[e]?.yAxisMob},onChangeHandler:e=>((t,e)=>{const o="Mobile"===W?"yAxisMob":"Tablet"===W?"yAxisTab":"yAxis",a=n.map(i=>i.id===e?{...i,[o]:t}:i);i({lists:a})})(e,t?.id),setAttributes:i,attributeObjectKey:"value"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Hotspot Color","ablocks"),attributeName:"pinColor",attributeValue:t.pinColor,setAttributes:i,resetHandler:()=>S(t,"pinColor",""),onChangeHandler:(e,i)=>{S(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Effect","ablocks"),attributeName:"pinColorEffect",attributeValue:t.pinColorEffect,setAttributes:i,resetHandler:()=>S(t,"pinColorEffect",""),onChangeHandler:(e,i)=>{S(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeName:"pinHoverColor",attributeValue:t.pinHoverColor,setAttributes:i,resetHandler:()=>S(t,"pinHoverColor",""),onChangeHandler:(e,i)=>{S(t,e,i)}}),(0,I.jsx)(_t,{label:(0,L.__)("Hotspot Size","ablocks"),min:1,max:100,hasUnit:!1,
3978 -isInline:!1,isResponsive:!1,attributeValue:n[e].pinSize,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,pinSize:e}:i);i({lists:o})},setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Effect Size(on Hover)","ablocks"),min:1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n[e].pinHoverSize,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,pinHoverSize:e}:i);i({lists:o})},setAttributes:i})]})})})]})},t?.id))}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:_,text:(0,L.sprintf)(/* translators: %d: item number */ /* translators: %d: item number */
3979 -(0,L.__)("Your title here %d","ablocks"),_),xAxis:50,yAxis:50,isOpen:!0,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""},e=n.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t]}),R(),_++},className:"ablocks-add-list-item-button"})]})}),(0,I.jsx)(V,{title:(0,L.__)("Content","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"childWidth",attributeValue:H,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:(P=H?.valueUnit||"px","px"===P?1600:"%"===P||"vw"===P?100:"rem"===P||"em"===P?160:1600),step:1,attributeDefaultValue:$L.P,autoSyncRange:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"backgroundColor",
3980 -attributeValue:T,setAttributes:i,resetHandler:()=>{i({backgroundColor:""})},onChangeHandler:(t,e)=>{i({backgroundColor:e})}}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:e.commonBoxShadow,setAttributes:i,attributeName:"commonBoxShadow"})]})})})]})})});var P}eD.propTypes={},eD.defaultProps={};const iD={UU:"ablocks/image-hotspot",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:[]},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9"},pinColorEffect:{type:"string",default:"#d9d9d9"},pinHoverColor:{type:"string",default:"#d9d9d9"},pinSize:{type:"number",default:15},pinHoverSize:{type:"number",default:1.5},pinIconColor:{type:"string",default:"#ffffff"},pinIconSize:{type:"number",
3908 +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function oD(t){const{attributes:e}=t,{block_id:i,contentPosition:o,arrowAlignment:a}=e,l="ablocks-block-content-timeline",n=s()(l,`${l}--outer-wrap`,`${l}--preview-mode-desktop`,`${l}--${o}`),r=s()(`${l}__line`);return(0,I.jsx)(hc,{blockId:i,name:iD.UU,attributes:e,children:(0,I.jsxs)("div",{className:n,"data-arrow-alignment":a,"data-animation-color":e?.connectorAnimationColor,"data-show-animation":e?.showAnimation,children:[(0,
3909 +I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:r,children:(0,I.jsx)("div",{className:`${l}__line__inner`})})]})})}function aD(t){const{attributes:e,setAttributes:i}=t,{text_date:o,changeChildIcon:a}=e,n=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Content Timeline Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access content timeline settings to display events in order.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-content-timeline-block/",children:(0,I.jsxs)(V,{title:(0,L.__)("Content Timeline Child","ablocks"),
3910 +initialOpen:!0,children:[!0===e[`showDate${n}`]&&(0,I.jsx)(Kl,{label:(0,L.__)("Date (mm/dd/yyyy)","ablocks"),attributeName:"text_date",attributeValue:o,setAttributes:i,isInline:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Change Icon","ablocks"),attributeValue:a,setAttributes:i,attributeName:"changeChildIcon"}),a&&(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0})]})})]})})}oD.propTypes={},(0,M.xV)(FL.UU)&&(0,o.registerBlockType)(FL.UU,{title:(0,L.__)("Content Timeline","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-timeline"}),attributes:FL.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{arrowAlignment:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null
3911 +;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date-inner",jL(i,""),jL(i,"Tablet"),jL(i,"Mobile"),e(t=>jL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date",wL(i,""),wL(i,"Tablet"),wL(i,"Mobile"),e(t=>wL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date",zL(i,""),zL(i,"Tablet"),zL(i,"Mobile"),e(t=>zL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-maker svg",CL(i),CL(i,"Tablet"),CL(i,"Mobile"),e(t=>CL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap .ablocks__in-view-icon",AL(i),AL(i),AL(i),e(t=>AL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline__line",LL(i),LL(i),LL(i),e(t=>LL(i))),
3912 +t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--field",DL(i),DL(i,"Tablet"),DL(i,"Mobile"),e(t=>DL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap > .block-editor-inner-blocks > .block-editor-block-list__layout",NL(i),NL(i,"Tablet"),NL(i,"Mobile"),e(t=>NL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap .ablocks__in-view-icon",BL(i),BL(i),BL(i),e(t=>BL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--field .ablocks-block-content-timeline-child__content-part",IL(i),IL(i),IL(i),e(t=>IL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__content-part .block-editor-block-list__layout",VL(i),VL(i,"Tablet"),VL(i,"Mobile"),e(t=>VL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__content-part .ablocks-block-content-timeline-child__arrow::after",OL(i),OL(i),OL(i),e(t=>OL(i))),
3913 +t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date",XL(i),XL(i),XL(i),e(t=>XL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date, .ablocks-block-content-timeline-child__inner-content-date",YL(i),YL(i,"Tablet"),YL(i,"Mobile"),e(t=>YL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date",((t,e)=>{const i={};return t?.dateAlign&&(i["text-align"]=t?.dateAlign),{background:(0,Hs.qD)(t?.dateBackground),...i,...(0,c.qD)(t?.datePadding,"padding",e),...(0,y.qD)(t?.dateBorder,e)}})(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date:hover",(t=>({...(0,y.a9)(t?.dateBorder,"Mobile")}))(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(EL,{...t}),(0,I.jsx)(tD,{...t})]})},save:eD,deprecated:[{attributes:iD.uK,save:t=>(0,I.jsx)(oD,{...t})}]}),aD.propTypes={},aD.defaultProps={};const lD={
3914 +UU:"ablocks/content-timeline-child",$t:["ablocks/content-timeline"],uK:{block_id:{type:"string",default:""},text_date:{type:"string",default:"January 1, 2024"},indexContent:{type:"number"},parentAttribute:{type:"object",default:{}},changeChildIcon:{type:"boolean",default:!1},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},iconColor:{type:"string",default:"#69727d"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},showAnimation:{type:"boolean",default:!0},connectorAnimationColor:{type:"string",default:"#00ad6b"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",default:"#333333"},dateAlign:{type:"string",default:"left"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",
3915 +default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"number",default:55},iconSvgPath:{type:"string",default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",
3916 +default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",
3917 +shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},dateTypographyGlobal:{type:"string",default:""},dateTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",
3918 +fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",
3919 +unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",
3920 +commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",
3921 +commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",
3922 +rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,
3923 +commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",
3924 +imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",
3925 +imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",
3926 +offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",
3927 +offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",
3928 +yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",
3929 +default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};var nD=i(38443);const sD=t=>{const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:b,indexContent:c,text_date:d,changeChildIcon:u,parentAttribute:p}=e;(0,a.useEffect)(()=>{const t=(0,r.select)("core/block-editor").getBlockIndex(b);i({indexContent:t})},[]);const m={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(n).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},h=0===Object.keys(p).length,g=void 0!==c&&c%2==0,f=void 0!==c&&c%2==1,y=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":g&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-center-left-side":f&&"center"===e?.contentPosition,
3930 +"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),T=e?.dateFormat&&d?(0,nD.format)(e?.dateFormat,d):d,H=e?.dateFormat&&d?(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,nD.format)(e?.dateFormat,d)}):(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:d}),M=s()("ablocks-block-content-timeline-child__date");return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(mR,{blockId:b,name:lD.UU,attributes:e,className:y,children:[u||h?(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributePrefix:"contentTimeLineIcon",attributes:p})}),(0,I.jsxs)("div",{
3931 +className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,I.jsx)(D.InnerBlocks,{...m}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__inner-content-date",children:T}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,I.jsx)("div",{className:M,children:H})]})})},rD={UU:"ablocks/content-timeline-child",uK:{block_id:{type:"string",default:""},text_date:{type:"string",default:"January 1, 2024"},indexContent:{type:"number"},parentAttribute:{type:"object",default:{}},changeChildIcon:{type:"boolean",default:!1},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},iconColor:{type:"string",default:"#69727d"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},showAnimation:{type:"boolean",default:!0},connectorAnimationColor:{type:"string",default:"#00ad6b"},contentBackgroundColor:{
3932 +type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",default:"#333333"},dateAlign:{type:"string",default:"left"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"number",default:55},iconSvgPath:{type:"string",default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},
3933 +iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",
3934 +valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},dateTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",
3935 +top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",
3936 +unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",
3937 +rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",
3938 +widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",
3939 +unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",
3940 +positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",
3941 +imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",
3942 +vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",
3943 +xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{
3944 +type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},
3945 +_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};(0,M.xV)(lD.UU,lD.$t[0])&&(0,o.registerBlockType)(lD.UU,{title:(0,L.__)("Content Timeline Child","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-timeline-child"}),attributes:lD.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(aD,{...t}),(0,I.jsx)(sD,{...t})]})},save:t=>{const{attributes:e}=t,{block_id:i,indexContent:o,text_date:a,changeChildIcon:l,parentAttribute:n}=e,r=0===Object.keys(n).length,b=void 0!==o&&o%2==0,c=void 0!==o&&o%2==1,d=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{
3946 +"ablocks-block-content-timeline-child--content-center-right-side":b&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-center-left-side":c&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),u=e?.dateFormat&&a?(0,nD.format)(e?.dateFormat,a):a,p=e?.dateFormat&&a?(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,nD.format)(e?.dateFormat,a)}):(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:a}),m=s()("ablocks-block-content-timeline-child__date");return(0,I.jsxs)(yR,{blockId:i,name:lD.UU,attributes:e,className:d,children:[l||r?(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)("div",{
3947 +className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributePrefix:"contentTimeLineIcon",attributes:n})}),(0,I.jsxs)("div",{className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__inner-content-date",children:u}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,I.jsx)("div",{className:m,children:p})]})},deprecated:[{attributes:rD.uK,save:t=>{const{attributes:e}=t,{block_id:i,indexContent:o,text_date:a,changeChildIcon:l,parentAttribute:n}=e,r=0===Object.keys(n).length,b=void 0!==o&&o%2==0,c=void 0!==o&&o%2==1,d=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":b&&"center"===e?.contentPosition,
3948 +"ablocks-block-content-timeline-child--content-center-left-side":c&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),u=e?.dateFormat&&a?(0,nD.format)(e?.dateFormat,a):a,p=e?.dateFormat&&a?(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,nD.format)(e?.dateFormat,a)}):(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:a}),m=s()("ablocks-block-content-timeline-child__date");return(0,I.jsxs)(yR,{blockId:i,name:rD.UU,attributes:e,className:d,children:[l||r?(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{
3949 +attributePrefix:"contentTimeLineIcon",attributes:n})}),(0,I.jsxs)("div",{className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__inner-content-date",children:u}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,I.jsx)("div",{className:m,children:p})]})}}]});var bD=i(8697);const cD=t=>{const e=[],i=[];t.forEach(t=>{const o=parseInt(t.tag.replace("h",""),10),a={element:(0,I.jsx)("a",{href:`#${t.anchor}`,children:t.content}),level:o,subItems:[]};for(;i.length&&i[i.length-1].level>=o;)i.pop();i.length>0?i[i.length-1].subItems.push(a):e.push(a),i.push(a)});const o=t=>(0,I.jsx)("ol",{className:"ablocks-toc-list",children:t.map((t,e)=>(0,I.jsxs)("li",{className:"ablocks-toc-item",children:[t.element,t.subItems.length>0&&o(t.subItems)]},e))});return o(e)},dD=[{label:(0,L.__)("None","ablocks"),
3950 +value:"none"},{label:(0,L.__)("Bullet","ablocks"),value:"disc"},{label:(0,L.__)("Number","ablocks"),value:"decimal"},{label:(0,L.__)("Roman Number","ablocks"),value:"lower-roman"},{label:(0,L.__)("Alphabet","ablocks"),value:"lower-alpha"},{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}];function uD(t){const{attributes:e,setAttributes:i,context:o}=t,{tocTableTitle:a,H1:n,H2:s,H3:r,H4:b,H5:c,H6:d,markerView:u,titleColor:p,titleTypography:m,hideTitle:h,collapSible:g,contentTypography:f,itemColor:y,headerBG:T,iconColor:H,bodyBG:M,header_padding:x,list_padding:k,activeColor:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-of-content-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Table of Content Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{
3951 +label:(0,L.__)("Show Title","ablocks"),attributeValue:h,setAttributes:i,attributeName:"hideTitle",isResponsive:!1}),h&&(0,I.jsx)(Kl,{label:(0,L.__)("Title","ablocks"),attributeName:"tocTableTitle",attributeValue:a,setAttributes:i,context:o}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Choose heading tags to generate table","ablocks"),isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H1","ablocks"),attributeValue:n,setAttributes:i,attributeName:"H1",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H2","ablocks"),attributeValue:s,setAttributes:i,attributeName:"H2",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H3","ablocks"),attributeValue:r,setAttributes:i,attributeName:"H3",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H4","ablocks"),attributeValue:b,setAttributes:i,attributeName:"H4",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H5","ablocks"),attributeValue:c,setAttributes:i,attributeName:"H5",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H6","ablocks"),attributeValue:d,
3952 +setAttributes:i,attributeName:"H6",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,L.__)("Header Style","ablocks")}),(0,I.jsx)(Ws,{label:(0,L.__)("Title Color","ablocks"),attributeName:"titleColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Title Typography","ablocks"),attributeName:"titleTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Header Background","ablocks"),isGradient:!1,attributeName:"headerBG",attributeValue:T,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"header_padding",attributeValue:x,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Lists Settings","ablocks"),initialOpen:!1,
3953 +children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Marker View","ablocks"),options:dD,isResponsive:!1,attributeValue:u,attributeName:"markerView",setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("List Gap","ablocks"),min:1,max:100,hasUnit:!0,isInline:!1,unitOptions:[{value:"px",label:"px"}],isResponsive:!1,attributeName:"listItemGap",attributeValue:e?.listItemGap,setAttributes:i,attributeDefaultValue:bD.GJ}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"contentTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"itemColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Item Color","ablocks"),isGradient:!1,attributeName:"activeColor",attributeValue:e?.activeColor,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,
3954 +attributeName:"bodyBG",attributeValue:M,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"list_padding",attributeValue:k,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Collapsible Settings","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Make Content Collapsible","ablocks"),attributeValue:g,setAttributes:i,attributeName:"collapSible",isResponsive:!1}),g&&(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:bD.RK}),g&&(0,I.jsx)(Yd,{label:(0,L.__)("Open Icon","ablocks"),attributes:e,setAttributes:i,attributePrefix:"openIcon",legacySupport:!0}),g&&(0,I.jsx)(Yd,{label:(0,L.__)("Close Icon","ablocks"),attributes:e,setAttributes:i,attributePrefix:"closeIcon",legacySupport:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,
3955 +I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:H,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Icon Padding","ablocks"),isResponsive:!1,attributeName:"icon_padding",attributeValue:e?.icon_padding||{},setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"iconBorder",attributeValue:e?.iconBorder||{},setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"iconBoxShadow",attributeValue:e?.iconBoxShadow||{},setAttributes:i})]})})})]})})})}uD.propTypes={},uD.defaultProps={};const pD={UU:"ablocks/table-of-content",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},tocTableTitle:{type:"string",default:"Table Of Contents"},H1:{type:"boolean",default:!0},H2:{type:"boolean",default:!0},H3:{type:"boolean",default:!0},H4:{type:"boolean",default:!0},H5:{
3956 +type:"boolean",default:!0},H6:{type:"boolean",default:!0},hideTitle:{type:"boolean",default:!0},collapSible:{type:"boolean",default:!0},markerView:{type:"string",default:"disc"},titleColor:{type:"string",default:"#000000"},itemColor:{type:"string",default:"#333"},iconColor:{type:"string"},activeColor:{type:"string",default:"#2763f3"},headerBG:{type:"string",default:"#ddd"},bodyBG:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",
3957 +wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentTypographyGlobal:{type:"string",default:""},contentTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",
3958 +rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",
3959 +leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",
3960 +unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",
3961 +bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},header_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},icon_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",
3962 +unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},list_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},openIconSvgPath:{type:"string",default:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},openIconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",
3963 +selector:"svg.ablocks-svg-icon",attribute:"viewBox"},openIconClass:{type:"string",default:"fas fa-chevron-down"},openIconImageUrl:{type:"string",default:""},openIconImageID:{type:"number",default:0},openIconImageSize:{type:"string",default:""},openIconColor:{type:"string",default:"#69727d"},openIconBgColor:{type:"string",default:""},openIconHoverColor:{type:"string",default:""},openIconHoverBgColor:{type:"string",default:""},openIconType:{type:"string",default:"default"},openIconShape:{type:"string",default:"circle"},openIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},openIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",
3964 +rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},openIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},openIconSize:{type:"number",default:55},openIconRotate:{type:"number",default:0},openIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},openIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},openIconRotateHover:{type:"object",default:{value:0,
3965 +valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},openIcontransitionDuration:{type:"number",default:0},openIconImageWidth:{type:"number",default:0},closeIconSvgPath:{type:"string",default:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},closeIconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},closeIconClass:{type:"string",default:"fas fa-chevron-up"},closeIconImageUrl:{type:"string",default:""},closeIconImageID:{type:"number",default:0},closeIconImageSize:{type:"string",default:""},closeIconColor:{type:"string",default:"#69727d"},closeIconBgColor:{type:"string",default:""},
3966 +closeIconHoverColor:{type:"string",default:""},closeIconHoverBgColor:{type:"string",default:""},closeIconType:{type:"string",default:"default"},closeIconShape:{type:"string",default:"circle"},closeIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},closeIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},
3967 +closeIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},closeIconSize:{type:"number",default:55},closeIconRotate:{type:"number",default:0},closeIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},closeIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},closeIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},closeIcontransitionDuration:{type:"number",default:0},closeIconImageWidth:{type:"number",default:0},iconSize:{type:"number",default:20},listItemGap:{type:"object",default:{value:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{
3968 +type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,
3969 +isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",
3970 +leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{
3971 +backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",
3972 +imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",
3973 +rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",
3974 +rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",
3975 +scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},
3976 +_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function mD(t){const[e,i]=(0,Yt.useState)([]),{attributes:o,setAttributes:a}=t,{block_id:n,tocTableTitle:s,hideTitle:b,openIconClass:c,closeIconClass:d,collapSible:u,isCollapsed:p}=o,m=(0,r.useSelect)(t=>t("core/editor").getEditedPostContent());return(0,Yt.useEffect)(()=>{const t=((t,e)=>{const{H1:i,H2:o,H3:a,H4:l,H5:n,H6:s}=e,r=(new DOMParser).parseFromString(t,"text/html");let b="";return i&&(b+="h1, "),o&&(b+="h2, "),a&&(b+="h3, "),l&&(b+="h4, "),n&&(b+="h5, "),s&&(b+="h6, "),b.endsWith(", ")&&(b=b.slice(0,-2)),(b?[...r.querySelectorAll(b)]:[]).map(t=>({content:t.textContent,anchor:t.textContent.toLowerCase().replace(/\s+/g,"-"),tag:t.tagName.toLowerCase()}))})(m,o)
3977 +;i(t)},[m]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:n,name:pD.UU,attributes:o,typography:[{fontFamily:o.search_typography?.fontFamily,weight:o.search_typography?.weight}],children:[b&&(0,I.jsxs)("div",{className:"ablocks-toc__header",children:[(0,I.jsx)($c,{"aria-label":(0,L.__)("Add title","ablocks"),className:"ablocks-toc__header-title",value:s,placeholder:o.tocTableTitle,tagName:"span",identifier:"text",withoutInteractiveFormatting:!0,onChange:t=>a({tocTableTitle:t})}),u&&(0,I.jsx)("span",{role:"presentation",className:"ablocks-toc__header-toggle-icon",onClick:()=>{a({isCollapsed:!p})},children:p?d&&(0,I.jsx)(Fd,{attributePrefix:"closeIcon",attributes:o}):c&&(0,I.jsx)(Fd,{attributePrefix:"openIcon",attributes:o})})]}),p&&(0,I.jsxs)("div",{className:"ablocks-toc-body",children:[" ",cD(e)," "]})]})})}mD.propTypes={};const hD=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:{};return{color:(0,
3978 +Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},gD=(t,e="")=>({background:(0,Hs.qD)(t?.headerBG),...(0,y.qD)(t?.headerBorder,e),...(0,c.qD)(t?.header_padding,"padding",e)}),fD=(t,e="")=>({...(0,y.a9)(t?.headerBorder,e)}),yD=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o=t.contentTypographyGlobal?t.contentTypographyGlobal:{};return{color:(0,Hs.qD)(t?.itemColor),...(0,U.qD)(i,e,o),...(0,Eb.qD)({attributeValue:t.listItemGap,isResponsive:!1,property:"line-height",defaultValue:30,hasUnit:!0,unitDefaultValue:"px",device:e})}},TD=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o={color:(0,Hs.qD)(t?.itemColor),...(0,U.qD)(i,e)};return t?.itemColor&&(o.color=t?.itemColor),o},HD=(t,e="")=>{const i={color:(0,Hs.qD)(t?.itemColor)};return t?.activeColor&&(i.color=t?.activeColor),i},MD=(t,e)=>({...{fill:(0,Hs.qD)(t?.iconColor),...(0,Eb.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,property:"font-size",defaultValue:20,unitDefaultValue:"px",
3979 +device:e})},...(0,y.qD)(t?.iconBorder,e),...(0,H.qD)(t?.iconBoxShadow,e),...(0,c.qD)(t?.icon_padding,"padding",e)}),xD=(t,e="")=>({...(0,y.a9)(t?.iconBorder,e),...(0,H.a9)(t?.iconBoxShadow,e)}),kD=(t,e="")=>({background:(0,Hs.qD)(t?.bodyBG),...(0,c.qD)(t?.list_padding,"padding",e)}),vD=t=>{const e={};return["decimal","disc","circle","square","lower-alpha","lower-roman","none"].includes(t?.markerView)&&(e["list-style-type"]=t.markerView),e};(0,M.xV)(pD.UU)&&(0,o.registerBlockType)(pD.UU,{title:(0,L.__)("Table Of Content","ablocks"),attributes:pD.uK,icon:(0,I.jsx)("span",{className:" ablocks-icon ablocks-icon--table-of-content"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
3980 +;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-toc__header",gD(i),gD(i,"Tablet"),gD(i,"Mobile"),e(t=>gD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header:hover",fD(i),fD(i,"Tablet"),fD(i,"Mobile"),e(t=>fD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-title",hD(i),hD(i,"Tablet"),hD(i,"Mobile"),e(t=>hD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body",kD(i),kD(i,"Tablet"),kD(i,"Mobile"),e(t=>kD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-toggle-icon .ablocks-icon-wrap",MD(i),MD(i,"Tablet"),MD(i,"Mobile"),e(t=>MD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-toggle-icon .ablocks-icon-wrap:hover",xD(i),xD(i,"Tablet"),xD(i,"Mobile"),e(t=>xD(i,t))),
3981 +t.addClassStyles("{{WRAPPER}} .ablocks-toc-body .ablocks-toc-list",vD(i),vD(i),vD(i),e(t=>vD(i))),t.addClassStyles("{{WRAPPER}} .ablocks-toc-list,\n\t\t{{WRAPPER}} .ablocks-toc-list li a",TD(i),TD(i,"Tablet"),TD(i,"Mobile"),e(t=>TD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body .ablocks-toc-list li a",yD(i),yD(i,"Tablet"),yD(i,"Mobile"),e(t=>yD(i,t))),t.addClassStyles("{{WRAPPER}} a.ablocks-toc-item-link.active",HD(i),HD(i,"Tablet"),HD(i,"Mobile"),e(t=>HD(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(uD,{...t}),(0,I.jsx)(mD,{...t})]})},save:()=>null});var _D=i(50782);(0,L.__)("Align text left","ablocks"),(0,L.__)("Align text center","ablocks"),(0,L.__)("Align text right","ablocks"),(0,L.__)("Align text justify","ablocks");const RD=[{label:(0,L.__)("Puls Effect","ablocks"),value:"ablocks-hotspot-puls-effect 1s ease infinite"},{label:(0,L.__)("Soft Beat","ablocks"),
3982 +value:"ablocks-hotspot-soft-beat 1.5s ease-in-out infinite"},{label:(0,L.__)("Glow","ablocks"),value:"ablocks-hotspot-glow 2s ease-in-out infinite"},{label:(0,L.__)("None","ablocks"),value:""}],SD=[{label:(0,L.__)("On Hover","ablocks"),value:"onHover"},{label:(0,L.__)("On Click","ablocks"),value:"onClick"}],WD=[{label:(0,L.__)("Fade In","ablocks"),value:"ablocks-hotspot-fadeIn"},{label:(0,L.__)("Fade Grow","ablocks"),value:"ablocks-hotspot-fadeGrow"},{label:(0,L.__)("Slide In Top","ablocks"),value:"ablocks-hotspot-slideInTop"},{label:(0,L.__)("Slide In Bottom","ablocks"),value:"ablocks-hotspot-slideInBottom"},{label:(0,L.__)("Slide In Left","ablocks"),value:"ablocks-hotspot-slideInLeft"},{label:(0,L.__)("Slide In Right","ablocks"),value:"ablocks-hotspot-slideInRight"},{label:(0,L.__)("None","ablocks"),value:""}],PD=[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,
3983 +L.__)("Right","ablocks"),value:"right"}],UD=[{label:(0,L.__)("Full","ablocks"),value:"full"},{label:(0,L.__)("Large","ablocks"),value:"large"},{label:(0,L.__)("Medium","ablocks"),value:"medium"},{label:(0,L.__)("Thumbnail","ablocks"),value:"thumbnail"}],jD=t=>!(!t||"Empty"===t.iconClass||!t.iconSvgPath&&!t.iconImageUrl);function wD(t){const{attributes:e,setAttributes:i,clientId:a}=t,{lists:n,animationType:s,contentTrigger:b,contentAnimation:c,contentPosition:d,pinColor:u,pinColorEffect:p,pinHoverColor:m,pinSize:h,pinHoverSize:g,pinIconColor:f,pinIconSize:y,backgroundColor:T,childWidth:H,selectedImageSize:M}=e,{insertBlock:x,removeBlock:k}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{getBlockOrder:v}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor");let _=n.length>0?n[n.length-1].id+1:1;const R=()=>{const t=n.length,e=(0,o.createBlock)("ablocks/image-hotspot-child");x(e,t,a)},S=(t,e,o)=>{const a=n.map(i=>i.id===t.id?{...i,
3984 +[e]:o}:i);i({lists:a})},W=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-image-hotspot-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("General","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,onSelectImageHandler:t=>{i({imageSizes:t.sizes,backgroundImage:t.url})},onRemoveImageHandler:()=>{i({backgroundImage:void 0})},attributeName:"backgroundImage",setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Image Size","ablocks"),options:UD,attributeName:"selectedImageSize",attributeValue:M,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Animations","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Trigger","ablocks"),options:SD,attributeName:"contentTrigger",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,
3985 +L.__)("Hotspot","ablocks"),options:RD,attributeName:"animationType",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Content","ablocks"),options:WD,attributeName:"contentAnimation",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Position","ablocks"),options:PD,attributeName:"contentPosition",attributeValue:d,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"pinColor",attributeValue:u,setAttributes:i,resetHandler:()=>{i({pinColor:""})},onChangeHandler:(t,e)=>{i({pinColor:e})}}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Effect","ablocks"),attributeName:"pinColorEffect",attributeValue:p,setAttributes:i,resetHandler:()=>i({pinColorEffect:""}),onChangeHandler:(t,e)=>{i({pinColorEffect:e})}}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeName:"pinHoverColor",attributeValue:m,setAttributes:i,resetHandler:()=>i({pinHoverColor:""}),onChangeHandler:(t,e)=>{i({pinHoverColor:e})}
3986 +}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"pinIconColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Size (%)","ablocks"),min:10,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"pinIconSize",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Hotspot Size","ablocks"),min:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:h,onChangeHandler:t=>{i({pinSize:t})},setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Effect Size(on Hover)","ablocks"),min:1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:g,onChangeHandler:t=>{i({pinHoverSize:t})},setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Hotspot","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{children:n?.map((t,e)=>(0,I.jsx)("div",{children:(0,I.jsxs)("div",{className:"ablocks-editor-list",children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{
3987 +const e=n.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsx)("div",{className:"ablocks-editor-list__content-wrapper",children:(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:o=>((t,e,o)=>{t.stopPropagation();const l=n.filter(t=>t?.id!==e),s=v(a);k(s[o],!1),i({lists:l})})(o,t?.id,e),role:"presentation",onKeyDown:()=>{}}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:t=>((t,e,o)=>{t.stopPropagation();const a=n[o],l={id:_,text:a?.text,xAxis:a?.xAxis,yAxis:a?.yAxis,isOpen:!1,pinColor:a?.pinColor,pinColorEffect:a?.pinColorEffect,pinHoverColor:a?.pinHoverColor,pinSize:a?.pinSize,pinHoverSize:a?.pinHoverSize,icon:a?.icon
3988 +},s=[...n,l];R(),i({lists:s})})(t,0,e),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,I.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeValue:t?.text,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,text:e}:i);i({lists:o})},setAttributes:i,isInline:!1}),(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:t?.icon||{},setAttributes:e=>S(t,"icon",{...t?.icon,...e}),legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Horizontal Position","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:{value:n[e]?.xAxis,valueTablet:n[e]?.xAxisTab,valueMobile:n[e]?.xAxisMob},onChangeHandler:e=>((t,e)=>{const o="Mobile"===W?"xAxisMob":"Tablet"===W?"xAxisTab":"xAxis",a=n.map(i=>i.id===e?{...i,[o]:t}:i);i({lists:a})})(e,t?.id),setAttributes:i,attributeObjectKey:"value"}),(0,I.jsx)(_t,{label:(0,L.__)("Vertical Position","ablocks"),
3989 +min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:{value:n[e]?.yAxis,valueTablet:n[e]?.yAxisTab,valueMobile:n[e]?.yAxisMob},onChangeHandler:e=>((t,e)=>{const o="Mobile"===W?"yAxisMob":"Tablet"===W?"yAxisTab":"yAxis",a=n.map(i=>i.id===e?{...i,[o]:t}:i);i({lists:a})})(e,t?.id),setAttributes:i,attributeObjectKey:"value"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Hotspot Color","ablocks"),attributeName:"pinColor",attributeValue:t.pinColor,setAttributes:i,resetHandler:()=>S(t,"pinColor",""),onChangeHandler:(e,i)=>{S(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Effect","ablocks"),attributeName:"pinColorEffect",attributeValue:t.pinColorEffect,setAttributes:i,resetHandler:()=>S(t,"pinColorEffect",""),onChangeHandler:(e,i)=>{S(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeName:"pinHoverColor",attributeValue:t.pinHoverColor,setAttributes:i,resetHandler:()=>S(t,"pinHoverColor",""),onChangeHandler:(e,i)=>{S(t,e,i)}}),(0,
3990 +I.jsx)(_t,{label:(0,L.__)("Hotspot Size","ablocks"),min:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n[e].pinSize,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,pinSize:e}:i);i({lists:o})},setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Effect Size(on Hover)","ablocks"),min:1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n[e].pinHoverSize,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,pinHoverSize:e}:i);i({lists:o})},setAttributes:i})]})})})]})},t?.id))}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:_,text:(0,L.sprintf)(/* translators: %d: item number */ /* translators: %d: item number */
3991 +(0,L.__)("Your title here %d","ablocks"),_),xAxis:50,yAxis:50,isOpen:!0,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""},e=n.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t]}),R(),_++},className:"ablocks-add-list-item-button"})]})}),(0,I.jsx)(V,{title:(0,L.__)("Content","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"childWidth",attributeValue:H,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:(P=H?.valueUnit||"px","px"===P?1600:"%"===P||"vw"===P?100:"rem"===P||"em"===P?160:1600),step:1,attributeDefaultValue:_D.P,autoSyncRange:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"backgroundColor",
3992 +attributeValue:T,setAttributes:i,resetHandler:()=>{i({backgroundColor:""})},onChangeHandler:(t,e)=>{i({backgroundColor:e})}}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:e.commonBoxShadow,setAttributes:i,attributeName:"commonBoxShadow"})]})})})]})})});var P}wD.propTypes={},wD.defaultProps={};const zD={UU:"ablocks/image-hotspot",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:[]},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9"},pinColorEffect:{type:"string",default:"#d9d9d9"},pinHoverColor:{type:"string",default:"#d9d9d9"},pinSize:{type:"number",default:15},pinHoverSize:{type:"number",default:1.5},pinIconColor:{type:"string",default:"#ffffff"},pinIconSize:{type:"number",
3981 3993 default:60},lists:{type:"array",default:[{id:0,text:"Your title here 0",xAxis:35,yAxis:32,xAxisTab:30,yAxisTab:28,xAxisMob:22,yAxisMob:16,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite"},contentAnimation:{type:"string",default:"ablocks-hotspot-fadeIn"},contentTrigger:{type:"string",default:"onClick"},contentPosition:{type:"string",default:"bottom"},backgroundColor:{type:"string",default:"white"},childWidth:{type:"object",default:{value:200,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},commonBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,
3982 3994 common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",
3983 3995 topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",
3984 3996 leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",
@@ -3986,22 +3998,22 @@
3986 3998 imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,
3987 3999 rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",
3988 4000 offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",
3989 4001 xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{
3990 -type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function oD(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,backgroundImage:b,lists:c,contentTrigger:d,activeIndex:u}=e,p=(0,D.useInnerBlocksProps)("",{template:[["ablocks/image-hotspot-child"]],templateLock:!1,allowedBlocks:["ablocks/image-hotspot-child"]}),m=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]);(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${n}`),e=t?.querySelector(".ablocks-image-hotspot__tooltip-content");if(e){const t=e.children[0].children;if(null!==u)for(let e=1;e<t.length;e+=2){const i=t[e]?.children[1];i&&(e===2*u+1?i.classList.add("ablocks-image-hotspot__tooltip--active"):i.classList.remove("ablocks-image-hotspot__tooltip--active"))}}},[m,n,o,u]);const h=async t=>{
3991 -u!==t?(await i({activeIndex:null}),await i({activeIndex:t})):i({activeIndex:null})};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:n,name:iD.UU,attributes:e,children:[!b&&(0,I.jsx)(D.MediaPlaceholder,{icon:"format-image",labels:{title:(0,L.__)("Background Image","ablocks"),instructions:(0,L.__)("Drag an image, upload a new one or select a file from your library.","ablocks")},onSelect:t=>{const e=t.sizes||(t.media_details?t.media_details.sizes:{});i({imageSizes:e,backgroundImage:t.url})},accept:"image/*",allowedTypes:["image"]}),b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,L.__)("ablocks image-hotspot background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||b}),c?.map((t,e)=>{const i="onClick"===d?{onClick:()=>h(e)}:{onMouseOver:()=>h(e)};return(0,I.jsx)("div",{
3992 -className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`,{"ablocks-image-hotspot__pin--has-icon":tD(t.icon)}),...i,children:tD(t.icon)&&(0,I.jsx)(Fd,{attributes:t.icon})},t.id)}),null!==u&&(0,I.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,I.jsx)("div",{...p}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",onClick:()=>i({activeIndex:null})})]})]})]})]})}const aD=(t,e,i="")=>({left:`${"Mobile"===i?t.xAxisMob??t.xAxisTab??t.xAxis:"Tablet"===i?t.xAxisTab??t.xAxis:t.xAxis}%`,top:`${"Mobile"===i?t.yAxisMob??t.yAxisTab??t.yAxis:"Tablet"===i?t.yAxisTab??t.yAxis:t.yAxis}%`,...""===i&&{"background-color":(0,Hs.qD)(t.pinColorEffect)||(0,Hs.qD)(e?.pinColorEffect),width:`${t.pinSize||e.pinSize}px`,height:`${t.pinSize||e.pinSize}px`,transform:"translate(-50%, -50%)"}}),lD=(t,e="")=>{const{childWidth:i,contentPosition:o,contentAnimation:a}=t;let l="0px",n="0px",s="-50%",r="0px",b={transform:"translate(-50%, 40px)"};"top"===o?b={
4002 +type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function CD(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,backgroundImage:b,lists:c,contentTrigger:d,activeIndex:u}=e,p=(0,D.useInnerBlocksProps)("",{template:[["ablocks/image-hotspot-child"]],templateLock:!1,allowedBlocks:["ablocks/image-hotspot-child"]}),m=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]);(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${n}`),e=t?.querySelector(".ablocks-image-hotspot__tooltip-content");if(e){const t=e.children[0].children;if(null!==u)for(let e=1;e<t.length;e+=2){const i=t[e]?.children[1];i&&(e===2*u+1?i.classList.add("ablocks-image-hotspot__tooltip--active"):i.classList.remove("ablocks-image-hotspot__tooltip--active"))}}},[m,n,o,u]);const h=async t=>{
4003 +u!==t?(await i({activeIndex:null}),await i({activeIndex:t})):i({activeIndex:null})};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:n,name:zD.UU,attributes:e,children:[!b&&(0,I.jsx)(D.MediaPlaceholder,{icon:"format-image",labels:{title:(0,L.__)("Background Image","ablocks"),instructions:(0,L.__)("Drag an image, upload a new one or select a file from your library.","ablocks")},onSelect:t=>{const e=t.sizes||(t.media_details?t.media_details.sizes:{});i({imageSizes:e,backgroundImage:t.url})},accept:"image/*",allowedTypes:["image"]}),b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,L.__)("ablocks image-hotspot background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||b}),c?.map((t,e)=>{const i="onClick"===d?{onClick:()=>h(e)}:{onMouseOver:()=>h(e)};return(0,I.jsx)("div",{
4004 +className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`,{"ablocks-image-hotspot__pin--has-icon":jD(t.icon)}),...i,children:jD(t.icon)&&(0,I.jsx)(Fd,{attributes:t.icon})},t.id)}),null!==u&&(0,I.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,I.jsx)("div",{...p}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",onClick:()=>i({activeIndex:null})})]})]})]})]})}const AD=(t,e,i="")=>({left:`${"Mobile"===i?t.xAxisMob??t.xAxisTab??t.xAxis:"Tablet"===i?t.xAxisTab??t.xAxis:t.xAxis}%`,top:`${"Mobile"===i?t.yAxisMob??t.yAxisTab??t.yAxis:"Tablet"===i?t.yAxisTab??t.yAxis:t.yAxis}%`,...""===i&&{"background-color":(0,Hs.qD)(t.pinColorEffect)||(0,Hs.qD)(e?.pinColorEffect),width:`${t.pinSize||e.pinSize}px`,height:`${t.pinSize||e.pinSize}px`,transform:"translate(-50%, -50%)"}}),LD=(t,e="")=>{const{childWidth:i,contentPosition:o,contentAnimation:a}=t;let l="0px",n="0px",s="-50%",r="0px",b={transform:"translate(-50%, 40px)"};"top"===o?b={
3993 4005 transform:"translate(-50%, calc(-100% - 40px))"}:"left"===o?b={transform:"translate(calc(-100% - 40px), -50%)"}:"right"===o&&(b={transform:"translate(40px, -50%)"});let c="";if("ablocks-hotspot-fadeIn"===a)c="ablocks-hotspot-fadeIn 1.0s ease forwards";else if("ablocks-hotspot-fadeGrow"===a)switch(c="ablocks-hotspot-fadeGrow 0.5s ease",o){case"top":l=s="-50%",n=r="calc(-100% - 40px)";break;case"bottom":l=s="-50%",n=r="40px";break;case"left":l=s="calc(-100% - 40px)",n=r="-50%";break;case"right":l=s="40px",n=r="-50%"}else["ablocks-hotspot-slideInTop","ablocks-hotspot-slideInBottom","ablocks-hotspot-slideInLeft","ablocks-hotspot-slideInRight"].includes(a)&&(c="ablocks-hotspot-slideIn 0.5s ease forwards");let d="";switch("%"===i.valueUnit&&(d=` ${i["value"+e]}${i["valueUnit"+e]||"px"}`),o){case"top":switch(l="-50%",s="-50%",n="calc(-100% - 40px)",r="calc(-100% - 40px)",a){case"ablocks-hotspot-slideInLeft":l="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(-50% + 40px)"
3994 4006 ;break;case"ablocks-hotspot-slideInTop":n="calc(-100% - 60px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-100% + 40px)"}break;case"bottom":switch(l="-50%",s="-50%",n="40px",r="40px",a){case"ablocks-hotspot-slideInLeft":l="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(-50% + 40px)";break;case"ablocks-hotspot-slideInTop":n="calc(40px - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(40px + 40px)"}break;case"left":switch(l="calc(-100% - 40px)",s="calc(-100% - 40px)",n="-50%",r="-50%",a){case"ablocks-hotspot-slideInLeft":l="calc(-100% - 40px - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(-100% - 40px + 40px)";break;case"ablocks-hotspot-slideInTop":n="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-50% + 40px)"}break;case"right":switch(l="40px",s="40px",n="-50%",r="-50%",a){case"ablocks-hotspot-slideInLeft":l="calc(40px - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(40px + 40px)";break
3995 -;case"ablocks-hotspot-slideInTop":n="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-50% + 40px)"}}const u=t.lists[t.activeIndex],p="Mobile"===e?u?.xAxisMob??u?.xAxisTab??u?.xAxis:"Tablet"===e?u?.xAxisTab??u?.xAxis:u?.xAxis;return{animation:c,top:`${"Mobile"===e?u?.yAxisMob??u?.yAxisTab??u?.yAxis:"Tablet"===e?u?.yAxisTab??u?.yAxis:u?.yAxis}%`,left:`${p}%`,transform:b.transform,width:d,"--ablocks-hotspot-translateX-start":l,"--ablocks-hotspot-translateY-start":n,"--ablocks-hotspot-translateX-end":s,"--ablocks-hotspot-translateY-end":r}},nD=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.childWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})};return{background:(0,Hs.qD)(t?.backgroundColor),...i,...(0,H.qD)(t?.commonBoxShadow,"box-shadow",e)}},sD=(t,e="")=>{const{commonBoxShadow:i}=t;return{...(0,H.a9)(i,"box-shadow",e)}};function rD(t){
3996 -const{attributes:e}=t,{block_id:i,lists:o,backgroundImage:a,contentTrigger:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:iD.UU,attributes:e,children:[(0,I.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,L.__)("Background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||a}),o?.map(t=>(0,I.jsx)("div",{className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`,{"ablocks-image-hotspot__pin--has-icon":tD(t.icon)}),"data-tooltip-index":t.id,"data-xaxis":JSON.stringify({desktop:t.xAxis,tablet:t.xAxisTab,mobile:t.xAxisMob}),"data-yaxis":JSON.stringify({desktop:t.yAxis,tablet:t.yAxisTab,mobile:t.yAxisMob}),"data-trigger":n,children:tD(t.icon)&&(0,I.jsx)(Fd,{attributes:t.icon})},t.id)),(0,I.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",children:(0,
3997 -I.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M13.7307 15.4458L5.53795 7.25305C5.25803 6.97313 5.19161 6.5753 5.39143 6.37548C5.59125 6.17565 5.98909 6.24208 6.26901 6.522L14.4618 14.7148C14.7417 14.9947 14.8081 15.3925 14.6083 15.5924C14.4085 15.7922 14.0107 15.7258 13.7307 15.4458Z",fill:"#74777C"}),(0,I.jsx)("path",{d:"M5.39169 15.5924C5.19187 15.3925 5.25829 14.9947 5.53821 14.7148L13.731 6.522C14.0109 6.24208 14.4087 6.17565 14.6086 6.37548C14.8084 6.5753 14.742 6.97313 14.4621 7.25305L6.26927 15.4458C5.98935 15.7258 5.59152 15.7922 5.39169 15.5924Z",fill:"#74777C"})]})})]})]})})}rD.propTypes={},rD.defaultProps={};function bD(t){const{attributes:e}=t,{block_id:i,lists:o,backgroundImage:a,contentTrigger:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:"ablocks/image-hotspot",attributes:e,children:[(0,I.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,
4007 +;case"ablocks-hotspot-slideInTop":n="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-50% + 40px)"}}const u=t.lists[t.activeIndex],p="Mobile"===e?u?.xAxisMob??u?.xAxisTab??u?.xAxis:"Tablet"===e?u?.xAxisTab??u?.xAxis:u?.xAxis;return{animation:c,top:`${"Mobile"===e?u?.yAxisMob??u?.yAxisTab??u?.yAxis:"Tablet"===e?u?.yAxisTab??u?.yAxis:u?.yAxis}%`,left:`${p}%`,transform:b.transform,width:d,"--ablocks-hotspot-translateX-start":l,"--ablocks-hotspot-translateY-start":n,"--ablocks-hotspot-translateX-end":s,"--ablocks-hotspot-translateY-end":r}},DD=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.childWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})};return{background:(0,Hs.qD)(t?.backgroundColor),...i,...(0,H.qD)(t?.commonBoxShadow,"box-shadow",e)}},ND=(t,e="")=>{const{commonBoxShadow:i}=t;return{...(0,H.a9)(i,"box-shadow",e)}};function ID(t){
4008 +const{attributes:e}=t,{block_id:i,lists:o,backgroundImage:a,contentTrigger:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:zD.UU,attributes:e,children:[(0,I.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,L.__)("Background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||a}),o?.map(t=>(0,I.jsx)("div",{className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`,{"ablocks-image-hotspot__pin--has-icon":jD(t.icon)}),"data-tooltip-index":t.id,"data-xaxis":JSON.stringify({desktop:t.xAxis,tablet:t.xAxisTab,mobile:t.xAxisMob}),"data-yaxis":JSON.stringify({desktop:t.yAxis,tablet:t.yAxisTab,mobile:t.yAxisMob}),"data-trigger":n,children:jD(t.icon)&&(0,I.jsx)(Fd,{attributes:t.icon})},t.id)),(0,I.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",children:(0,
4009 +I.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M13.7307 15.4458L5.53795 7.25305C5.25803 6.97313 5.19161 6.5753 5.39143 6.37548C5.59125 6.17565 5.98909 6.24208 6.26901 6.522L14.4618 14.7148C14.7417 14.9947 14.8081 15.3925 14.6083 15.5924C14.4085 15.7922 14.0107 15.7258 13.7307 15.4458Z",fill:"#74777C"}),(0,I.jsx)("path",{d:"M5.39169 15.5924C5.19187 15.3925 5.25829 14.9947 5.53821 14.7148L13.731 6.522C14.0109 6.24208 14.4087 6.17565 14.6086 6.37548C14.8084 6.5753 14.742 6.97313 14.4621 7.25305L6.26927 15.4458C5.98935 15.7258 5.59152 15.7922 5.39169 15.5924Z",fill:"#74777C"})]})})]})]})})}ID.propTypes={},ID.defaultProps={};function VD(t){const{attributes:e}=t,{block_id:i,lists:o,backgroundImage:a,contentTrigger:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:"ablocks/image-hotspot",attributes:e,children:[(0,I.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,
3998 4010 L.__)("Background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||a}),o?.map(t=>(0,I.jsx)("div",{className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`),"data-tooltip-index":t.id,"data-xaxis":t.xAxis,"data-yaxis":t.yAxis,"data-trigger":n},t.id)),(0,I.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",children:(0,I.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M13.7307 15.4458L5.53795 7.25305C5.25803 6.97313 5.19161 6.5753 5.39143 6.37548C5.59125 6.17565 5.98909 6.24208 6.26901 6.522L14.4618 14.7148C14.7417 14.9947 14.8081 15.3925 14.6083 15.5924C14.4085 15.7922 14.0107 15.7258 13.7307 15.4458Z",fill:"#74777C"}),(0,I.jsx)("path",{
3999 -d:"M5.39169 15.5924C5.19187 15.3925 5.25829 14.9947 5.53821 14.7148L13.731 6.522C14.0109 6.24208 14.4087 6.17565 14.6086 6.37548C14.8084 6.5753 14.742 6.97313 14.4621 7.25305L6.26927 15.4458C5.98935 15.7258 5.59152 15.7922 5.39169 15.5924Z",fill:"#74777C"})]})})]})]})})}bD.propTypes={},bD.defaultProps={},(0,M.xV)(iD.UU)&&(0,o.registerBlockType)(iD.UU,{attributes:iD.uK,icon:(0,I.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4011 +d:"M5.39169 15.5924C5.19187 15.3925 5.25829 14.9947 5.53821 14.7148L13.731 6.522C14.0109 6.24208 14.4087 6.17565 14.6086 6.37548C14.8084 6.5753 14.742 6.97313 14.4621 7.25305L6.26927 15.4458C5.98935 15.7258 5.59152 15.7922 5.39169 15.5924Z",fill:"#74777C"})]})})]})]})})}VD.propTypes={},VD.defaultProps={},(0,M.xV)(zD.UU)&&(0,o.registerBlockType)(zD.UU,{attributes:zD.uK,icon:(0,I.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4000 4012 d:"M21.0165 5.02311C20.7241 4.73069 20.3342 4.63321 19.9443 4.63321H3.95823C3.47085 4.63321 3.17843 4.73069 2.886 5.02311C2.59357 5.31554 2.49609 5.60797 2.49609 6.09535V19.2546C2.49609 19.6445 2.69105 20.0344 2.886 20.3268C3.17843 20.6193 3.56833 20.7167 3.95823 20.7167H20.0418C20.4317 20.7167 20.8216 20.5218 21.114 20.3268C21.4064 20.0344 21.5039 19.6445 21.5039 19.2546V6.09535C21.5039 5.60797 21.309 5.31554 21.0165 5.02311ZM3.95823 19.2546V16.7202L6.49261 14.1859C7.17494 14.7707 8.05222 15.1606 9.02698 15.1606C9.80679 15.1606 10.4891 14.9657 11.1715 14.4783L15.9478 19.2546H3.95823ZM10.5866 10.3843C10.9765 10.3843 11.3664 10.6767 11.3664 11.1641C11.3664 11.554 11.074 11.8464 10.6841 11.9439H10.5866H9.80679V12.7237C9.80679 12.8212 9.80679 12.9187 9.70931 13.0161C9.61184 13.3086 9.31941 13.5035 9.02698 13.5035C8.63708 13.5035 8.24718 13.2111 8.24718 12.7237V11.9439H7.46737C7.17494 11.9439 6.97999 11.8464 6.88251 11.6515C6.78504 11.554 6.68756 11.3591 6.68756 11.1641C6.68756 10.6767 7.07746 10.3843 7.46737 10.3843H8.24718V9.60448C8.24718 9.21458 8.63708 8.82468 9.02698 8.82468C9.41689 8.82468 9.80679 9.21458 9.80679 9.60448V10.3843H10.5866ZM20.0418 19.2546H18.0922L14.7781 15.9404L16.6301 14.0884L20.0418 17.5V19.2546ZM20.0418 15.453L17.7023 13.1136C17.6049 13.0161 17.4099 12.8212 17.215 12.8212C16.9225 12.6262 16.7276 12.6262 16.6301 12.6262C16.4352 12.6262 16.2402 12.6262 16.0453 12.7237C15.8503 12.8212 15.7528 12.9187 15.5579 13.0161L13.7058 14.8682L12.2437 13.406C12.7311 12.7237 12.926 12.0414 12.926 11.1641C12.926 9.01963 11.1715 7.26506 9.02698 7.26506C6.88251 7.26506 5.12794 9.01963 5.12794 11.1641C5.12794 11.8464 5.3229 12.4313 5.51785 12.9187L3.95823 14.5758V6.09535H20.0418V15.453Z",
4001 -fill:"#13191B"})}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin:after",{animation:i.animationType}),i.lists.forEach(o=>{t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}`,aD(o,i),aD(o,i,"Tablet"),aD(o,i,"Mobile"),e(t=>aD(o,i,t))),t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}:after`,((t,e)=>({"background-color":(0,Hs.qD)(t.pinColor)||(0,Hs.qD)(e?.pinColor),width:`${t.pinSize||e.pinSize}px`,height:`${t.pinSize||e.pinSize}px`}))(o,i)),
4002 -t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}:hover`,((t,e)=>({"background-color":(0,Hs.qD)(t.pinHoverColor)||(0,Hs.qD)(e?.pinHoverColor),transform:"translate(-50%, -50%)","--ablocks-hotspot-effect-max-scale":t.pinHoverSize||e.pinHoverSize}))(o,i)),t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}:hover:after`,((t,e)=>({"background-color":(0,Hs.qD)(t.pinHoverColor)||(0,Hs.qD)(e?.pinHoverColor),"--ablocks-hotspot-effect-max-scale":t.pinHoverSize||e.pinHoverSize}))(o,i))}),i.lists.some(t=>tD(t.icon))&&(t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin--has-icon .ablocks-icon-wrap",(t=>{const e={};return t?.pinIconSize&&(e.width=`${t.pinIconSize}%`,e.height=`${t.pinIconSize}%`),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin--has-icon .ablocks-icon-wrap svg.ablocks-svg-icon",(t=>{const e={};return t?.pinIconColor&&(e.fill=(0,Hs.qD)(t.pinIconColor)),e})(i))),
4003 -t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip-content",lD(i),lD(i,"Tablet"),lD(i,"Mobile"),e(t=>lD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active",nD(i),nD(i,"Tablet"),nD(i,"Mobile"),e(t=>nD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active:hover",sD(i),sD(i,"Tablet"),sD(i,"Mobile"),e(t=>sD(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(eD,{...t}),(0,I.jsx)(oD,{...t})]})},save:rD,deprecated:[{attributes:{block_id:{type:"string",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:[]},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9"},pinColorEffect:{type:"string",default:"#d9d9d9"},pinHoverColor:{type:"string",default:"#d9d9d9"},pinSize:{type:"number",default:15},pinHoverSize:{type:"number",default:1.5},lists:{type:"array",default:[{id:0,
4013 +fill:"#13191B"})}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin:after",{animation:i.animationType}),i.lists.forEach(o=>{t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}`,AD(o,i),AD(o,i,"Tablet"),AD(o,i,"Mobile"),e(t=>AD(o,i,t))),t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}:after`,((t,e)=>({"background-color":(0,Hs.qD)(t.pinColor)||(0,Hs.qD)(e?.pinColor),width:`${t.pinSize||e.pinSize}px`,height:`${t.pinSize||e.pinSize}px`}))(o,i)),
4014 +t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}:hover`,((t,e)=>({"background-color":(0,Hs.qD)(t.pinHoverColor)||(0,Hs.qD)(e?.pinHoverColor),transform:"translate(-50%, -50%)","--ablocks-hotspot-effect-max-scale":t.pinHoverSize||e.pinHoverSize}))(o,i)),t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}:hover:after`,((t,e)=>({"background-color":(0,Hs.qD)(t.pinHoverColor)||(0,Hs.qD)(e?.pinHoverColor),"--ablocks-hotspot-effect-max-scale":t.pinHoverSize||e.pinHoverSize}))(o,i))}),i.lists.some(t=>jD(t.icon))&&(t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin--has-icon .ablocks-icon-wrap",(t=>{const e={};return t?.pinIconSize&&(e.width=`${t.pinIconSize}%`,e.height=`${t.pinIconSize}%`),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin--has-icon .ablocks-icon-wrap svg.ablocks-svg-icon",(t=>{const e={};return t?.pinIconColor&&(e.fill=(0,Hs.qD)(t.pinIconColor)),e})(i))),
4015 +t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip-content",LD(i),LD(i,"Tablet"),LD(i,"Mobile"),e(t=>LD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active",DD(i),DD(i,"Tablet"),DD(i,"Mobile"),e(t=>DD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active:hover",ND(i),ND(i,"Tablet"),ND(i,"Mobile"),e(t=>ND(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(wD,{...t}),(0,I.jsx)(CD,{...t})]})},save:ID,deprecated:[{attributes:{block_id:{type:"string",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:[]},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9"},pinColorEffect:{type:"string",default:"#d9d9d9"},pinHoverColor:{type:"string",default:"#d9d9d9"},pinSize:{type:"number",default:15},pinHoverSize:{type:"number",default:1.5},lists:{type:"array",default:[{id:0,
4004 4016 text:"Your title here 0",xAxis:35,yAxis:32,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite"},contentAnimation:{type:"string",default:"ablocks-hotspot-fadeIn"},contentTrigger:{type:"string",default:"onClick"},contentPosition:{type:"string",default:"bottom"},backgroundColor:{type:"string",default:"white"},childWidth:{type:"object",default:{value:200,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},commonBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",
4005 4017 bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",
4006 4018 bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,
4007 4019 isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",
@@ -4008,23 +4020,23 @@
4008 4020 imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",
4009 4021 imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",
4010 4022 rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",
4011 4023 offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",
4012 -xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:bD}]});var cD=i(4851);function dD(t){const{attributes:e,setAttributes:i,clientId:o}=t,{contentWidth:a,backgroundColor:n,contentPadding:s}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{
4013 -className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Filterable Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Filterable block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:o})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Hotspot Child","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"contentWidth",attributeValue:a,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:(r=a?.valueUnit||"px","px"===r?1600:"%"===r||"vw"===r?100:"rem"===r||"em"===r?160:1600),step:1,attributeDefaultValue:cD.Q,autoSyncRange:!1}),(0,
4014 -I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"backgroundColor",attributeValue:n,setAttributes:i,resetHandler:()=>{i({backgroundColor:""})},onChangeHandler:(t,e)=>{i({backgroundColor:e})}}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:s,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]})]})});var r}dD.propTypes={},dD.defaultProps={};const uD={UU:"ablocks/image-hotspot-child",$t:["ablocks/image-hotspot"],uK:{block_id:{type:"string",default:""},hotspotId:{type:"number",default:0},backgroundColor:{type:"string",default:""},contentWidth:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentBorder:{type:"object",default:{borderStyle:"default",
4024 +xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:VD}]});var OD=i(4851);function YD(t){const{attributes:e,setAttributes:i,clientId:o}=t,{contentWidth:a,backgroundColor:n,contentPadding:s}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{
4025 +className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Filterable Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Filterable block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:o})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Hotspot Child","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"contentWidth",attributeValue:a,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:(r=a?.valueUnit||"px","px"===r?1600:"%"===r||"vw"===r?100:"rem"===r||"em"===r?160:1600),step:1,attributeDefaultValue:OD.Q,autoSyncRange:!1}),(0,
4026 +I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"backgroundColor",attributeValue:n,setAttributes:i,resetHandler:()=>{i({backgroundColor:""})},onChangeHandler:(t,e)=>{i({backgroundColor:e})}}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:s,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]})]})});var r}YD.propTypes={},YD.defaultProps={};const XD={UU:"ablocks/image-hotspot-child",$t:["ablocks/image-hotspot"],uK:{block_id:{type:"string",default:""},hotspotId:{type:"number",default:0},backgroundColor:{type:"string",default:""},contentWidth:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentBorder:{type:"object",default:{borderStyle:"default",
4015 4027 borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",
4016 4028 bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",
4017 -leftMobile:"",unitMobile:""}}}};function pD(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:uD.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/heading",{heading:(0,L.__)("Content Title","ablocks")}],["ablocks/button",{text:(0,L.__)("Buy Now","ablocks")}]],templateLock:!1})})})}pD.propTypes={},pD.defaultProps={};const mD=(t,e="")=>{const{contentWidth:i}=t,o={};return"%"===i.valueUnit&&(o.width=` ${i["value"+e]}${i["valueUnit"+e]||"px"}`),{...o}},hD=(t,e="")=>({...{...(0,Eb.qD)({attributeValue:t.contentWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})},background:(0,Hs.qD)(t?.backgroundColor),...(0,y.qD)(t?.contentBorder,e),...(0,c.qD)(t?.contentPadding,"padding",e)}),gD=(t,e="")=>({...(0,y.a9)(t?.contentBorder,e)});function fD(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:uD.UU,attributes:e,children:(0,
4018 -I.jsx)(D.InnerBlocks.Content,{})})}fD.propTypes={},fD.defaultProps={},(0,M.xV)(uD.UU,uD.$t[0])&&(0,o.registerBlockType)(uD.UU,{icon:(0,I.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4029 +leftMobile:"",unitMobile:""}}}};function BD(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:XD.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/heading",{heading:(0,L.__)("Content Title","ablocks")}],["ablocks/button",{text:(0,L.__)("Buy Now","ablocks")}]],templateLock:!1})})})}BD.propTypes={},BD.defaultProps={};const ED=(t,e="")=>{const{contentWidth:i}=t,o={};return"%"===i.valueUnit&&(o.width=` ${i["value"+e]}${i["valueUnit"+e]||"px"}`),{...o}},FD=(t,e="")=>({...{...(0,Eb.qD)({attributeValue:t.contentWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})},background:(0,Hs.qD)(t?.backgroundColor),...(0,y.qD)(t?.contentBorder,e),...(0,c.qD)(t?.contentPadding,"padding",e)}),qD=(t,e="")=>({...(0,y.a9)(t?.contentBorder,e)});function $D(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:XD.UU,attributes:e,children:(0,
4030 +I.jsx)(D.InnerBlocks.Content,{})})}$D.propTypes={},$D.defaultProps={},(0,M.xV)(XD.UU,XD.$t[0])&&(0,o.registerBlockType)(XD.UU,{icon:(0,I.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4019 4031 d:"M21.0165 5.02311C20.7241 4.73069 20.3342 4.63321 19.9443 4.63321H3.95823C3.47085 4.63321 3.17843 4.73069 2.886 5.02311C2.59357 5.31554 2.49609 5.60797 2.49609 6.09535V19.2546C2.49609 19.6445 2.69105 20.0344 2.886 20.3268C3.17843 20.6193 3.56833 20.7167 3.95823 20.7167H20.0418C20.4317 20.7167 20.8216 20.5218 21.114 20.3268C21.4064 20.0344 21.5039 19.6445 21.5039 19.2546V6.09535C21.5039 5.60797 21.309 5.31554 21.0165 5.02311ZM3.95823 19.2546V16.7202L6.49261 14.1859C7.17494 14.7707 8.05222 15.1606 9.02698 15.1606C9.80679 15.1606 10.4891 14.9657 11.1715 14.4783L15.9478 19.2546H3.95823ZM10.5866 10.3843C10.9765 10.3843 11.3664 10.6767 11.3664 11.1641C11.3664 11.554 11.074 11.8464 10.6841 11.9439H10.5866H9.80679V12.7237C9.80679 12.8212 9.80679 12.9187 9.70931 13.0161C9.61184 13.3086 9.31941 13.5035 9.02698 13.5035C8.63708 13.5035 8.24718 13.2111 8.24718 12.7237V11.9439H7.46737C7.17494 11.9439 6.97999 11.8464 6.88251 11.6515C6.78504 11.554 6.68756 11.3591 6.68756 11.1641C6.68756 10.6767 7.07746 10.3843 7.46737 10.3843H8.24718V9.60448C8.24718 9.21458 8.63708 8.82468 9.02698 8.82468C9.41689 8.82468 9.80679 9.21458 9.80679 9.60448V10.3843H10.5866ZM20.0418 19.2546H18.0922L14.7781 15.9404L16.6301 14.0884L20.0418 17.5V19.2546ZM20.0418 15.453L17.7023 13.1136C17.6049 13.0161 17.4099 12.8212 17.215 12.8212C16.9225 12.6262 16.7276 12.6262 16.6301 12.6262C16.4352 12.6262 16.2402 12.6262 16.0453 12.7237C15.8503 12.8212 15.7528 12.9187 15.5579 13.0161L13.7058 14.8682L12.2437 13.406C12.7311 12.7237 12.926 12.0414 12.926 11.1641C12.926 9.01963 11.1715 7.26506 9.02698 7.26506C6.88251 7.26506 5.12794 9.01963 5.12794 11.1641C5.12794 11.8464 5.3229 12.4313 5.51785 12.9187L3.95823 14.5758V6.09535H20.0418V15.453Z",
4020 -fill:"#13191B"})}),attributes:uD.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",mD(i),mD(i,"Tablet"),mD(i,"Mobile"),t.customDeviceMap(t=>mD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active",hD(i),hD(i,"Tablet"),hD(i,"Mobile"),t.customDeviceMap(t=>hD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active:hover",gD(i),gD(i,"Tablet"),gD(i,"Mobile"),t.customDeviceMap(t=>gD(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(dD,{...t}),(0,I.jsx)(pD,{...t})]})},save:fD});const yD=(0,Eb.D$)({attributeName:"bothGap",defaultValue:30,copyStyle:!0});function TD(t){
4032 +fill:"#13191B"})}),attributes:XD.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",ED(i),ED(i,"Tablet"),ED(i,"Mobile"),t.customDeviceMap(t=>ED(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active",FD(i),FD(i,"Tablet"),FD(i,"Mobile"),t.customDeviceMap(t=>FD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active:hover",qD(i),qD(i,"Tablet"),qD(i,"Mobile"),t.customDeviceMap(t=>qD(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(YD,{...t}),(0,I.jsx)(BD,{...t})]})},save:$D});const GD=(0,Eb.D$)({attributeName:"bothGap",defaultValue:30,copyStyle:!0});function ZD(t){
4021 4033 const{attributes:e,setAttributes:i}=t,{dashboard_page:o,sidebarBorder:a,sidebarBackground:n,userSidebarBorder:s,userTypography:b,userTextColor:c,sidebarUserBackground:d,menuListActiveBackground:u,menuListActiveTextColor:p,menuListHoverBackground:m,menuListHoverTextColor:h,menuListBackground:g,menuListTextColor:f,menuListTypography:y,menuListBorder:T,menuListPadding:H,contentBackground:x,breadcrumbColor:k,contentPadding:v,breadcrumbtTypography:_,contentBorder:R}=e,{frontend_dashboard_page:S}=M.W0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("General Setting","ablocks"),initialOpen:!1,children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("These feature will only works in editor","ablocks")})}),(0,I.jsx)(Ut,{options:(0,r.useSelect)(t=>{const e=t("core").getEntityRecords("postType","page",{parent:S,
4022 -per_page:-1,order:"asc",orderby:"title"});return e?e.map(t=>({label:t.title.rendered,value:t.slug})):null},[S])||[],label:(0,L.__)("Active Dashboard Pages","ablocks"),attributeValue:o,attributeName:"dashboard_page",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"bothGap",attributeValue:e?.bothGap,setAttributes:i,attributeDefaultValue:yD})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Sidebar Design","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"sidebarBackground",attributeValue:n||"#ddd",setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"sidebarBorder",attributeValue:e?.sidebarBorder,setAttributes:i})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Sidebar Header","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,
4034 +per_page:-1,order:"asc",orderby:"title"});return e?e.map(t=>({label:t.title.rendered,value:t.slug})):null},[S])||[],label:(0,L.__)("Active Dashboard Pages","ablocks"),attributeValue:o,attributeName:"dashboard_page",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"bothGap",attributeValue:e?.bothGap,setAttributes:i,attributeDefaultValue:GD})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Sidebar Design","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"sidebarBackground",attributeValue:n||"#ddd",setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"sidebarBorder",attributeValue:e?.sidebarBorder,setAttributes:i})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Sidebar Header","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,
4023 4035 L.__)("Color","ablocks"),attributeName:"userTextColor",attributeValue:c||"#000000",setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"userTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"sidebarUserBackground",attributeValue:d,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"userSidebarBorder",attributeValue:e?.userSidebarBorder,setAttributes:i})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Menu Items","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"menuListTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuListTextColor",attributeValue:f||"#000000",
4024 4036 setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuListBackground",attributeValue:g,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuListHoverTextColor",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuListHoverBackground",attributeValue:m,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Menu Setting Active Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuListActiveTextColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuListActiveBackground",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"menuListPadding",attributeValue:H,
4025 4037 setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"menuListBorder",attributeValue:e?.menuListBorder,setAttributes:i})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Content Area","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"contentBackground",attributeValue:x||"#ddd",setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"contentPadding",attributeValue:v,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Breadcrumbs","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"breadcrumbtTypography",attributeValue:_,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{
4026 -label:(0,L.__)("Color","ablocks"),attributeName:"breadcrumbColor",attributeValue:k,setAttributes:i})]})]})})})}(0,y.D$)("sidebarBorder",!0),(0,y.D$)("userSidebarBorder",!0),(0,y.D$)("menuListBorder",!0),(0,y.D$)("contentBorder",!0),(0,U.D$)("userTypography",!0),(0,U.D$)("breadcrumbtTypography",!0),(0,U.D$)("menuListTypography",!0),(0,c.D$)("menuListPadding",!0),(0,c.D$)("contentPadding",!0),_r.Ay,TD.propTypes={};const HD={UU:"ablocks/frontend-dashboard",uK:{block_id:{type:"string",default:""},dashboard_page:{type:"string",default:""},sidebarBackground:{type:"string",default:""},sidebarUserBackground:{type:"string",default:""},contentBackground:{type:"string",default:""},userTextColor:{type:"string",default:""},breadcrumbColor:{type:"string",default:""},menuListActiveBackground:{type:"string",default:""},menuListActiveTextColor:{type:"string",default:""},menuListHoverBackground:{type:"string",default:""},menuListHoverTextColor:{type:"string",default:""},menuListBackground:{
4038 +label:(0,L.__)("Color","ablocks"),attributeName:"breadcrumbColor",attributeValue:k,setAttributes:i})]})]})})})}(0,y.D$)("sidebarBorder",!0),(0,y.D$)("userSidebarBorder",!0),(0,y.D$)("menuListBorder",!0),(0,y.D$)("contentBorder",!0),(0,U.D$)("userTypography",!0),(0,U.D$)("breadcrumbtTypography",!0),(0,U.D$)("menuListTypography",!0),(0,c.D$)("menuListPadding",!0),(0,c.D$)("contentPadding",!0),_r.Ay,ZD.propTypes={};const KD={UU:"ablocks/frontend-dashboard",uK:{block_id:{type:"string",default:""},dashboard_page:{type:"string",default:""},sidebarBackground:{type:"string",default:""},sidebarUserBackground:{type:"string",default:""},contentBackground:{type:"string",default:""},userTextColor:{type:"string",default:""},breadcrumbColor:{type:"string",default:""},menuListActiveBackground:{type:"string",default:""},menuListActiveTextColor:{type:"string",default:""},menuListHoverBackground:{type:"string",default:""},menuListHoverTextColor:{type:"string",default:""},menuListBackground:{
4027 4039 type:"string",default:""},menuListTextColor:{type:"string",default:""},bothGap:{type:"number",default:30},sidebarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",
4028 4040 unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},userSidebarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",
4029 4041 isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",
4030 4042 rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},menuListBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",
@@ -4041,29 +4053,29 @@
4041 4053 imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",
4042 4054 rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",
4043 4055 offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",
4044 4056 xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},
4045 -_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function MD(t){const{attributes:e,setAttributes:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:HD.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/frontend-dashboard",httpMethod:"POST",attributes:e})})})})}MD.propTypes={};const xD=(t,e="")=>{const i={};t?.sidebarBackground&&(i.background=(0,Hs.qD)(t?.sidebarBackground));const o=(0,M.Zy)(t.sidebarBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},kD=(t,e="")=>{const i={};t?.userTextColor&&(i.color=(0,Hs.qD)(t?.userTextColor)),t?.sidebarUserBackground&&(i.background=(0,Hs.qD)(t?.sidebarUserBackground));const o=(0,M.Zy)(t.userSidebarBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.userTypography,{weight:"400"
4046 -}),l=t.userTypographyGlobal?t.userTypographyGlobal:"";return{...i,...(0,y.qD)(o,e),...(0,U.qD)(a,e,l)}},vD=(t,e="")=>{const i={};t?.menuListTextColor&&(i.color=(0,Hs.qD)(t?.menuListTextColor)),t?.menuListBackground&&(i.background=(0,Hs.qD)(t?.menuListBackground));const o=(0,M.Zy)(t.menuListBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.menuListTypography,{weight:"400"}),l=t.menuListTypographyGlobal?t.menuListTypographyGlobal:"";return{...i,...(0,y.qD)(o,e),...(0,c.qD)(t?.menuListPadding,"padding",e),...(0,U.qD)(a,e,l)}},_D=(t,e="")=>{const i={};t?.menuListHoverTextColor&&(i.color=(0,Hs.qD)(t?.menuListHoverTextColor)),t?.menuListHoverBackground&&(i.background=(0,Hs.qD)(t?.menuListHoverBackground));const o=(0,M.Zy)(t.menuListBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e)}},RD=(t,e="")=>{const i={};return t?.menuListActiveTextColor&&(i.color=(0,Hs.qD)(t?.menuListActiveTextColor)),t?.menuListActiveBackground&&(i.background=(0,
4047 -Hs.qD)(t?.menuListActiveBackground)),{...i}},SD=(t,e="")=>{const i={};t?.contentBackground&&(i.background=(0,Hs.qD)(t?.contentBackground));const o=(0,M.Zy)(t.contentBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,c.qD)(t?.contentPadding,"padding",e)}},WD=(t,e="")=>{const i=(0,M.Zy)(t.contentBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},PD=(t,e="")=>{const i={};t?.breadcrumbColor&&(i.color=(0,Hs.qD)(t?.breadcrumbColor));const o=(0,M.Zy)(t.breadcrumbtTypography,{weight:"400"}),a=t.breadcrumbtTypographyGlobal?t.breadcrumbtTypographyGlobal:"";return{...i,...(0,U.qD)(o,e,a)}},UD=(t,e="")=>{const i={};return t?.bothGap&&(i.gap=`${t?.bothGap}px`),i.display="flex",i["flex-direction"]="Tablet"===e||"Mobile"===e?"column":"row",{...i}};(0,o.registerBlockType)(HD.UU,{title:(0,L.__)("Frontend Dashboard","ablocks"),attributes:HD.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--frontend-dashboard"}),edit:function(t){
4048 -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-sidebar",xD(i,""),xD(i,"Tablet"),xD(i,"Mobile"),t.customDeviceMap(t=>xD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-user",kD(i,""),kD(i,"Tablet"),kD(i,"Mobile"),t.customDeviceMap(t=>kD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item a",vD(i,""),vD(i,"Tablet"),vD(i,"Mobile"),t.customDeviceMap(t=>vD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item a:hover",_D(i,""),_D(i,"Tablet"),_D(i,"Mobile"),t.customDeviceMap(t=>_D(i,t))),
4049 -t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item--current a",RD(i,""),RD(i,"Tablet"),RD(i,"Mobile"),t.customDeviceMap(t=>RD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-content",SD(i,""),SD(i,"Tablet"),SD(i,"Mobile"),t.customDeviceMap(t=>SD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-content:hover",WD(i,""),WD(i,"Tablet"),WD(i,"Mobile"),t.customDeviceMap(t=>WD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-breadcrumb li",PD(i,""),PD(i,"Tablet"),PD(i,"Mobile"),t.customDeviceMap(t=>PD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-breadcrumb li + li::before",PD(i,""),PD(i,"Tablet"),PD(i,"Mobile"),t.customDeviceMap(t=>PD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--frontend-dashboard",UD(i,""),UD(i,"Tablet"),UD(i,"Mobile"),t.customDeviceMap(t=>UD(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(TD,{...t}),(0,I.jsx)(MD,{
4050 -...t})]})},save:()=>null});const jD=[{label:(0,L.__)("1 Columns","ablocks"),value:1},{label:(0,L.__)("2 Columns","ablocks"),value:2},{label:(0,L.__)("3 Columns","ablocks"),value:3},{label:(0,L.__)("4 Columns","ablocks"),value:4},{label:(0,L.__)("5 Columns","ablocks"),value:5},{label:(0,L.__)("6 Columns","ablocks"),value:6},{label:(0,L.__)("7 Columns","ablocks"),value:7},{label:(0,L.__)("8 Columns","ablocks"),value:8},{label:(0,L.__)("9 Columns","ablocks"),value:9},{label:(0,L.__)("10 Columns","ablocks"),value:10}],wD=[{label:(0,L.__)("Fade In","ablocks"),value:"fade-in"},{label:(0,L.__)("Slide Up","ablocks"),value:"slide-up"},{label:(0,L.__)("Zoom In","ablocks"),value:"zoom-in"},{label:(0,L.__)("Rotate","ablocks"),value:"rotate"},{label:(0,L.__)("Slide-in from Left","ablocks"),value:"slide-in-left"},{label:(0,L.__)("Slide-in from Right","ablocks"),value:"slide-in-right"}],zD=[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),
4051 -value:"center",icon:"center"},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],CD=(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,I.jsx)("g",{clipPath:"url(#clip0_9663_5064)",children:(0,I.jsx)("path",{d:"M16.25 7.5L10 13.75L3.75 7.5",stroke:"#13191B",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,I.jsx)("defs",{children:(0,I.jsx)("clipPath",{id:"clip0_9663_5064",children:(0,I.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]});var AD=i(29419);function LD(t){
4057 +_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function JD(t){const{attributes:e,setAttributes:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:KD.UU,attributes:e,children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/frontend-dashboard",httpMethod:"POST",attributes:e})})})})}JD.propTypes={};const QD=(t,e="")=>{const i={};t?.sidebarBackground&&(i.background=(0,Hs.qD)(t?.sidebarBackground));const o=(0,M.Zy)(t.sidebarBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},tN=(t,e="")=>{const i={};t?.userTextColor&&(i.color=(0,Hs.qD)(t?.userTextColor)),t?.sidebarUserBackground&&(i.background=(0,Hs.qD)(t?.sidebarUserBackground));const o=(0,M.Zy)(t.userSidebarBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.userTypography,{weight:"400"
4058 +}),l=t.userTypographyGlobal?t.userTypographyGlobal:"";return{...i,...(0,y.qD)(o,e),...(0,U.qD)(a,e,l)}},eN=(t,e="")=>{const i={};t?.menuListTextColor&&(i.color=(0,Hs.qD)(t?.menuListTextColor)),t?.menuListBackground&&(i.background=(0,Hs.qD)(t?.menuListBackground));const o=(0,M.Zy)(t.menuListBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.menuListTypography,{weight:"400"}),l=t.menuListTypographyGlobal?t.menuListTypographyGlobal:"";return{...i,...(0,y.qD)(o,e),...(0,c.qD)(t?.menuListPadding,"padding",e),...(0,U.qD)(a,e,l)}},iN=(t,e="")=>{const i={};t?.menuListHoverTextColor&&(i.color=(0,Hs.qD)(t?.menuListHoverTextColor)),t?.menuListHoverBackground&&(i.background=(0,Hs.qD)(t?.menuListHoverBackground));const o=(0,M.Zy)(t.menuListBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e)}},oN=(t,e="")=>{const i={};return t?.menuListActiveTextColor&&(i.color=(0,Hs.qD)(t?.menuListActiveTextColor)),t?.menuListActiveBackground&&(i.background=(0,
4059 +Hs.qD)(t?.menuListActiveBackground)),{...i}},aN=(t,e="")=>{const i={};t?.contentBackground&&(i.background=(0,Hs.qD)(t?.contentBackground));const o=(0,M.Zy)(t.contentBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,c.qD)(t?.contentPadding,"padding",e)}},lN=(t,e="")=>{const i=(0,M.Zy)(t.contentBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},nN=(t,e="")=>{const i={};t?.breadcrumbColor&&(i.color=(0,Hs.qD)(t?.breadcrumbColor));const o=(0,M.Zy)(t.breadcrumbtTypography,{weight:"400"}),a=t.breadcrumbtTypographyGlobal?t.breadcrumbtTypographyGlobal:"";return{...i,...(0,U.qD)(o,e,a)}},sN=(t,e="")=>{const i={};return t?.bothGap&&(i.gap=`${t?.bothGap}px`),i.display="flex",i["flex-direction"]="Tablet"===e||"Mobile"===e?"column":"row",{...i}};(0,o.registerBlockType)(KD.UU,{title:(0,L.__)("Frontend Dashboard","ablocks"),attributes:KD.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--frontend-dashboard"}),edit:function(t){
4060 +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-sidebar",QD(i,""),QD(i,"Tablet"),QD(i,"Mobile"),t.customDeviceMap(t=>QD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-user",tN(i,""),tN(i,"Tablet"),tN(i,"Mobile"),t.customDeviceMap(t=>tN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item a",eN(i,""),eN(i,"Tablet"),eN(i,"Mobile"),t.customDeviceMap(t=>eN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item a:hover",iN(i,""),iN(i,"Tablet"),iN(i,"Mobile"),t.customDeviceMap(t=>iN(i,t))),
4061 +t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item--current a",oN(i,""),oN(i,"Tablet"),oN(i,"Mobile"),t.customDeviceMap(t=>oN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-content",aN(i,""),aN(i,"Tablet"),aN(i,"Mobile"),t.customDeviceMap(t=>aN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-content:hover",lN(i,""),lN(i,"Tablet"),lN(i,"Mobile"),t.customDeviceMap(t=>lN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-breadcrumb li",nN(i,""),nN(i,"Tablet"),nN(i,"Mobile"),t.customDeviceMap(t=>nN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-breadcrumb li + li::before",nN(i,""),nN(i,"Tablet"),nN(i,"Mobile"),t.customDeviceMap(t=>nN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--frontend-dashboard",sN(i,""),sN(i,"Tablet"),sN(i,"Mobile"),t.customDeviceMap(t=>sN(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(ZD,{...t}),(0,I.jsx)(JD,{
4062 +...t})]})},save:()=>null});const rN=[{label:(0,L.__)("1 Columns","ablocks"),value:1},{label:(0,L.__)("2 Columns","ablocks"),value:2},{label:(0,L.__)("3 Columns","ablocks"),value:3},{label:(0,L.__)("4 Columns","ablocks"),value:4},{label:(0,L.__)("5 Columns","ablocks"),value:5},{label:(0,L.__)("6 Columns","ablocks"),value:6},{label:(0,L.__)("7 Columns","ablocks"),value:7},{label:(0,L.__)("8 Columns","ablocks"),value:8},{label:(0,L.__)("9 Columns","ablocks"),value:9},{label:(0,L.__)("10 Columns","ablocks"),value:10}],bN=[{label:(0,L.__)("Fade In","ablocks"),value:"fade-in"},{label:(0,L.__)("Slide Up","ablocks"),value:"slide-up"},{label:(0,L.__)("Zoom In","ablocks"),value:"zoom-in"},{label:(0,L.__)("Rotate","ablocks"),value:"rotate"},{label:(0,L.__)("Slide-in from Left","ablocks"),value:"slide-in-left"},{label:(0,L.__)("Slide-in from Right","ablocks"),value:"slide-in-right"}],cN=[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),
4063 +value:"center",icon:"center"},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],dN=(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,I.jsx)("g",{clipPath:"url(#clip0_9663_5064)",children:(0,I.jsx)("path",{d:"M16.25 7.5L10 13.75L3.75 7.5",stroke:"#13191B",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,I.jsx)("defs",{children:(0,I.jsx)("clipPath",{id:"clip0_9663_5064",children:(0,I.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]});var uN=i(29419);function pN(t){
4052 4064 const{attributes:e,setAttributes:i}=t,{filterList:o,enableFilter:a,filterButtonTypography:n,filterButtonColor:s,filterButtonColorH:r,filterButtonBackground:b,filterButtonBackgroundH:c,filterButtonBorder:d,filterButtonPadding:u,searchMenuPadding:p,searchMenuMargin:m,searchMenuBorder:h,filterButtonMargin:g,filterButtonGap:f,filterAlignment:y,gridColumns:T,cardHeight:H,itemShows:x,activeClassBackground:k,activeClassBorder:v,loadMoreButton:_,animationDuration:R,loadMoreButtonText:S,loadMoreButtonBackground:W,loadMoreButtonTextColor:P,loadMoreButtonTextColorH:U,loadMoreButtonBackgroundH:j,moreButtonAlignment:w,dataPerPageShow:z,noMoreItemsText:C,gridStyle:A,itemGap:N,activeClassColor:O,animation:Y,layout:B,searchPlaceHolder:E,searchMenuColor:F,searchMenuColorH:q,searchMenuBackground:$,searchMenuBackgroundH:G,searchNotFoundText:Z,loadMoreButtonGap:K}=e,J=(t,e,a)=>{const l=o.map(i=>"isActive"===a&&e?{...i,[a]:i.id===t}:i.id===t?{...i,[a]:e}:i);i({filterList:l})
4053 4065 },Q=o?.length?o[o.length-1].id+1:0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Load More Button","ablocks"),initialOpen:!0,children:[M.zX?(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Load More Button","ablocks"),attributeValue:_,setAttributes:i,attributeName:"loadMoreButton"}):(0,I.jsx)(zr,{isResponsive:!1,label:(0,L.__)("Load More Button","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")}),_&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"moreButtonAlignment",attributeValue:w,isResponsive:!1,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,
4054 -L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"loadMoreButtonText",attributeValue:S,setAttributes:i,isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("No More Items Label","ablocks"),attributeName:"noMoreItemsText",attributeValue:C,setAttributes:i,isInline:!1}),(0,I.jsx)(As,{label:(0,L.__)("Number of Items","ablocks"),attributeName:"dataPerPageShow",attributeValue:z,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,max:200,unitValue:K,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"loadMoreButtonGap",attributeValue:K,attributeDefaultValue:AD.iA,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"moreButtonTypography",attributeValue:e?.moreButtonTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,
4066 +L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"loadMoreButtonText",attributeValue:S,setAttributes:i,isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("No More Items Label","ablocks"),attributeName:"noMoreItemsText",attributeValue:C,setAttributes:i,isInline:!1}),(0,I.jsx)(As,{label:(0,L.__)("Number of Items","ablocks"),attributeName:"dataPerPageShow",attributeValue:z,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,max:200,unitValue:K,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"loadMoreButtonGap",attributeValue:K,attributeDefaultValue:uN.iA,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"moreButtonTypography",attributeValue:e?.moreButtonTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,
4055 4067 L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"loadMoreButtonTextColor",attributeValue:P||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackground",attributeValue:W||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"loadMoreButtonTextColorH",attributeValue:U,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackgroundH",attributeValue:j,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.loadMoreButtonTransition||0,attributeName:"loadMoreButtonTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,
4056 4068 L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"moreButtonBorder",attributeValue:e?.moreButtonBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"moreButtonPadding",attributeValue:e?.moreButtonPadding,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"moreButtonboxShadow",attributeValue:e?.moreButtonboxShadow,setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("filterable Cards","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Filter","ablocks"),attributeValue:a,setAttributes:i,attributeName:"enableFilter"}),(0,I.jsx)(As,{min:0,label:(0,L.__)("Items to show","ablocks"),attributeName:"itemShows",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Columns","ablocks"),
4057 -attributeName:"gridColumns",options:jD,attributeValue:T,setAttributes:i}),(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Grid Style","ablocks"),attributeName:"gridStyle",options:[{label:(0,L.__)("Grid","ablocks"),value:"grid"},{label:(0,L.__)("Masonry","ablocks"),value:"masonry"}],attributeValue:A,setAttributes:i}),M.zX?a&&(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Layout","ablocks"),attributeName:"layout",options:[{label:(0,L.__)("Filter","ablocks"),value:"filter"},{label:(0,L.__)("Filter & Search","ablocks"),value:"filter&search"}],attributeValue:B,setAttributes:i}):(0,I.jsx)(zr,{isResponsive:!1,label:(0,L.__)("Layout","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")}),"filter&search"===B&&(0,I.jsx)(Kl,{label:(0,L.__)("Not Found Text","ablocks"),attributeName:"searchNotFoundText",attributeValue:Z,
4058 -setAttributes:i,isInline:!1}),"grid"===A&&(0,I.jsx)(As,{label:(0,L.__)("Items Height","ablocks"),min:0,max:1600,attributeName:"cardHeight",attributeValue:H,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),min:0,max:100,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemGap",attributeValue:N,attributeDefaultValue:AD.Qk,setAttributes:i}),M.zX?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Animation","ablocks"),attributeName:"animation",options:wD,attributeValue:Y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Animation Duration(ms)","ablocks"),attributeName:"animationDuration",attributeValue:R,setAttributes:i,min:0,max:1e4,step:100,isInline:!1,isResponsive:!1,attributeDefaultValue:AD.H9})]}):(0,I.jsx)(zr,{isResponsive:!1,label:(0,L.__)("Animation","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,
4059 -L.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")})]}),a&&(0,I.jsx)(V,{title:(0,L.__)("Filter Style","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{allowDeselect:!0,label:(0,L.__)("Alignment","ablocks"),options:zD,isInline:!1,attributeName:"filterAlignment",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"filterButtonGap",attributeValue:f,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"filterButtonTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
4069 +attributeName:"gridColumns",options:rN,attributeValue:T,setAttributes:i}),(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Grid Style","ablocks"),attributeName:"gridStyle",options:[{label:(0,L.__)("Grid","ablocks"),value:"grid"},{label:(0,L.__)("Masonry","ablocks"),value:"masonry"}],attributeValue:A,setAttributes:i}),M.zX?a&&(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Layout","ablocks"),attributeName:"layout",options:[{label:(0,L.__)("Filter","ablocks"),value:"filter"},{label:(0,L.__)("Filter & Search","ablocks"),value:"filter&search"}],attributeValue:B,setAttributes:i}):(0,I.jsx)(zr,{isResponsive:!1,label:(0,L.__)("Layout","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")}),"filter&search"===B&&(0,I.jsx)(Kl,{label:(0,L.__)("Not Found Text","ablocks"),attributeName:"searchNotFoundText",attributeValue:Z,
4070 +setAttributes:i,isInline:!1}),"grid"===A&&(0,I.jsx)(As,{label:(0,L.__)("Items Height","ablocks"),min:0,max:1600,attributeName:"cardHeight",attributeValue:H,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),min:0,max:100,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemGap",attributeValue:N,attributeDefaultValue:uN.Qk,setAttributes:i}),M.zX?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Animation","ablocks"),attributeName:"animation",options:bN,attributeValue:Y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Animation Duration(ms)","ablocks"),attributeName:"animationDuration",attributeValue:R,setAttributes:i,min:0,max:1e4,step:100,isInline:!1,isResponsive:!1,attributeDefaultValue:uN.H9})]}):(0,I.jsx)(zr,{isResponsive:!1,label:(0,L.__)("Animation","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,
4071 +L.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")})]}),a&&(0,I.jsx)(V,{title:(0,L.__)("Filter Style","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{allowDeselect:!0,label:(0,L.__)("Alignment","ablocks"),options:cN,isInline:!1,attributeName:"filterAlignment",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"filterButtonGap",attributeValue:f,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"filterButtonTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
4060 4072 attributeName:"filterButtonColor",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"filterButtonBackground",attributeValue:b,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"filterButtonColorH",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"filterButtonBackgroundH",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.filterButtonTransition||0,attributeName:"filterButtonTransition",setAttributes:i})]})}),(0,I.jsx)(It,{style:{margin:"30px"}}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"filterButtonBorder",attributeValue:d,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
4061 4073 isResponsive:!0,attributeName:"filterButtonPadding",attributeValue:u,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"filterButtonMargin",attributeValue:g,setAttributes:i})]})})}),"filter&search"===B&&(0,I.jsx)(V,{title:(0,L.__)("Filter & Search Style","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Search Placeholder","ablocks"),attributeName:"searchPlaceHolder",attributeValue:E,setAttributes:i,isInline:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Filter Menu","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"searchMenuColor",attributeValue:F,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"searchMenuBackground",attributeValue:$,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,
4062 4074 I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"searchMenuColorH",attributeValue:q,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"searchMenuBackgroundH",attributeValue:G,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.searchMenuTransition||0,attributeName:"searchMenuTransition",setAttributes:i})]})}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"searchMenuBorder",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"searchMenuPadding",attributeValue:p,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"searchMenuMargin",attributeValue:m,setAttributes:i})]})})}),a&&(0,I.jsxs)(V,{title:(0,L.__)("Filter Active Class","ablocks"),initialOpen:!0,
4063 4075 children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"activeClassColor",attributeValue:O,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"activeClassBackground",attributeValue:k,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activeClassBorder",attributeValue:v,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Filterable Controls","ablocks"),initialOpen:!0,children:[(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination||0===t.source.index)return;const e=Array.from(o),[a]=e.splice(t.source.index,1),l=Math.max(t.destination.index,1);e.splice(l,0,a),i({filterList:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[o?.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t?.id}`,index:e,children:a=>(0,I.jsxs)("div",{ref:a.innerRef,...a.draggableProps,...a.dragHandleProps,
4064 4076 className:"ablocks-editor-list",children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=o.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({filterList:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:0!==e?(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"}):""}),(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[0!==e?(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.filter(t=>t?.id!==e);i({filterList:a})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}):"",0!==e?(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",
4065 -onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t?.id===e),l=o[a],n=Array.from(o).sort((t,e)=>t.id-e.id),s={id:(n[n.length-1]?.id??0)+1,text:l?.text,isOpen:!1},r=[...o,s];i({filterList:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}):""]})]}),t?.isOpen&&(0,I.jsxs)("div",{className:"ablocks-editor-list__inner-content",children:[(0,I.jsx)(Kl,{label:(0,L.__)("Filter Name","ablocks"),attributeValue:t?.text,setAttributes:i,onChangeHandler:e=>{J(t?.id,e,"text")},disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Active as Default","ablocks"),isResponsive:!1,attributeValue:t?.isActive,setAttributes:i,onChangeHandler:e=>{J(t?.id,e,"isActive")}})]})]})},t?.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:Q,text:`Item ${Q}`,isActive:!1,isOpen:!1},e=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({filterList:[...e,t]})},className:"ablocks-add-list-item-button"})]})]})})})}LD.propTypes={};const DD={
4077 +onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t?.id===e),l=o[a],n=Array.from(o).sort((t,e)=>t.id-e.id),s={id:(n[n.length-1]?.id??0)+1,text:l?.text,isOpen:!1},r=[...o,s];i({filterList:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}):""]})]}),t?.isOpen&&(0,I.jsxs)("div",{className:"ablocks-editor-list__inner-content",children:[(0,I.jsx)(Kl,{label:(0,L.__)("Filter Name","ablocks"),attributeValue:t?.text,setAttributes:i,onChangeHandler:e=>{J(t?.id,e,"text")},disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Active as Default","ablocks"),isResponsive:!1,attributeValue:t?.isActive,setAttributes:i,onChangeHandler:e=>{J(t?.id,e,"isActive")}})]})]})},t?.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:Q,text:`Item ${Q}`,isActive:!1,isOpen:!1},e=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({filterList:[...e,t]})},className:"ablocks-add-list-item-button"})]})]})})})}pN.propTypes={};const mN={
4066 4078 UU:"ablocks/filterable-cards",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:""},filterList:{type:"array",default:[{id:0,text:"All",isActive:!0},{id:1,text:"Item 01",isActive:!1}]},filterableCardsNumbers:{type:"number",default:"5"},animation:{type:"string",default:"fade-in"},enableFilter:{type:"boolean",default:!0},layout:{type:"string",default:"filter"},searchNotFoundText:{type:"string",default:"No items Found"},filterButtonColor:{type:"string",default:""},filterButtonColorH:{type:"string",default:""},filterButtonBackground:{type:"string",default:""},filterButtonBackgroundH:{type:"string",default:""},filterButtonTransition:{type:"number",default:0},itemShows:{type:"number",default:6},gridStyle:{type:"string",default:"grid"},searchMenuColor:{type:"string",default:""},searchMenuColorH:{type:"string",default:""},searchMenuBackground:{type:"string",default:""},searchMenuBackgroundH:{type:"string",default:""},searchMenuTransition:{type:"string",default:""},
4067 4079 searchPlaceHolder:{type:"string",default:"Search..."},gridColumns:{type:"number",default:2},cardHeight:{type:"number"},activeClassColor:{type:"string",default:"#fff"},activeClassBackground:{type:"string",default:"#13191B"},moreButtonAlignment:{type:"string",default:"center"},loadMoreButton:{type:"boolean",default:!1},loadMoreButtonText:{type:"string",default:"Show More"},loadMoreButtonTextColor:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonTextColorH:{type:"string",default:"#fff ",copyStyle:!0},loadMoreButtonBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonBackgroundH:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonTransition:{type:"number",default:"",copyStyle:!0},dataPerPageShow:{type:"number",default:"6"},noMoreItemsText:{type:"string",default:"No More Items !"},filterButtonTypographyGlobal:{type:"string",default:""},filterButtonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",
4068 4080 fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},filterButtonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",
4069 4081 unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",
@@ -4082,23 +4094,23 @@
4082 4094 imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",
4083 4095 rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",
4084 4096 offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",
4085 4097 xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{
4086 -type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},ND=class{constructor(t){this.element=t,this.element&&(this.filterButtons=this.element.querySelectorAll(".filterable-filter-button"),this.cardsItems=[...this.element.querySelectorAll(".ablocks-block--filterable-cards-item")],this.showMoreButton=this.element.querySelector(".filterable-cards-showMore-button"),this.searchInput=this.element.querySelector(".filterable-searchInput"),this.searchToggleBtn=this.element.querySelector(".filterable-search-toggle-btn"),this.filterListDropdown=this.element.querySelector(".filterable-cards_filter-list-dropdown"),this.filterSearchNoItemText=this.element.querySelector(".filterable-search-item-not-found-text"),this.searchFilterS=this.element.querySelector(".filterable-search-select"),
4098 +type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},hN=class{constructor(t){this.element=t,this.element&&(this.filterButtons=this.element.querySelectorAll(".filterable-filter-button"),this.cardsItems=[...this.element.querySelectorAll(".ablocks-block--filterable-cards-item")],this.showMoreButton=this.element.querySelector(".filterable-cards-showMore-button"),this.searchInput=this.element.querySelector(".filterable-searchInput"),this.searchToggleBtn=this.element.querySelector(".filterable-search-toggle-btn"),this.filterListDropdown=this.element.querySelector(".filterable-cards_filter-list-dropdown"),this.filterSearchNoItemText=this.element.querySelector(".filterable-search-item-not-found-text"),this.searchFilterS=this.element.querySelector(".filterable-search-select"),
4087 4099 this.firstCategory=this.filterButtons[0]?.dataset.category?.toLowerCase()||"all",this.showItemNumber=parseInt(this.element?.getAttribute("itemShows")||"0",10),this.animation=this.element?.dataset.animation||"fade-in",this.layout=this.element?.dataset.layout||"filter",this.animationDuration=this.element?.dataset.animationDuration,this.perPageShowCardNumber=parseInt(this.showMoreButton?.dataset.perPage||"0",10),this.noMoreText=this.showMoreButton?.dataset.noItemText||"No more items.",this.loadMoreText=this.showMoreButton?.dataset.moreButtonText||"Show More",this.currentlyShown=this.showItemNumber,this.animationDuration=parseInt(this.element?.getAttribute("data-duration")||"500",10),this.enableFilter="true"===this.element?.getAttribute("data-enableFilter"),this.init())}filterCards(t,e){let i=0;const o="filter&search"===this.layout;this.cardsItems.forEach(a=>{
4088 4100 const l=a.dataset.category?.toLowerCase()||"",n=a.querySelector("h1, h2, h3, h4, h5, h6")?.textContent.trim().toLowerCase()||"",s=!t||n.includes(t.toLowerCase()),r=e===this.firstCategory||l===e;this.toggleItem(a,(!o||s)&&r&&i<this.currentlyShown),o&&!s||!r||i++}),this.enableFilter?(this.filterSearchNoItemText.style.display=i?"none":"block",this.toggleShowMoreButton(e,t)):this.toggleShowMoreButton("all",t)}applyFilter(t,e=!0){const i=this.searchInput?.value.trim().toLowerCase()||"";e&&(this.currentlyShown=this.showItemNumber),this.filterCards(i,t)}toggleItem(t,e){t.classList.toggle(this.animation,e),t.style.display=e?"block":"none",t.style.visibility=e?"visible":"hidden"}toggleShowMoreButton(t,e=""){const i=e.toLowerCase(),o="filter&search"===this.layout,a=this.cardsItems.filter(e=>{const a=e.dataset.category?.toLowerCase()||"",l=e.querySelectorAll("h1, h2, h3, h4, h5, h6"),n=!o||[...l].some(t=>t.textContent.trim().toLowerCase().includes(i));return(t===this.firstCategory||a===t)&&n
4089 4101 }),l=a.slice(this.currentlyShown);if(this.showMoreButton){if(a.length<=this.showItemNumber)return void(this.showMoreButton.style.visibility="hidden");l.length>0?(this.showMoreButton.style.visibility="visible",this.showMoreButton.innerText=this.loadMoreText||"Show More"):setTimeout(()=>{this.showMoreButton.innerText=this.noMoreText||"No more items.",setTimeout(()=>{this.showMoreButton.style.visibility="hidden"},2e3)},1e3)}}handleButtonClick(t){const e=t.target.closest(".filterable-filter-button");if(!e)return;const i=e.dataset.category?.toLowerCase()||"all";this.applyFilter(i),this.filterButtons.forEach(t=>t.classList.remove("filterable-filter-button-active")),e.classList.add("filterable-filter-button-active"),this.searchFilterS&&(this.searchFilterS.innerText=e.textContent,this.filterListDropdown.style.display="none")}handleShowMoreClick(){this.currentlyShown+=this.perPageShowCardNumber
4090 4102 ;const t=[...this.filterButtons].find(t=>t.classList.contains("filterable-filter-button-active"))||this.filterButtons[0];if(t){const e=t.dataset.category?.toLowerCase()||"all";this.applyFilter(e,!1)}else this.applyFilter("all",!1)}handleSearchInput(t){const e=t.target.value.trim().toLowerCase(),i=[...this.filterButtons].find(t=>t.classList.contains("filterable-filter-button-active"))||this.filterButtons[0],o=i.dataset.category?.toLowerCase()||"all";this.filterCards(e,o)}initializeActiveButton(){const t=[...this.filterButtons].find(t=>t.classList.contains("filterable-filter-button-active"))||this.filterButtons[0];t?(this.applyFilter(t.dataset.category?.toLowerCase()||"all"),t.classList.add("filterable-filter-button-active")):this.applyFilter("all")}toggleSearchDropdown(){this.searchToggleBtn?.addEventListener("click",()=>{const t="none"===this.filterListDropdown.style.display||!this.filterListDropdown.style.display;this.filterListDropdown.style.display=t?"block":"none"})}
4091 -setAnimationDuration(){this.cardsItems&&this.cardsItems.forEach(t=>{t.style.setProperty("--animation-duration",`${this.animationDuration}ms`)})}init(){this.setAnimationDuration(),this.filterButtons.forEach(t=>t.addEventListener("click",t=>this.handleButtonClick(t))),this.showMoreButton?.addEventListener("click",()=>this.handleShowMoreClick()),this.searchInput?.addEventListener("input",t=>this.handleSearchInput(t)),this.initializeActiveButton(),this.toggleSearchDropdown()}};function ID({filterLists:t,layout:e,placeHolder:i}){const o=t.find(t=>!0===t.isActive);function a(t){return t.map((t,e)=>(0,I.jsx)("li",{"data-category":t.text,className:"filterable-filter-button "+(t.isActive?"filterable-filter-button-active":""),children:t.text},e))}return(0,I.jsx)(I.Fragment,{children:"filter"===e?(0,I.jsx)("ul",{className:"filterable-cards_filter",children:a(t)}):(0,I.jsxs)("div",{className:"filterable-cards-filter-wrap",children:[(0,I.jsxs)("ul",{className:"filterable-cards_filter",children:[(0,
4092 -I.jsx)("li",{children:(0,I.jsxs)("button",{className:"filterable-search-toggle-btn",children:[(0,I.jsx)("span",{className:"filterable-search-select",children:o?.text||(0,L.__)("Select Filter","ablocks")}),(0,I.jsx)("span",{children:CD})]})}),(0,I.jsx)("div",{className:"filterable-cards_filter-list-dropdown",children:a(t)})]}),(0,I.jsx)("input",{type:"text",className:"filterable-searchInput",placeholder:i})]})})}function VD(t){const{attributes:e,clientId:i,setAttributes:o}=t,{block_id:n,filterList:s,enableFilter:b,filterableCardsNumbers:c,itemShows:d,loadMoreButton:u,loadMoreButtonText:p,dataPerPageShow:m,noMoreItemsText:h,animation:g,layout:f,searchPlaceHolder:y,searchNotFoundText:T,animationDuration:H}=e,{isDynamicEnabled:x,data:k}=id({attributeValue:p}),{isDynamicEnabled:v,data:_}=id({attributeValue:h}),{isDynamicEnabled:R,data:S}=id({attributeValue:T}),{isDynamicEnabled:W,data:P}=id({attributeValue:y}),U=(0,D.useInnerBlocksProps)({},{template:[["ablocks/filterable-cards-item",{
4093 -dataCategory:"Item 01"},[["ablocks/info-box",{stack:"column",heading:"Latest Gadgets",allowButton:!1,des:"Showcase the latest gadgets with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]],["ablocks/filterable-cards-item",{},[["ablocks/info-box",{stack:"column",heading:"Creative Designs",allowButton:!1,des:"Showcase creative designs with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]],["ablocks/filterable-cards-item",{dataCategory:"Item 01"},[["ablocks/info-box",{stack:"column",heading:"Healthy Recipes",allowButton:!1,des:"Showcase top destinations with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]]],renderAppender:!1});return o({filterableCardsNumbers:(0,r.select)("core/block-editor").getBlock(i)?.innerBlocks.length||0}),(0,a.useEffect)(()=>{new ND((0,M.bu)(`.ablocks-block-${n}.ablocks-block--filterable-cards`))
4094 -},[n,s,b,c,d,u,p,m,h,g,f,H]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:n,name:DD.UU,attributes:e,blockProps:{itemShows:d,"data-animation":g,"data-layout":f,"data-duration":H,"data-enableFilter":b},children:[b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ID,{filterLists:s,layout:f,placeHolder:W?P:y}),(0,I.jsx)("span",{className:"filterable-search-item-not-found-text",children:R?S:T})]}),(0,I.jsx)("div",{...U,className:"filterable-cards-wrap"}),u&&(0,I.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,I.jsx)("span",{"data-filterable-cards-numbers":c,"data-per-page":m,"data-no-item-text":v?_:h,"data-more-button-text":x?k:p,className:"filterable-cards-showMore-button",children:x?k:p})}),(0,I.jsxs)("button",{className:"ablocks-filtrable-card-add-button",onClick:()=>{const{insertBlock:t}=wp.data.dispatch("core/block-editor");t(wp.blocks.createBlock("ablocks/filterable-cards-item",{}),void 0,i)},children:[(0,I.jsx)("span",{
4095 -className:"ablocks-icon ablocks-icon--plus"}),(0,L.__)("Add Item","ablocks")]})]})})}VD.propTypes={},VD.defaultProps={};const OD=(t,e="")=>{const i={};return t?.filterAlignment&&(i["justify-content"]=t.filterAlignment),{...i,...(0,Zt.qD)(t?.filterAlignment,"justify-content",e),...(0,Eb.qD)({attributeValue:t.filterButtonGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:8,property:"gap",unitDefaultValue:"px",device:e})}},YD=(t,e="")=>{const i=(0,M.Zy)(t.filterButtonTypography,{weight:"400"}),o=t.filterButtonTypographyGlobal?t.filterButtonTypographyGlobal:"",a=(0,M.Zy)(t.filterButtonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.filterButtonPadding,{unit:"px"}),n=(0,M.Zy)(t.filterButtonMargin,{unit:"px"});return{color:(0,Hs.qD)(t?.filterButtonColor),background:(0,Hs.qD)(t?.filterButtonBackground),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"padding",e),...(0,c.qD)(n,"margin",e)}},XD=(t,e="")=>{const i=(0,M.Zy)(t.filterButtonBorder,{unitWidthH:"px",
4096 -unitRadiusH:"px"}),o={color:(0,Hs.qD)(t?.filterButtonColorH),background:(0,Hs.qD)(t?.filterButtonBackgroundH),...(0,y.a9)(i,e)};return t?.filterButtonTransition&&(o.transition=t?.filterButtonTransition+"s"),o},BD=(t,e="")=>{const i=(0,M.Zy)(t.searchMenuBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.searchMenuPadding,{unit:"px"}),a=(0,M.Zy)(t?.searchMenuMargin,{unit:"px"});return{color:(0,Hs.qD)(t?.searchMenuColor),background:(0,Hs.qD)(t?.searchMenuBackground),...(0,y.qD)(i,e),...(0,c.qD)(o,"padding",e),...(0,c.qD)(a,"margin",e)}},ED=(t,e="")=>{const i=(0,M.Zy)(t.searchMenuBorder,{unitWidthH:"px",unitRadiusH:"px"}),o={color:(0,Hs.qD)(t?.searchMenuColorH),background:(0,Hs.qD)(t?.searchMenuBackgroundH),...(0,y.a9)(i,e)};return t?.searchMenuTransition&&(o.transition=t?.searchMenuTransition+"s"),o},FD=(t,e="")=>{const i=(0,M.Zy)(t.activeClassBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.activeClassColor),background:(0,Hs.qD)(t?.activeClassBackground),...(0,
4097 -y.qD)(i,e)}},qD=(t,e="")=>{const i=(0,M.Zy)(t.activeClassBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},$D=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"gap",unitDefaultValue:"px",device:e})};return"grid"===t.gridStyle&&(i.display="grid","Tablet"===e?i["grid-template-columns"]="repeat(2, 1fr)":"Mobile"===e?i["grid-template-columns"]="repeat(1, 1fr)":t?.gridColumns&&(i["grid-template-columns"]=`repeat(${t.gridColumns}, 1fr)`)),"masonry"===t.gridStyle&&("Tablet"===e?i["column-count"]="2":"Mobile"===e?i["column-count"]="1":t?.gridColumns&&(i["column-count"]=t.gridColumns)),i},GD=(t,e="")=>{let i={};return t?.cardHeight&&"grid"===t.gridStyle&&(i.height=`${t.cardHeight}px`),"masonry"===t.gridStyle&&(i["break-inside"]="avoid",i.width="100%",i={...i,...(0,Eb.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"margin-bottom",
4098 -unitDefaultValue:"px",device:e})}),i},ZD=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.loadMoreButtonGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:"",property:"margin-top",unitDefaultValue:"px",device:e})};return t?.moreButtonAlignment&&(i["justify-content"]=t?.moreButtonAlignment),i},KD=(t,e="")=>{const i=(0,M.Zy)(t?.moreButtonPadding,{unit:"px"}),o=(0,M.Zy)(t.moreButtonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.moreButtonTypography,{weight:"400"}),l=t.moreButtonTypographyGlobal?t.moreButtonTypographyGlobal:"";return{color:(0,Hs.qD)(t?.loadMoreButtonTextColor),background:(0,Hs.qD)(t?.loadMoreButtonBackground),...(0,y.qD)(o,e),...(0,H.qD)(t?.moreButtonboxShadow,e),...(0,c.qD)(i,"padding",e),...(0,U.qD)(a,e,l)}},JD=(t,e="")=>{const i={};t.loadMoreButtonTransition&&(i["transition-duration"]=`${t.loadMoreButtonTransition}s`);const o=(0,M.Zy)(t.moreButtonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.loadMoreButtonTextColorH),
4099 -background:(0,Hs.qD)(t?.loadMoreButtonBackgroundH),...i,...(0,y.a9)(o,e),...(0,H.a9)(t?.moreButtonboxShadow,e)}};function QD(t){const{attributes:e}=t,{block_id:i,filterList:o,enableFilter:a,itemShows:n,filterableCardsNumbers:s,loadMoreButtonText:r,loadMoreButton:b,dataPerPageShow:c,noMoreItemsText:d,animation:u,layout:p,searchPlaceHolder:m,searchNotFoundText:h,animationDuration:g}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:DD.UU,attributes:e,blockProps:{itemShows:n,"data-animation":u,"data-layout":p,"data-duration":g,"data-enableFilter":a},children:[a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ID,{filterLists:o,layout:p,placeHolder:m}),(0,I.jsx)("span",{className:"filterable-search-item-not-found-text",children:h})]}),(0,I.jsx)("div",{className:"filterable-cards-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),b&&n<s&&(0,I.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,I.jsx)("span",{"data-filterable-cards-numbers":s,
4100 -"data-per-page":c,"data-no-item-text":d,"data-more-button-text":r,className:"filterable-cards-showMore-button",children:r})})]})})}QD.propTypes={};const tN={UU:"ablocks/filterable-cards",uK:{block_id:{type:"string"},filterList:{type:"array",default:[{id:0,text:"All",isActive:!0},{id:1,text:"Item 01",isActive:!1}]},filterableCardsNumbers:{type:"number",default:"5"},animation:{type:"string",default:"fade-in"},enableFilter:{type:"boolean",default:!0},layout:{type:"string",default:"filter"},searchNotFoundText:{type:"string",default:"No items Found"},filterButtonColor:{type:"string",default:""},filterButtonColorH:{type:"string",default:""},filterButtonBackground:{type:"string",default:""},filterButtonBackgroundH:{type:"string",default:""},filterButtonTransition:{type:"number",default:0},itemShows:{type:"number",default:6},gridStyle:{type:"string",default:"grid"},searchMenuColor:{type:"string",default:""},searchMenuColorH:{type:"string",default:""},searchMenuBackground:{type:"string",
4103 +setAnimationDuration(){this.cardsItems&&this.cardsItems.forEach(t=>{t.style.setProperty("--animation-duration",`${this.animationDuration}ms`)})}init(){this.setAnimationDuration(),this.filterButtons.forEach(t=>t.addEventListener("click",t=>this.handleButtonClick(t))),this.showMoreButton?.addEventListener("click",()=>this.handleShowMoreClick()),this.searchInput?.addEventListener("input",t=>this.handleSearchInput(t)),this.initializeActiveButton(),this.toggleSearchDropdown()}};function gN({filterLists:t,layout:e,placeHolder:i}){const o=t.find(t=>!0===t.isActive);function a(t){return t.map((t,e)=>(0,I.jsx)("li",{"data-category":t.text,className:"filterable-filter-button "+(t.isActive?"filterable-filter-button-active":""),children:t.text},e))}return(0,I.jsx)(I.Fragment,{children:"filter"===e?(0,I.jsx)("ul",{className:"filterable-cards_filter",children:a(t)}):(0,I.jsxs)("div",{className:"filterable-cards-filter-wrap",children:[(0,I.jsxs)("ul",{className:"filterable-cards_filter",children:[(0,
4104 +I.jsx)("li",{children:(0,I.jsxs)("button",{className:"filterable-search-toggle-btn",children:[(0,I.jsx)("span",{className:"filterable-search-select",children:o?.text||(0,L.__)("Select Filter","ablocks")}),(0,I.jsx)("span",{children:dN})]})}),(0,I.jsx)("div",{className:"filterable-cards_filter-list-dropdown",children:a(t)})]}),(0,I.jsx)("input",{type:"text",className:"filterable-searchInput",placeholder:i})]})})}function fN(t){const{attributes:e,clientId:i,setAttributes:o}=t,{block_id:n,filterList:s,enableFilter:b,filterableCardsNumbers:c,itemShows:d,loadMoreButton:u,loadMoreButtonText:p,dataPerPageShow:m,noMoreItemsText:h,animation:g,layout:f,searchPlaceHolder:y,searchNotFoundText:T,animationDuration:H}=e,{isDynamicEnabled:x,data:k}=id({attributeValue:p}),{isDynamicEnabled:v,data:_}=id({attributeValue:h}),{isDynamicEnabled:R,data:S}=id({attributeValue:T}),{isDynamicEnabled:W,data:P}=id({attributeValue:y}),U=(0,D.useInnerBlocksProps)({},{template:[["ablocks/filterable-cards-item",{
4105 +dataCategory:"Item 01"},[["ablocks/info-box",{stack:"column",heading:"Latest Gadgets",allowButton:!1,des:"Showcase the latest gadgets with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]],["ablocks/filterable-cards-item",{},[["ablocks/info-box",{stack:"column",heading:"Creative Designs",allowButton:!1,des:"Showcase creative designs with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]],["ablocks/filterable-cards-item",{dataCategory:"Item 01"},[["ablocks/info-box",{stack:"column",heading:"Healthy Recipes",allowButton:!1,des:"Showcase top destinations with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]]],renderAppender:!1});return o({filterableCardsNumbers:(0,r.select)("core/block-editor").getBlock(i)?.innerBlocks.length||0}),(0,a.useEffect)(()=>{new hN((0,M.bu)(`.ablocks-block-${n}.ablocks-block--filterable-cards`))
4106 +},[n,s,b,c,d,u,p,m,h,g,f,H]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:n,name:mN.UU,attributes:e,blockProps:{itemShows:d,"data-animation":g,"data-layout":f,"data-duration":H,"data-enableFilter":b},children:[b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(gN,{filterLists:s,layout:f,placeHolder:W?P:y}),(0,I.jsx)("span",{className:"filterable-search-item-not-found-text",children:R?S:T})]}),(0,I.jsx)("div",{...U,className:"filterable-cards-wrap"}),u&&(0,I.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,I.jsx)("span",{"data-filterable-cards-numbers":c,"data-per-page":m,"data-no-item-text":v?_:h,"data-more-button-text":x?k:p,className:"filterable-cards-showMore-button",children:x?k:p})}),(0,I.jsxs)("button",{className:"ablocks-filtrable-card-add-button",onClick:()=>{const{insertBlock:t}=wp.data.dispatch("core/block-editor");t(wp.blocks.createBlock("ablocks/filterable-cards-item",{}),void 0,i)},children:[(0,I.jsx)("span",{
4107 +className:"ablocks-icon ablocks-icon--plus"}),(0,L.__)("Add Item","ablocks")]})]})})}fN.propTypes={},fN.defaultProps={};const yN=(t,e="")=>{const i={};return t?.filterAlignment&&(i["justify-content"]=t.filterAlignment),{...i,...(0,Zt.qD)(t?.filterAlignment,"justify-content",e),...(0,Eb.qD)({attributeValue:t.filterButtonGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:8,property:"gap",unitDefaultValue:"px",device:e})}},TN=(t,e="")=>{const i=(0,M.Zy)(t.filterButtonTypography,{weight:"400"}),o=t.filterButtonTypographyGlobal?t.filterButtonTypographyGlobal:"",a=(0,M.Zy)(t.filterButtonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.filterButtonPadding,{unit:"px"}),n=(0,M.Zy)(t.filterButtonMargin,{unit:"px"});return{color:(0,Hs.qD)(t?.filterButtonColor),background:(0,Hs.qD)(t?.filterButtonBackground),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"padding",e),...(0,c.qD)(n,"margin",e)}},HN=(t,e="")=>{const i=(0,M.Zy)(t.filterButtonBorder,{unitWidthH:"px",
4108 +unitRadiusH:"px"}),o={color:(0,Hs.qD)(t?.filterButtonColorH),background:(0,Hs.qD)(t?.filterButtonBackgroundH),...(0,y.a9)(i,e)};return t?.filterButtonTransition&&(o.transition=t?.filterButtonTransition+"s"),o},MN=(t,e="")=>{const i=(0,M.Zy)(t.searchMenuBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.searchMenuPadding,{unit:"px"}),a=(0,M.Zy)(t?.searchMenuMargin,{unit:"px"});return{color:(0,Hs.qD)(t?.searchMenuColor),background:(0,Hs.qD)(t?.searchMenuBackground),...(0,y.qD)(i,e),...(0,c.qD)(o,"padding",e),...(0,c.qD)(a,"margin",e)}},xN=(t,e="")=>{const i=(0,M.Zy)(t.searchMenuBorder,{unitWidthH:"px",unitRadiusH:"px"}),o={color:(0,Hs.qD)(t?.searchMenuColorH),background:(0,Hs.qD)(t?.searchMenuBackgroundH),...(0,y.a9)(i,e)};return t?.searchMenuTransition&&(o.transition=t?.searchMenuTransition+"s"),o},kN=(t,e="")=>{const i=(0,M.Zy)(t.activeClassBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.activeClassColor),background:(0,Hs.qD)(t?.activeClassBackground),...(0,
4109 +y.qD)(i,e)}},vN=(t,e="")=>{const i=(0,M.Zy)(t.activeClassBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},_N=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"gap",unitDefaultValue:"px",device:e})};return"grid"===t.gridStyle&&(i.display="grid","Tablet"===e?i["grid-template-columns"]="repeat(2, 1fr)":"Mobile"===e?i["grid-template-columns"]="repeat(1, 1fr)":t?.gridColumns&&(i["grid-template-columns"]=`repeat(${t.gridColumns}, 1fr)`)),"masonry"===t.gridStyle&&("Tablet"===e?i["column-count"]="2":"Mobile"===e?i["column-count"]="1":t?.gridColumns&&(i["column-count"]=t.gridColumns)),i},RN=(t,e="")=>{let i={};return t?.cardHeight&&"grid"===t.gridStyle&&(i.height=`${t.cardHeight}px`),"masonry"===t.gridStyle&&(i["break-inside"]="avoid",i.width="100%",i={...i,...(0,Eb.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"margin-bottom",
4110 +unitDefaultValue:"px",device:e})}),i},SN=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.loadMoreButtonGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:"",property:"margin-top",unitDefaultValue:"px",device:e})};return t?.moreButtonAlignment&&(i["justify-content"]=t?.moreButtonAlignment),i},WN=(t,e="")=>{const i=(0,M.Zy)(t?.moreButtonPadding,{unit:"px"}),o=(0,M.Zy)(t.moreButtonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.moreButtonTypography,{weight:"400"}),l=t.moreButtonTypographyGlobal?t.moreButtonTypographyGlobal:"";return{color:(0,Hs.qD)(t?.loadMoreButtonTextColor),background:(0,Hs.qD)(t?.loadMoreButtonBackground),...(0,y.qD)(o,e),...(0,H.qD)(t?.moreButtonboxShadow,e),...(0,c.qD)(i,"padding",e),...(0,U.qD)(a,e,l)}},PN=(t,e="")=>{const i={};t.loadMoreButtonTransition&&(i["transition-duration"]=`${t.loadMoreButtonTransition}s`);const o=(0,M.Zy)(t.moreButtonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.loadMoreButtonTextColorH),
4111 +background:(0,Hs.qD)(t?.loadMoreButtonBackgroundH),...i,...(0,y.a9)(o,e),...(0,H.a9)(t?.moreButtonboxShadow,e)}};function UN(t){const{attributes:e}=t,{block_id:i,filterList:o,enableFilter:a,itemShows:n,filterableCardsNumbers:s,loadMoreButtonText:r,loadMoreButton:b,dataPerPageShow:c,noMoreItemsText:d,animation:u,layout:p,searchPlaceHolder:m,searchNotFoundText:h,animationDuration:g}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:mN.UU,attributes:e,blockProps:{itemShows:n,"data-animation":u,"data-layout":p,"data-duration":g,"data-enableFilter":a},children:[a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(gN,{filterLists:o,layout:p,placeHolder:m}),(0,I.jsx)("span",{className:"filterable-search-item-not-found-text",children:h})]}),(0,I.jsx)("div",{className:"filterable-cards-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),b&&n<s&&(0,I.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,I.jsx)("span",{"data-filterable-cards-numbers":s,
4112 +"data-per-page":c,"data-no-item-text":d,"data-more-button-text":r,className:"filterable-cards-showMore-button",children:r})})]})})}UN.propTypes={};const jN={UU:"ablocks/filterable-cards",uK:{block_id:{type:"string"},filterList:{type:"array",default:[{id:0,text:"All",isActive:!0},{id:1,text:"Item 01",isActive:!1}]},filterableCardsNumbers:{type:"number",default:"5"},animation:{type:"string",default:"fade-in"},enableFilter:{type:"boolean",default:!0},layout:{type:"string",default:"filter"},searchNotFoundText:{type:"string",default:"No items Found"},filterButtonColor:{type:"string",default:""},filterButtonColorH:{type:"string",default:""},filterButtonBackground:{type:"string",default:""},filterButtonBackgroundH:{type:"string",default:""},filterButtonTransition:{type:"number",default:0},itemShows:{type:"number",default:6},gridStyle:{type:"string",default:"grid"},searchMenuColor:{type:"string",default:""},searchMenuColorH:{type:"string",default:""},searchMenuBackground:{type:"string",
4101 4113 default:""},searchMenuBackgroundH:{type:"string",default:""},searchMenuTransition:{type:"string",default:""},searchPlaceHolder:{type:"string",default:"Search..."},gridColumns:{type:"number",default:2},cardHeight:{type:"number"},activeClassColor:{type:"string",default:"#fff"},activeClassBackground:{type:"string",default:"#13191B"},moreButtonAlignment:{type:"string",default:"center"},loadMoreButton:{type:"boolean",default:!1},loadMoreButtonText:{type:"string",default:"Show More"},loadMoreButtonTextColor:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonTextColorH:{type:"string",default:"#fff ",copyStyle:!0},loadMoreButtonBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonBackgroundH:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonTransition:{type:"number",default:"",copyStyle:!0},dataPerPageShow:{type:"number",default:"6"},noMoreItemsText:{type:"string",default:"No More Items !"},filterButtonTypography:{type:"object",default:{fontFamily:"",
4102 4114 weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},filterButtonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",
4103 4115 leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",
4104 4116 commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},activeClassBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",
@@ -4115,15 +4127,15 @@
4115 4127 imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",
4116 4128 imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",
4117 4129 rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",
4118 4130 offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",
4119 -xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function eN(t){
4120 -const{attributes:e}=t,{block_id:i,filterList:o,enableFilter:a,itemShows:n,filterableCardsNumbers:s,loadMoreButtonText:r,loadMoreButton:b,dataPerPageShow:c,noMoreItemsText:d,animation:u,layout:p,searchPlaceHolder:m,searchNotFoundText:h,animationDuration:g}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:tN.UU,attributes:e,blockProps:{itemShows:n,"data-animation":u,"data-layout":p,"data-duration":g,"data-enableFilter":a},children:[a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ID,{filterLists:o,layout:p,placeHolder:m}),(0,I.jsx)("span",{className:"filterable-search-item-not-found-text",children:h})]}),(0,I.jsx)("div",{className:"filterable-cards-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),b&&n<s&&(0,I.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,I.jsx)("span",{"data-filterable-cards-numbers":s,"data-per-page":c,"data-no-item-text":d,"data-more-button-text":r,className:"filterable-cards-showMore-button",children:r})})]})})}
4121 -function iN(t){const{attributes:e,setAttributes:i,clientId:o}=t,{dataCategory:a}=e,n=(0,r.useSelect)(t=>{const{getBlock:e,getBlockParents:i}=t("core/block-editor"),a=i(o);if(!a.length)return null;for(const t of a){const i=e(t);if("ablocks/filterable-cards"===i?.name)return i.attributes}return null},[o]),s=n?.filterList&&Array.isArray(n.filterList)?n.filterList.map(t=>({label:t.text||"all",value:t.text||""})):[];return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Filterable Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Filterable block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:o})]})})}),(0,
4122 -I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Filterable Controls","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Control Name","ablocks"),attributeName:"dataCategory",options:s,attributeValue:a,setAttributes:i})})})})]})}eN.propTypes={},(0,M.xV)(DD.UU)&&(0,o.registerBlockType)(DD.UU,{title:(0,L.__)("Filterable Cards","ablocks"),attributes:DD.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--filterable-card"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{}
4123 -;return t.addClassStyles("{{WRAPPER}} .filterable-cards_filter , {{WRAPPER}} .filterable-cards-filter-wrap",OD(i),OD(i,"Tablet"),OD(i,"Mobile"),e(t=>OD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button",YD(i),YD(i,"Tablet"),YD(i,"Mobile"),e(t=>YD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button:hover",XD(i),XD(i,"Tablet"),XD(i,"Mobile"),e(t=>XD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-search-toggle-btn ,{{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput",BD(i),BD(i,"Tablet"),BD(i,"Mobile"),e(t=>BD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-search-toggle-btn:hover , {{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput",ED(i),ED(i,"Tablet"),ED(i,"Mobile"),e(t=>ED(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput::placeholder ",(t=>({color:(0,Hs.qD)(t?.searchMenuColor)}))(i)),
4124 -t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button.filterable-filter-button-active",FD(i),FD(i,"Tablet"),FD(i,"Mobile"),e(t=>FD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button.filterable-filter-button-active:hover",qD(i),qD(i,"Tablet"),qD(i,"Mobile"),e(t=>qD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-wrap",$D(i),$D(i,"Tablet"),$D(i,"Mobile"),e(t=>$D(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-wrap > .ablocks-block--filterable-cards-item",GD(i),GD(i,"Tablet"),GD(i,"Mobile"),e(t=>GD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-load-more-wrapper",ZD(i),ZD(i,"Tablet"),ZD(i,"Mobile"),e(t=>ZD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-showMore-button",KD(i),KD(i,"Tablet"),KD(i,"Mobile"),e(t=>KD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-showMore-button:hover",JD(i),JD(i,"Tablet"),JD(i,"Mobile"),e(t=>JD(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{
4125 -children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(LD,{...t}),(0,I.jsx)(VD,{...t})]})},save:QD,deprecated:[{attributes:tN.uK,save:eN}]}),iN.propTypes={};const oN={UU:"ablocks/filterable-cards-item",$t:["ablocks/filterable-cards"],uK:{block_id:{type:"string"},dataCategory:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",
4131 +xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function wN(t){
4132 +const{attributes:e}=t,{block_id:i,filterList:o,enableFilter:a,itemShows:n,filterableCardsNumbers:s,loadMoreButtonText:r,loadMoreButton:b,dataPerPageShow:c,noMoreItemsText:d,animation:u,layout:p,searchPlaceHolder:m,searchNotFoundText:h,animationDuration:g}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:jN.UU,attributes:e,blockProps:{itemShows:n,"data-animation":u,"data-layout":p,"data-duration":g,"data-enableFilter":a},children:[a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(gN,{filterLists:o,layout:p,placeHolder:m}),(0,I.jsx)("span",{className:"filterable-search-item-not-found-text",children:h})]}),(0,I.jsx)("div",{className:"filterable-cards-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),b&&n<s&&(0,I.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,I.jsx)("span",{"data-filterable-cards-numbers":s,"data-per-page":c,"data-no-item-text":d,"data-more-button-text":r,className:"filterable-cards-showMore-button",children:r})})]})})}
4133 +function zN(t){const{attributes:e,setAttributes:i,clientId:o}=t,{dataCategory:a}=e,n=(0,r.useSelect)(t=>{const{getBlock:e,getBlockParents:i}=t("core/block-editor"),a=i(o);if(!a.length)return null;for(const t of a){const i=e(t);if("ablocks/filterable-cards"===i?.name)return i.attributes}return null},[o]),s=n?.filterList&&Array.isArray(n.filterList)?n.filterList.map(t=>({label:t.text||"all",value:t.text||""})):[];return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Filterable Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Filterable block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:o})]})})}),(0,
4134 +I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Filterable Controls","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Control Name","ablocks"),attributeName:"dataCategory",options:s,attributeValue:a,setAttributes:i})})})})]})}wN.propTypes={},(0,M.xV)(mN.UU)&&(0,o.registerBlockType)(mN.UU,{title:(0,L.__)("Filterable Cards","ablocks"),attributes:mN.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--filterable-card"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{}
4135 +;return t.addClassStyles("{{WRAPPER}} .filterable-cards_filter , {{WRAPPER}} .filterable-cards-filter-wrap",yN(i),yN(i,"Tablet"),yN(i,"Mobile"),e(t=>yN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button",TN(i),TN(i,"Tablet"),TN(i,"Mobile"),e(t=>TN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button:hover",HN(i),HN(i,"Tablet"),HN(i,"Mobile"),e(t=>HN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-search-toggle-btn ,{{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput",MN(i),MN(i,"Tablet"),MN(i,"Mobile"),e(t=>MN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-search-toggle-btn:hover , {{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput",xN(i),xN(i,"Tablet"),xN(i,"Mobile"),e(t=>xN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput::placeholder ",(t=>({color:(0,Hs.qD)(t?.searchMenuColor)}))(i)),
4136 +t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button.filterable-filter-button-active",kN(i),kN(i,"Tablet"),kN(i,"Mobile"),e(t=>kN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button.filterable-filter-button-active:hover",vN(i),vN(i,"Tablet"),vN(i,"Mobile"),e(t=>vN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-wrap",_N(i),_N(i,"Tablet"),_N(i,"Mobile"),e(t=>_N(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-wrap > .ablocks-block--filterable-cards-item",RN(i),RN(i,"Tablet"),RN(i,"Mobile"),e(t=>RN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-load-more-wrapper",SN(i),SN(i,"Tablet"),SN(i,"Mobile"),e(t=>SN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-showMore-button",WN(i),WN(i,"Tablet"),WN(i,"Mobile"),e(t=>WN(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-showMore-button:hover",PN(i),PN(i,"Tablet"),PN(i,"Mobile"),e(t=>PN(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{
4137 +children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(pN,{...t}),(0,I.jsx)(fN,{...t})]})},save:UN,deprecated:[{attributes:jN.uK,save:wN}]}),zN.propTypes={};const CN={UU:"ablocks/filterable-cards-item",$t:["ablocks/filterable-cards"],uK:{block_id:{type:"string"},dataCategory:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",
4126 4138 widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",
4127 4139 unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",
4128 4140 positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",
4129 4141 imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",
@@ -4129,28 +4141,28 @@
4129 4141 imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",
4130 4142 vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",
4131 4143 xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{
4132 4144 type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},
4133 -_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function aN(t){const{attributes:e}=t,{block_id:i,dataCategory:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:oN.UU,attributes:e,blockProps:{"data-category":o},children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/info-box",{stack:"column",heading:"Demo Title 01",allowButton:!1}]],templateLock:!1})})})}function lN(t){
4134 -const{attributes:e}=t,{block_id:i,dataCategory:o}=e,a=o?o.toLowerCase():"";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:oN.UU,attributes:e,blockProps:{"data-category":a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}aN.propTypes={},lN.propTypes={},(0,M.xV)(oN.UU,oN.$t[0])&&(0,o.registerBlockType)(oN.UU,{title:(0,L.__)("Filterable Card","ablocks"),attributes:oN.uK,icon:(0,I.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",
4145 +_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function AN(t){const{attributes:e}=t,{block_id:i,dataCategory:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:CN.UU,attributes:e,blockProps:{"data-category":o},children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/info-box",{stack:"column",heading:"Demo Title 01",allowButton:!1}]],templateLock:!1})})})}function LN(t){
4146 +const{attributes:e}=t,{block_id:i,dataCategory:o}=e,a=o?o.toLowerCase():"";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:CN.UU,attributes:e,blockProps:{"data-category":a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}AN.propTypes={},LN.propTypes={},(0,M.xV)(CN.UU,CN.$t[0])&&(0,o.registerBlockType)(CN.UU,{title:(0,L.__)("Filterable Card","ablocks"),attributes:CN.uK,icon:(0,I.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",
4135 4147 d:"M14.0369 3.37184C14.0369 2.81302 14.4899 2.36 15.0487 2.36H21.6381C22.197 2.36 22.65 2.81303 22.65 3.37184V4.41446C22.65 4.71472 22.5166 4.99951 22.2859 5.19177L20.1399 6.98009L19.7872 9.4234C19.7398 9.75139 19.5349 10.0353 19.2387 10.1836L18.3167 10.6451C17.687 10.9603 16.9359 10.5519 16.8582 9.85206L16.5383 6.97285L14.401 5.19177C14.1703 4.99953 14.0369 4.71475 14.0369 4.41446V3.37184ZM15.2369 3.56H21.45V4.32633L19.3162 6.10446C19.1242 6.26448 18.9982 6.4899 18.9625 6.73714L18.6135 9.15463L18.021 9.45121L17.7226 6.76506C17.6937 6.50528 17.5654 6.26681 17.3647 6.09952L15.2369 4.32633V3.56Z",fill:"#13191B"}),(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",
4136 4148 d:"M3.84811 7.25628C3.24163 7.25628 2.74998 7.74793 2.74998 8.35441V19.1432C2.74998 19.7497 3.24162 20.2413 3.84811 20.2413H18.2332C18.8397 20.2413 19.3313 19.7497 19.3313 19.1432V13.2993C19.3313 12.9127 19.6447 12.5993 20.0313 12.5993C20.4179 12.5993 20.7313 12.9127 20.7313 13.2993V19.1432C20.7313 20.5229 19.6129 21.6413 18.2332 21.6413H3.84811C2.46843 21.6413 1.34998 20.5229 1.34998 19.1432V8.35441C1.34998 6.97473 2.46843 5.85628 3.84811 5.85628H12.3892C12.7758 5.85628 13.0892 6.16968 13.0892 6.55628C13.0892 6.94288 12.7758 7.25628 12.3892 7.25628H3.84811Z",fill:"#13191B"}),(0,I.jsx)("path",{d:"M13.0635 10.6021C13.0635 11.5952 12.2584 12.4002 11.2653 12.4002C10.2722 12.4002 9.46719 11.5952 9.46719 10.6021C9.46719 9.60899 10.2722 8.80394 11.2653 8.80394C12.2584 8.80394 13.0635 9.60899 13.0635 10.6021Z",fill:"#13191B"}),(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",
4137 -d:"M4.97186 14.8726C4.97186 14.5002 5.27376 14.1983 5.64616 14.1983H16.435C16.8074 14.1983 17.1093 14.5002 17.1093 14.8726C17.1093 15.245 16.8074 15.5469 16.435 15.5469H5.64616C5.27376 15.5469 4.97186 15.245 4.97186 14.8726Z",fill:"#13191B"}),(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.3204 18.0194C6.3204 17.647 6.63819 17.3451 7.03019 17.3451H14.6013C14.9933 17.3451 15.3111 17.647 15.3111 18.0194C15.3111 18.3918 14.9933 18.6937 14.6013 18.6937H7.03019C6.63819 18.6937 6.3204 18.3918 6.3204 18.0194Z",fill:"#13191B"})]}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(iN,{...t}),(0,I.jsx)(aN,{...t})]})},save:lN});var nN=i(68267);const sN=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,
4138 -L.__)("Center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"arrow-right"},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:"align-center"}],rN=[{label:(0,L.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("end","ablocks"),value:"end",icon:"right"},{label:(0,L.__)("space-between","ablocks"),value:"space-between",icon:"justify"}],bN=((0,L.__)("Checkout","ablocks"),(0,L.__)("Donation","ablocks"),(0,L.__)("Subscription","ablocks"),[{label:(0,L.__)("USD","ablocks"),value:"USD"},{label:(0,L.__)("AED","ablocks"),value:"AED"},{label:(0,L.__)("AFN*","ablocks"),value:"AFN"},{label:(0,L.__)("ALL","ablocks"),value:"ALL"},{label:(0,L.__)("AMD","ablocks"),value:"AMD"},{label:(0,L.__)("ANG","ablocks"),value:"ANG"},{label:(0,L.__)("AOA*","ablocks"),value:"AOA"},{label:(0,L.__)("ARS*","ablocks"),value:"ARS"},{label:(0,L.__)("AUD","ablocks"),value:"AUD"},{label:(0,
4149 +d:"M4.97186 14.8726C4.97186 14.5002 5.27376 14.1983 5.64616 14.1983H16.435C16.8074 14.1983 17.1093 14.5002 17.1093 14.8726C17.1093 15.245 16.8074 15.5469 16.435 15.5469H5.64616C5.27376 15.5469 4.97186 15.245 4.97186 14.8726Z",fill:"#13191B"}),(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.3204 18.0194C6.3204 17.647 6.63819 17.3451 7.03019 17.3451H14.6013C14.9933 17.3451 15.3111 17.647 15.3111 18.0194C15.3111 18.3918 14.9933 18.6937 14.6013 18.6937H7.03019C6.63819 18.6937 6.3204 18.3918 6.3204 18.0194Z",fill:"#13191B"})]}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(zN,{...t}),(0,I.jsx)(AN,{...t})]})},save:LN});var DN=i(68267);const NN=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,
4150 +L.__)("Center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"arrow-right"},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:"align-center"}],IN=[{label:(0,L.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("end","ablocks"),value:"end",icon:"right"},{label:(0,L.__)("space-between","ablocks"),value:"space-between",icon:"justify"}],VN=((0,L.__)("Checkout","ablocks"),(0,L.__)("Donation","ablocks"),(0,L.__)("Subscription","ablocks"),[{label:(0,L.__)("USD","ablocks"),value:"USD"},{label:(0,L.__)("AED","ablocks"),value:"AED"},{label:(0,L.__)("AFN*","ablocks"),value:"AFN"},{label:(0,L.__)("ALL","ablocks"),value:"ALL"},{label:(0,L.__)("AMD","ablocks"),value:"AMD"},{label:(0,L.__)("ANG","ablocks"),value:"ANG"},{label:(0,L.__)("AOA*","ablocks"),value:"AOA"},{label:(0,L.__)("ARS*","ablocks"),value:"ARS"},{label:(0,L.__)("AUD","ablocks"),value:"AUD"},{label:(0,
4139 4151 L.__)("AWG","ablocks"),value:"AWG"},{label:(0,L.__)("AZN","ablocks"),value:"AZN"},{label:(0,L.__)("BAM","ablocks"),value:"BAM"},{label:(0,L.__)("BBD","ablocks"),value:"BBD"},{label:(0,L.__)("BDT","ablocks"),value:"BDT"},{label:(0,L.__)("BGN","ablocks"),value:"BGN"},{label:(0,L.__)("BIF","ablocks"),value:"BIF"},{label:(0,L.__)("BMD","ablocks"),value:"BMD"},{label:(0,L.__)("BND","ablocks"),value:"BND"},{label:(0,L.__)("BOB*","ablocks"),value:"BOB"},{label:(0,L.__)("BRL*","ablocks"),value:"BRL"},{label:(0,L.__)("BSD","ablocks"),value:"BSD"},{label:(0,L.__)("BWP","ablocks"),value:"BWP"},{label:(0,L.__)("BYN","ablocks"),value:"BYN"},{label:(0,L.__)("BZD","ablocks"),value:"BZD"},{label:(0,L.__)("CAD","ablocks"),value:"CAD"},{label:(0,L.__)("CDF","ablocks"),value:"CDF"},{label:(0,L.__)("CHF","ablocks"),value:"CHF"},{label:(0,L.__)("CLP*","ablocks"),value:"CLP"},{label:(0,L.__)("CNY","ablocks"),value:"CNY"},{label:(0,L.__)("COP*","ablocks"),value:"COP"},{label:(0,L.__)("CRC*","ablocks"),
4140 4152 value:"CRC"},{label:(0,L.__)("CVE*","ablocks"),value:"CVE"},{label:(0,L.__)("CZK","ablocks"),value:"CZK"},{label:(0,L.__)("DJF*","ablocks"),value:"DJF"},{label:(0,L.__)("DKK","ablocks"),value:"DKK"},{label:(0,L.__)("DOP","ablocks"),value:"DOP"},{label:(0,L.__)("DZD","ablocks"),value:"DZD"},{label:(0,L.__)("EGP","ablocks"),value:"EGP"},{label:(0,L.__)("ETB","ablocks"),value:"ETB"},{label:(0,L.__)("EUR","ablocks"),value:"EUR"},{label:(0,L.__)("FJD","ablocks"),value:"FJD"},{label:(0,L.__)("FKP*","ablocks"),value:"FKP"},{label:(0,L.__)("GBP","ablocks"),value:"GBP"},{label:(0,L.__)("GEL","ablocks"),value:"GEL"},{label:(0,L.__)("GIP","ablocks"),value:"GIP"},{label:(0,L.__)("GMD","ablocks"),value:"GMD"},{label:(0,L.__)("GNF*","ablocks"),value:"GNF"},{label:(0,L.__)("GTQ*","ablocks"),value:"GTQ"},{label:(0,L.__)("GYD","ablocks"),value:"GYD"},{label:(0,L.__)("HKD","ablocks"),value:"HKD"},{label:(0,L.__)("HNL*","ablocks"),value:"HNL"},{label:(0,L.__)("HTG","ablocks"),value:"HTG"},{label:(0,
4141 4153 L.__)("HUF","ablocks"),value:"HUF"},{label:(0,L.__)("IDR","ablocks"),value:"IDR"},{label:(0,L.__)("ILS","ablocks"),value:"ILS"},{label:(0,L.__)("INR","ablocks"),value:"INR"},{label:(0,L.__)("ISK","ablocks"),value:"ISK"},{label:(0,L.__)("JMD","ablocks"),value:"JMD"},{label:(0,L.__)("JPY","ablocks"),value:"JPY"},{label:(0,L.__)("KES","ablocks"),value:"KES"},{label:(0,L.__)("KGS","ablocks"),value:"KGS"},{label:(0,L.__)("KHR","ablocks"),value:"KHR"},{label:(0,L.__)("KMF","ablocks"),value:"KMF"},{label:(0,L.__)("KRW","ablocks"),value:"KRW"},{label:(0,L.__)("KYD","ablocks"),value:"KYD"},{label:(0,L.__)("KZT","ablocks"),value:"KZT"},{label:(0,L.__)("LAK*","ablocks"),value:"LAK"},{label:(0,L.__)("LBP","ablocks"),value:"LBP"},{label:(0,L.__)("LKR","ablocks"),value:"LKR"},{label:(0,L.__)("LRD","ablocks"),value:"LRD"},{label:(0,L.__)("LSL","ablocks"),value:"LSL"},{label:(0,L.__)("MAD","ablocks"),value:"MAD"},{label:(0,L.__)("MDL","ablocks"),value:"MDL"},{label:(0,L.__)("MGA","ablocks"),
4142 4154 value:"MGA"},{label:(0,L.__)("MKD","ablocks"),value:"MKD"},{label:(0,L.__)("MMK","ablocks"),value:"MMK"},{label:(0,L.__)("MNT","ablocks"),value:"MNT"},{label:(0,L.__)("MOP","ablocks"),value:"MOP"},{label:(0,L.__)("MUR*","ablocks"),value:"MUR"},{label:(0,L.__)("MVR","ablocks"),value:"MVR"},{label:(0,L.__)("MWK","ablocks"),value:"MWK"},{label:(0,L.__)("MXN","ablocks"),value:"MXN"},{label:(0,L.__)("MYR","ablocks"),value:"MYR"},{label:(0,L.__)("MZN","ablocks"),value:"MZN"},{label:(0,L.__)("NAD","ablocks"),value:"NAD"},{label:(0,L.__)("NGN","ablocks"),value:"NGN"},{label:(0,L.__)("NIO*","ablocks"),value:"NIO"},{label:(0,L.__)("NOK","ablocks"),value:"NOK"},{label:(0,L.__)("NPR","ablocks"),value:"NPR"},{label:(0,L.__)("NZD","ablocks"),value:"NZD"},{label:(0,L.__)("PAB*","ablocks"),value:"PAB"},{label:(0,L.__)("PEN*","ablocks"),value:"PEN"},{label:(0,L.__)("PGK","ablocks"),value:"PGK"},{label:(0,L.__)("PHP","ablocks"),value:"PHP"},{label:(0,L.__)("PKR","ablocks"),value:"PKR"},{label:(0,
4143 4155 L.__)("PLN","ablocks"),value:"PLN"},{label:(0,L.__)("PYG*","ablocks"),value:"PYG"},{label:(0,L.__)("QAR","ablocks"),value:"QAR"},{label:(0,L.__)("RON","ablocks"),value:"RON"},{label:(0,L.__)("RSD","ablocks"),value:"RSD"},{label:(0,L.__)("RUB","ablocks"),value:"RUB"},{label:(0,L.__)("RWF","ablocks"),value:"RWF"},{label:(0,L.__)("SAR","ablocks"),value:"SAR"},{label:(0,L.__)("SBD","ablocks"),value:"SBD"},{label:(0,L.__)("SCR","ablocks"),value:"SCR"},{label:(0,L.__)("SEK","ablocks"),value:"SEK"},{label:(0,L.__)("SGD","ablocks"),value:"SGD"},{label:(0,L.__)("SHP*","ablocks"),value:"SHP"},{label:(0,L.__)("SLE","ablocks"),value:"SLE"},{label:(0,L.__)("SOS","ablocks"),value:"SOS"},{label:(0,L.__)("SRD*","ablocks"),value:"SRD"},{label:(0,L.__)("STD*","ablocks"),value:"STD"},{label:(0,L.__)("SZL","ablocks"),value:"SZL"},{label:(0,L.__)("THB","ablocks"),value:"THB"},{label:(0,L.__)("TJS","ablocks"),value:"TJS"},{label:(0,L.__)("TOP","ablocks"),value:"TOP"},{label:(0,L.__)("TRY","ablocks"),
4144 -value:"TRY"},{label:(0,L.__)("TTD","ablocks"),value:"TTD"},{label:(0,L.__)("TWD","ablocks"),value:"TWD"},{label:(0,L.__)("TZS","ablocks"),value:"TZS"},{label:(0,L.__)("UAH","ablocks"),value:"UAH"},{label:(0,L.__)("UGX","ablocks"),value:"UGX"},{label:(0,L.__)("UYU*","ablocks"),value:"UYU"},{label:(0,L.__)("UZS","ablocks"),value:"UZS"},{label:(0,L.__)("VND","ablocks"),value:"VND"},{label:(0,L.__)("VUV","ablocks"),value:"VUV"},{label:(0,L.__)("WST","ablocks"),value:"WST"},{label:(0,L.__)("XAF","ablocks"),value:"XAF"},{label:(0,L.__)("XCD","ablocks"),value:"XCD"},{label:(0,L.__)("XOF*","ablocks"),value:"XOF"},{label:(0,L.__)("XPF*","ablocks"),value:"XPF"},{label:(0,L.__)("YER","ablocks"),value:"YER"},{label:(0,L.__)("ZAR","ablocks"),value:"ZAR"},{label:(0,L.__)("ZMW","ablocks"),value:"ZMW"}]);function cN(t){
4156 +value:"TRY"},{label:(0,L.__)("TTD","ablocks"),value:"TTD"},{label:(0,L.__)("TWD","ablocks"),value:"TWD"},{label:(0,L.__)("TZS","ablocks"),value:"TZS"},{label:(0,L.__)("UAH","ablocks"),value:"UAH"},{label:(0,L.__)("UGX","ablocks"),value:"UGX"},{label:(0,L.__)("UYU*","ablocks"),value:"UYU"},{label:(0,L.__)("UZS","ablocks"),value:"UZS"},{label:(0,L.__)("VND","ablocks"),value:"VND"},{label:(0,L.__)("VUV","ablocks"),value:"VUV"},{label:(0,L.__)("WST","ablocks"),value:"WST"},{label:(0,L.__)("XAF","ablocks"),value:"XAF"},{label:(0,L.__)("XCD","ablocks"),value:"XCD"},{label:(0,L.__)("XOF*","ablocks"),value:"XOF"},{label:(0,L.__)("XPF*","ablocks"),value:"XPF"},{label:(0,L.__)("YER","ablocks"),value:"YER"},{label:(0,L.__)("ZAR","ablocks"),value:"ZAR"},{label:(0,L.__)("ZMW","ablocks"),value:"ZMW"}]);function ON(t){
4145 4157 const{attributes:e,setAttributes:i}=t,{buttonType:o,text:n,position:s,alignment:r,buttonSize:b,textShadow:c,typography:d,textColor:u,textColorH:p,background:m,backgroundH:h,padding:g,iconPosition:f,showIcon:y,iconSpace:T,stripeApi:H,itemName:x,price:k,currency:v,quantity:_,shippingPrice:R,hasTax:S,tax:W,taxId:P,redirectionAfterPayment:U,openInNewTab:j,customMessage:w,errorMessage:z}=e;return(0,a.useEffect)(()=>{H?(0,M.In)({action:"ablocks/stripe_get_tax_rates",api_key:H}).then(t=>{if(t.data.success){const e=t?.data?.data.data;if(e.length>0){const t=e.map(t=>({label:t.display_name,value:t.id}));i({tax:t})}else i({tax:[{label:(0,L.__)("No tax found.","ablocks"),value:""}]})}else i({tax:[{label:(0,L.__)("No tax found.","ablocks"),value:""}]})}):i({tax:[{label:(0,L.__)("No tax found.","ablocks"),value:""}]})},[H,S]),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,
4146 -docs_url:"https://ablocks.pro/docs/ablocks-stripe-button-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Pricing & Payments","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Stripe API","ablocks"),attributeName:"stripeApi",attributeValue:H,setAttributes:i,placeholder:"",isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Kl,{label:(0,L.__)("Item Name","ablocks"),attributeName:"itemName",attributeValue:x,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(As,{label:(0,L.__)("Product Price","ablocks"),attributeName:"price",attributeValue:k,setAttributes:i,isInline:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Currency","ablocks"),options:bN,isResponsive:!1,attributeValue:v||"usd",attributeName:"currency",setAttributes:i}),(0,I.jsx)("div",{className:"ablocks-stripe-settings-msg",children:(0,L.__)("Currencies marked with * are not supported by American Express.","ablocks")}),(0,I.jsx)(As,{label:(0,
4147 -L.__)("Quantity","ablocks"),attributeName:"quantity",attributeValue:_,setAttributes:i,isInline:!0}),(0,I.jsx)(As,{label:(0,L.__)("Shipping Price","ablocks"),attributeName:"shippingPrice",attributeValue:R,setAttributes:i,isInline:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Add Tax","ablocks"),attributeValue:S,setAttributes:i,attributeName:"hasTax",isResponsive:!1}),S&&(0,I.jsx)(Ut,{label:(0,L.__)("Select Tax","ablocks"),options:W,isResponsive:!1,attributeValue:P,attributeName:"taxId",setAttributes:i})]})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"position",attributeValue:s,setAttributes:i,options:sN,isInline:!1}),"stretch"===s?.value&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,options:rN,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{label:(0,
4158 +docs_url:"https://ablocks.pro/docs/ablocks-stripe-button-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Pricing & Payments","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Stripe API","ablocks"),attributeName:"stripeApi",attributeValue:H,setAttributes:i,placeholder:"",isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Kl,{label:(0,L.__)("Item Name","ablocks"),attributeName:"itemName",attributeValue:x,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(As,{label:(0,L.__)("Product Price","ablocks"),attributeName:"price",attributeValue:k,setAttributes:i,isInline:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Currency","ablocks"),options:VN,isResponsive:!1,attributeValue:v||"usd",attributeName:"currency",setAttributes:i}),(0,I.jsx)("div",{className:"ablocks-stripe-settings-msg",children:(0,L.__)("Currencies marked with * are not supported by American Express.","ablocks")}),(0,I.jsx)(As,{label:(0,
4159 +L.__)("Quantity","ablocks"),attributeName:"quantity",attributeValue:_,setAttributes:i,isInline:!0}),(0,I.jsx)(As,{label:(0,L.__)("Shipping Price","ablocks"),attributeName:"shippingPrice",attributeValue:R,setAttributes:i,isInline:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Add Tax","ablocks"),attributeValue:S,setAttributes:i,attributeName:"hasTax",isResponsive:!1}),S&&(0,I.jsx)(Ut,{label:(0,L.__)("Select Tax","ablocks"),options:W,isResponsive:!1,attributeValue:P,attributeName:"taxId",setAttributes:i})]})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"position",attributeValue:s,setAttributes:i,options:NN,isInline:!1}),"stretch"===s?.value&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,options:IN,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{label:(0,
4148 4160 L.__)("Default","ablocks"),value:"#635bff"},{label:(0,L.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,L.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,L.__)("Success","ablocks"),value:"#198754"},{label:(0,L.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,L.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:o||"Primary",attributeName:"buttonType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"text",attributeValue:n,setAttributes:i,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:b||"sm",attributeName:"buttonSize",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:y,setAttributes:i,
4149 4161 attributeName:"showIcon",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:u||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:m||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,
4150 4162 attributeName:"backgroundH",attributeValue:h,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.transition||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),y&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,
4151 -L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:f||"left",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:T,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:nN.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Additional Options","ablocks"),initialOpen:!1,children:[(0,I.jsx)(zb,{label:(0,L.__)("Redirection After Payment","ablocks"),attributeName:"redirectionAfterPayment",attributeValue:U,setAttributes:i,
4152 -placeholder:"https://ablocks.pro/",isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Open in New Tab","ablocks"),attributeValue:j,setAttributes:i,attributeName:"openInNewTab",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Custom Message","ablocks"),attributeValue:w,setAttributes:i,attributeName:"customMessage",isResponsive:!1}),w&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMessage",attributeValue:z,setAttributes:i,isInline:!1})})]})]})})})}(0,L.__)("Daily","ablocks"),(0,L.__)("Weekly","ablocks"),(0,L.__)("Monthly","ablocks"),(0,L.__)("Yearly","ablocks"),cN.propTypes={};const dN={UU:"ablocks/stripe-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},postId:{type:"number",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#635bff"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},
4163 +L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:f||"left",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:T,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:DN.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Additional Options","ablocks"),initialOpen:!1,children:[(0,I.jsx)(zb,{label:(0,L.__)("Redirection After Payment","ablocks"),attributeName:"redirectionAfterPayment",attributeValue:U,setAttributes:i,
4164 +placeholder:"https://ablocks.pro/",isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Open in New Tab","ablocks"),attributeValue:j,setAttributes:i,attributeName:"openInNewTab",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Custom Message","ablocks"),attributeValue:w,setAttributes:i,attributeName:"customMessage",isResponsive:!1}),w&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMessage",attributeValue:z,setAttributes:i,isInline:!1})})]})]})})})}(0,L.__)("Daily","ablocks"),(0,L.__)("Weekly","ablocks"),(0,L.__)("Monthly","ablocks"),(0,L.__)("Yearly","ablocks"),ON.propTypes={};const YN={UU:"ablocks/stripe-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},postId:{type:"number",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#635bff"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},
4153 4165 background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},stripeApi:{type:"string",default:""},itemName:{type:"string",default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"0"},shippingPrice:{type:"number",default:"0"},hasTax:{type:"boolean",default:!1},tax:{type:"array",default:[]},taxId:{type:"string",default:""},redirectionAfterPayment:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{type:"string",
4154 4166 default:"M155.3 154.6c0-22.3 18.6-30.9 48.4-30.9 43.4 0 98.5 13.3 141.9 36.7V26.1C298.3 7.2 251.1 0 203.8 0 88.1 0 11 60.4 11 161.4c0 157.9 216.8 132.3 216.8 200.4 0 26.4-22.9 34.9-54.7 34.9-47.2 0-108.2-19.5-156.1-45.5v128.5a396.09 396.09 0 0 0 156 32.4c118.6 0 200.3-51 200.3-153.6 0-170.2-218-139.7-218-203.9z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 384 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fab fa-stripe"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#ffffff"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",
4155 4167 right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",
4156 4168 default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",
@@ -4164,15 +4176,15 @@
4164 4176 imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{
4165 4177 type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",
4166 4178 rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",
4167 4179 scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,
4168 -startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function uN(t){const{attributes:e,setAttributes:i}=t,{block_id:o,buttonSize:n,iconPosition:r,iconClass:b,showIcon:c,alignment:d,iconImageID:u,iconImageUrl:p}=e,m=(0,D.useBlockProps)();return(0,a.useEffect)(()=>{const t=wp.data.select("core/editor").getCurrentPostId();i({postId:t})},[]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:d,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:o,name:dN.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:s()("ablocks-stripe-button",`ablocks-stripe-button--${n}`,{
4169 -[`ablocks-stripe-button--icon-${r}`]:b&&r||u&&p}),children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)($c,{...m,tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-stripe-button__text",onChange:t=>i({text:t})})]})})]})}uN.propTypes={};const pN=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},mN=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),l.background=t?.background?(0,Hs.qD)(t?.background):t?.buttonType;const n=a["valueUnit"+e]||"px";""!==a["value"+e]&&void 0!==a["value"+e]&&(l["column-gap"]=`${a["value"+e]}${n}`);const s=(0,M.Zy)(t?.padding,{unit:"px"}),r=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),b=(0,M.Zy)(t.typography,{weight:"400"}),d=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,Hs.qD)(t?.textColor),...(0,y.qD)(r,e),...(0,
4170 -H.qD)(t?.boxShadow,e),...(0,c.qD)(s,"padding",e),...(0,U.qD)(b,e,d),...(0,c.qD)(t?.padding,"padding",e)}},hN=(t,e="")=>{const i={};t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.textColorH),background:(0,Hs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},gN=t=>({fill:(0,Hs.qD)(t?.textColorH)}),fN=t=>({...(0,fc.qD)(t?.textShadow)});function yN(t){const{attributes:e}=t,{block_id:i,postId:o,buttonSize:a,iconPosition:l,iconClass:n,showIcon:r,iconImageID:b,iconImageUrl:c,text:d,openInNewTab:u,errorMessage:p}=e;return(0,I.jsx)(sc,{blockId:i,name:dN.UU,attributes:e,children:(0,I.jsxs)("form",{className:"ablocks-stripe-form",method:"post",id:"stripe-form","data-ablocks__block-id":i,"data-ablocks__post-id":o,"data-ablocks__open-new-tab":u,"data-ablocks__error-msg":p,children:[(0,I.jsx)("input",{type:"hidden",name:"action",value:"submit_stripe_form"}),(0,I.jsx)("input",{
4171 -type:"hidden",name:"widget_id",value:"97cb6e5"}),(0,I.jsx)("input",{type:"hidden",name:"current_url"}),(0,I.jsxs)("button",{type:"submit",className:s()("ablocks-stripe-button",`ablocks-stripe-button--${a}`,{[`ablocks-stripe-button--icon-${l}`]:n&&l||b&&c}),children:[r&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-stripe-button__text",value:d})]}),(0,I.jsx)("div",{className:"ablocks-stripe-button__error"})]})})}yN.propTypes={};function TN(t){const{attributes:e}=t,{block_id:i,postId:o,buttonSize:a,iconPosition:l,iconClass:n,showIcon:r,iconImageID:b,iconImageUrl:c,text:d,openInNewTab:u,errorMessage:p}=e;return(0,I.jsx)(hc,{blockId:i,name:"ablocks/stripe-button",attributes:e,children:(0,I.jsxs)("form",{className:"ablocks-stripe-form",method:"post",id:"stripe-form","data-ablocks__block-id":i,"data-ablocks__post-id":o,"data-ablocks__open-new-tab":u,"data-ablocks__error-msg":p,children:[(0,I.jsx)("input",{type:"hidden",name:"action",
4172 -value:"submit_stripe_form"}),(0,I.jsx)("input",{type:"hidden",name:"widget_id",value:"97cb6e5"}),(0,I.jsx)("input",{type:"hidden",name:"current_url"}),(0,I.jsxs)("button",{type:"submit",className:s()("ablocks-stripe-button",`ablocks-stripe-button--${a}`,{[`ablocks-stripe-button--icon-${l}`]:n&&l||b&&c}),children:[r&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-stripe-button__text",value:d})]}),(0,I.jsx)("div",{className:"ablocks-stripe-button__error"})]})})}TN.propTypes={},(0,M.xV)(dN.UU)&&(0,o.registerBlockType)(dN.UU,{title:(0,L.__)("Stripe Button","ablocks"),attributes:dN.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
4173 -;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",pN(i,""),pN(i,"Tablet"),pN(i,"Mobile"),e(t=>pN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button",mN(i),mN(i,"Tablet"),mN(i,"Mobile"),e(t=>mN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button:hover",hN(i,""),hN(i,"Tablet"),hN(i,"Mobile"),e(t=>hN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",gN(i),gN(i),gN(i),e(t=>gN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button .ablocks-stripe-button__text",fN(i),fN(i),fN(i),e(t=>fN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,
4174 -Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Tablet"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Tablet"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(cN,{...t}),(0,I.jsx)(uN,{...t})]})},save:yN,deprecated:[{attributes:{block_id:{type:"string",default:""},postId:{type:"number",default:""},text:{
4180 +startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function XN(t){const{attributes:e,setAttributes:i}=t,{block_id:o,buttonSize:n,iconPosition:r,iconClass:b,showIcon:c,alignment:d,iconImageID:u,iconImageUrl:p}=e,m=(0,D.useBlockProps)();return(0,a.useEffect)(()=>{const t=wp.data.select("core/editor").getCurrentPostId();i({postId:t})},[]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:d,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:o,name:YN.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:s()("ablocks-stripe-button",`ablocks-stripe-button--${n}`,{
4181 +[`ablocks-stripe-button--icon-${r}`]:b&&r||u&&p}),children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)($c,{...m,tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-stripe-button__text",onChange:t=>i({text:t})})]})})]})}XN.propTypes={};const BN=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},EN=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),l.background=t?.background?(0,Hs.qD)(t?.background):t?.buttonType;const n=a["valueUnit"+e]||"px";""!==a["value"+e]&&void 0!==a["value"+e]&&(l["column-gap"]=`${a["value"+e]}${n}`);const s=(0,M.Zy)(t?.padding,{unit:"px"}),r=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),b=(0,M.Zy)(t.typography,{weight:"400"}),d=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,Hs.qD)(t?.textColor),...(0,y.qD)(r,e),...(0,
4182 +H.qD)(t?.boxShadow,e),...(0,c.qD)(s,"padding",e),...(0,U.qD)(b,e,d),...(0,c.qD)(t?.padding,"padding",e)}},FN=(t,e="")=>{const i={};t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.textColorH),background:(0,Hs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},qN=t=>({fill:(0,Hs.qD)(t?.textColorH)}),$N=t=>({...(0,fc.qD)(t?.textShadow)});function GN(t){const{attributes:e}=t,{block_id:i,postId:o,buttonSize:a,iconPosition:l,iconClass:n,showIcon:r,iconImageID:b,iconImageUrl:c,text:d,openInNewTab:u,errorMessage:p}=e;return(0,I.jsx)(sc,{blockId:i,name:YN.UU,attributes:e,children:(0,I.jsxs)("form",{className:"ablocks-stripe-form",method:"post",id:"stripe-form","data-ablocks__block-id":i,"data-ablocks__post-id":o,"data-ablocks__open-new-tab":u,"data-ablocks__error-msg":p,children:[(0,I.jsx)("input",{type:"hidden",name:"action",value:"submit_stripe_form"}),(0,I.jsx)("input",{
4183 +type:"hidden",name:"widget_id",value:"97cb6e5"}),(0,I.jsx)("input",{type:"hidden",name:"current_url"}),(0,I.jsxs)("button",{type:"submit",className:s()("ablocks-stripe-button",`ablocks-stripe-button--${a}`,{[`ablocks-stripe-button--icon-${l}`]:n&&l||b&&c}),children:[r&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-stripe-button__text",value:d})]}),(0,I.jsx)("div",{className:"ablocks-stripe-button__error"})]})})}GN.propTypes={};function ZN(t){const{attributes:e}=t,{block_id:i,postId:o,buttonSize:a,iconPosition:l,iconClass:n,showIcon:r,iconImageID:b,iconImageUrl:c,text:d,openInNewTab:u,errorMessage:p}=e;return(0,I.jsx)(hc,{blockId:i,name:"ablocks/stripe-button",attributes:e,children:(0,I.jsxs)("form",{className:"ablocks-stripe-form",method:"post",id:"stripe-form","data-ablocks__block-id":i,"data-ablocks__post-id":o,"data-ablocks__open-new-tab":u,"data-ablocks__error-msg":p,children:[(0,I.jsx)("input",{type:"hidden",name:"action",
4184 +value:"submit_stripe_form"}),(0,I.jsx)("input",{type:"hidden",name:"widget_id",value:"97cb6e5"}),(0,I.jsx)("input",{type:"hidden",name:"current_url"}),(0,I.jsxs)("button",{type:"submit",className:s()("ablocks-stripe-button",`ablocks-stripe-button--${a}`,{[`ablocks-stripe-button--icon-${l}`]:n&&l||b&&c}),children:[r&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-stripe-button__text",value:d})]}),(0,I.jsx)("div",{className:"ablocks-stripe-button__error"})]})})}ZN.propTypes={},(0,M.xV)(YN.UU)&&(0,o.registerBlockType)(YN.UU,{title:(0,L.__)("Stripe Button","ablocks"),attributes:YN.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
4185 +;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",BN(i,""),BN(i,"Tablet"),BN(i,"Mobile"),e(t=>BN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button",EN(i),EN(i,"Tablet"),EN(i,"Mobile"),e(t=>EN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button:hover",FN(i,""),FN(i,"Tablet"),FN(i,"Mobile"),e(t=>FN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",qN(i),qN(i),qN(i),e(t=>qN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button .ablocks-stripe-button__text",$N(i),$N(i),$N(i),e(t=>$N(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,
4186 +Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Tablet"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Tablet"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(ON,{...t}),(0,I.jsx)(XN,{...t})]})},save:GN,deprecated:[{attributes:{block_id:{type:"string",default:""},postId:{type:"number",default:""},text:{
4175 4187 type:"string",default:"Buy now"},buttonType:{type:"string",default:"#635bff"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},stripeApi:{type:"string",default:""},itemName:{type:"string",default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"0"},shippingPrice:{type:"number",default:"0"},hasTax:{type:"boolean",default:!1},tax:{type:"array",default:[]},taxId:{type:"string",default:""},redirectionAfterPayment:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{type:"string",
4176 4188 default:"M155.3 154.6c0-22.3 18.6-30.9 48.4-30.9 43.4 0 98.5 13.3 141.9 36.7V26.1C298.3 7.2 251.1 0 203.8 0 88.1 0 11 60.4 11 161.4c0 157.9 216.8 132.3 216.8 200.4 0 26.4-22.9 34.9-54.7 34.9-47.2 0-108.2-19.5-156.1-45.5v128.5a396.09 396.09 0 0 0 156 32.4c118.6 0 200.3-51 200.3-153.6 0-170.2-218-139.7-218-203.9z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 384 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fab fa-stripe"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#ffffff"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{
4177 4189 isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,
4178 4190 isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",
@@ -4185,21 +4197,21 @@
4185 4197 imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",
4186 4198 videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",
4187 4199 yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",
4188 4200 customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",
4189 -default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:t=>(0,I.jsx)(TN,{...t})}]});var HN=i(56027);const MN=t=>(0,r.useSelect)(e=>e("core").getEntityRecords("postType",t,{per_page:-1}),[]),xN=[{value:"left",label:(0,L.__)("Left","ablocks")},{value:"right",label:(0,L.__)("Right","ablocks")}],kN=[{value:"left",label:(0,L.__)("Left","ablocks")},{value:"right",label:(0,L.__)("Right","ablocks")}],vN=[{label:(0,L.__)("Left","ablocks"),value:"ltr"},{label:(0,L.__)("Right","ablocks"),value:"rtl"}],_N=[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Small Shape","ablocks"),value:"small"},{label:(0,L.__)("Medium Shape","ablocks"),value:"medium"},{label:(0,L.__)("Large Shape","ablocks"),value:"large"}],RN=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Box","ablocks"),value:"box"}],SN=[{label:(0,L.__)("Up","ablocks"),value:"up"},{label:(0,
4190 -L.__)("Down","ablocks"),value:"down"}],WN=[{value:"posts",label:(0,L.__)("Posts","ablocks")},{value:"pages",label:(0,L.__)("Pages","ablocks")},{value:"customText",label:(0,L.__)("Custom Text","ablocks")}];function PN(t){const{attributes:e,setAttributes:i}=t,{labelTypography:o,labelTextShadow:a,labelTextStroke:n,tickerTypography:s,tickerTextShadow:r,tickerTextStroke:b,labelColor:c,labelBackgroundColor:d,labelColorH:u,labelBackgroundColorH:p,labelPosition:m,stickyLabelTag:h,stickyLabel:g,isShowLabel:f,labelPadding:y,tickerHeight:T,showTickerNavigator:H,navigatorPosition:M,navigatorBgColor:x,navigatorColor:k,tickerListStyle:v,isShowTime:_,tickerColor:R,tickerColorH:S,tickerBgColorH:W,tickerBgColor:P,slideSpeed:U,slideDirection:j,selectedPosts:w,selectedPages:z,tickerType:C,queryType:A,isPauseOnOver:O,isPositionSticky:Y,stickyPosition:B,tickerLabelShape:E,lists:F,listIconsClasses:q,postLink:$,pageLink:G}=e,Z=t=>t?t.map(t=>({value:t.id,label:t.title.rendered
4191 -})):[],K=Z(MN("page")),J=Z(MN("post")),Q=!J||!K,tt=F?.length?F[F.length-1].id+1:0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-news-ticker-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("General","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:["marquee"===C&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Direction","ablocks"),options:vN,isSearch:!0,attributeName:"slideDirection",attributeValue:j,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Speed (Slow To Fast)","ablocks"),attributeName:"slideSpeed",attributeValue:U,setAttributes:i,min:0,max:50,step:1,isInline:!1,isResponsive:!1})]}),(0,I.jsx)(Ot,{label:(0,L.__)("Pause On Hover","ablocks"),attributeName:"isPauseOnOver",attributeValue:O,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Position sticky","ablocks"),attributeName:"isPositionSticky",
4192 -attributeValue:Y,setAttributes:i,isResponsive:!1,allowDeselect:!1}),Y&&(0,I.jsx)(Ut,{label:(0,L.__)("Select Position","ablocks"),options:SN,attributeName:"stickyPosition",attributeValue:B,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Label","ablocks"),attributeName:"isShowLabel",attributeValue:f,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Navigator","ablocks"),attributeName:"showTickerNavigator",attributeValue:H,setAttributes:i,isResponsive:!1,allowDeselect:!1}),"customText"!==A&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Time","ablocks"),attributeName:"isShowTime",attributeValue:_,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Query Builder","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Query Type","ablocks"),options:WN,attributeName:"queryType",attributeValue:A,setAttributes:i,isSearchable:!0}),"posts"===A&&(0,I.jsx)(I.Fragment,{children:Q?(0,I.jsx)(N.Spinner,{}):(0,
4201 +default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:t=>(0,I.jsx)(ZN,{...t})}]});var KN=i(56027);const JN=t=>(0,r.useSelect)(e=>e("core").getEntityRecords("postType",t,{per_page:-1}),[]),QN=[{value:"left",label:(0,L.__)("Left","ablocks")},{value:"right",label:(0,L.__)("Right","ablocks")}],tI=[{value:"left",label:(0,L.__)("Left","ablocks")},{value:"right",label:(0,L.__)("Right","ablocks")}],eI=[{label:(0,L.__)("Left","ablocks"),value:"ltr"},{label:(0,L.__)("Right","ablocks"),value:"rtl"}],iI=[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Small Shape","ablocks"),value:"small"},{label:(0,L.__)("Medium Shape","ablocks"),value:"medium"},{label:(0,L.__)("Large Shape","ablocks"),value:"large"}],oI=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Box","ablocks"),value:"box"}],aI=[{label:(0,L.__)("Up","ablocks"),value:"up"},{label:(0,
4202 +L.__)("Down","ablocks"),value:"down"}],lI=[{value:"posts",label:(0,L.__)("Posts","ablocks")},{value:"pages",label:(0,L.__)("Pages","ablocks")},{value:"customText",label:(0,L.__)("Custom Text","ablocks")}];function nI(t){const{attributes:e,setAttributes:i}=t,{labelTypography:o,labelTextShadow:a,labelTextStroke:n,tickerTypography:s,tickerTextShadow:r,tickerTextStroke:b,labelColor:c,labelBackgroundColor:d,labelColorH:u,labelBackgroundColorH:p,labelPosition:m,stickyLabelTag:h,stickyLabel:g,isShowLabel:f,labelPadding:y,tickerHeight:T,showTickerNavigator:H,navigatorPosition:M,navigatorBgColor:x,navigatorColor:k,tickerListStyle:v,isShowTime:_,tickerColor:R,tickerColorH:S,tickerBgColorH:W,tickerBgColor:P,slideSpeed:U,slideDirection:j,selectedPosts:w,selectedPages:z,tickerType:C,queryType:A,isPauseOnOver:O,isPositionSticky:Y,stickyPosition:B,tickerLabelShape:E,lists:F,listIconsClasses:q,postLink:$,pageLink:G}=e,Z=t=>t?t.map(t=>({value:t.id,label:t.title.rendered
4203 +})):[],K=Z(JN("page")),J=Z(JN("post")),Q=!J||!K,tt=F?.length?F[F.length-1].id+1:0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-news-ticker-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("General","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:["marquee"===C&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Direction","ablocks"),options:eI,isSearch:!0,attributeName:"slideDirection",attributeValue:j,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Speed (Slow To Fast)","ablocks"),attributeName:"slideSpeed",attributeValue:U,setAttributes:i,min:0,max:50,step:1,isInline:!1,isResponsive:!1})]}),(0,I.jsx)(Ot,{label:(0,L.__)("Pause On Hover","ablocks"),attributeName:"isPauseOnOver",attributeValue:O,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Position sticky","ablocks"),attributeName:"isPositionSticky",
4204 +attributeValue:Y,setAttributes:i,isResponsive:!1,allowDeselect:!1}),Y&&(0,I.jsx)(Ut,{label:(0,L.__)("Select Position","ablocks"),options:aI,attributeName:"stickyPosition",attributeValue:B,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Label","ablocks"),attributeName:"isShowLabel",attributeValue:f,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Navigator","ablocks"),attributeName:"showTickerNavigator",attributeValue:H,setAttributes:i,isResponsive:!1,allowDeselect:!1}),"customText"!==A&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Time","ablocks"),attributeName:"isShowTime",attributeValue:_,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Query Builder","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Query Type","ablocks"),options:lI,attributeName:"queryType",attributeValue:A,setAttributes:i,isSearchable:!0}),"posts"===A&&(0,I.jsx)(I.Fragment,{children:Q?(0,I.jsx)(N.Spinner,{}):(0,
4193 4205 I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Selected Posts","ablocks"),options:J,attributeName:"selectedPosts",attributeValue:w,setAttributes:i,isMulti:!0,isSearchable:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Post Link","ablocks"),attributeName:"postLink",attributeValue:$,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),"pages"===A&&(0,I.jsx)(I.Fragment,{children:Q?(0,I.jsx)(N.Spinner,{}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Selected Pages","ablocks"),options:K,attributeName:"selectedPages",attributeValue:z,setAttributes:i,isMulti:!0,isSearchable:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Page Link","ablocks"),attributeName:"pageLink",attributeValue:G,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),"customText"===A&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(F),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({lists:e})},children:(0,I.jsx)(If,{
4194 4206 droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[F?.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t?.id}`,index:e,children:e=>(0,I.jsxs)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-list",children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=F.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{
4195 4207 className:"ablocks-icon ablocks-icon--delete",onClick:e=>{return o=e,a=t?.id,o.stopPropagation(),void i({lists:F.filter(t=>t?.id!==a)});var o,a},role:"presentation",onKeyDown:()=>{}}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:e=>((t,e)=>{t.stopPropagation();const o=F.findIndex(t=>t?.id===e),a=F[o],l=Array.from(F).sort((t,e)=>t.id-e.id),n={id:(l[l.length-1]?.id??0)+1,text:a?.text,link:a.link,iconColor:a.iconColor,textColor:a.textColor,markerColor:a.markerColor,isOpen:!1},s=[...F,n],r=[...q,q[o]];i({lists:s,listIconsClasses:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,I.jsxs)("div",{className:"ablocks-editor-list__inner-content",children:[(0,I.jsx)(le,{label:(0,L.__)("Text","ablocks"),attributeValue:t?.text,setAttributes:i,onChangeHandler:e=>((t,e,o)=>{const a=F.map(i=>i.id===t?{...i,[o]:e}:i);i({lists:a})})(t?.id,e,"text"),placeholder:(0,L.__)("Enter your text","ablocks")}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),
4196 -attributeName:"link",attributeValue:t.link,setAttributes:i,onChangeHandler:(e,o)=>{((t,e,o)=>{const a=[...F],l={...t,[e]:o};a[t?.id]=l,i({lists:a})})(t,"link",{...t.link,[e]:o})}})]})]})},t?.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:tt,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1},e=F.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t],listIconsClasses:[...q]})},className:"ablocks-add-list-item-button"})]})]}),H&&(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(V,{title:(0,L.__)("Ticker Navigator","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Navigator Position","ablocks"),options:kN,attributeName:"navigatorPosition",attributeValue:M,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigatorColor",attributeValue:k,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
4197 -L.__)("Background Color","ablocks"),attributeName:"navigatorBgColor",attributeValue:x,setAttributes:i})]})}),f&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Ticker Label","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:f&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Sticky Label","ablocks"),attributeName:"stickyLabel",attributeValue:g,setAttributes:i,placeholder:"Breaking News"}),(0,I.jsx)(Ut,{label:(0,L.__)("Ticker Shape","ablocks"),options:_N,attributeName:"tickerLabelShape",attributeValue:E,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Label Tag","ablocks"),options:St,isSearch:!0,attributeName:"stickyLabelTag",attributeValue:h,setAttributes:i,onChangeHandler:t=>i({stickyLabelTag:t})}),(0,I.jsx)(Ut,{label:(0,L.__)("Label Position","ablocks"),options:xN,attributeName:"labelPosition",attributeValue:m,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Padding","ablocks"),attributeName:"labelPadding",
4198 -attributeValue:y,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:(et=y?.valueUnit||"px","px"===et?50:"em"===et||"rem"===et?5:50),step:1,isInline:!1,isResponsive:!0,attributeDefaultValue:HN.id})]})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"labelBackgroundColor",attributeValue:d,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColorH",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"labelBackgroundColorH",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,
4199 -isInline:!1,isResponsive:!1,attributeValue:e?.labelColorTransition||0,attributeName:"labelColorTransition",setAttributes:i})]})}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"labelTextShadow",attributeValue:a,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"labelTextStroke",attributeValue:n,setAttributes:i,isResponsive:!0})]})})})}),(0,I.jsx)(V,{title:(0,L.__)("Ticker Body","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Ticker List Style","ablocks"),options:RN,attributeName:"tickerListStyle",attributeValue:v,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Content Height","ablocks"),attributeName:"tickerHeight",attributeValue:T,setAttributes:i,
4200 -hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:HN.Ez,autoSyncRange:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"tickerColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"tickerBgColor",attributeValue:P,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"tickerTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"tickerTextShadow",attributeValue:r,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"tickerTextStroke",attributeValue:b,setAttributes:i,isResponsive:!0})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
4201 -attributeName:"tickerColorH",attributeValue:S,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"tickerBgColorH",attributeValue:W,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.tickerColorTransition||0,attributeName:"tickerColorTransition",setAttributes:i})]})})]})})})]})})});var et}PN.propTypes={},PN.defaultProps={};const UN={UU:"ablocks/news-ticker",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},stickyLabel:{type:"string",default:"Breaking News"},stickyLabelTag:{type:"string",default:"div"},labelPosition:{type:"string",default:"left"},queryType:{type:"string",default:"customText"},selectedPosts:{type:"array",default:[]},postLink:{type:"boolean",default:!1},selectedPages:{type:"array",default:[]},pageLink:{type:"boolean",default:!1},customText:{type:"string",default:""},lists:{type:"array",
4208 +attributeName:"link",attributeValue:t.link,setAttributes:i,onChangeHandler:(e,o)=>{((t,e,o)=>{const a=[...F],l={...t,[e]:o};a[t?.id]=l,i({lists:a})})(t,"link",{...t.link,[e]:o})}})]})]})},t?.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:tt,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1},e=F.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t],listIconsClasses:[...q]})},className:"ablocks-add-list-item-button"})]})]}),H&&(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(V,{title:(0,L.__)("Ticker Navigator","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Navigator Position","ablocks"),options:tI,attributeName:"navigatorPosition",attributeValue:M,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigatorColor",attributeValue:k,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
4209 +L.__)("Background Color","ablocks"),attributeName:"navigatorBgColor",attributeValue:x,setAttributes:i})]})}),f&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Ticker Label","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:f&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Sticky Label","ablocks"),attributeName:"stickyLabel",attributeValue:g,setAttributes:i,placeholder:"Breaking News"}),(0,I.jsx)(Ut,{label:(0,L.__)("Ticker Shape","ablocks"),options:iI,attributeName:"tickerLabelShape",attributeValue:E,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Label Tag","ablocks"),options:St,isSearch:!0,attributeName:"stickyLabelTag",attributeValue:h,setAttributes:i,onChangeHandler:t=>i({stickyLabelTag:t})}),(0,I.jsx)(Ut,{label:(0,L.__)("Label Position","ablocks"),options:QN,attributeName:"labelPosition",attributeValue:m,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Padding","ablocks"),attributeName:"labelPadding",
4210 +attributeValue:y,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:(et=y?.valueUnit||"px","px"===et?50:"em"===et||"rem"===et?5:50),step:1,isInline:!1,isResponsive:!0,attributeDefaultValue:KN.id})]})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"labelBackgroundColor",attributeValue:d,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColorH",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"labelBackgroundColorH",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,
4211 +isInline:!1,isResponsive:!1,attributeValue:e?.labelColorTransition||0,attributeName:"labelColorTransition",setAttributes:i})]})}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"labelTextShadow",attributeValue:a,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"labelTextStroke",attributeValue:n,setAttributes:i,isResponsive:!0})]})})})}),(0,I.jsx)(V,{title:(0,L.__)("Ticker Body","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Ticker List Style","ablocks"),options:oI,attributeName:"tickerListStyle",attributeValue:v,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Content Height","ablocks"),attributeName:"tickerHeight",attributeValue:T,setAttributes:i,
4212 +hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:KN.Ez,autoSyncRange:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"tickerColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"tickerBgColor",attributeValue:P,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"tickerTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"tickerTextShadow",attributeValue:r,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"tickerTextStroke",attributeValue:b,setAttributes:i,isResponsive:!0})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
4213 +attributeName:"tickerColorH",attributeValue:S,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"tickerBgColorH",attributeValue:W,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.tickerColorTransition||0,attributeName:"tickerColorTransition",setAttributes:i})]})})]})})})]})})});var et}nI.propTypes={},nI.defaultProps={};const sI={UU:"ablocks/news-ticker",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},stickyLabel:{type:"string",default:"Breaking News"},stickyLabelTag:{type:"string",default:"div"},labelPosition:{type:"string",default:"left"},queryType:{type:"string",default:"customText"},selectedPosts:{type:"array",default:[]},postLink:{type:"boolean",default:!1},selectedPages:{type:"array",default:[]},pageLink:{type:"boolean",default:!1},customText:{type:"string",default:""},lists:{type:"array",
4202 4214 default:[{id:0,text:"Stay updated with the latest trends!",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},isOpen:!1}]},markerType:{type:"string",default:"icon"},listIconsClasses:{type:"array",default:[]},slideDirection:{type:"string",default:"ltr"},slideSpeed:{type:"number",default:2},labelColor:{type:"string",default:"white"},labelBackgroundColor:{type:"string",default:"black"},labelColorH:{type:"string",default:""},labelBackgroundColorH:{type:"string",default:""},labelColorTransition:{type:"number",default:""},tickerColor:{type:"string",default:"black"},tickerBgColor:{type:"string",default:"#E5E5E6"},tickerColorH:{type:"string",default:""},tickerBgColorH:{type:"string",default:""},tickerColorTransition:{type:"number",default:""},tickerType:{type:"string",default:"marquee"},navigatorBgColor:{type:"string",default:""},navigatorColor:{type:"string",default:"#000000"},showTickerNavigator:{type:"boolean",default:!1},
4203 4215 navigatorPosition:{type:"string",default:"right"},tickerListStyle:{type:"string",default:"none"},isPauseOnOver:{type:"boolean",default:!1},isPositionSticky:{type:"boolean",default:!1},stickyPosition:{type:"string",default:"up"},isShowLabel:{type:"boolean",default:!0},tickerLabelShape:{type:"string",default:"normal"},labelPadding:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},isShowTime:{type:"boolean",default:!1},tickerHeight:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",
4204 4216 lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},labelTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},labelTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},tickerTypographyGlobal:{type:"string",default:""},tickerTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",
4205 4217 lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},tickerTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},tickerTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",
@@ -4209,35 +4221,35 @@
4209 4221 imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",
4210 4222 imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,
4211 4223 scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",
4212 4224 skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",
4213 -animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},jN=class{constructor(t,e={}){this.marqueeElement=t,
4225 +animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},rI=class{constructor(t,e={}){this.marqueeElement=t,
4214 4226 this.marqueeElement&&(this.marqueeContent=this.marqueeElement.querySelector(".ablocks-block-news-ticker_marquee--content"),this.slideSpeed=e.slideSpeed||Number(this.marqueeElement.getAttribute("data-slide-speed"))||1,this.slideDirection=e.slideDirection||this.marqueeElement.getAttribute("data-slide-direction")||"ltr",this.isPauseOnOver=e.isPauseOnOver||!1,this.currentPosition="rtl"===this.slideDirection?-this.marqueeContent.offsetWidth:0,this.isPaused=!1,this.updateDimensions(),this.animationFrameId=null,this.handlePause=this.pauseAnimation.bind(this),this.handleResume=this.resumeAnimation.bind(this),this.handleTogglePause=this.togglePause.bind(this),this.handleNext=this.moveNext.bind(this),this.handlePrev=this.movePrev.bind(this),this.handleResize=this.updateDimensions.bind(this),this.bindEvents(),this.startAnimation(),window.addEventListener("resize",this.handleResize))}bindEvents(){this.isPauseOnOver&&(this.marqueeContent.addEventListener("mouseenter",this.handlePause),
4215 4227 this.marqueeContent.addEventListener("mouseleave",this.handleResume));const t=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__pause");t&&t.addEventListener("click",this.handleTogglePause);const e=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__next");e&&e.addEventListener("click",this.handleNext);const i=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__prev");i&&i.addEventListener("click",this.handlePrev)}removeHoverEvents(){this.marqueeContent.removeEventListener("mouseenter",this.handlePause),this.marqueeContent.removeEventListener("mouseleave",this.handleResume)}updateDimensions(){this.contentWidth=this.marqueeContent.offsetWidth,this.parentWidth=this.marqueeContent.parentElement.offsetWidth}startAnimation(){const t=()=>{this.isPaused||("rtl"===this.slideDirection?(this.currentPosition+=this.slideSpeed,
4216 4228 this.currentPosition>this.parentWidth&&(this.currentPosition=-this.contentWidth)):(this.currentPosition-=this.slideSpeed,this.currentPosition<-this.contentWidth&&(this.currentPosition=this.parentWidth)),this.marqueeContent.style.transform=`translateX(${this.currentPosition}px)`),this.animationFrameId=window.requestAnimationFrame(t)};this.animationFrameId=window.requestAnimationFrame(t)}pauseAnimation(){this.isPaused=!0,window.cancelAnimationFrame(this.animationFrameId)}resumeAnimation(){this.isPaused&&(this.isPaused=!1,this.startAnimation())}togglePause(){this.isPaused?this.resumeAnimation():this.pauseAnimation()}moveNext(){"rtl"===this.slideDirection?(this.currentPosition+=50,this.currentPosition>this.parentWidth&&(this.currentPosition=-this.contentWidth)):(this.currentPosition-=50,this.currentPosition<-this.contentWidth&&(this.currentPosition=this.parentWidth)),this.marqueeContent.style.transform=`translateX(${this.currentPosition}px)`}movePrev(){
4217 -"rtl"===this.slideDirection?(this.currentPosition-=50,this.currentPosition<-this.contentWidth&&(this.currentPosition=this.parentWidth)):(this.currentPosition+=50,this.currentPosition>this.parentWidth&&(this.currentPosition=-this.contentWidth)),this.marqueeContent.style.transform=`translateX(${this.currentPosition}px)`}destroy(){this.removeHoverEvents();const t=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__pause");t&&t.removeEventListener("click",this.handleTogglePause);const e=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__next");e&&e.removeEventListener("click",this.handleNext);const i=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__prev");i&&i.removeEventListener("click",this.handlePrev),window.cancelAnimationFrame(this.animationFrameId),window.removeEventListener("resize",this.handleResize)}};function wN(t){
4218 -const{attributes:e,setAttributes:i,className:o=""}=t,{block_id:a,slideSpeed:n,stickyLabel:s,stickyLabelTag:r,slideDirection:b,selectedPosts:c,selectedPages:d,isPauseOnOver:u,queryType:p,lists:m,_position:h,_width:g,postLink:f,pageLink:y,navigatorColor:T}=e;let H=0;(0,Yt.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${a}`);let e;return t&&(e=new jN(t,{slideSpeed:n,slideDirection:b,isPauseOnOver:u,currentPosition:H})),()=>{e&&(H=e.currentPosition,e.destroy())}},[u,n,b,a]),(0,Yt.useEffect)(()=>{"posts"===p?i({selectedPages:[]}):"pages"===p&&i({selectedPosts:[]})},[p]);const x=(t,e)=>{const i="object"==typeof e&&null!==e?e:[e];return t?t.filter(t=>i.includes(t.id)):[]},k=x(MN("page"),d),v=x(MN("post"),c),_=t=>{const e=new Date(t),i=new Date,o=Math.floor((i-e)/1e3),a={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};for(const t in a){const e=Math.floor(o/a[t]);if(e>=1)return`${e} ${t}${e>1?"s":""} ago`}return"Just now"
4219 -},{positionType:R}=h,{widthType:S}=g,W=`${"fixed"===R?"ablocks-block-news-ticker--fixed":"absolute"===R?"ablocks-block-news-ticker--absolute":""} ${"auto"===S?"ablocks-block-news-ticker--auto":"default"===S?"ablocks-block-news-ticker--default":""}`,P=v.length>0||k.length>0||"customText"===p&&m.length>0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:a,name:UN.UU,attributes:{...e},className:W,children:(0,I.jsxs)("div",{className:`ablocks-block-news-ticker${o}`,"data-slide-speed":n,children:[(0,I.jsx)($c,{tagName:r,value:s,className:"ablocks-block-news-ticker__label",onChange:t=>i({stickyLabel:t}),placeholder:(0,L.__)("Breaking News","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-block-news-ticker__marquee",children:[(0,I.jsx)("div",{className:"ablocks-block-news-ticker_marquee--content",children:(0,I.jsxs)("ul",{className:"ablocks-block-news-ticker__list",children:["customText"===p&&(0,I.jsx)(I.Fragment,{children:m.map(t=>t.link?.href?.length>0?(0,I.jsx)("a",{
4229 +"rtl"===this.slideDirection?(this.currentPosition-=50,this.currentPosition<-this.contentWidth&&(this.currentPosition=this.parentWidth)):(this.currentPosition+=50,this.currentPosition>this.parentWidth&&(this.currentPosition=-this.contentWidth)),this.marqueeContent.style.transform=`translateX(${this.currentPosition}px)`}destroy(){this.removeHoverEvents();const t=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__pause");t&&t.removeEventListener("click",this.handleTogglePause);const e=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__next");e&&e.removeEventListener("click",this.handleNext);const i=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__prev");i&&i.removeEventListener("click",this.handlePrev),window.cancelAnimationFrame(this.animationFrameId),window.removeEventListener("resize",this.handleResize)}};function bI(t){
4230 +const{attributes:e,setAttributes:i,className:o=""}=t,{block_id:a,slideSpeed:n,stickyLabel:s,stickyLabelTag:r,slideDirection:b,selectedPosts:c,selectedPages:d,isPauseOnOver:u,queryType:p,lists:m,_position:h,_width:g,postLink:f,pageLink:y,navigatorColor:T}=e;let H=0;(0,Yt.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${a}`);let e;return t&&(e=new rI(t,{slideSpeed:n,slideDirection:b,isPauseOnOver:u,currentPosition:H})),()=>{e&&(H=e.currentPosition,e.destroy())}},[u,n,b,a]),(0,Yt.useEffect)(()=>{"posts"===p?i({selectedPages:[]}):"pages"===p&&i({selectedPosts:[]})},[p]);const x=(t,e)=>{const i="object"==typeof e&&null!==e?e:[e];return t?t.filter(t=>i.includes(t.id)):[]},k=x(JN("page"),d),v=x(JN("post"),c),_=t=>{const e=new Date(t),i=new Date,o=Math.floor((i-e)/1e3),a={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};for(const t in a){const e=Math.floor(o/a[t]);if(e>=1)return`${e} ${t}${e>1?"s":""} ago`}return"Just now"
4231 +},{positionType:R}=h,{widthType:S}=g,W=`${"fixed"===R?"ablocks-block-news-ticker--fixed":"absolute"===R?"ablocks-block-news-ticker--absolute":""} ${"auto"===S?"ablocks-block-news-ticker--auto":"default"===S?"ablocks-block-news-ticker--default":""}`,P=v.length>0||k.length>0||"customText"===p&&m.length>0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:a,name:sI.UU,attributes:{...e},className:W,children:(0,I.jsxs)("div",{className:`ablocks-block-news-ticker${o}`,"data-slide-speed":n,children:[(0,I.jsx)($c,{tagName:r,value:s,className:"ablocks-block-news-ticker__label",onChange:t=>i({stickyLabel:t}),placeholder:(0,L.__)("Breaking News","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-block-news-ticker__marquee",children:[(0,I.jsx)("div",{className:"ablocks-block-news-ticker_marquee--content",children:(0,I.jsxs)("ul",{className:"ablocks-block-news-ticker__list",children:["customText"===p&&(0,I.jsx)(I.Fragment,{children:m.map(t=>t.link?.href?.length>0?(0,I.jsx)("a",{
4220 4232 href:t.link.href,target:t.link.linkTarget?"_blank":"_self",rel:t.link.linkTarget?"noopener noreferrer":void 0,children:(0,I.jsx)("li",{className:"ablocks-block-news-ticker__custom-text",children:t.text})},`list-${t.id}`):(0,I.jsx)("li",{className:"ablocks-block-news-ticker__custom-text",children:t.text},`list-${t.id}`))}),P?(0,I.jsxs)(I.Fragment,{children:[v.map(t=>f?(0,I.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,I.jsxs)("li",{children:[t.title.rendered,(0,I.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`post-${t.id}`)},t.id):(0,I.jsxs)("li",{children:[t.title.rendered,(0,I.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`post-${t.id}`)),k.map(t=>y?(0,I.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,I.jsxs)("li",{children:[t.title.rendered,(0,I.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`page-${t.id}`)},t.id):(0,I.jsxs)("li",{
4221 4233 children:[t.title.rendered,(0,I.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`page-${t.id}`))]}):(0,I.jsx)("li",{children:(0,L.__)("No items selected","ablocks")})]})}),(0,I.jsxs)("div",{className:"ablocks-block-news-ticker--icons",children:[(0,I.jsx)("button",{"aria-label":(0,L.__)("Previous Button","ablocks"),title:(0,L.__)("Previous Button","ablocks"),className:"ablocks-block-news-ticker--icons__prev",children:(0,I.jsx)("svg",{width:"24",height:"50",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4222 4234 d:"M18.119 22.1309C18.2003 22.2122 18.2648 22.3087 18.3088 22.415C18.3528 22.5212 18.3755 22.635 18.3755 22.75C18.3755 22.865 18.3528 22.9788 18.3088 23.085C18.2648 23.1913 18.2003 23.2878 18.119 23.3691C18.0378 23.4504 17.9412 23.5148 17.835 23.5588C17.7288 23.6028 17.615 23.6255 17.5 23.6255C17.385 23.6255 17.2712 23.6028 17.165 23.5588C17.0587 23.5148 16.9622 23.4504 16.8809 23.3691L8.13092 14.6191C8.04957 14.5378 7.98503 14.4413 7.941 14.3351C7.89696 14.2288 7.8743 14.115 7.8743 14C7.8743 13.885 7.89696 13.7712 7.941 13.6649C7.98503 13.5587 8.04957 13.4622 8.13092 13.3809L16.8809 4.63094C17.0451 4.46675 17.2678 4.37451 17.5 4.37451C17.7322 4.37451 17.9549 4.46675 18.119 4.63094C18.2832 4.79512 18.3755 5.01781 18.3755 5.25C18.3755 5.48219 18.2832 5.70488 18.119 5.86906L9.98702 14L18.119 22.1309Z",fill:(0,Hs.qD)(T)})})}),(0,I.jsx)("button",{"aria-label":(0,L.__)("Pause Button","ablocks"),title:(0,L.__)("Pause Button","ablocks"),className:"ablocks-block-news-ticker--icons__pause",
4223 4235 children:(0,I.jsxs)("svg",{width:"28",height:"50",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("rect",{x:"9",y:"4",width:"1.55556",height:"19.25",fill:(0,Hs.qD)(T)}),(0,I.jsx)("rect",{x:"18.2",y:"4",width:"1.55556",height:"19.25",fill:(0,Hs.qD)(T)})]})}),(0,I.jsx)("button",{"aria-label":(0,L.__)("Next Button","ablocks"),title:(0,L.__)("Next Button","ablocks"),className:"ablocks-block-news-ticker--icons__next",children:(0,I.jsx)("svg",{width:"24",height:"50",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4224 -d:"M19.8691 14.6191L11.1191 23.3691C11.0378 23.4504 10.9413 23.5148 10.835 23.5588C10.7288 23.6028 10.615 23.6255 10.5 23.6255C10.385 23.6255 10.2712 23.6028 10.165 23.5588C10.0587 23.5148 9.96223 23.4504 9.88094 23.3691C9.79964 23.2878 9.73515 23.1913 9.69115 23.085C9.64716 22.9788 9.62451 22.865 9.62451 22.75C9.62451 22.635 9.64716 22.5212 9.69115 22.415C9.73515 22.3087 9.79964 22.2122 9.88094 22.1309L18.013 14L9.88094 5.86906C9.71675 5.70488 9.62451 5.48219 9.62451 5.25C9.62451 5.01781 9.71675 4.79512 9.88094 4.63094C10.0451 4.46675 10.2678 4.37451 10.5 4.37451C10.7322 4.37451 10.9549 4.46675 11.1191 4.63094L19.8691 13.3809C19.9504 13.4622 20.015 13.5587 20.059 13.6649C20.103 13.7712 20.1257 13.885 20.1257 14C20.1257 14.115 20.103 14.2288 20.059 14.3351C20.015 14.4413 19.9504 14.5378 19.8691 14.6191Z",fill:(0,Hs.qD)(T)})})})]})]})]})})})}wN.propTypes={},wN.defaultProps={};const zN=(t,e="")=>{const{labelPosition:i,isShowLabel:o,tickerLabelShape:a}=t,l={...(0,Eb.qD)({
4225 -attributeValue:t?.labelPadding,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"padding",device:e})};switch("right"===i?(l.right="0",l.left="auto"):(l.left="0",l.right="auto"),l.display=o?"flex":"none",a){case"small":l["clip-path"]="polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%)";break;case"medium":l["clip-path"]="polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%)";break;case"large":l["clip-path"]="polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%)";break;default:l["clip-path"]=""}const n=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.labelColor),background:(0,Hs.qD)(t?.labelBackgroundColor),...l,...(0,U.qD)(t?.labelTypography,e,n),...(0,Mc.qD)(t?.labelTextStroke,e),...(0,fc.qD)(t?.labelTextShadow)}},CN=t=>({color:(0,Hs.qD)(t?.labelColorH),background:(0,Hs.qD)(t?.labelBackgroundColorH),...(0,Eb.qD)({attributeValue:t?.labelColorTransition,attributeObjectKey:"value",defaultValue:0,
4226 -unitDefaultValue:"s",property:"transition-duration"})}),AN=(t,e="")=>{const{tickerHeight:i,isPositionSticky:o,stickyPosition:a}=t,l=(0,M.Zy)(i,{value:50,valueUnit:"px"}),n={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"height",device:e})};return o&&"up"===a?(n.position="fixed",n.top="32px",n.left="0",n.width="100%"):o&&"down"===a&&(n.position="fixed",n.bottom="0",n.left="0",n.width="100%"),n},LN=t=>({background:(0,Hs.qD)(t?.navigatorBgColor)}),DN=(t,e)=>{const i={};switch(t?.tickerListStyle){case"none":default:i["list-style"]="none";break;case"circle":i["list-style"]="circle";break;case"box":i["list-style"]="square"}const o=t.tickerTypographyGlobal?t.tickerTypographyGlobal:"";return{...i,...(0,U.qD)(t?.tickerTypography,e,o),...(0,Mc.qD)(t?.tickerTextStroke,e),...(0,fc.qD)(t?.tickerTextShadow)}};(0,M.xV)(UN.UU)&&(0,o.registerBlockType)(UN.UU,{attributes:UN.uK,edit:function(t){
4227 -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__label",zN(i),zN(i,"Tablet"),zN(i,"Mobile"),e(t=>zN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__label:hover",CN(i),CN(i),CN(i),e(t=>CN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__marquee",(t=>({color:(0,Hs.qD)(t?.tickerColor),background:(0,Hs.qD)(t?.tickerBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__marquee:hover",(t=>({color:(0,Hs.qD)(t?.tickerColorH),background:(0,Hs.qD)(t?.tickerBgColorH),...(0,Eb.qD)({attributeValue:t?.tickerColorTransition,
4228 -attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker",AN(i),AN(i,"Tablet"),AN(i,"Mobile"),e(t=>AN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons",(t=>{const e={};return e.display=t?.showTickerNavigator?"flex":"none","right"===t?.navigatorPosition?(e.right="0",e.left="auto"):(e.left="0",e.right="auto"),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__prev",LN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__next",LN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__pause",LN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__list",DN(i),DN(i,"Tablet"),DN(i,"Mobile"),e(t=>DN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--date",(t=>{const e={};return e.display=t?.isShowTime?"inline":"none",e})(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,
4229 -I.jsx)("style",{children:s}),e&&(0,I.jsx)(PN,{...t}),(0,I.jsx)(wN,{...t})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--news-ticker"}),save:()=>null});var NN=i(60273);const IN=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"arrow-right"},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:"align-center"}],VN=[{label:(0,L.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("end","ablocks"),value:"end",icon:"right"},{label:(0,L.__)("space-between","ablocks"),value:"space-between",icon:"justify"}],ON=[{label:(0,L.__)("Checkout","ablocks"),value:"_xclick"},{label:(0,L.__)("Donation","ablocks"),value:"_donations"},{label:(0,L.__)("Subscription","ablocks"),value:"_xclick-subscriptions"}],YN=[{label:(0,L.__)("USD","ablocks"),value:"USD"},{label:(0,
4236 +d:"M19.8691 14.6191L11.1191 23.3691C11.0378 23.4504 10.9413 23.5148 10.835 23.5588C10.7288 23.6028 10.615 23.6255 10.5 23.6255C10.385 23.6255 10.2712 23.6028 10.165 23.5588C10.0587 23.5148 9.96223 23.4504 9.88094 23.3691C9.79964 23.2878 9.73515 23.1913 9.69115 23.085C9.64716 22.9788 9.62451 22.865 9.62451 22.75C9.62451 22.635 9.64716 22.5212 9.69115 22.415C9.73515 22.3087 9.79964 22.2122 9.88094 22.1309L18.013 14L9.88094 5.86906C9.71675 5.70488 9.62451 5.48219 9.62451 5.25C9.62451 5.01781 9.71675 4.79512 9.88094 4.63094C10.0451 4.46675 10.2678 4.37451 10.5 4.37451C10.7322 4.37451 10.9549 4.46675 11.1191 4.63094L19.8691 13.3809C19.9504 13.4622 20.015 13.5587 20.059 13.6649C20.103 13.7712 20.1257 13.885 20.1257 14C20.1257 14.115 20.103 14.2288 20.059 14.3351C20.015 14.4413 19.9504 14.5378 19.8691 14.6191Z",fill:(0,Hs.qD)(T)})})})]})]})]})})})}bI.propTypes={},bI.defaultProps={};const cI=(t,e="")=>{const{labelPosition:i,isShowLabel:o,tickerLabelShape:a}=t,l={...(0,Eb.qD)({
4237 +attributeValue:t?.labelPadding,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"padding",device:e})};switch("right"===i?(l.right="0",l.left="auto"):(l.left="0",l.right="auto"),l.display=o?"flex":"none",a){case"small":l["clip-path"]="polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%)";break;case"medium":l["clip-path"]="polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%)";break;case"large":l["clip-path"]="polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%)";break;default:l["clip-path"]=""}const n=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.labelColor),background:(0,Hs.qD)(t?.labelBackgroundColor),...l,...(0,U.qD)(t?.labelTypography,e,n),...(0,Mc.qD)(t?.labelTextStroke,e),...(0,fc.qD)(t?.labelTextShadow)}},dI=t=>({color:(0,Hs.qD)(t?.labelColorH),background:(0,Hs.qD)(t?.labelBackgroundColorH),...(0,Eb.qD)({attributeValue:t?.labelColorTransition,attributeObjectKey:"value",defaultValue:0,
4238 +unitDefaultValue:"s",property:"transition-duration"})}),uI=(t,e="")=>{const{tickerHeight:i,isPositionSticky:o,stickyPosition:a}=t,l=(0,M.Zy)(i,{value:50,valueUnit:"px"}),n={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"height",device:e})};return o&&"up"===a?(n.position="fixed",n.top="32px",n.left="0",n.width="100%"):o&&"down"===a&&(n.position="fixed",n.bottom="0",n.left="0",n.width="100%"),n},pI=t=>({background:(0,Hs.qD)(t?.navigatorBgColor)}),mI=(t,e)=>{const i={};switch(t?.tickerListStyle){case"none":default:i["list-style"]="none";break;case"circle":i["list-style"]="circle";break;case"box":i["list-style"]="square"}const o=t.tickerTypographyGlobal?t.tickerTypographyGlobal:"";return{...i,...(0,U.qD)(t?.tickerTypography,e,o),...(0,Mc.qD)(t?.tickerTextStroke,e),...(0,fc.qD)(t?.tickerTextShadow)}};(0,M.xV)(sI.UU)&&(0,o.registerBlockType)(sI.UU,{attributes:sI.uK,edit:function(t){
4239 +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__label",cI(i),cI(i,"Tablet"),cI(i,"Mobile"),e(t=>cI(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__label:hover",dI(i),dI(i),dI(i),e(t=>dI(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__marquee",(t=>({color:(0,Hs.qD)(t?.tickerColor),background:(0,Hs.qD)(t?.tickerBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__marquee:hover",(t=>({color:(0,Hs.qD)(t?.tickerColorH),background:(0,Hs.qD)(t?.tickerBgColorH),...(0,Eb.qD)({attributeValue:t?.tickerColorTransition,
4240 +attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker",uI(i),uI(i,"Tablet"),uI(i,"Mobile"),e(t=>uI(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons",(t=>{const e={};return e.display=t?.showTickerNavigator?"flex":"none","right"===t?.navigatorPosition?(e.right="0",e.left="auto"):(e.left="0",e.right="auto"),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__prev",pI(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__next",pI(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__pause",pI(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__list",mI(i),mI(i,"Tablet"),mI(i,"Mobile"),e(t=>mI(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--date",(t=>{const e={};return e.display=t?.isShowTime?"inline":"none",e})(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,
4241 +I.jsx)("style",{children:s}),e&&(0,I.jsx)(nI,{...t}),(0,I.jsx)(bI,{...t})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--news-ticker"}),save:()=>null});var hI=i(60273);const gI=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"arrow-right"},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:"align-center"}],fI=[{label:(0,L.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("end","ablocks"),value:"end",icon:"right"},{label:(0,L.__)("space-between","ablocks"),value:"space-between",icon:"justify"}],yI=[{label:(0,L.__)("Checkout","ablocks"),value:"_xclick"},{label:(0,L.__)("Donation","ablocks"),value:"_donations"},{label:(0,L.__)("Subscription","ablocks"),value:"_xclick-subscriptions"}],TI=[{label:(0,L.__)("USD","ablocks"),value:"USD"},{label:(0,
4230 4242 L.__)("AUD","ablocks"),value:"AUD"},{label:(0,L.__)("BRL","ablocks"),value:"BRL"},{label:(0,L.__)("CAD","ablocks"),value:"CAD"},{label:(0,L.__)("CNY","ablocks"),value:"CNY"},{label:(0,L.__)("CZK","ablocks"),value:"CZK"},{label:(0,L.__)("DKK","ablocks"),value:"DKK"},{label:(0,L.__)("EUR","ablocks"),value:"EUR"},{label:(0,L.__)("HKD","ablocks"),value:"HKD"},{label:(0,L.__)("HUF","ablocks"),value:"HUF"},{label:(0,L.__)("ILS","ablocks"),value:"ILS"},{label:(0,L.__)("JPY","ablocks"),value:"JPY"},{label:(0,L.__)("MYR","ablocks"),value:"MYR"},{label:(0,L.__)("MXN","ablocks"),value:"MXN"},{label:(0,L.__)("TWD","ablocks"),value:"TWD"},{label:(0,L.__)("NZD","ablocks"),value:"NZD"},{label:(0,L.__)("NOK","ablocks"),value:"NOK"},{label:(0,L.__)("PHP","ablocks"),value:"PHP"},{label:(0,L.__)("PLN","ablocks"),value:"PLN"},{label:(0,L.__)("GBP","ablocks"),value:"GBP"},{label:(0,L.__)("SGD","ablocks"),value:"SGD"},{label:(0,L.__)("SEK","ablocks"),value:"SEK"},{label:(0,L.__)("CHF","ablocks"),value:"CHF"
4231 -},{label:(0,L.__)("THB","ablocks"),value:"THB"}],XN=[{label:(0,L.__)("Daily","ablocks"),value:"D"},{label:(0,L.__)("Weekly","ablocks"),value:"W"},{label:(0,L.__)("Monthly","ablocks"),value:"M"},{label:(0,L.__)("Yearly","ablocks"),value:"Y"}];function BN(t){const{attributes:e,setAttributes:i}=t,{buttonType:o,text:a,position:n,alignment:s,buttonSize:r,textShadow:b,typography:c,textColor:d,textColorH:u,background:p,backgroundH:m,padding:h,iconPosition:g,showIcon:f,iconSpace:y,paypalAccount:T,trxType:H,itemName:M,price:x,currency:k,quantity:v,shippingPrice:_,tax:R,isAmountFixed:S,isAutoRenewal:W,billingCycle:P,redirectionAfterPayment:U,sandboxMode:j,sandboxEmail:w,openInNewTab:z,customMessage:C,errorMessage:A}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-paypal-button/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Pricing & Payments","ablocks"),initialOpen:!0,
4232 -children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("PayPal Account","ablocks"),attributeName:"paypalAccount",attributeValue:T,setAttributes:i,placeholder:"[email protected]",isInline:!1,disableDynamicContent:!0}),(0,I.jsx)("span",{className:"ablocks-paypal-settings-msg",children:(0,L.__)("Transactions through your PayPal button will be registered to this account.","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Transaction Type","ablocks"),options:ON,isResponsive:!1,attributeValue:H,attributeName:"trxType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Item Name","ablocks"),attributeName:"itemName",attributeValue:M,setAttributes:i,isInline:!1,disableDynamicContent:!0}),("_xclick"===H||"_xclick-subscriptions"===H)&&(0,I.jsx)(As,{label:(0,L.__)("Price","ablocks"),attributeName:"price",attributeValue:x,setAttributes:i,isInline:!0}),"_donations"===H&&S&&(0,I.jsx)(As,{label:(0,L.__)("Amount","ablocks"),attributeName:"price",attributeValue:x,
4233 -setAttributes:i,isInline:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Currency","ablocks"),options:YN,isResponsive:!1,attributeValue:k||"usd",attributeName:"currency",setAttributes:i}),"_xclick"===H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Quantity","ablocks"),attributeName:"quantity",attributeValue:v,setAttributes:i,isInline:!0}),(0,I.jsx)(As,{label:(0,L.__)("Shipping Price","ablocks"),attributeName:"shippingPrice",attributeValue:_,setAttributes:i,isInline:!0}),(0,I.jsx)(As,{label:(0,L.__)("Tax (%)","ablocks"),attributeName:"tax",attributeValue:R,setAttributes:i,isInline:!0})]}),"_donations"===H&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ot,{label:(0,L.__)("Fixed Amount","ablocks"),attributeValue:S,setAttributes:i,attributeName:"isAmountFixed",isResponsive:!1})}),"_xclick-subscriptions"===H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Auto Renewal","ablocks"),attributeValue:W,setAttributes:i,attributeName:"isAutoRenewal",isResponsive:!1}),(0,I.jsx)(Ut,{
4234 -label:(0,L.__)("Billing Cycle","ablocks"),options:XN,isResponsive:!1,attributeValue:P||"M",attributeName:"billingCycle",setAttributes:i})]})]})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"position",attributeValue:n,setAttributes:i,options:IN,isInline:!1}),"stretch"===n?.value&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,options:VN,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"#032e82"},{label:(0,L.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,L.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,L.__)("Success","ablocks"),value:"#198754"},{label:(0,L.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,L.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:o||"Primary",
4243 +},{label:(0,L.__)("THB","ablocks"),value:"THB"}],HI=[{label:(0,L.__)("Daily","ablocks"),value:"D"},{label:(0,L.__)("Weekly","ablocks"),value:"W"},{label:(0,L.__)("Monthly","ablocks"),value:"M"},{label:(0,L.__)("Yearly","ablocks"),value:"Y"}];function MI(t){const{attributes:e,setAttributes:i}=t,{buttonType:o,text:a,position:n,alignment:s,buttonSize:r,textShadow:b,typography:c,textColor:d,textColorH:u,background:p,backgroundH:m,padding:h,iconPosition:g,showIcon:f,iconSpace:y,paypalAccount:T,trxType:H,itemName:M,price:x,currency:k,quantity:v,shippingPrice:_,tax:R,isAmountFixed:S,isAutoRenewal:W,billingCycle:P,redirectionAfterPayment:U,sandboxMode:j,sandboxEmail:w,openInNewTab:z,customMessage:C,errorMessage:A}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-paypal-button/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Pricing & Payments","ablocks"),initialOpen:!0,
4244 +children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("PayPal Account","ablocks"),attributeName:"paypalAccount",attributeValue:T,setAttributes:i,placeholder:"[email protected]",isInline:!1,disableDynamicContent:!0}),(0,I.jsx)("span",{className:"ablocks-paypal-settings-msg",children:(0,L.__)("Transactions through your PayPal button will be registered to this account.","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Transaction Type","ablocks"),options:yI,isResponsive:!1,attributeValue:H,attributeName:"trxType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Item Name","ablocks"),attributeName:"itemName",attributeValue:M,setAttributes:i,isInline:!1,disableDynamicContent:!0}),("_xclick"===H||"_xclick-subscriptions"===H)&&(0,I.jsx)(As,{label:(0,L.__)("Price","ablocks"),attributeName:"price",attributeValue:x,setAttributes:i,isInline:!0}),"_donations"===H&&S&&(0,I.jsx)(As,{label:(0,L.__)("Amount","ablocks"),attributeName:"price",attributeValue:x,
4245 +setAttributes:i,isInline:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Currency","ablocks"),options:TI,isResponsive:!1,attributeValue:k||"usd",attributeName:"currency",setAttributes:i}),"_xclick"===H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Quantity","ablocks"),attributeName:"quantity",attributeValue:v,setAttributes:i,isInline:!0}),(0,I.jsx)(As,{label:(0,L.__)("Shipping Price","ablocks"),attributeName:"shippingPrice",attributeValue:_,setAttributes:i,isInline:!0}),(0,I.jsx)(As,{label:(0,L.__)("Tax (%)","ablocks"),attributeName:"tax",attributeValue:R,setAttributes:i,isInline:!0})]}),"_donations"===H&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ot,{label:(0,L.__)("Fixed Amount","ablocks"),attributeValue:S,setAttributes:i,attributeName:"isAmountFixed",isResponsive:!1})}),"_xclick-subscriptions"===H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Auto Renewal","ablocks"),attributeValue:W,setAttributes:i,attributeName:"isAutoRenewal",isResponsive:!1}),(0,I.jsx)(Ut,{
4246 +label:(0,L.__)("Billing Cycle","ablocks"),options:HI,isResponsive:!1,attributeValue:P||"M",attributeName:"billingCycle",setAttributes:i})]})]})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"position",attributeValue:n,setAttributes:i,options:gI,isInline:!1}),"stretch"===n?.value&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,options:fI,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"#032e82"},{label:(0,L.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,L.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,L.__)("Success","ablocks"),value:"#198754"},{label:(0,L.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,L.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:o||"Primary",
4235 4247 attributeName:"buttonType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"text",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:r||"sm",attributeName:"buttonSize",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:f,setAttributes:i,attributeName:"showIcon",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:b,setAttributes:i,isResponsive:!1}),(0,
4236 4248 I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:d||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:p||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"backgroundH",attributeValue:m,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.transition||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,
4237 4249 I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),f&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:g||"left",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,
4238 -hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:y,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:NN.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Additional Options","ablocks"),initialOpen:!1,children:[(0,I.jsx)(zb,{label:(0,L.__)("Redirection After Payment","ablocks"),attributeName:"redirectionAfterPayment",attributeValue:U,setAttributes:i,placeholder:"https://ablocks.pro/",isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Sandbox Mode","ablocks"),attributeValue:j,setAttributes:i,attributeName:"sandboxMode",isResponsive:!1}),j&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Sandbox Email","ablocks"),attributeName:"sandboxEmail",attributeValue:w,setAttributes:i,isInline:!1}),(0,I.jsx)("span",{
4239 -className:"ablocks-paypal-settings-msg",children:"This is the email provided by PayPal when setting up a sandbox through your developer account. It allows you to simulate and test the purchase process."})]}),(0,I.jsx)(Ot,{label:(0,L.__)("Open in New Tab","ablocks"),attributeValue:z,setAttributes:i,attributeName:"openInNewTab",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Custom Message","ablocks"),attributeValue:C,setAttributes:i,attributeName:"customMessage",isResponsive:!1}),C&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMessage",attributeValue:A,setAttributes:i,isInline:!1,disableDynamicContent:!0})})]})]})})})}BN.propTypes={};const EN={UU:"ablocks/paypal-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#032e82"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{
4250 +hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:y,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:hI.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Additional Options","ablocks"),initialOpen:!1,children:[(0,I.jsx)(zb,{label:(0,L.__)("Redirection After Payment","ablocks"),attributeName:"redirectionAfterPayment",attributeValue:U,setAttributes:i,placeholder:"https://ablocks.pro/",isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Sandbox Mode","ablocks"),attributeValue:j,setAttributes:i,attributeName:"sandboxMode",isResponsive:!1}),j&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Sandbox Email","ablocks"),attributeName:"sandboxEmail",attributeValue:w,setAttributes:i,isInline:!1}),(0,I.jsx)("span",{
4251 +className:"ablocks-paypal-settings-msg",children:"This is the email provided by PayPal when setting up a sandbox through your developer account. It allows you to simulate and test the purchase process."})]}),(0,I.jsx)(Ot,{label:(0,L.__)("Open in New Tab","ablocks"),attributeValue:z,setAttributes:i,attributeName:"openInNewTab",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Custom Message","ablocks"),attributeValue:C,setAttributes:i,attributeName:"customMessage",isResponsive:!1}),C&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMessage",attributeValue:A,setAttributes:i,isInline:!1,disableDynamicContent:!0})})]})]})})})}MI.propTypes={};const xI={UU:"ablocks/paypal-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#032e82"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{
4240 4252 type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},paypalAccount:{type:"string",default:""},trxType:{type:"string",default:"_xclick"},itemName:{type:"string",default:""},sku:{type:"string",default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"1"},shippingPrice:{type:"number",default:"0"},tax:{type:"number",default:"0"},isAmountFixed:{type:"boolean",default:!1},isAutoRenewal:{type:"boolean",default:!0},billingCycle:{type:"string",default:"M"},redirectionAfterPayment:{type:"string",default:""},sandboxMode:{type:"boolean",default:!1},sandboxEmail:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{
4241 4253 type:"string",default:"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 384 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fab fa-paypal"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#ffffff"},iconBgColor:{
4242 4254 type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{
4243 4255 type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",
@@ -4251,18 +4263,18 @@
4251 4263 imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",
4252 4264 vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",
4253 4265 xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{
4254 4266 type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},
4255 -_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function FN(t){const{attributes:e,setAttributes:i}=t,{block_id:o,buttonSize:a,iconPosition:n,iconClass:r,showIcon:b,alignment:c,iconImageID:d,iconImageUrl:u}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:o,name:EN.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,
4256 -weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:s()("ablocks-paypal-button",`ablocks-paypal-button--${a}`,{[`ablocks-paypal-button--icon-${n}`]:r&&n||d&&u}),children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)($c,{tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-paypal-button__text",onChange:t=>i({text:t})})]})})]})}FN.propTypes={};const qN=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},$N=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),l.background=t?.background?(0,Hs.qD)(t?.background):t?.buttonType;const n=a["valueUnit"+e]||"px";""!==a["value"+e]&&void 0!==a["value"+e]&&(l["column-gap"]=`${a["value"+e]}${n}`);const s=(0,M.Zy)(t?.padding,{unit:"px"}),r=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),b=(0,M.Zy)(t.typography,{
4257 -weight:"400"}),d=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,Hs.qD)(t?.textColor),...(0,y.qD)(r,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(s,"padding",e),...(0,U.qD)(b,e,d),...(0,c.qD)(t?.padding,"padding",e)}},GN=(t,e="")=>{const i={};t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.textColorH),background:(0,Hs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},ZN=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)}),KN=t=>({...(0,fc.qD)(t?.textShadow)});function JN(t){
4258 -const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,iconImageID:r,iconImageUrl:b,paypalAccount:c,trxType:d,itemName:u,price:p,currency:m,quantity:h,shippingPrice:g,tax:f,isAmountFixed:y,isAutoRenewal:T,billingCycle:H,redirectionAfterPayment:M,sandboxMode:x,openInNewTab:k,customMessage:v,errorMessage:_}=e,R=x?"https://www.sandbox.paypal.com/cgi-bin/webscr":"https://www.paypal.com/cgi-bin/webscr";return(0,I.jsx)(sc,{blockId:i,name:EN.UU,attributes:e,children:(0,I.jsxs)("form",{action:R,method:"post",target:k?"_blank":"_self",className:"ablocks-paypal-button__form","data-ablocks__error-msg":_,children:[(0,I.jsx)("input",{type:"hidden",name:"business",value:c}),(0,I.jsx)("input",{type:"hidden",name:"cmd",value:d}),(0,I.jsx)("input",{type:"hidden",name:"item_name",value:u}),(0,I.jsx)("input",{type:"hidden",name:"custom",value:v}),(0,I.jsx)("input",{type:"hidden",name:"currency_code",value:m}),(0,I.jsx)("input",{type:"hidden",name:"return",value:M
4267 +_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function kI(t){const{attributes:e,setAttributes:i}=t,{block_id:o,buttonSize:a,iconPosition:n,iconClass:r,showIcon:b,alignment:c,iconImageID:d,iconImageUrl:u}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:o,name:xI.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,
4268 +weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:s()("ablocks-paypal-button",`ablocks-paypal-button--${a}`,{[`ablocks-paypal-button--icon-${n}`]:r&&n||d&&u}),children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)($c,{tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-paypal-button__text",onChange:t=>i({text:t})})]})})]})}kI.propTypes={};const vI=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},_I=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),l.background=t?.background?(0,Hs.qD)(t?.background):t?.buttonType;const n=a["valueUnit"+e]||"px";""!==a["value"+e]&&void 0!==a["value"+e]&&(l["column-gap"]=`${a["value"+e]}${n}`);const s=(0,M.Zy)(t?.padding,{unit:"px"}),r=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),b=(0,M.Zy)(t.typography,{
4269 +weight:"400"}),d=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,Hs.qD)(t?.textColor),...(0,y.qD)(r,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(s,"padding",e),...(0,U.qD)(b,e,d),...(0,c.qD)(t?.padding,"padding",e)}},RI=(t,e="")=>{const i={};t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.textColorH),background:(0,Hs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},SI=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)}),WI=t=>({...(0,fc.qD)(t?.textShadow)});function PI(t){
4270 +const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,iconImageID:r,iconImageUrl:b,paypalAccount:c,trxType:d,itemName:u,price:p,currency:m,quantity:h,shippingPrice:g,tax:f,isAmountFixed:y,isAutoRenewal:T,billingCycle:H,redirectionAfterPayment:M,sandboxMode:x,openInNewTab:k,customMessage:v,errorMessage:_}=e,R=x?"https://www.sandbox.paypal.com/cgi-bin/webscr":"https://www.paypal.com/cgi-bin/webscr";return(0,I.jsx)(sc,{blockId:i,name:xI.UU,attributes:e,children:(0,I.jsxs)("form",{action:R,method:"post",target:k?"_blank":"_self",className:"ablocks-paypal-button__form","data-ablocks__error-msg":_,children:[(0,I.jsx)("input",{type:"hidden",name:"business",value:c}),(0,I.jsx)("input",{type:"hidden",name:"cmd",value:d}),(0,I.jsx)("input",{type:"hidden",name:"item_name",value:u}),(0,I.jsx)("input",{type:"hidden",name:"custom",value:v}),(0,I.jsx)("input",{type:"hidden",name:"currency_code",value:m}),(0,I.jsx)("input",{type:"hidden",name:"return",value:M
4259 4271 }),"_xclick"===d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{type:"hidden",name:"amount",value:p}),(0,I.jsx)("input",{type:"hidden",name:"quantity",value:h}),(0,I.jsx)("input",{type:"hidden",name:"shipping",value:g})]}),"_donations"===d&&(0,I.jsx)(I.Fragment,{children:y?(0,I.jsx)("input",{type:"hidden",name:"amount",value:p}):(0,I.jsx)("input",{type:"hidden",name:"amount",value:""})}),"_xclick-subscriptions"===d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{type:"hidden",name:"a3",value:p}),(0,I.jsx)("input",{type:"hidden",name:"p3",value:"1"}),(0,I.jsx)("input",{type:"hidden",name:"t3",value:H}),(0,I.jsx)("input",{type:"hidden",name:"src",value:T}),(0,I.jsx)("input",{type:"hidden",name:"no_note",value:"1"})]}),f&&(0,I.jsx)("input",{type:"hidden",name:"tax_rate",value:f}),(0,I.jsxs)("button",{className:s()("ablocks-paypal-button",`ablocks-paypal-button--${o}`,{[`ablocks-paypal-button--icon-${a}`]:l&&a||r&&b}),type:"submit",children:[n&&(0,I.jsx)(Fd,{attributes:e}),(0,
4260 -I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-paypal-button__text",value:e.text})]})]})})}JN.propTypes={};function QN(t){const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,iconImageID:r,iconImageUrl:b,paypalAccount:c,trxType:d,itemName:u,price:p,currency:m,quantity:h,shippingPrice:g,tax:f,isAmountFixed:y,isAutoRenewal:T,billingCycle:H,redirectionAfterPayment:M,sandboxMode:x,openInNewTab:k,customMessage:v,errorMessage:_}=e,R=x?"https://www.sandbox.paypal.com/cgi-bin/webscr":"https://www.paypal.com/cgi-bin/webscr";return(0,I.jsx)(hc,{blockId:i,name:"ablocks/paypal-button",attributes:e,children:(0,I.jsxs)("form",{action:R,method:"post",target:k?"_blank":"_self",className:"ablocks-paypal-button__form","data-ablocks__error-msg":_,children:[(0,I.jsx)("input",{type:"hidden",name:"business",value:c}),(0,I.jsx)("input",{type:"hidden",name:"cmd",value:d}),(0,I.jsx)("input",{type:"hidden",name:"item_name",value:u}),(0,I.jsx)("input",{type:"hidden",
4272 +I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-paypal-button__text",value:e.text})]})]})})}PI.propTypes={};function UI(t){const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,iconImageID:r,iconImageUrl:b,paypalAccount:c,trxType:d,itemName:u,price:p,currency:m,quantity:h,shippingPrice:g,tax:f,isAmountFixed:y,isAutoRenewal:T,billingCycle:H,redirectionAfterPayment:M,sandboxMode:x,openInNewTab:k,customMessage:v,errorMessage:_}=e,R=x?"https://www.sandbox.paypal.com/cgi-bin/webscr":"https://www.paypal.com/cgi-bin/webscr";return(0,I.jsx)(hc,{blockId:i,name:"ablocks/paypal-button",attributes:e,children:(0,I.jsxs)("form",{action:R,method:"post",target:k?"_blank":"_self",className:"ablocks-paypal-button__form","data-ablocks__error-msg":_,children:[(0,I.jsx)("input",{type:"hidden",name:"business",value:c}),(0,I.jsx)("input",{type:"hidden",name:"cmd",value:d}),(0,I.jsx)("input",{type:"hidden",name:"item_name",value:u}),(0,I.jsx)("input",{type:"hidden",
4261 4273 name:"custom",value:v}),(0,I.jsx)("input",{type:"hidden",name:"currency_code",value:m}),(0,I.jsx)("input",{type:"hidden",name:"return",value:M}),"_xclick"===d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{type:"hidden",name:"amount",value:p}),(0,I.jsx)("input",{type:"hidden",name:"quantity",value:h}),(0,I.jsx)("input",{type:"hidden",name:"shipping",value:g})]}),"_donations"===d&&(0,I.jsx)(I.Fragment,{children:y?(0,I.jsx)("input",{type:"hidden",name:"amount",value:p}):(0,I.jsx)("input",{type:"hidden",name:"amount",value:""})}),"_xclick-subscriptions"===d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{type:"hidden",name:"a3",value:p}),(0,I.jsx)("input",{type:"hidden",name:"p3",value:"1"}),(0,I.jsx)("input",{type:"hidden",name:"t3",value:H}),(0,I.jsx)("input",{type:"hidden",name:"src",value:T}),(0,I.jsx)("input",{type:"hidden",name:"no_note",value:"1"})]}),f&&(0,I.jsx)("input",{type:"hidden",name:"tax_rate",value:f}),(0,I.jsxs)("button",{
4262 -className:s()("ablocks-paypal-button",`ablocks-paypal-button--${o}`,{[`ablocks-paypal-button--icon-${a}`]:l&&a||r&&b}),type:"submit",children:[n&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-paypal-button__text",value:e.text})]})]})})}QN.propTypes={},(0,M.xV)(EN.UU)&&(0,o.registerBlockType)(EN.UU,{title:(0,L.__)("Paypal Button","ablocks"),attributes:EN.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--paypal"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{}
4263 -;return t.addClassStyles("{{WRAPPER}}",qN(i,""),qN(i,"Tablet"),qN(i,"Mobile"),e(t=>qN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button",$N(i),$N(i,"Tablet"),$N(i,"Mobile"),e(t=>$N(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button:hover",GN(i,""),GN(i,"Tablet"),GN(i,"Mobile"),e(t=>GN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",ZN(i),ZN(i),ZN(i),e(t=>ZN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button .ablocks-paypal-button__text",KN(i),KN(i),KN(i),e(t=>KN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),
4264 -t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(BN,{...t}),(0,I.jsx)(FN,{...t})]})},save:JN,deprecated:[{attributes:{block_id:{type:"string",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#032e82"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{
4274 +className:s()("ablocks-paypal-button",`ablocks-paypal-button--${o}`,{[`ablocks-paypal-button--icon-${a}`]:l&&a||r&&b}),type:"submit",children:[n&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-paypal-button__text",value:e.text})]})]})})}UI.propTypes={},(0,M.xV)(xI.UU)&&(0,o.registerBlockType)(xI.UU,{title:(0,L.__)("Paypal Button","ablocks"),attributes:xI.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--paypal"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{}
4275 +;return t.addClassStyles("{{WRAPPER}}",vI(i,""),vI(i,"Tablet"),vI(i,"Mobile"),e(t=>vI(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button",_I(i),_I(i,"Tablet"),_I(i,"Mobile"),e(t=>_I(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button:hover",RI(i,""),RI(i,"Tablet"),RI(i,"Mobile"),e(t=>RI(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",SI(i),SI(i),SI(i),e(t=>SI(i))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button .ablocks-paypal-button__text",WI(i),WI(i),WI(i),e(t=>WI(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),
4276 +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(MI,{...t}),(0,I.jsx)(kI,{...t})]})},save:PI,deprecated:[{attributes:{block_id:{type:"string",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#032e82"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{
4265 4277 type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},paypalAccount:{type:"string",default:""},trxType:{type:"string",default:"_xclick"},itemName:{type:"string",default:""},sku:{type:"string",default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"1"},shippingPrice:{type:"number",default:"0"},tax:{type:"number",default:"0"},isAmountFixed:{type:"boolean",default:!1},isAutoRenewal:{type:"boolean",default:!0},billingCycle:{type:"string",default:"M"},redirectionAfterPayment:{type:"string",default:""},sandboxMode:{type:"boolean",default:!1},sandboxEmail:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{type:"string",
4266 4278 default:"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 384 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fab fa-paypal"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#ffffff"},iconBgColor:{type:"string",
4267 4279 default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",
4268 4280 default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",
@@ -4275,13 +4287,13 @@
4275 4287 imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",
4276 4288 imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",
4277 4289 scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,
4278 4290 xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",
4279 -blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:t=>(0,I.jsx)(QN,{...t})}]});const tI=[{label:(0,L.__)("Viewport","ablocks"),value:"viewport"},{label:(0,L.__)("Click","ablocks"),value:"click"},{label:(0,L.__)("Hover","ablocks"),value:"hover"},{label:(0,L.__)("None","ablocks"),value:"none"}],eI=[{label:(0,L.__)("Animation","ablocks"),value:"animation"},{label:(0,L.__)("Section","ablocks"),value:"section"},{label:(0,L.__)("Parent Element","ablocks"),value:"parent"}],iI=[{label:(0,L.__)("Do Nothing","ablocks"),value:"nothing"},{label:(0,L.__)("Pause","ablocks"),value:"pause"},{label:(0,L.__)("Reverse","ablocks"),value:"reverse"}],oI=[{label:(0,L.__)("Upload","ablocks"),value:"upload"},{label:(0,
4280 -L.__)("Custom","ablocks"),value:"custom"}];function aI(t){const{attributes:e,setAttributes:o}=t,{animationSource:n,asset_url:s,custom_url:r,uploaded_json:b}=e,c=(0,a.useRef)(null);(0,a.useEffect)(()=>{let t,e=!0;return i.e(7530).then(i.t.bind(i,49891,23)).then(({default:i})=>{e&&c.current&&(t=i.loadAnimation({container:c.current,renderer:"svg",loop:!0,autoplay:!0,path:b?.url}))}),()=>{e=!1,t&&t.destroy()}},[b,c.current]);const d=()=>{if(b&&null===c.current){const t=b;o({uploaded_json:null}),o({uploaded_json:t})}};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:o,children:(0,I.jsxs)(V,{title:(0,L.__)("Animation Settings","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Wb,{label:(0,L.__)("Animation Source","ablocks"),setAttributes:o,attributeName:"animationSource",attributeValue:n,options:oI,isResponsive:!1,allowDeselect:!1}),"custom"===n&&(0,I.jsx)(Kl,{label:(0,L.__)("Custom JSON URL","ablocks"),
4291 +blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:t=>(0,I.jsx)(UI,{...t})}]});const jI=[{label:(0,L.__)("Viewport","ablocks"),value:"viewport"},{label:(0,L.__)("Click","ablocks"),value:"click"},{label:(0,L.__)("Hover","ablocks"),value:"hover"},{label:(0,L.__)("None","ablocks"),value:"none"}],wI=[{label:(0,L.__)("Animation","ablocks"),value:"animation"},{label:(0,L.__)("Section","ablocks"),value:"section"},{label:(0,L.__)("Parent Element","ablocks"),value:"parent"}],zI=[{label:(0,L.__)("Do Nothing","ablocks"),value:"nothing"},{label:(0,L.__)("Pause","ablocks"),value:"pause"},{label:(0,L.__)("Reverse","ablocks"),value:"reverse"}],CI=[{label:(0,L.__)("Upload","ablocks"),value:"upload"},{label:(0,
4292 +L.__)("Custom","ablocks"),value:"custom"}];function AI(t){const{attributes:e,setAttributes:o}=t,{animationSource:n,asset_url:s,custom_url:r,uploaded_json:b}=e,c=(0,a.useRef)(null);(0,a.useEffect)(()=>{let t,e=!0;return i.e(7530).then(i.t.bind(i,49891,23)).then(({default:i})=>{e&&c.current&&(t=i.loadAnimation({container:c.current,renderer:"svg",loop:!0,autoplay:!0,path:b?.url}))}),()=>{e=!1,t&&t.destroy()}},[b,c.current]);const d=()=>{if(b&&null===c.current){const t=b;o({uploaded_json:null}),o({uploaded_json:t})}};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:o,children:(0,I.jsxs)(V,{title:(0,L.__)("Animation Settings","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Wb,{label:(0,L.__)("Animation Source","ablocks"),setAttributes:o,attributeName:"animationSource",attributeValue:n,options:CI,isResponsive:!1,allowDeselect:!1}),"custom"===n&&(0,I.jsx)(Kl,{label:(0,L.__)("Custom JSON URL","ablocks"),
4281 4293 attributeName:"custom_url",attributeValue:r,setAttributes:o,placeholder:(0,L.__)("Enter Lottie JSON URL","ablocks"),isInline:!1}),"upload"===n&&(0,I.jsxs)("div",{className:"ablocks-media-upload-container",children:[e.uploaded_json&&(0,I.jsx)("div",{className:"ablocks-media-upload-container__inner-file-wrapper",children:(0,I.jsx)(Kl,{label:(0,L.__)("File Name","ablocks"),attributeName:"uploaded_json_display",attributeValue:e.uploaded_json.title,setAttributes:o,isInline:!1,readOnly:!0})}),(0,I.jsx)(D.MediaUploadCheck,{children:(0,I.jsx)(D.MediaUpload,{onSelect:t=>o({uploaded_json:t}),allowedTypes:["application/json"],render:({open:t})=>(0,I.jsxs)("div",{className:"ablocks-media-upload-container__inner",children:[(0,I.jsx)("div",{ref:c,style:{width:"100%",height:"100%"},children:d()}),e.uploaded_json?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.Button,{onClick:t,className:"ablocks-media-upload-container__inner-replace",children:(0,L.__)("Replace","ablocks")}),(0,I.jsx)("span",{
4282 -className:"ablocks-icon ablocks-icon--delete ablocks-media-upload-container__inner-remove",onClick:()=>o({uploaded_json:null})})]}):(0,I.jsx)(N.Button,{onClick:t,className:"ablocks-media-upload-container__inner-upload",children:(0,L.__)("Upload JSON File","ablocks")})]})})})]}),(0,I.jsx)(_t,{label:(0,L.__)("Animation Speed","ablocks"),min:0,max:3,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.animationSpeed||1,attributeName:"animationSpeed",setAttributes:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Trigger","ablocks"),options:tI,isResponsive:!1,attributeValue:e?.trigger||"viewport",attributeName:"trigger",setAttributes:o}),"hover"===e?.trigger&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Hover Area","ablocks"),options:eI,isResponsive:!1,attributeValue:e?.hoverArea||"animation",attributeName:"hoverArea",setAttributes:o}),(0,I.jsx)(Ut,{label:(0,L.__)("On Hover Out","ablocks"),options:iI,isResponsive:!1,attributeValue:e?.onHoverOut||"nothing",
4283 -attributeName:"onHoverOut",setAttributes:o})]}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Reverse in Finish","ablocks"),attributeValue:e?.reverse,setAttributes:o,attributeName:"reverse",isResponsive:!1}),!e?.loop&&(0,I.jsx)("span",{className:"ablocks-reverse-msg",children:(0,I.jsx)("p",{children:(0,L.__)("Reverse works when loop animation is true","ablocks")})}),(0,I.jsx)(Ot,{label:(0,L.__)("Loop Animation","ablocks"),attributeValue:e?.loop,setAttributes:o,attributeName:"loop",isResponsive:!1})]})})})})}aI.propTypes={},aI.defaultProps={};const lI={UU:"ablocks/lottie-animation",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:2},asset_url:{type:"string",default:""},custom_url:{type:"string",default:""},uploaded_json:{type:"object",default:""},trigger:{type:"string",default:"viewport"},hoverArea:{type:"string",default:"animation"},onHoverOut:{type:"string",default:"nothing"},reverse:{type:"boolean",default:!1},loop:{type:"boolean",default:!1},animationSpeed:{
4294 +className:"ablocks-icon ablocks-icon--delete ablocks-media-upload-container__inner-remove",onClick:()=>o({uploaded_json:null})})]}):(0,I.jsx)(N.Button,{onClick:t,className:"ablocks-media-upload-container__inner-upload",children:(0,L.__)("Upload JSON File","ablocks")})]})})})]}),(0,I.jsx)(_t,{label:(0,L.__)("Animation Speed","ablocks"),min:0,max:3,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.animationSpeed||1,attributeName:"animationSpeed",setAttributes:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Trigger","ablocks"),options:jI,isResponsive:!1,attributeValue:e?.trigger||"viewport",attributeName:"trigger",setAttributes:o}),"hover"===e?.trigger&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Hover Area","ablocks"),options:wI,isResponsive:!1,attributeValue:e?.hoverArea||"animation",attributeName:"hoverArea",setAttributes:o}),(0,I.jsx)(Ut,{label:(0,L.__)("On Hover Out","ablocks"),options:zI,isResponsive:!1,attributeValue:e?.onHoverOut||"nothing",
4295 +attributeName:"onHoverOut",setAttributes:o})]}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Reverse in Finish","ablocks"),attributeValue:e?.reverse,setAttributes:o,attributeName:"reverse",isResponsive:!1}),!e?.loop&&(0,I.jsx)("span",{className:"ablocks-reverse-msg",children:(0,I.jsx)("p",{children:(0,L.__)("Reverse works when loop animation is true","ablocks")})}),(0,I.jsx)(Ot,{label:(0,L.__)("Loop Animation","ablocks"),attributeValue:e?.loop,setAttributes:o,attributeName:"loop",isResponsive:!1})]})})})})}AI.propTypes={},AI.defaultProps={};const LI={UU:"ablocks/lottie-animation",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:2},asset_url:{type:"string",default:""},custom_url:{type:"string",default:""},uploaded_json:{type:"object",default:""},trigger:{type:"string",default:"viewport"},hoverArea:{type:"string",default:"animation"},onHoverOut:{type:"string",default:"nothing"},reverse:{type:"boolean",default:!1},loop:{type:"boolean",default:!1},animationSpeed:{
4284 4296 type:"number",default:1},timesLoop:{type:"number",default:""},animationSource:{type:"string",default:"upload"},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{
4285 4297 borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",
4286 4298 topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",
4287 4299 vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",
@@ -4288,16 +4300,16 @@
4288 4300 imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},
4289 4301 _zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,
4290 4302 rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",
4291 4303 maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,
4292 -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function nI(t){const{attributes:e,setAttributes:o}=t,{block_id:l,animationSource:n,asset_url:s,custom_url:r,uploaded_json:b,trigger:c,hoverArea:d,onHoverOut:u,reverse:p,loop:m,animationSpeed:h}=e,[g,f]=(0,a.useState)(""),y=(0,a.useRef)(null),T=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!y.current)return;const t=()=>{T.current?.play()},e=()=>{T.current&&("reverse"===u?(T.current.setDirection(-1),T.current.play()):"pause"===u?T.current.pause():"stop"===u&&T.current.stop())},o=()=>{
4304 +yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function DI(t){const{attributes:e,setAttributes:o}=t,{block_id:l,animationSource:n,asset_url:s,custom_url:r,uploaded_json:b,trigger:c,hoverArea:d,onHoverOut:u,reverse:p,loop:m,animationSpeed:h}=e,[g,f]=(0,a.useState)(""),y=(0,a.useRef)(null),T=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!y.current)return;const t=()=>{T.current?.play()},e=()=>{T.current&&("reverse"===u?(T.current.setDirection(-1),T.current.play()):"pause"===u?T.current.pause():"stop"===u&&T.current.stop())},o=()=>{
4293 4305 T.current&&(T.current.isPaused?T.current.play():T.current.pause())};return(async()=>{const{default:a}=await i.e(7530).then(i.t.bind(i,49891,23));if(!y.current)return;T.current&&T.current.destroy();const l={container:y.current,renderer:"svg",loop:m,autoplay:"viewport"===c};switch(n){case"custom":l.path=r;break;case"upload":if(b?.url)try{const t=await fetch(b.url);l.animationData=await t.json()}catch(t){return void console.error("Error loading animation JSON:",t)}break;default:l.path=s}(l.path||l.animationData)&&(T.current=a.loadAnimation(l),T.current&&(T.current.setSpeed(h||1),T.current.setDirection(p?-1:1)),(()=>{if(!T.current)return;const i="animation"===d?y.current:y.current.parentElement;i?.removeEventListener("mouseenter",t),i?.removeEventListener("mouseleave",e),y.current?.removeEventListener("click",o),"hover"===c&&i&&(i.addEventListener("mouseenter",t),i.addEventListener("mouseleave",e)),"click"===c&&y.current.addEventListener("click",o)})())})(),()=>{T.current?.destroy()}
4294 -},[n,s,r,b,c,d,u,p,m]),(0,a.useEffect)(()=>{T.current&&T.current.setSpeed(h||1)},[h]),(0,I.jsxs)(Yb.A,{blockId:l,name:lI.UU,attributes:{...e,className:"ablocks-prevent-select"},children:[(0,I.jsx)("div",{ref:y,style:{width:"100%",height:"100%",cursor:"click"===c?"pointer":"default"}}),!b&&"upload"===n&&(0,I.jsx)(D.MediaUploadCheck,{children:(0,I.jsx)(D.MediaUpload,{onSelect:t=>o({uploaded_json:t}),allowedTypes:["application/json"],value:b?.id,render:({open:t})=>(0,I.jsxs)("div",{className:"ablocks-image-upload",children:[(0,I.jsx)("h2",{className:"ablocks-image-upload__title",children:(0,L.__)("Lottie Animation","ablocks")}),(0,I.jsx)("p",{className:"ablocks-image-upload__description",children:(0,L.__)("Upload a JSON file or pick one from your media library","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-image-upload__buttons",children:[(0,I.jsx)("button",{onClick:t,className:"ablocks-image-upload__button ablocks-image-upload__button--primary",children:(0,
4295 -L.__)("Upload JSON","ablocks")}),(0,I.jsx)("button",{onClick:()=>o({animationSource:"custom"}),className:"ablocks-image-upload__button ablocks-image-upload__button--url",children:(0,L.__)("Use URL Instead","ablocks")})]})]})})}),!r&&"custom"===n&&(0,I.jsxs)("div",{className:"ablocks-image-upload",children:[(0,I.jsx)("h2",{className:"ablocks-image-upload__title",children:(0,L.__)("Enter Lottie URL","ablocks")}),(0,I.jsx)("p",{className:"ablocks-image-upload__description",children:(0,L.__)("Paste the URL of your Lottie JSON animation","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-image-upload__buttons",children:[(0,I.jsx)("input",{type:"text",className:"ablocks-image-upload__input",placeholder:"https://example.com/animation.json",value:g,onChange:t=>f(t.target.value)}),(0,I.jsx)("button",{onClick:()=>o({custom_url:g}),className:"ablocks-image-upload__button ablocks-image-upload__button--primary",children:(0,L.__)("Use This URL","ablocks")})]})]})]})}function sI(t){
4296 -const{attributes:e}=t,{block_id:i,animationSource:o="default",asset_url:a,custom_url:n,uploaded_json:s,trigger:r,loop:b,reverse:c,animationSpeed:d}=e,u=(()=>{switch(o){case"custom":return n;case"upload":return s?.url;default:return a}})();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:lI.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-lottie-container","data-animation-source":o,"data-asset-url":u,"data-trigger":r,"data-loop":b,"data-reverse":c,"data-animation-speed":d})})})}sI.propTypes={},sI.defaultProps={},(0,M.xV)(lI.UU)&&(0,o.registerBlockType)(lI.UU,{title:(0,L.__)("Lottie Animation","ablocks"),attributes:lI.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l,block_id:n}=t;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
4297 -null===t?"":t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(aI,{...t}),(0,I.jsx)(nI,{...t})]})},save:sI,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--lottie-animation"})});const rI=[{label:(0,L.__)("Left","ablocks"),value:"normal"},{label:(0,L.__)("Right","ablocks"),value:"reverse"},{label:(0,L.__)("Up","ablocks"),value:"up"},{label:(0,L.__)("Down","ablocks"),value:"down"}],bI=t=>"up"===t||"down"===t;var cI=i(23731);function dI(t){const{attributes:e,setAttributes:i}=t,{pauseOnHover:o,marqueeDirection:a,marqueeSpeed:n,loop:s,loopCount:r,gap:b,enableShadow:c,marqueeHeight:d}=e,u=lt(),p=(0,Eb.l_)({attributeValue:d,attributeObjectKey:"value",unitDefaultValue:"px",device:u})||"px";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-marquee-block/",children:(0,I.jsxs)(V,{title:(0,L.__)("Marquee","ablocks"),
4298 -initialOpen:!0,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Marquee Direction","ablocks"),options:rI,isSearch:!1,attributeName:"marqueeDirection",attributeValue:a,setAttributes:i,isInline:!1}),bI(a)&&(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"marqueeHeight",attributeObjectKey:"value",attributeValue:d,setAttributes:i,isResponsive:!0,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:"px"===p?1e3:100,attributeDefaultValue:cI.GA,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"gap",attributeValue:b,setAttributes:i,isResponsive:!0,min:0,max:100,step:1,isInline:!1,autoSyncRange:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Pause On Hover","ablocks"),attributeName:"pauseOnHover",attributeValue:o,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Enable Shadow","ablocks"),attributeName:"enableShadow",attributeValue:c,setAttributes:i,
4299 -isResponsive:!1,allowDeselect:!1}),(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("These feature will only works in frontend","ablocks")})}),(0,I.jsx)(Ot,{label:(0,L.__)("Loop","ablocks"),attributeName:"loop",attributeValue:s,setAttributes:i,isResponsive:!1,allowDeselect:!1}),s&&(0,I.jsx)(_t,{label:(0,L.__)("Loop Count","ablocks"),attributeName:"loopCount",attributeValue:r,setAttributes:i,min:1,max:200,step:1,isInline:!1,isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Speed (Fast To Slow)(ms)","ablocks"),attributeName:"marqueeSpeed",attributeValue:n,setAttributes:i,min:0,max:50,step:1,isInline:!1,isResponsive:!1})]})})})})}dI.propTypes={};const uI={UU:"ablocks/marquee",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},marqueeSlideLength:{type:"number",default:0},pauseOnHover:{type:"boolean",default:!0},marqueeDirection:{type:"string",default:"left"},marqueeSpeed:{type:"number",default:10},loop:{
4306 +},[n,s,r,b,c,d,u,p,m]),(0,a.useEffect)(()=>{T.current&&T.current.setSpeed(h||1)},[h]),(0,I.jsxs)(Yb.A,{blockId:l,name:LI.UU,attributes:{...e,className:"ablocks-prevent-select"},children:[(0,I.jsx)("div",{ref:y,style:{width:"100%",height:"100%",cursor:"click"===c?"pointer":"default"}}),!b&&"upload"===n&&(0,I.jsx)(D.MediaUploadCheck,{children:(0,I.jsx)(D.MediaUpload,{onSelect:t=>o({uploaded_json:t}),allowedTypes:["application/json"],value:b?.id,render:({open:t})=>(0,I.jsxs)("div",{className:"ablocks-image-upload",children:[(0,I.jsx)("h2",{className:"ablocks-image-upload__title",children:(0,L.__)("Lottie Animation","ablocks")}),(0,I.jsx)("p",{className:"ablocks-image-upload__description",children:(0,L.__)("Upload a JSON file or pick one from your media library","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-image-upload__buttons",children:[(0,I.jsx)("button",{onClick:t,className:"ablocks-image-upload__button ablocks-image-upload__button--primary",children:(0,
4307 +L.__)("Upload JSON","ablocks")}),(0,I.jsx)("button",{onClick:()=>o({animationSource:"custom"}),className:"ablocks-image-upload__button ablocks-image-upload__button--url",children:(0,L.__)("Use URL Instead","ablocks")})]})]})})}),!r&&"custom"===n&&(0,I.jsxs)("div",{className:"ablocks-image-upload",children:[(0,I.jsx)("h2",{className:"ablocks-image-upload__title",children:(0,L.__)("Enter Lottie URL","ablocks")}),(0,I.jsx)("p",{className:"ablocks-image-upload__description",children:(0,L.__)("Paste the URL of your Lottie JSON animation","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-image-upload__buttons",children:[(0,I.jsx)("input",{type:"text",className:"ablocks-image-upload__input",placeholder:"https://example.com/animation.json",value:g,onChange:t=>f(t.target.value)}),(0,I.jsx)("button",{onClick:()=>o({custom_url:g}),className:"ablocks-image-upload__button ablocks-image-upload__button--primary",children:(0,L.__)("Use This URL","ablocks")})]})]})]})}function NI(t){
4308 +const{attributes:e}=t,{block_id:i,animationSource:o="default",asset_url:a,custom_url:n,uploaded_json:s,trigger:r,loop:b,reverse:c,animationSpeed:d}=e,u=(()=>{switch(o){case"custom":return n;case"upload":return s?.url;default:return a}})();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:LI.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-lottie-container","data-animation-source":o,"data-asset-url":u,"data-trigger":r,"data-loop":b,"data-reverse":c,"data-animation-speed":d})})})}NI.propTypes={},NI.defaultProps={},(0,M.xV)(LI.UU)&&(0,o.registerBlockType)(LI.UU,{title:(0,L.__)("Lottie Animation","ablocks"),attributes:LI.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l,block_id:n}=t;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
4309 +null===t?"":t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(AI,{...t}),(0,I.jsx)(DI,{...t})]})},save:NI,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--lottie-animation"})});const II=[{label:(0,L.__)("Left","ablocks"),value:"normal"},{label:(0,L.__)("Right","ablocks"),value:"reverse"},{label:(0,L.__)("Up","ablocks"),value:"up"},{label:(0,L.__)("Down","ablocks"),value:"down"}],VI=t=>"up"===t||"down"===t;var OI=i(23731);function YI(t){const{attributes:e,setAttributes:i}=t,{pauseOnHover:o,marqueeDirection:a,marqueeSpeed:n,loop:s,loopCount:r,gap:b,enableShadow:c,marqueeHeight:d}=e,u=lt(),p=(0,Eb.l_)({attributeValue:d,attributeObjectKey:"value",unitDefaultValue:"px",device:u})||"px";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-marquee-block/",children:(0,I.jsxs)(V,{title:(0,L.__)("Marquee","ablocks"),
4310 +initialOpen:!0,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Marquee Direction","ablocks"),options:II,isSearch:!1,attributeName:"marqueeDirection",attributeValue:a,setAttributes:i,isInline:!1}),VI(a)&&(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"marqueeHeight",attributeObjectKey:"value",attributeValue:d,setAttributes:i,isResponsive:!0,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:"px"===p?1e3:100,attributeDefaultValue:OI.GA,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"gap",attributeValue:b,setAttributes:i,isResponsive:!0,min:0,max:100,step:1,isInline:!1,autoSyncRange:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Pause On Hover","ablocks"),attributeName:"pauseOnHover",attributeValue:o,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Enable Shadow","ablocks"),attributeName:"enableShadow",attributeValue:c,setAttributes:i,
4311 +isResponsive:!1,allowDeselect:!1}),(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("These feature will only works in frontend","ablocks")})}),(0,I.jsx)(Ot,{label:(0,L.__)("Loop","ablocks"),attributeName:"loop",attributeValue:s,setAttributes:i,isResponsive:!1,allowDeselect:!1}),s&&(0,I.jsx)(_t,{label:(0,L.__)("Loop Count","ablocks"),attributeName:"loopCount",attributeValue:r,setAttributes:i,min:1,max:200,step:1,isInline:!1,isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Speed (Fast To Slow)(ms)","ablocks"),attributeName:"marqueeSpeed",attributeValue:n,setAttributes:i,min:0,max:50,step:1,isInline:!1,isResponsive:!1})]})})})})}YI.propTypes={};const XI={UU:"ablocks/marquee",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},marqueeSlideLength:{type:"number",default:0},pauseOnHover:{type:"boolean",default:!0},marqueeDirection:{type:"string",default:"left"},marqueeSpeed:{type:"number",default:10},loop:{
4300 4312 type:"boolean",default:!1},enableShadow:{type:"boolean",default:!0},loopCount:{type:"number",default:2},gap:{type:"object",default:{value:12,valueTablet:"",valueMobile:""}},marqueeHeight:{type:"object",default:{value:200,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",
4301 4313 widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",
4302 4314 leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",
4303 4315 positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",
@@ -4304,12 +4316,12 @@
4304 4316 imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",
4305 4317 videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,
4306 4318 flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",
4307 4319 yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",
4308 -blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},pI=({addNewMarquee:t})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)("div",{className:"ablocks-block-marquee-dropdown-toolbar-menu",children:(0,I.jsx)(N.ToolbarButton,{onClick:()=>{t()},children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})});function mI(t){
4309 -const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,marqueeSlideLength:b,marqueeDirection:c}=e,d=bI(c),u=(0,r.useDispatch)(),p=(0,a.useRef)(null),{insertBlock:m}=wp.blockEditor?u("core/block-editor"):u("core/editor"),h=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(n),[n]),{children:g,...f}=(0,D.useInnerBlocksProps)({className:"ablocks-block-marquee"},{template:[[{}]],renderAppender:!1}),y=()=>{const t=(0,o.createBlock)("ablocks/marquee-child");m(t,b,n),i({marqueeSlideLength:b+1})};return(0,a.useEffect)(()=>{if(p.current){const t=p.current.querySelector(".ablocks-block-marquee__children-child");if(t){const e=Array.from(t.children).filter(t=>"div"===t.tagName.toLowerCase()).length;t.style.overflowX=e>3&&!d?"scroll":""}}},[h,d]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(pI,{addNewMarquee:y}),(0,I.jsx)(Yb.A,{blockId:s,name:uI.UU,attributes:e,children:(0,I.jsx)("div",{...f,className:"ablocks-block-marquee","data-direction":c,ref:p,children:(0,I.jsxs)("div",{
4310 -className:"ablocks-block-marquee__children",children:[(0,I.jsx)("div",{className:"ablocks-block-marquee__children-child",children:g}),(0,I.jsx)("div",{role:"presentation",onClick:y,children:(0,I.jsx)("button",{className:"ablocks-block-marquee__custom-btn",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})]})})})]})}const hI=(t,e="")=>bI(t?.marqueeDirection)?(0,Eb.qD)({attributeValue:t?.marqueeHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:200,unitDefaultValue:"px",property:"--ablocks-marquee-height",device:e}):{},gI=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:12,unitDefaultValue:"px",property:"gap",device:e})});function fI(t){const{attributes:e}=t,{block_id:i,pauseOnHover:o,marqueeDirection:a,marqueeSpeed:n,loop:s,loopCount:r,gap:b,enableShadow:c}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:uI.UU,attributes:e,children:(0,I.jsx)("div",{
4311 -className:"ablocks-block-marquee","data-direction":a,"data-speed":n,"data-pause":o,"data-loop":s,"data-loop-count":r,"data-content-gap":b.value,"data-enable-shadow":c,children:(0,I.jsx)("div",{className:"ablocks-block-marquee__children",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})})}fI.propTypes={},fI.defaultProps={};const yI={UU:"ablocks/marquee",uK:{block_id:{type:"string",default:""},marqueeSlideLength:{type:"number",default:0},pauseOnHover:{type:"boolean",default:!0},marqueeDirection:{type:"string",default:"normal"},marqueeSpeed:{type:"number",default:10},loop:{type:"boolean",default:!1},loopCount:{type:"number",default:2},gap:{type:"object",default:{value:12,valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",
4320 +blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},BI=({addNewMarquee:t})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)("div",{className:"ablocks-block-marquee-dropdown-toolbar-menu",children:(0,I.jsx)(N.ToolbarButton,{onClick:()=>{t()},children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})});function EI(t){
4321 +const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,marqueeSlideLength:b,marqueeDirection:c}=e,d=VI(c),u=(0,r.useDispatch)(),p=(0,a.useRef)(null),{insertBlock:m}=wp.blockEditor?u("core/block-editor"):u("core/editor"),h=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(n),[n]),{children:g,...f}=(0,D.useInnerBlocksProps)({className:"ablocks-block-marquee"},{template:[[{}]],renderAppender:!1}),y=()=>{const t=(0,o.createBlock)("ablocks/marquee-child");m(t,b,n),i({marqueeSlideLength:b+1})};return(0,a.useEffect)(()=>{if(p.current){const t=p.current.querySelector(".ablocks-block-marquee__children-child");if(t){const e=Array.from(t.children).filter(t=>"div"===t.tagName.toLowerCase()).length;t.style.overflowX=e>3&&!d?"scroll":""}}},[h,d]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(BI,{addNewMarquee:y}),(0,I.jsx)(Yb.A,{blockId:s,name:XI.UU,attributes:e,children:(0,I.jsx)("div",{...f,className:"ablocks-block-marquee","data-direction":c,ref:p,children:(0,I.jsxs)("div",{
4322 +className:"ablocks-block-marquee__children",children:[(0,I.jsx)("div",{className:"ablocks-block-marquee__children-child",children:g}),(0,I.jsx)("div",{role:"presentation",onClick:y,children:(0,I.jsx)("button",{className:"ablocks-block-marquee__custom-btn",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})]})})})]})}const FI=(t,e="")=>VI(t?.marqueeDirection)?(0,Eb.qD)({attributeValue:t?.marqueeHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:200,unitDefaultValue:"px",property:"--ablocks-marquee-height",device:e}):{},qI=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:12,unitDefaultValue:"px",property:"gap",device:e})});function $I(t){const{attributes:e}=t,{block_id:i,pauseOnHover:o,marqueeDirection:a,marqueeSpeed:n,loop:s,loopCount:r,gap:b,enableShadow:c}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:XI.UU,attributes:e,children:(0,I.jsx)("div",{
4323 +className:"ablocks-block-marquee","data-direction":a,"data-speed":n,"data-pause":o,"data-loop":s,"data-loop-count":r,"data-content-gap":b.value,"data-enable-shadow":c,children:(0,I.jsx)("div",{className:"ablocks-block-marquee__children",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})})}$I.propTypes={},$I.defaultProps={};const GI={UU:"ablocks/marquee",uK:{block_id:{type:"string",default:""},marqueeSlideLength:{type:"number",default:0},pauseOnHover:{type:"boolean",default:!0},marqueeDirection:{type:"string",default:"normal"},marqueeSpeed:{type:"number",default:10},loop:{type:"boolean",default:!1},loopCount:{type:"number",default:2},gap:{type:"object",default:{value:12,valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",
4312 4324 leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",
4313 4325 unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",
4314 4326 topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",
4315 4327 imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",
@@ -4315,11 +4327,11 @@
4315 4327 imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",
4316 4328 imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",
4317 4329 offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",
4318 4330 scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",
4319 -yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function TI(t){const{attributes:e}=t,{block_id:i,pauseOnHover:o,marqueeDirection:a,marqueeSpeed:n,loop:s,loopCount:r,gap:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:yI.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block-marquee","data-direction":a,"data-speed":n,"data-pause":o,"data-loop":s,"data-loop-count":r,"data-content-gap":b,children:(0,
4320 -I.jsx)("div",{className:"ablocks-block-marquee__children",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})})}function HI(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Marquee Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Marquee blocks settings for customizing marquee effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}TI.propTypes={},TI.defaultProps={},(0,M.xV)(uI.UU)&&(0,o.registerBlockType)(uI.UU,{attributes:uI.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--marquee"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),
4321 -i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-marquee .ablocks-block-marquee__children-child",gI(i),gI(i,"Tablet"),gI(i,"Mobile"),e(t=>gI(i,t))),t.addClassStyles("{{WRAPPER}}",hI(i),hI(i,"Tablet"),hI(i,"Mobile"),e(t=>hI(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(dI,{...t}),(0,I.jsx)(mI,{...t})]})},save:fI,deprecated:[{attributes:yI.uK,save:TI}]}),HI.propTypes={};const MI={UU:"ablocks/marquee-child",$t:["ablocks/marquee"],uK:{block_id:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",
4331 +yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function ZI(t){const{attributes:e}=t,{block_id:i,pauseOnHover:o,marqueeDirection:a,marqueeSpeed:n,loop:s,loopCount:r,gap:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:GI.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block-marquee","data-direction":a,"data-speed":n,"data-pause":o,"data-loop":s,"data-loop-count":r,"data-content-gap":b,children:(0,
4332 +I.jsx)("div",{className:"ablocks-block-marquee__children",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})})}function KI(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Marquee Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Marquee blocks settings for customizing marquee effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}ZI.propTypes={},ZI.defaultProps={},(0,M.xV)(XI.UU)&&(0,o.registerBlockType)(XI.UU,{attributes:XI.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--marquee"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),
4333 +i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-marquee .ablocks-block-marquee__children-child",qI(i),qI(i,"Tablet"),qI(i,"Mobile"),e(t=>qI(i,t))),t.addClassStyles("{{WRAPPER}}",FI(i),FI(i,"Tablet"),FI(i,"Mobile"),e(t=>FI(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(YI,{...t}),(0,I.jsx)(EI,{...t})]})},save:$I,deprecated:[{attributes:GI.uK,save:ZI}]}),KI.propTypes={};const JI={UU:"ablocks/marquee-child",$t:["ablocks/marquee"],uK:{block_id:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",
4322 4334 commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",
4323 4335 topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",
4324 4336 unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",
4325 4337 imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",
@@ -4326,23 +4338,23 @@
4326 4338 imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",
4327 4339 rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",
4328 4340 offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",
4329 4341 xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{
4330 -type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function xI(t){const{attributes:e,clientId:i}=t,{block_id:a}=e,l=(0,D.useBlockProps)(),n={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(i).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},s=(0,D.useInnerBlocksProps)(l,{...n});return(0,I.jsx)(sR,{blockId:a,name:MI.UU,attributes:e,children:(0,I.jsx)("div",{...s})})}function kI(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(dR,{blockId:i,name:MI.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})}xI.propTypes={},xI.defaultProps={},kI.propTypes={},kI.defaultProps={},(0,M.xV)(MI.UU,MI.$t[0])&&(0,o.registerBlockType)(MI.UU,{title:(0,L.__)("Marquee Child","ablocks"),attributes:MI.uK,icon:(0,I.jsx)("span",{
4331 -className:"ablocks-icon ablocks-icon--block-video"}),edit:function(t){const{isSelected:e,attributes:i,clientId:o}=t,l=(0,a.useMemo)(()=>new C(i,o).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:l}),e&&(0,I.jsx)(HI,{...t}),(0,I.jsx)(xI,{...t})]})},save:kI});var vI=i(88297);const _I=[{label:(0,L.__)("Row","ablocks"),value:"row",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,L.__)("Column","ablocks"),value:"column",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,L.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,L.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],RI=[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),
4332 -value:"center",icon:"center"},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],SI=[{label:(0,L.__)("Current URL","ablocks"),value:"current-url"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom-url"}],WI=[{label:(0,L.__)("Current URL","ablocks"),value:"current-url"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom-url"}];function PI(t){const{attributes:e,setAttributes:i}=t,{logOutLabel:o,logInLabel:a,isShowAvatar:n,logOutLabelColor:s,logOutLabelBgColor:r,labelAlignment:b,avatarHeight:c,direction:d,avatarWidth:u,isShowName:p,nameColor:m,logoutRedirect:h,logoutCustomUrl:g,loginRedirect:f,loginCustomUrl:y,nameTypography:T,nameTextShadow:H,nameTextStroke:M,labelTypography:x,labelTextShadow:k,labelTextStroke:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,
4333 -docs_url:"https://ablocks.pro/docs/ablocks-logout-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Logout","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(n||p)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Direction","ablocks"),options:_I,attributeName:"direction",attributeValue:d,setAttributes:i}),(0,I.jsx)(Jt,{allowDeselect:!0,label:(0,L.__)("Alignment","ablocks"),options:RI,isInline:!1,attributeName:"labelAlignment",attributeValue:b,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Logout Label","ablocks"),attributeName:"logOutLabel",attributeValue:o,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Login Label","ablocks"),attributeName:"logInLabel",attributeValue:a,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Avatar","ablocks"),attributeName:"isShowAvatar",attributeValue:n,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,
4334 -L.__)("Show Display Name","ablocks"),attributeName:"isShowName",attributeValue:p,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Redirect After Logout","ablocks"),options:SI,isSearch:!1,attributeName:"logoutRedirect",attributeValue:h,setAttributes:i,isInline:!1}),"custom-url"===h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Custom UR","ablocks"),attributeName:"logoutCustomUrl",attributeValue:g,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)("p",{className:"ablocks-notes",children:(0,L.__)("Enter a full URL on this site or another domain, e.g. https://example.com/goodbye.","ablocks")})]}),(0,I.jsx)(Ut,{label:(0,L.__)("Redirect After Login","ablocks"),options:WI,isSearch:!1,attributeName:"loginRedirect",attributeValue:f,setAttributes:i,isInline:!1}),"custom-url"===f&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Custom UR","ablocks"),attributeName:"loginCustomUrl",attributeValue:y,setAttributes:i,
4342 +type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function QI(t){const{attributes:e,clientId:i}=t,{block_id:a}=e,l=(0,D.useBlockProps)(),n={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(i).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},s=(0,D.useInnerBlocksProps)(l,{...n});return(0,I.jsx)(mR,{blockId:a,name:JI.UU,attributes:e,children:(0,I.jsx)("div",{...s})})}function tV(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(yR,{blockId:i,name:JI.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})}QI.propTypes={},QI.defaultProps={},tV.propTypes={},tV.defaultProps={},(0,M.xV)(JI.UU,JI.$t[0])&&(0,o.registerBlockType)(JI.UU,{title:(0,L.__)("Marquee Child","ablocks"),attributes:JI.uK,icon:(0,I.jsx)("span",{
4343 +className:"ablocks-icon ablocks-icon--block-video"}),edit:function(t){const{isSelected:e,attributes:i,clientId:o}=t,l=(0,a.useMemo)(()=>new C(i,o).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:l}),e&&(0,I.jsx)(KI,{...t}),(0,I.jsx)(QI,{...t})]})},save:tV});var eV=i(88297);const iV=[{label:(0,L.__)("Row","ablocks"),value:"row",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,L.__)("Column","ablocks"),value:"column",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,L.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,L.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],oV=[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),
4344 +value:"center",icon:"center"},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],aV=[{label:(0,L.__)("Current URL","ablocks"),value:"current-url"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom-url"}],lV=[{label:(0,L.__)("Current URL","ablocks"),value:"current-url"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom-url"}];function nV(t){const{attributes:e,setAttributes:i}=t,{logOutLabel:o,logInLabel:a,isShowAvatar:n,logOutLabelColor:s,logOutLabelBgColor:r,labelAlignment:b,avatarHeight:c,direction:d,avatarWidth:u,isShowName:p,nameColor:m,logoutRedirect:h,logoutCustomUrl:g,loginRedirect:f,loginCustomUrl:y,nameTypography:T,nameTextShadow:H,nameTextStroke:M,labelTypography:x,labelTextShadow:k,labelTextStroke:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,
4345 +docs_url:"https://ablocks.pro/docs/ablocks-logout-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Logout","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(n||p)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Direction","ablocks"),options:iV,attributeName:"direction",attributeValue:d,setAttributes:i}),(0,I.jsx)(Jt,{allowDeselect:!0,label:(0,L.__)("Alignment","ablocks"),options:oV,isInline:!1,attributeName:"labelAlignment",attributeValue:b,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Logout Label","ablocks"),attributeName:"logOutLabel",attributeValue:o,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Login Label","ablocks"),attributeName:"logInLabel",attributeValue:a,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Avatar","ablocks"),attributeName:"isShowAvatar",attributeValue:n,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,
4346 +L.__)("Show Display Name","ablocks"),attributeName:"isShowName",attributeValue:p,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Redirect After Logout","ablocks"),options:aV,isSearch:!1,attributeName:"logoutRedirect",attributeValue:h,setAttributes:i,isInline:!1}),"custom-url"===h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Custom UR","ablocks"),attributeName:"logoutCustomUrl",attributeValue:g,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)("p",{className:"ablocks-notes",children:(0,L.__)("Enter a full URL on this site or another domain, e.g. https://example.com/goodbye.","ablocks")})]}),(0,I.jsx)(Ut,{label:(0,L.__)("Redirect After Login","ablocks"),options:lV,isSearch:!1,attributeName:"loginRedirect",attributeValue:f,setAttributes:i,isInline:!1}),"custom-url"===f&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Custom UR","ablocks"),attributeName:"loginCustomUrl",attributeValue:y,setAttributes:i,
4335 4347 isInline:!1,disableDynamicContent:!0}),(0,I.jsx)("p",{className:"ablocks-notes",children:(0,L.__)("Only works on the same domain for security reasons.","ablocks")})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"logOutLabelBgColor",attributeValue:r,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Label","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"logOutLabelColor",attributeValue:s,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:x,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"labelTextShadow",attributeValue:k,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"labelTextStroke",attributeValue:v,setAttributes:i,isResponsive:!0}),p&&(0,I.jsxs)(I.Fragment,{
4336 4348 children:[(0,I.jsx)(at,{label:(0,L.__)("Display Name","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"nameColor",attributeValue:m,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"nameTypography",attributeValue:T,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"nameTextShadow",attributeValue:H,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"nameTextStroke",attributeValue:M,setAttributes:i,isResponsive:!0})]})]})})}),n&&(0,I.jsx)(V,{title:(0,L.__)("Avatar","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeValue:c,hasUnit:!0,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],
4337 -attributeName:"avatarHeight",setAttributes:i,isInline:!1,min:0,max:200,attributeDefaultValue:vI.P6,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeValue:u,hasUnit:!0,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],attributeName:"avatarWidth",setAttributes:i,isInline:!1,min:0,max:200,attributeDefaultValue:vI.Yn,autoSyncRange:!0})]})}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"avatarBorder",attributeValue:e?.avatarBorder,setAttributes:i})]})})})})]})})})}PI.propTypes={},PI.defaultProps={};const UI="ablocks/logout";function jI(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:UI,attributes:{...e,className:"ablocks-prevent-select"},children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/logout",
4338 -httpMethod:"POST",attributes:e})})})})}jI.propTypes={},jI.defaultProps={};const wI=(t,e="")=>{const i={};return t.direction["value"+e]&&(i["flex-direction"]=t.direction["value"+e]),t?.labelAlignment&&(i["justify-content"]=t?.labelAlignment),{background:(0,Hs.qD)(t?.logOutLabelBgColor),...i,...(0,Zt.qD)(t?.labelAlignment,"justify-content",e)}},zI=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.avatarWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:40,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.avatarHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:40,unitDefaultValue:"px",property:"height",device:e})},o=(0,M.Zy)(t.avatarBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},CI=(t,e="")=>{const i=(0,M.Zy)(t.avatarBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function AI(t){
4349 +attributeName:"avatarHeight",setAttributes:i,isInline:!1,min:0,max:200,attributeDefaultValue:eV.P6,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeValue:u,hasUnit:!0,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],attributeName:"avatarWidth",setAttributes:i,isInline:!1,min:0,max:200,attributeDefaultValue:eV.Yn,autoSyncRange:!0})]})}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"avatarBorder",attributeValue:e?.avatarBorder,setAttributes:i})]})})})})]})})})}nV.propTypes={},nV.defaultProps={};const sV="ablocks/logout";function rV(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:sV,attributes:{...e,className:"ablocks-prevent-select"},children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/logout",
4350 +httpMethod:"POST",attributes:e})})})})}rV.propTypes={},rV.defaultProps={};const bV=(t,e="")=>{const i={};return t.direction["value"+e]&&(i["flex-direction"]=t.direction["value"+e]),t?.labelAlignment&&(i["justify-content"]=t?.labelAlignment),{background:(0,Hs.qD)(t?.logOutLabelBgColor),...i,...(0,Zt.qD)(t?.labelAlignment,"justify-content",e)}},cV=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.avatarWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:40,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.avatarHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:40,unitDefaultValue:"px",property:"height",device:e})},o=(0,M.Zy)(t.avatarBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},dV=(t,e="")=>{const i=(0,M.Zy)(t.avatarBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function uV(t){
4339 4351 const{attributes:e,setAttributes:i}=t,{alignment:o,qrValue:a,bgColor:n,qrLevel:s,fgColor:r,imageSrc:b,logoWidth:c,logoOpacity:d,logoHeight:u,qrSize:p,isImage:m,positionX:h,positionY:g,excavateValue:f}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("QR Code Content","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Kl,{label:(0,L.__)("QR Code Value","ablocks"),attributeName:"qrValue",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Error Level","ablocks"),options:[{label:(0,L.__)("Low (7%)","ablocks"),value:"L"},{label:(0,L.__)("Medium (15%)","ablocks"),value:"M"},{label:(0,L.__)("Qurtile (25%)","ablocks"),value:"Q"},{label:(0,L.__)("High (30%)","ablocks"),value:"H"}],isSearch:!0,attributeName:"qrLevel",attributeValue:s,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("QR Code Size","ablocks"),min:m?150:0,max:500,hasUnit:!1,isInline:!1,isResponsive:!1,
4340 4352 attributeName:"qrSize",attributeValue:p,setAttributes:i,attributeObjectKey:"qrSize"}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Logo Setting","ablocks"),attributeValue:m,setAttributes:i,attributeName:"isImage"}),(0,I.jsx)(Ws,{label:(0,L.__)("ForeGround Color","ablocks"),attributeName:"fgColor",attributeValue:r,setAttributes:i})]}),m&&(0,I.jsxs)(V,{title:(0,L.__)("Image Setting","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,attributeName:"imageSrc",onSelectImageHandler:t=>i({imageSrc:t.url,imgId:t.id}),onRemoveImageHandler:()=>{i({imageSrc:void 0})}}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Excavate","ablocks"),attributeValue:f,setAttributes:i,attributeName:"excavateValue"}),(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,
4341 4353 L.__)("Logo Dimension","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(_t,{label:(0,L.__)("Logo Width","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"logoWidth",attributeValue:c,setAttributes:i,attributeObjectKey:"logoWidth"}),(0,I.jsx)(_t,{label:(0,L.__)("Logo Height","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"logoHeight",attributeValue:u,setAttributes:i,attributeObjectKey:"logoHeight"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Image Opacity","ablocks"),min:0,max:1,hasUnit:!1,isInline:!1,step:.1,isResponsive:!1,attributeName:"logoOpacity",attributeValue:d,setAttributes:i,attributeObjectKey:"logoOpacity"}),(0,I.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,L.__)("Logo Position","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(_t,{label:(0,L.__)("Position X","ablocks"),min:-250,max:500,hasUnit:!1,isInline:!1,step:1,isResponsive:!1,attributeName:"positionX",attributeValue:h,
4342 -setAttributes:i,attributeObjectKey:"positionX"}),(0,I.jsx)(_t,{label:(0,L.__)("Position Y","ablocks"),min:-250,max:500,hasUnit:!1,isInline:!1,step:1,isResponsive:!1,attributeName:"positionY",attributeValue:g,setAttributes:i,attributeObjectKey:"positionY"})]})})]})]})})})}(0,M.xV)(UI)&&(0,o.registerBlockType)(UI,{attributes:vI.Ay,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--log-out"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__label",((t,e="")=>{const i=(0,M.Zy)(t.labelTypography,{weight:"400"
4343 -}),o=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.logOutLabelColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.labelTextStroke,e),...(0,fc.qD)(t?.labelTextShadow)}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-logout",wI(i),wI(i,"Tablet"),wI(i,"Mobile"),e(t=>wI(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__name",((t,e="")=>{const i=(0,M.Zy)(t.nameTypography,{weight:"400"}),o=t.nameTypographyGlobal?t.nameTypographyGlobal:"";return{color:(0,Hs.qD)(t?.nameColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.nameTextStroke,e),...(0,fc.qD)(t?.nameTextShadow)}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__avatar",zI(i),zI(i,"Tablet"),zI(i,"Mobile"),e(t=>zI(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__avatar:hover",CI(i),CI(i,"Tablet"),CI(i,"Mobile"),e(t=>CI(i,t))),t.generateCSS()},[i,l]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(PI,{...t}),(0,I.jsx)(jI,{...t})]})},save:()=>null}),
4344 -AI.propTypes={};const LI={UU:"ablocks/qr-code",uK:{block_id:{type:"string"},qrValue:{type:"string",default:""},blockVersion:{type:"number",default:2},bgColor:{type:"string",default:"#FFF"},qrLevel:{type:"string",default:"M"},fgColor:{type:"string",default:"#000"},imageSrc:{type:"string",default:""},isImage:{type:"boolean",default:!1},excavateValue:{type:"boolean",default:!1},logoOpacity:{type:"number",default:.6},logoWidth:{type:"number",default:50},logoHeight:{type:"number",default:50},qrData:{type:"object",default:{}},imageValue:{type:"object",default:{}},qrSize:{type:"number",default:250},positionX:{type:"number",default:0},positionY:{type:"number",default:0},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
4354 +setAttributes:i,attributeObjectKey:"positionX"}),(0,I.jsx)(_t,{label:(0,L.__)("Position Y","ablocks"),min:-250,max:500,hasUnit:!1,isInline:!1,step:1,isResponsive:!1,attributeName:"positionY",attributeValue:g,setAttributes:i,attributeObjectKey:"positionY"})]})})]})]})})})}(0,M.xV)(sV)&&(0,o.registerBlockType)(sV,{attributes:eV.Ay,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--log-out"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__label",((t,e="")=>{const i=(0,M.Zy)(t.labelTypography,{weight:"400"
4355 +}),o=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.logOutLabelColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.labelTextStroke,e),...(0,fc.qD)(t?.labelTextShadow)}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-logout",bV(i),bV(i,"Tablet"),bV(i,"Mobile"),e(t=>bV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__name",((t,e="")=>{const i=(0,M.Zy)(t.nameTypography,{weight:"400"}),o=t.nameTypographyGlobal?t.nameTypographyGlobal:"";return{color:(0,Hs.qD)(t?.nameColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.nameTextStroke,e),...(0,fc.qD)(t?.nameTextShadow)}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__avatar",cV(i),cV(i,"Tablet"),cV(i,"Mobile"),e(t=>cV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__avatar:hover",dV(i),dV(i,"Tablet"),dV(i,"Mobile"),e(t=>dV(i,t))),t.generateCSS()},[i,l]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(nV,{...t}),(0,I.jsx)(rV,{...t})]})},save:()=>null}),
4356 +uV.propTypes={};const pV={UU:"ablocks/qr-code",uK:{block_id:{type:"string"},qrValue:{type:"string",default:""},blockVersion:{type:"number",default:2},bgColor:{type:"string",default:"#FFF"},qrLevel:{type:"string",default:"M"},fgColor:{type:"string",default:"#000"},imageSrc:{type:"string",default:""},isImage:{type:"boolean",default:!1},excavateValue:{type:"boolean",default:!1},logoOpacity:{type:"number",default:.6},logoWidth:{type:"number",default:50},logoHeight:{type:"number",default:50},qrData:{type:"object",default:{}},imageValue:{type:"object",default:{}},qrSize:{type:"number",default:250},positionX:{type:"number",default:0},positionY:{type:"number",default:0},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
4345 4357 topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",
4346 4358 rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,
4347 4359 commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",
4348 4360 imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",
@@ -4349,9 +4361,9 @@
4349 4361 imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",
4350 4362 offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",
4351 4363 offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",
4352 4364 yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",
4353 -default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},DI=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}];var NI,II=Object.defineProperty,VI=Object.getOwnPropertySymbols,OI=Object.prototype.hasOwnProperty,YI=Object.prototype.propertyIsEnumerable,XI=(t,e,i)=>e in t?II(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,BI=(t,e)=>{for(var i in e||(e={}))OI.call(e,i)&&XI(t,i,e[i]);if(VI)for(var i of VI(e))YI.call(e,i)&&XI(t,i,e[i]);return t},EI=(t,e)=>{var i={};for(var o in t)OI.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&VI)for(var o of VI(t))e.indexOf(o)<0&&YI.call(t,o)&&(i[o]=t[o]);return i};(t=>{const e=class e{constructor(t,i,o,l){if(this.version=t,this.errorCorrectionLevel=i,
4365 +default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},mV=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}];var hV,gV=Object.defineProperty,fV=Object.getOwnPropertySymbols,yV=Object.prototype.hasOwnProperty,TV=Object.prototype.propertyIsEnumerable,HV=(t,e,i)=>e in t?gV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,MV=(t,e)=>{for(var i in e||(e={}))yV.call(e,i)&&HV(t,i,e[i]);if(fV)for(var i of fV(e))TV.call(e,i)&&HV(t,i,e[i]);return t},xV=(t,e)=>{var i={};for(var o in t)yV.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&fV)for(var o of fV(t))e.indexOf(o)<0&&TV.call(t,o)&&(i[o]=t[o]);return i};(t=>{const e=class e{constructor(t,i,o,l){if(this.version=t,this.errorCorrectionLevel=i,
4354 4366 this.modules=[],this.isFunction=[],t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(l<-1||l>7)throw new RangeError("Mask value out of range");this.size=4*t+17;let n=[];for(let t=0;t<this.size;t++)n.push(!1);for(let t=0;t<this.size;t++)this.modules.push(n.slice()),this.isFunction.push(n.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(o);if(this.drawCodewords(s),-1==l){let t=1e9;for(let e=0;e<8;e++){this.applyMask(e),this.drawFormatBits(e);const i=this.getPenaltyScore();i<t&&(l=e,t=i),this.applyMask(e)}}a(0<=l&&l<=7),this.mask=l,this.applyMask(l),this.drawFormatBits(l),this.isFunction=[]}static encodeText(i,o){const a=t.QrSegment.makeSegments(i);return e.encodeSegments(a,o)}static encodeBinary(i,o){const a=t.QrSegment.makeBytes(i);return e.encodeSegments([a],o)}static encodeSegments(t,o,l=1,s=40,r=-1,b=!0){if(!(e.MIN_VERSION<=l&&l<=s&&s<=e.MAX_VERSION)||r<-1||r>7)throw new RangeError("Invalid value");let c,d;for(c=l;;c++){
4355 4367 const i=8*e.getNumDataCodewords(c,o),a=n.getTotalBits(t,c);if(a<=i){d=a;break}if(c>=s)throw new RangeError("Data too long")}for(const t of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])b&&d<=8*e.getNumDataCodewords(c,t)&&(o=t);let u=[];for(const e of t){i(e.mode.modeBits,4,u),i(e.numChars,e.mode.numCharCountBits(c),u);for(const t of e.getData())u.push(t)}a(u.length==d);const p=8*e.getNumDataCodewords(c,o);a(u.length<=p),i(0,Math.min(4,p-u.length),u),i(0,(8-u.length%8)%8,u),a(u.length%8==0);for(let t=236;u.length<p;t^=253)i(t,8,u);let m=[];for(;8*m.length<u.length;)m.push(0);return u.forEach((t,e)=>m[e>>>3]|=t<<7-(7&e)),new e(c,o,m,r)}getModule(t,e){return 0<=t&&t<this.size&&0<=e&&e<this.size&&this.modules[e][t]}getModules(){return this.modules}drawFunctionPatterns(){for(let t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4)
4356 4368 ;const t=this.getAlignmentPatternPositions(),e=t.length;for(let i=0;i<e;i++)for(let o=0;o<e;o++)0==i&&0==o||0==i&&o==e-1||i==e-1&&0==o||this.drawAlignmentPattern(t[i],t[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){const e=this.errorCorrectionLevel.formatBits<<3|t;let i=e;for(let t=0;t<10;t++)i=i<<1^1335*(i>>>9);const l=21522^(e<<10|i);a(l>>>15==0);for(let t=0;t<=5;t++)this.setFunctionModule(8,t,o(l,t));this.setFunctionModule(8,7,o(l,6)),this.setFunctionModule(8,8,o(l,7)),this.setFunctionModule(7,8,o(l,8));for(let t=9;t<15;t++)this.setFunctionModule(14-t,8,o(l,t));for(let t=0;t<8;t++)this.setFunctionModule(this.size-1-t,8,o(l,t));for(let t=8;t<15;t++)this.setFunctionModule(8,this.size-15+t,o(l,t));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^7973*(t>>>11);const e=this.version<<12|t;a(e>>>18==0);for(let t=0;t<18;t++){const i=o(e,t),a=this.size-11+t%3,l=Math.floor(t/3)
4357 4369 ;this.setFunctionModule(a,l,i),this.setFunctionModule(l,a,i)}}drawFinderPattern(t,e){for(let i=-4;i<=4;i++)for(let o=-4;o<=4;o++){const a=Math.max(Math.abs(o),Math.abs(i)),l=t+o,n=e+i;0<=l&&l<this.size&&0<=n&&n<this.size&&this.setFunctionModule(l,n,2!=a&&4!=a)}}drawAlignmentPattern(t,e){for(let i=-2;i<=2;i++)for(let o=-2;o<=2;o++)this.setFunctionModule(t+o,e+i,1!=Math.max(Math.abs(o),Math.abs(i)))}setFunctionModule(t,e,i){this.modules[e][t]=i,this.isFunction[e][t]=!0}addEccAndInterleave(t){const i=this.version,o=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(i,o))throw new RangeError("Invalid argument");const l=e.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][i],n=e.ECC_CODEWORDS_PER_BLOCK[o.ordinal][i],s=Math.floor(e.getNumRawDataModules(i)/8),r=l-s%l,b=Math.floor(s/l);let c=[];const d=e.reedSolomonComputeDivisor(n);for(let i=0,o=0;i<l;i++){let a=t.slice(o,o+b-n+(i<r?0:1));o+=a.length;const l=e.reedSolomonComputeRemainder(a,d);i<r&&a.push(0),c.push(a.concat(l))}let u=[]
@@ -4361,17 +4373,17 @@
4361 4373 let o=i.map(t=>0);for(const a of t){const t=a^o.shift();o.push(0),i.forEach((i,a)=>o[a]^=e.reedSolomonMultiply(i,t))}return o}static reedSolomonMultiply(t,e){if(t>>>8!=0||e>>>8!=0)throw new RangeError("Byte out of range");let i=0;for(let o=7;o>=0;o--)i=i<<1^285*(i>>>7),i^=(e>>>o&1)*t;return a(i>>>8==0),i}finderPenaltyCountPatterns(t){const e=t[1];a(e<=3*this.size);const i=e>0&&t[2]==e&&t[3]==3*e&&t[4]==e&&t[5]==e;return(i&&t[0]>=4*e&&t[6]>=e?1:0)+(i&&t[6]>=4*e&&t[0]>=e?1:0)}finderPenaltyTerminateAndCount(t,e,i){return t&&(this.finderPenaltyAddHistory(e,i),e=0),e+=this.size,this.finderPenaltyAddHistory(e,i),this.finderPenaltyCountPatterns(i)}finderPenaltyAddHistory(t,e){0==e[0]&&(t+=this.size),e.pop(),e.unshift(t)}};function i(t,e,i){if(e<0||e>31||t>>>e!=0)throw new RangeError("Value out of range");for(let o=e-1;o>=0;o--)i.push(t>>>o&1)}function o(t,e){return!!(t>>>e&1)}function a(t){if(!t)throw new Error("Assertion error")}e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,
4362 4374 e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],
4363 4375 e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;const l=class t{constructor(t,e,i){if(this.mode=t,this.numChars=e,this.bitData=i,e<0)throw new RangeError("Invalid argument");this.bitData=i.slice()}static makeBytes(e){let o=[];for(const t of e)i(t,8,o);return new t(t.Mode.BYTE,e.length,o)}static makeNumeric(e){if(!t.isNumeric(e))throw new RangeError("String contains non-numeric characters");let o=[];for(let t=0;t<e.length;){const a=Math.min(e.length-t,3);i(parseInt(e.substring(t,t+a),10),3*a+1,o),t+=a}return new t(t.Mode.NUMERIC,e.length,o)}
4364 4376 static makeAlphanumeric(e){if(!t.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let o,a=[];for(o=0;o+2<=e.length;o+=2){let l=45*t.ALPHANUMERIC_CHARSET.indexOf(e.charAt(o));l+=t.ALPHANUMERIC_CHARSET.indexOf(e.charAt(o+1)),i(l,11,a)}return o<e.length&&i(t.ALPHANUMERIC_CHARSET.indexOf(e.charAt(o)),6,a),new t(t.Mode.ALPHANUMERIC,e.length,a)}static makeSegments(e){return""==e?[]:t.isNumeric(e)?[t.makeNumeric(e)]:t.isAlphanumeric(e)?[t.makeAlphanumeric(e)]:[t.makeBytes(t.toUtf8ByteArray(e))]}static makeEci(e){let o=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)i(e,8,o);else if(e<16384)i(2,2,o),i(e,14,o);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");i(6,3,o),i(e,21,o)}return new t(t.Mode.ECI,0,o)}static isNumeric(e){return t.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return t.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(t,e){let i=0
4365 -;for(const o of t){const t=o.mode.numCharCountBits(e);if(o.numChars>=1<<t)return 1/0;i+=4+t+o.bitData.length}return i}static toUtf8ByteArray(t){t=encodeURI(t);let e=[];for(let i=0;i<t.length;i++)"%"!=t.charAt(i)?e.push(t.charCodeAt(i)):(e.push(parseInt(t.substring(i+1,i+3),16)),i+=2);return e}};l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let n=l;t.QrSegment=l})(NI||(NI={})),(t=>{let e;(t=>{const e=class{constructor(t,e){this.ordinal=t,this.formatBits=e}};e.LOW=new e(0,1),e.MEDIUM=new e(1,0),e.QUARTILE=new e(2,3),e.HIGH=new e(3,2),t.Ecc=e})(e=t.QrCode||(t.QrCode={}))})(NI||(NI={})),(t=>{let e;(t=>{const e=class{constructor(t,e){this.modeBits=t,this.numBitsCharCount=e}numCharCountBits(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}};e.NUMERIC=new e(1,[10,12,14]),e.ALPHANUMERIC=new e(2,[9,11,13]),e.BYTE=new e(4,[8,16,16]),e.KANJI=new e(8,[8,10,12]),e.ECI=new e(7,[0,0,0]),t.Mode=e
4366 -})(e=t.QrSegment||(t.QrSegment={}))})(NI||(NI={}));var FI=NI,qI={L:FI.QrCode.Ecc.LOW,M:FI.QrCode.Ecc.MEDIUM,Q:FI.QrCode.Ecc.QUARTILE,H:FI.QrCode.Ecc.HIGH},$I=128,GI="L",ZI="#FFFFFF",KI="#000000",JI=!1,QI=1;function tV(t,e=0){const i=[];return t.forEach(function(t,o){let a=null;t.forEach(function(l,n){if(!l&&null!==a)return i.push(`M${a+e} ${o+e}h${n-a}v1H${a+e}z`),void(a=null);if(n!==t.length-1)l&&null===a&&(a=n);else{if(!l)return;null===a?i.push(`M${n+e},${o+e} h1v1H${n+e}z`):i.push(`M${a+e},${o+e} h${n+1-a}v1H${a+e}z`)}})}),i.join("")}function eV(t,e){return t.slice().map((t,i)=>i<e.y||i>=e.y+e.h?t:t.map((t,i)=>(i<e.x||i>=e.x+e.w)&&t))}function iV({value:t,level:e,minVersion:i,includeMargin:o,marginSize:l,imageSettings:n,size:s,boostLevel:r}){let b=a.useMemo(()=>{const o=(Array.isArray(t)?t:[t]).reduce((t,e)=>(t.push(...FI.QrSegment.makeSegments(e)),t),[]);return FI.QrCode.encodeSegments(o,qI[e],i,void 0,void 0,r)},[t,e,i,r])
4367 -;const{cells:c,margin:d,numCells:u,calculatedImageSettings:p}=a.useMemo(()=>{let t=b.getModules();const e=function(t,e){return null!=e?Math.max(Math.floor(e),0):t?4:0}(o,l),i=t.length+2*e,a=function(t,e,i,o){if(null==o)return null;const a=t.length+2*i,l=Math.floor(.1*e),n=a/e,s=(o.width||l)*n,r=(o.height||l)*n,b=null==o.x?t.length/2-s/2:o.x*n,c=null==o.y?t.length/2-r/2:o.y*n,d=null==o.opacity?1:o.opacity;let u=null;if(o.excavate){let t=Math.floor(b),e=Math.floor(c);u={x:t,y:e,w:Math.ceil(s+b-t),h:Math.ceil(r+c-e)}}return{x:b,y:c,h:r,w:s,excavation:u,opacity:d,crossOrigin:o.crossOrigin}}(t,s,e,n);return{cells:t,margin:e,numCells:i,calculatedImageSettings:a}},[b,s,n,o,l]);return{qrcode:b,margin:d,cells:c,numCells:u,calculatedImageSettings:p}}var oV=function(){try{(new Path2D).addPath(new Path2D)}catch(t){return!1}return!0}(),aV=a.forwardRef(function(t,e){
4368 -const i=t,{value:o,size:l=$I,level:n=GI,bgColor:s=ZI,fgColor:r=KI,includeMargin:b=JI,minVersion:c=QI,boostLevel:d,marginSize:u,imageSettings:p}=i,m=EI(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:h}=m,g=EI(m,["style"]),f=null==p?void 0:p.src,y=a.useRef(null),T=a.useRef(null),H=a.useCallback(t=>{y.current=t,"function"==typeof e?e(t):e&&(e.current=t)},[e]),[M,x]=a.useState(!1),{margin:k,cells:v,numCells:_,calculatedImageSettings:R}=iV({value:o,level:n,minVersion:c,boostLevel:d,includeMargin:b,marginSize:u,imageSettings:p,size:l});a.useEffect(()=>{if(null!=y.current){const t=y.current,e=t.getContext("2d");if(!e)return;let i=v;const o=T.current,a=null!=R&&null!==o&&o.complete&&0!==o.naturalHeight&&0!==o.naturalWidth;a&&null!=R.excavation&&(i=eV(v,R.excavation));const n=window.devicePixelRatio||1;t.height=t.width=l*n;const b=l/_*n;e.scale(b,b),e.fillStyle=s,e.fillRect(0,0,_,_),e.fillStyle=r,
4369 -oV?e.fill(new Path2D(tV(i,k))):v.forEach(function(t,i){t.forEach(function(t,o){t&&e.fillRect(o+k,i+k,1,1)})}),R&&(e.globalAlpha=R.opacity),a&&e.drawImage(o,R.x+k,R.y+k,R.w,R.h)}}),a.useEffect(()=>{x(!1)},[f]);const S=BI({height:l,width:l},h);let W=null;return null!=f&&(W=a.createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{x(!0)},ref:T,crossOrigin:null==R?void 0:R.crossOrigin})),a.createElement(a.Fragment,null,a.createElement("canvas",BI({style:S,height:l,width:l,ref:H,role:"img"},g)),W)});aV.displayName="QRCodeCanvas";var lV=a.forwardRef(function(t,e){const i=t,{value:o,size:l=$I,level:n=GI,bgColor:s=ZI,fgColor:r=KI,includeMargin:b=JI,minVersion:c=QI,boostLevel:d,title:u,marginSize:p,imageSettings:m}=i,h=EI(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:g,cells:f,numCells:y,calculatedImageSettings:T}=iV({value:o,level:n,minVersion:c,boostLevel:d,includeMargin:b,marginSize:p,
4370 -imageSettings:m,size:l});let H=f,M=null;null!=m&&null!=T&&(null!=T.excavation&&(H=eV(f,T.excavation)),M=a.createElement("image",{href:m.src,height:T.h,width:T.w,x:T.x+g,y:T.y+g,preserveAspectRatio:"none",opacity:T.opacity,crossOrigin:T.crossOrigin}));const x=tV(H,g);return a.createElement("svg",BI({height:l,width:l,viewBox:`0 0 ${y} ${y}`,ref:e,role:"img"},h),!!u&&a.createElement("title",null,u),a.createElement("path",{fill:s,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),a.createElement("path",{fill:r,d:x,shapeRendering:"crispEdges"}),M)});function nV(t){const{attributes:e,setAttributes:i}=t,o=(0,a.useRef)(null),{block_id:n,alignment:s,qrValue:r,bgColor:b,qrLevel:c,fgColor:d,imageSrc:u,logoWidth:p,logoOpacity:m,logoHeight:h,qrSize:g,qrData:f={},isImage:y,positionX:T,positionY:H,excavateValue:M}=e,{isDynamicEnabled:x,data:k}=id({attributeValue:r});return(0,a.useEffect)(()=>{const t=setTimeout(()=>{const t=o.current||document.getElementById(`${n}123`)
4371 -;if(!t)return void console.error("SVG element not found!");const e={dir:[],viewBox:t.getAttribute("viewBox")||"",width:t.getAttribute("width")||"",height:t.getAttribute("height")||""};t.querySelectorAll("path").forEach(t=>{const i=t.getAttribute("d");e.dir.push(i)});const a=t.querySelector("image");let l={};a&&(l={src:a.getAttribute("href"),x:a.getAttribute("x"),y:a.getAttribute("y"),imgHeight:a.getAttribute("height"),imgWidth:a.getAttribute("width"),opacity:a.getAttribute("opacity"),excavate:a.getAttribute("excavate")}),i({qrData:e,imageValue:l})},1e3);return()=>clearTimeout(t)},[n,r,b,d,c,g,y,u,T,H,h,p,m,M]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:s,setAttributes:i,options:DI})}),(0,I.jsx)(Yb.A,{blockId:n,name:LI.UU,attributes:e,children:(0,I.jsx)(lV,{ref:o,id:`${n}123`,value:x?k:r,bgColor:b,fgColor:d,level:c,size:g,imageSettings:y?{src:u,x:T||void 0,y:H||void 0,height:h,width:p,opacity:m,excavate:M}:void 0})})]})}
4372 -lV.displayName="QRCodeSVG",nV.propTypes={};const sV=(t,e="")=>{const{alignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}};function rV(t){const{attributes:e}=t,{block_id:i,bgColor:o,fgColor:a,logoOpacity:n,qrData:s={},imageValue:r={},isImage:b,excavateValue:c,renderKey:d}=e,{dir:u,height:p,width:m,viewBox:h}=s||{},{src:g,x:f,y,imgHeight:T,imgWidth:H}=r||{};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:LI.UU,attributes:e,children:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:h,width:p,height:m,"aria-hidden":"true",role:"img",focusable:"false",children:[(0,I.jsx)("path",{d:u&&u.length>0?u[0]:"",fill:o,shapeRendering:"crispEdges"}),(0,I.jsx)("path",{d:u&&u.length>0?u[1]:"",fill:a,shapeRendering:"crispEdges"}),b&&(0,I.jsx)("image",{href:g,height:T,width:H,x:f,y,opacity:n})]})})})}rV.propTypes={},(0,o.registerBlockType)(LI.UU,{title:(0,L.__)("QR Code","ablocks"),attributes:LI.uK,icon:(0,I.jsx)("span",{
4373 -className:"ablocks-icon ablocks-icon--qr-code"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}.ablocks-block--qr-code .ablocks-block-container",sV(i,""),sV(i,"Tablet"),sV(i,"Mobile"),(e=t=>sV(i,t),"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{})),t.generateCSS());var e},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(AI,{...t}),(0,I.jsx)(nV,{...t})]})},save:rV});var bV=i(71651);function cV(t){const{attributes:e,setAttributes:i}=t,{data:o,options:a,chartType:n,chartBG:s,chartWidth:r}=e;function b(t){const e=Math.min(...t)-100,i=Math.max(...t)+100;let o;do{o=Math.floor(Math.random()*(i-e+1))+e
4377 +;for(const o of t){const t=o.mode.numCharCountBits(e);if(o.numChars>=1<<t)return 1/0;i+=4+t+o.bitData.length}return i}static toUtf8ByteArray(t){t=encodeURI(t);let e=[];for(let i=0;i<t.length;i++)"%"!=t.charAt(i)?e.push(t.charCodeAt(i)):(e.push(parseInt(t.substring(i+1,i+3),16)),i+=2);return e}};l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let n=l;t.QrSegment=l})(hV||(hV={})),(t=>{let e;(t=>{const e=class{constructor(t,e){this.ordinal=t,this.formatBits=e}};e.LOW=new e(0,1),e.MEDIUM=new e(1,0),e.QUARTILE=new e(2,3),e.HIGH=new e(3,2),t.Ecc=e})(e=t.QrCode||(t.QrCode={}))})(hV||(hV={})),(t=>{let e;(t=>{const e=class{constructor(t,e){this.modeBits=t,this.numBitsCharCount=e}numCharCountBits(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}};e.NUMERIC=new e(1,[10,12,14]),e.ALPHANUMERIC=new e(2,[9,11,13]),e.BYTE=new e(4,[8,16,16]),e.KANJI=new e(8,[8,10,12]),e.ECI=new e(7,[0,0,0]),t.Mode=e
4378 +})(e=t.QrSegment||(t.QrSegment={}))})(hV||(hV={}));var kV=hV,vV={L:kV.QrCode.Ecc.LOW,M:kV.QrCode.Ecc.MEDIUM,Q:kV.QrCode.Ecc.QUARTILE,H:kV.QrCode.Ecc.HIGH},_V=128,RV="L",SV="#FFFFFF",WV="#000000",PV=!1,UV=1;function jV(t,e=0){const i=[];return t.forEach(function(t,o){let a=null;t.forEach(function(l,n){if(!l&&null!==a)return i.push(`M${a+e} ${o+e}h${n-a}v1H${a+e}z`),void(a=null);if(n!==t.length-1)l&&null===a&&(a=n);else{if(!l)return;null===a?i.push(`M${n+e},${o+e} h1v1H${n+e}z`):i.push(`M${a+e},${o+e} h${n+1-a}v1H${a+e}z`)}})}),i.join("")}function wV(t,e){return t.slice().map((t,i)=>i<e.y||i>=e.y+e.h?t:t.map((t,i)=>(i<e.x||i>=e.x+e.w)&&t))}function zV({value:t,level:e,minVersion:i,includeMargin:o,marginSize:l,imageSettings:n,size:s,boostLevel:r}){let b=a.useMemo(()=>{const o=(Array.isArray(t)?t:[t]).reduce((t,e)=>(t.push(...kV.QrSegment.makeSegments(e)),t),[]);return kV.QrCode.encodeSegments(o,vV[e],i,void 0,void 0,r)},[t,e,i,r])
4379 +;const{cells:c,margin:d,numCells:u,calculatedImageSettings:p}=a.useMemo(()=>{let t=b.getModules();const e=function(t,e){return null!=e?Math.max(Math.floor(e),0):t?4:0}(o,l),i=t.length+2*e,a=function(t,e,i,o){if(null==o)return null;const a=t.length+2*i,l=Math.floor(.1*e),n=a/e,s=(o.width||l)*n,r=(o.height||l)*n,b=null==o.x?t.length/2-s/2:o.x*n,c=null==o.y?t.length/2-r/2:o.y*n,d=null==o.opacity?1:o.opacity;let u=null;if(o.excavate){let t=Math.floor(b),e=Math.floor(c);u={x:t,y:e,w:Math.ceil(s+b-t),h:Math.ceil(r+c-e)}}return{x:b,y:c,h:r,w:s,excavation:u,opacity:d,crossOrigin:o.crossOrigin}}(t,s,e,n);return{cells:t,margin:e,numCells:i,calculatedImageSettings:a}},[b,s,n,o,l]);return{qrcode:b,margin:d,cells:c,numCells:u,calculatedImageSettings:p}}var CV=function(){try{(new Path2D).addPath(new Path2D)}catch(t){return!1}return!0}(),AV=a.forwardRef(function(t,e){
4380 +const i=t,{value:o,size:l=_V,level:n=RV,bgColor:s=SV,fgColor:r=WV,includeMargin:b=PV,minVersion:c=UV,boostLevel:d,marginSize:u,imageSettings:p}=i,m=xV(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:h}=m,g=xV(m,["style"]),f=null==p?void 0:p.src,y=a.useRef(null),T=a.useRef(null),H=a.useCallback(t=>{y.current=t,"function"==typeof e?e(t):e&&(e.current=t)},[e]),[M,x]=a.useState(!1),{margin:k,cells:v,numCells:_,calculatedImageSettings:R}=zV({value:o,level:n,minVersion:c,boostLevel:d,includeMargin:b,marginSize:u,imageSettings:p,size:l});a.useEffect(()=>{if(null!=y.current){const t=y.current,e=t.getContext("2d");if(!e)return;let i=v;const o=T.current,a=null!=R&&null!==o&&o.complete&&0!==o.naturalHeight&&0!==o.naturalWidth;a&&null!=R.excavation&&(i=wV(v,R.excavation));const n=window.devicePixelRatio||1;t.height=t.width=l*n;const b=l/_*n;e.scale(b,b),e.fillStyle=s,e.fillRect(0,0,_,_),e.fillStyle=r,
4381 +CV?e.fill(new Path2D(jV(i,k))):v.forEach(function(t,i){t.forEach(function(t,o){t&&e.fillRect(o+k,i+k,1,1)})}),R&&(e.globalAlpha=R.opacity),a&&e.drawImage(o,R.x+k,R.y+k,R.w,R.h)}}),a.useEffect(()=>{x(!1)},[f]);const S=MV({height:l,width:l},h);let W=null;return null!=f&&(W=a.createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{x(!0)},ref:T,crossOrigin:null==R?void 0:R.crossOrigin})),a.createElement(a.Fragment,null,a.createElement("canvas",MV({style:S,height:l,width:l,ref:H,role:"img"},g)),W)});AV.displayName="QRCodeCanvas";var LV=a.forwardRef(function(t,e){const i=t,{value:o,size:l=_V,level:n=RV,bgColor:s=SV,fgColor:r=WV,includeMargin:b=PV,minVersion:c=UV,boostLevel:d,title:u,marginSize:p,imageSettings:m}=i,h=xV(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:g,cells:f,numCells:y,calculatedImageSettings:T}=zV({value:o,level:n,minVersion:c,boostLevel:d,includeMargin:b,marginSize:p,
4382 +imageSettings:m,size:l});let H=f,M=null;null!=m&&null!=T&&(null!=T.excavation&&(H=wV(f,T.excavation)),M=a.createElement("image",{href:m.src,height:T.h,width:T.w,x:T.x+g,y:T.y+g,preserveAspectRatio:"none",opacity:T.opacity,crossOrigin:T.crossOrigin}));const x=jV(H,g);return a.createElement("svg",MV({height:l,width:l,viewBox:`0 0 ${y} ${y}`,ref:e,role:"img"},h),!!u&&a.createElement("title",null,u),a.createElement("path",{fill:s,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),a.createElement("path",{fill:r,d:x,shapeRendering:"crispEdges"}),M)});function DV(t){const{attributes:e,setAttributes:i}=t,o=(0,a.useRef)(null),{block_id:n,alignment:s,qrValue:r,bgColor:b,qrLevel:c,fgColor:d,imageSrc:u,logoWidth:p,logoOpacity:m,logoHeight:h,qrSize:g,qrData:f={},isImage:y,positionX:T,positionY:H,excavateValue:M}=e,{isDynamicEnabled:x,data:k}=id({attributeValue:r});return(0,a.useEffect)(()=>{const t=setTimeout(()=>{const t=o.current||document.getElementById(`${n}123`)
4383 +;if(!t)return void console.error("SVG element not found!");const e={dir:[],viewBox:t.getAttribute("viewBox")||"",width:t.getAttribute("width")||"",height:t.getAttribute("height")||""};t.querySelectorAll("path").forEach(t=>{const i=t.getAttribute("d");e.dir.push(i)});const a=t.querySelector("image");let l={};a&&(l={src:a.getAttribute("href"),x:a.getAttribute("x"),y:a.getAttribute("y"),imgHeight:a.getAttribute("height"),imgWidth:a.getAttribute("width"),opacity:a.getAttribute("opacity"),excavate:a.getAttribute("excavate")}),i({qrData:e,imageValue:l})},1e3);return()=>clearTimeout(t)},[n,r,b,d,c,g,y,u,T,H,h,p,m,M]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:s,setAttributes:i,options:mV})}),(0,I.jsx)(Yb.A,{blockId:n,name:pV.UU,attributes:e,children:(0,I.jsx)(LV,{ref:o,id:`${n}123`,value:x?k:r,bgColor:b,fgColor:d,level:c,size:g,imageSettings:y?{src:u,x:T||void 0,y:H||void 0,height:h,width:p,opacity:m,excavate:M}:void 0})})]})}
4384 +LV.displayName="QRCodeSVG",DV.propTypes={};const NV=(t,e="")=>{const{alignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}};function IV(t){const{attributes:e}=t,{block_id:i,bgColor:o,fgColor:a,logoOpacity:n,qrData:s={},imageValue:r={},isImage:b,excavateValue:c,renderKey:d}=e,{dir:u,height:p,width:m,viewBox:h}=s||{},{src:g,x:f,y,imgHeight:T,imgWidth:H}=r||{};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:pV.UU,attributes:e,children:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:h,width:p,height:m,"aria-hidden":"true",role:"img",focusable:"false",children:[(0,I.jsx)("path",{d:u&&u.length>0?u[0]:"",fill:o,shapeRendering:"crispEdges"}),(0,I.jsx)("path",{d:u&&u.length>0?u[1]:"",fill:a,shapeRendering:"crispEdges"}),b&&(0,I.jsx)("image",{href:g,height:T,width:H,x:f,y,opacity:n})]})})})}IV.propTypes={},(0,o.registerBlockType)(pV.UU,{title:(0,L.__)("QR Code","ablocks"),attributes:pV.uK,icon:(0,I.jsx)("span",{
4385 +className:"ablocks-icon ablocks-icon--qr-code"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}.ablocks-block--qr-code .ablocks-block-container",NV(i,""),NV(i,"Tablet"),NV(i,"Mobile"),(e=t=>NV(i,t),"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{})),t.generateCSS());var e},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(uV,{...t}),(0,I.jsx)(DV,{...t})]})},save:IV});var VV=i(71651);function OV(t){const{attributes:e,setAttributes:i}=t,{data:o,options:a,chartType:n,chartBG:s,chartWidth:r}=e;function b(t){const e=Math.min(...t)-100,i=Math.max(...t)+100;let o;do{o=Math.floor(Math.random()*(i-e+1))+e
4374 4386 }while(t.includes(o));return o}function c(t){function e(e){return!t.some(t=>t.toLowerCase()===e.toLowerCase())}let i;do{i=`#${Math.floor(16777215*Math.random()).toString(16).padStart(6,"0")}`}while(!e(i));return i}return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Manage Datasets","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[o?.labels?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-chart-block-input-label",children:[(0,I.jsx)(Kl,{label:(0,L.__)(`Label ${e+1}`,"ablocks"),attributeValue:t,onChangeHandler:t=>((t,e)=>{i({data:{...o,labels:o.labels.map((i,o)=>o===e?t:i)}})})(t,e),setAttributes:i,disableDynamicContent:!0}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:()=>{const t=[...o.labels].filter((t,i)=>i!==e),a=o.datasets.map(t=>({...t,data:[...t.data].filter((t,i)=>i!==e)})),l={...o,labels:t,datasets:a}
4375 4387 ;i({data:l})}})]})),(0,I.jsxs)("button",{className:"ablocks-chart-block-add-button",onClick:()=>{const t={...o,labels:[...o.labels,"Test"],datasets:o.datasets.map(t=>({...t,data:[...t.data,b(t.data)]}))};i({data:t})},children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),"Add new dataset"]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("X-axis font Color","ablocks"),attributeValue:a.scales.x.ticks.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e,l={...a,scales:{...a?.scales||{},x:{...a?.scales?.x||{},ticks:{...a?.scales?.x?.ticks||{},color:o}}}};i({options:l})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("X-axis font size","ablocks"),attributeValue:a.scales.x.ticks.font.size??"0",onChangeHandler:(t,e)=>{i({options:{...a,scales:{...a.scales,x:{...a.scales.x,ticks:{...a.scales.x.ticks,font:{...a.scales.x.ticks.font,size:t}}}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0}),(0,
4376 4388 I.jsx)(Ws,{label:(0,L.__)("Y-axis font Color","ablocks"),attributeValue:a.scales.y.ticks.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({options:{...a,scales:{...a.scales,y:{...a.scales.y,ticks:{...a.scales.y.ticks,color:o}}}}})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Y-axis font size","ablocks"),attributeValue:a.scales.y.ticks.font.size??"0",onChangeHandler:(t,e)=>{i({options:{...a,scales:{...a.scales,y:{...a.scales.y,ticks:{...a.scales.y.ticks,font:{...a.scales.y.ticks.font,size:t}}}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0})]})}),o?.datasets?.map((t,e)=>t?(0,I.jsx)(V,{title:(0,L.__)(`Dataset value ${e+1}`,"ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Label :","ablocks"),attributeValue:t.label,onChangeHandler:t=>{i({data:{...o,datasets:o.datasets.map((i,o)=>o===e?{...i,label:t}:i)}})},setAttributes:i,disableDynamicContent:!0}),(0,
4377 4389 I.jsx)(It,{}),(0,I.jsx)("h3",{className:"ablocks-chart-block-values-title",children:"Values"}),t?.data?.map((t,a)=>(0,I.jsx)(Kl,{label:(0,L.__)(`${o?.labels[a]}`,"ablocks"),attributeValue:t,onChangeHandler:t=>((t,e,a)=>{const l={...o,datasets:o?.datasets.map((i,o)=>o===e?{...i||{},data:i.data.map((e,i)=>i===a?t:e)}:i)};i({data:l})})(t,e,a),setAttributes:i,disableDynamicContent:!0})),(0,I.jsxs)("div",{className:"ablocks-chart-block-values-actions",children:[(0,I.jsx)("button",{className:"ablocks-chart-block-duplicate-button",onClick:()=>{i({data:{...o,datasets:[...o.datasets,t]}})},children:"Duplicate"}),(0,I.jsx)("button",{className:"ablocks-chart-block-remove-button",onClick:()=>{i({data:{...o,datasets:o.datasets.filter((t,i)=>i!==e)}})},children:"Remove"})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeValue:t.backgroundColor,onChangeHandler:(t,a)=>{const l=a.startsWith("var:preset")?a.split("|")[1]:a;i({data:{...o,
@@ -4378,9 +4390,9 @@
4378 4390 datasets:o.datasets.map((t,i)=>i===e?{...t,backgroundColor:l}:t)}})},showGlobal:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Border Color","ablocks"),attributeValue:t.borderColor,onChangeHandler:(t,a)=>{const l=a.startsWith("var:preset")?a.split("|")[1]:a;i({data:{...o,datasets:o.datasets.map((t,i)=>i===e?{...t,borderColor:l}:t)}})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Border width","ablocks"),attributeValue:t.borderWidth??"0",onChangeHandler:(t,a)=>{i({data:{...o,datasets:o.datasets.map((i,o)=>o===e?{...i,borderWidth:t}:i)}})},min:0,max:10,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Point style","ablocks"),options:[{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Cross","ablocks"),value:"cross"},{label:(0,L.__)("Cross Rot","ablocks"),value:"crossRot"},{label:(0,L.__)("Dash","ablocks"),value:"dash"},{label:(0,L.__)("Line","ablocks"),value:"line"},{label:(0,L.__)("Rect","ablocks"),value:"rect"},{label:(0,
4379 4391 L.__)("Rect Rounded","ablocks"),value:"rectRounded"},{label:(0,L.__)("Rect Rot","ablocks"),value:"rectRot"},{label:(0,L.__)("Star","ablocks"),value:"star"},{label:(0,L.__)("Triangle","ablocks"),value:"triangle"}],attributeValue:t.pointStyle,onChangeHandler:(t,a)=>{i({data:{...o,datasets:o.datasets.map((i,o)=>o===e?{...i,pointStyle:t}:i)}})}}),(0,I.jsx)(_t,{label:(0,L.__)("Point size","ablocks"),attributeValue:t.pointRadius??"8",onChangeHandler:(t,a)=>{i({data:{...o,datasets:o.datasets.map((i,o)=>o===e?{...i,pointRadius:t}:i)}})},min:0,max:100,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Point Hover size","ablocks"),attributeValue:t.pointHoverRadius??"8",onChangeHandler:(t,a)=>{i({data:{...o,datasets:o.datasets.map((i,o)=>o===e?{...i,pointHoverRadius:t}:i)}})},min:0,max:100,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0})]})})}):null),(0,I.jsxs)("button",{className:"ablocks-chart-block-add-button",onClick:()=>{i({data:{...o,
4380 4392 datasets:[...o.datasets,{label:(0,L.__)("Test","ablocks"),data:Array.from({length:o.labels.length},()=>Math.floor(901*Math.random())+100),backgroundColor:c(o.datasets.map(t=>t.backgroundColor)),borderColor:c(o.datasets.map(t=>t.borderColor)),borderWidth:1}]}})},children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),(0,L.__)("Add dataset value","ablocks")]})]}),(0,I.jsx)(V,{title:(0,L.__)("Chart settings","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Chart type","ablocks"),options:[{label:(0,L.__)("Bar","ablocks"),value:"bar"},{label:(0,L.__)("Line","ablocks"),value:"line"},{label:(0,L.__)("Pie","ablocks"),value:"pie"},{label:(0,L.__)("Polar area","ablocks"),value:"polarArea"},{label:(0,L.__)("Radar","ablocks"),value:"radar"}],attributeName:"chartType",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow title","ablocks"),attributeValue:a.plugins.title.display,
4381 4393 onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,title:{...a.plugins.title,display:t}}}})},attributeName:"allowTitle"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow subtitle","ablocks"),attributeValue:a.plugins.subtitle.display,onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,display:t}}}})},attributeName:"allowSubTitle"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow X-axis Title","ablocks"),attributeValue:a.scales.x.title.display,onChangeHandler:t=>{i({options:{...a,scales:{...a.scales,x:{...a.scales.x,title:{...a.scales.x.title,display:t}}}}})}}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow Y-axis Title","ablocks"),attributeValue:a.scales.y.title.display,onChangeHandler:t=>{i({options:{...a,scales:{...a.scales,y:{...a.scales.y,title:{...a.scales.y.title,display:t}}}}})}})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeValue:s,onChangeHandler:(t,e)=>{
4382 -const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({chartBG:o})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeValue:r,attributeName:"chartWidth",setAttributes:i,attributeObjectKey:"value",isInline:!1,min:0,max:100,unitOptions:[{value:"%",label:"%"}],hasUnit:!0,isResponsive:!0,attributeDefaultValue:bV.Xb}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow X-axis grid","ablocks"),attributeValue:a.scales.x.grid.display,onChangeHandler:t=>{i({options:{...a,scales:{...a.scales,x:{...a.scales.x,grid:{...a.scales.x.grid,display:t}}}}})}}),a?.scales.x.grid.display&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("X-axis grid Color","ablocks"),attributeValue:a.scales.x.grid.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({options:{...a,scales:{...a.scales,x:{...a.scales.x,grid:{...a.scales.x.grid,color:o}}}}})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("X-axis grid size","ablocks"),
4394 +const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({chartBG:o})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeValue:r,attributeName:"chartWidth",setAttributes:i,attributeObjectKey:"value",isInline:!1,min:0,max:100,unitOptions:[{value:"%",label:"%"}],hasUnit:!0,isResponsive:!0,attributeDefaultValue:VV.Xb}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow X-axis grid","ablocks"),attributeValue:a.scales.x.grid.display,onChangeHandler:t=>{i({options:{...a,scales:{...a.scales,x:{...a.scales.x,grid:{...a.scales.x.grid,display:t}}}}})}}),a?.scales.x.grid.display&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("X-axis grid Color","ablocks"),attributeValue:a.scales.x.grid.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({options:{...a,scales:{...a.scales,x:{...a.scales.x,grid:{...a.scales.x.grid,color:o}}}}})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("X-axis grid size","ablocks"),
4383 4395 attributeValue:a.scales.x.grid.lineWidth??"1",onChangeHandler:(t,e)=>{i({options:{...a,scales:{...a.scales,x:{...a.scales.x,grid:{...a.scales.x.grid,lineWidth:t}}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0})]}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow Y-axis grid","ablocks"),attributeValue:a.scales.y.grid.display,onChangeHandler:t=>{i({options:{...a,scales:{...a.scales,y:{...a.scales.y,grid:{...a.scales.y.grid,display:t}}}}})}}),a?.scales.y.grid.display&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Y-axis grid Color","ablocks"),attributeValue:a.scales.y.grid.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({options:{...a,scales:{...a.scales,y:{...a.scales.y,grid:{...a.scales.y.grid,color:o}}}}})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Y-axis grid size","ablocks"),attributeValue:a.scales.y.grid.lineWidth??"1",onChangeHandler:(t,e)=>{i({options:{...a,scales:{...a.scales,y:{
4384 4396 ...a.scales.y,grid:{...a.scales.y.grid,lineWidth:t}}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0})]})]})})}),a.scales.x.title.display?(0,I.jsx)(V,{title:(0,L.__)("X-axis Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeValue:a.scales.x.title.text,onChangeHandler:t=>{i({options:{...a,scales:{...a.scales,x:{...a.scales.x,title:{...a.scales.x.title,text:t}}}}})},placeholder:(0,L.__)("Enter your title","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("End","ablocks"),value:"end",icon:"right"}],attributeValue:a.scales.x.title.align,onChangeHandler:t=>{i({options:{...a,scales:{...a.scales,x:{...a.scales.x,title:{...a.scales.x.title,align:t}}}}})}})]}),
4385 4397 style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:a.scales.x.title.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({options:{...a,scales:{...a.scales,x:{...a.scales.x,title:{...a.scales.x.title,color:o}}}}})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Font size","ablocks"),attributeValue:a.scales.x.title.font.size??"0",onChangeHandler:(t,e)=>{i({options:{...a,scales:{...a.scales,x:{...a.scales.x,title:{...a.scales.x.title,font:{...a.scales.x.title.font,size:t}}}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Font weight","ablocks"),options:[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Bold","ablocks"),value:"bold"},{label:(0,L.__)("Lighter","ablocks"),value:"lighter"},{label:(0,L.__)("Bolder","ablocks"),value:"bolder"}],attributeValue:a.scales.x.title.font.weight??"normal",onChangeHandler:(t,e)=>{i({options:{...a,
4386 4398 scales:{...a.scales,x:{...a.scales.x,title:{...a.scales.x.title,font:{...a.scales.x.title.font,weight:t}}}}}})}})]})})}):null,a.scales.y.title.display?(0,I.jsx)(V,{title:(0,L.__)("Y-axis Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeValue:a.scales.y.title.text,onChangeHandler:t=>{i({options:{...a,scales:{...a.scales,y:{...a.scales.y,title:{...a.scales.y.title,text:t}}}}})},placeholder:(0,L.__)("Enter your title","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("End","ablocks"),value:"end",icon:"right"}],attributeValue:a.scales.y.title.align,onChangeHandler:t=>{i({options:{...a,scales:{...a.scales,y:{...a.scales.y,title:{...a.scales.y.title,align:t}}}}})}})]}),style:(0,
@@ -4388,9 +4400,9 @@
4388 4400 ...a.scales,y:{...a.scales.y,title:{...a.scales.y.title,font:{...a.scales.y.title.font,weight:t}}}}}})}})]})})}):null,a.plugins.title.display?(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeValue:a.plugins.title.text,onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,title:{...a.plugins.title,text:t}}}})},placeholder:(0,L.__)("Enter your title","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("End","ablocks"),value:"end",icon:"right"}],attributeValue:a.plugins.title.align,onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,title:{...a.plugins.title,align:t}}}})}})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,
4389 4401 L.__)("Color","ablocks"),attributeValue:a.plugins.title.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({options:{...a,plugins:{...a.plugins,title:{...a.plugins.title,color:o}}}})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Font size","ablocks"),attributeValue:a.plugins.title.font.size??"0",onChangeHandler:(t,e)=>{i({options:{...a,plugins:{...a.plugins,title:{...a.plugins.title,font:{...a.plugins.title.font,size:t}}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Font weight","ablocks"),options:[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Bold","ablocks"),value:"bold"},{label:(0,L.__)("Lighter","ablocks"),value:"lighter"},{label:(0,L.__)("Bolder","ablocks"),value:"bolder"}],attributeValue:a.plugins.title.font.weight??"top",onChangeHandler:(t,e)=>{i({options:{...a,plugins:{...a.plugins,title:{...a.plugins.title,font:{...a.plugins.title.font,weight:t}}}}})}}),(0,
4390 4402 I.jsx)(_t,{label:(0,L.__)("Padding","ablocks"),attributeValue:a.plugins.title.padding??"0",onChangeHandler:(t,e)=>{i({options:{...a,plugins:{...a.plugins,title:{...a.plugins.title,padding:t}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0})]})})}):null,a.plugins.subtitle.display?(0,I.jsx)(V,{title:(0,L.__)("Sub Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Sub Title","ablocks"),attributeValue:a.plugins.subtitle.text,onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,text:t}}}})},placeholder:(0,L.__)("Enter your title","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("End","ablocks"),value:"end",icon:"right"}],
4391 4403 attributeValue:a.plugins.subtitle.align,onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,align:t}}}})}})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:a.plugins.subtitle.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,color:o}}}})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Font size","ablocks"),attributeValue:a.plugins.subtitle.font.size??"0",onChangeHandler:(t,e)=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,font:{...a.plugins.subtitle.font,size:t}}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Font weight","ablocks"),options:[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Bold","ablocks"),value:"bold"},{label:(0,L.__)("Lighter","ablocks"),value:"lighter"},{label:(0,
4392 -L.__)("Bolder","ablocks"),value:"bolder"}],attributeValue:a.plugins.subtitle.font.weight??"top",onChangeHandler:(t,e)=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,font:{...a.plugins.subtitle.font,weight:e}}}}})}}),(0,I.jsx)(_t,{label:(0,L.__)("Padding","ablocks"),attributeValue:a.plugins.subtitle.padding??"0",onChangeHandler:(t,e)=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,padding:t}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0})]})})}):null]})})})}cV.propTypes={};const dV={UU:"ablocks/chart",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},chartType:{type:"string",default:"bar"},chartBG:{type:"string",default:"#fff"},data:{type:"object",default:{labels:["January","February","March","April","May","June"],datasets:[{label:"Sales",data:[300,500,200,800,700,900],backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1,pointStyle:"star",
4404 +L.__)("Bolder","ablocks"),value:"bolder"}],attributeValue:a.plugins.subtitle.font.weight??"top",onChangeHandler:(t,e)=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,font:{...a.plugins.subtitle.font,weight:e}}}}})}}),(0,I.jsx)(_t,{label:(0,L.__)("Padding","ablocks"),attributeValue:a.plugins.subtitle.padding??"0",onChangeHandler:(t,e)=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,padding:t}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0})]})})}):null]})})})}OV.propTypes={};const YV={UU:"ablocks/chart",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},chartType:{type:"string",default:"bar"},chartBG:{type:"string",default:"#fff"},data:{type:"object",default:{labels:["January","February","March","April","May","June"],datasets:[{label:"Sales",data:[300,500,200,800,700,900],backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1,pointStyle:"star",
4393 4405 pointRadius:8,pointHoverRadius:12},{label:"buys",data:[400,600,300,900,800,800],backgroundColor:"yellow",borderColor:"red",borderWidth:1,pointStyle:"triangle",pointRadius:8,pointHoverRadius:12}]}},options:{type:"object",default:{responsive:!0,aspectRatio:1,maintainAspectRatio:!0,scales:{x:{ticks:{color:"blue",font:{size:14}},grid:{display:!0,color:"lightgray",lineWidth:1},title:{display:!0,text:"X-Axis Label",color:"darkblue",align:"center",font:{size:16,weight:"bold"}}},y:{ticks:{color:"green",font:{size:14}},grid:{display:!0,color:"gray",lineWidth:1},title:{display:!0,text:"Y-Axis Label",color:"darkgreen",align:"center",font:{size:16,weight:"bold"}}}},plugins:{legend:{position:"top",labels:{usePointStyle:!0}},title:{display:!0,text:"Monthly Sales",position:"top",align:"center",padding:10,font:{size:20,weight:"bold"}},subtitle:{display:!1,text:"Custom Chart Subtitle",position:"top",align:"center",padding:10,font:{size:12,weight:"bold"}}}}},alignment:{type:"object",default:{
4394 4406 value:"left",valueTablet:"",valueMobile:""}},chartHeight:{type:"object",default:{value:620,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},chartWidth:{type:"object",default:{value:95,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",
4395 4407 customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",
4396 4408 isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",
@@ -4398,13 +4410,13 @@
4398 4410 imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,
4399 4411 videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",
4400 4412 yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,
4401 4413 maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{
4402 -animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function uV(t){const{attributes:e,setAttributes:o}=t,{block_id:n,data:s,options:r,chartType:b,chartHeight:c,chartWidth:d,chartBG:u}=e,[p,m]=(0,a.useState)(!1),h=(0,a.useRef)(null),g=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let t=!0;return m(!0),g.current&&(g.current.destroy(),g.current=null),Promise.all([i.e(106),i.e(5961)]).then(i.bind(i,92656)).then(({default:i})=>{if(!t)return;const o=(0,
4403 -M.bu)(`.ablocks-block-${n}.ablocks-block--chart canvas`);if(o){const t=o.getContext("2d");g.current=new i(o,e,t)}m(!1)}),()=>{t=!1,g.current&&g.current.destroy()}},[s,r,b]),(0,a.useEffect)(()=>{const t={...c,value:620*d.value/100,valueTablet:620*d.valueTablet/100,valueMobile:620*d.valueMobile/100,valueUnit:"px",valueUnitTablet:"px",valueUnitMobile:"px"};o({chartHeight:t})},[b,d]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:n,name:dV.UU,attributes:e,children:[p&&(0,I.jsx)(N.Spinner,{}),(0,I.jsx)("canvas",{className:"ablocks-chart-canvas",ref:h,style:{display:"block",boxSizing:"border-box",background:u}})]})]})}const pV=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),mV=(t,e="")=>{const{chartHeight:i,chartWidth:o,chartType:a}=t,l={...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:95,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})};l.width&&(l.width=`${l.width} !important`);const n={
4404 -...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:620,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return n.height&&(n.height=`${n.height} !important`),{...n,...l}};function hV(t){const{attributes:e}=t,{block_id:i,chartType:o,chartBG:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:dV.UU,attributes:e,blockProps:{"data-chart-type":o,"data-data":JSON.stringify(e.data),"data-options":JSON.stringify(e.options)},children:(0,I.jsx)("canvas",{style:`display: block;box-sizing: border-box;background: ${a};`,className:"ablocks-chart-canvas"})})})}hV.propTypes={};function gV(t){const{attributes:e}=t,{block_id:i,chartType:o,chartBG:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:"ablocks/chart",attributes:e,blockProps:{"data-chart-type":o,"data-data":JSON.stringify(e.data),"data-options":JSON.stringify(e.options)},children:(0,I.jsx)("canvas",{
4405 -style:`display: block;box-sizing: border-box;background: ${a};`,className:"ablocks-chart-canvas"})})})}gV.propTypes={},(0,M.xV)(dV.UU)&&(0,o.registerBlockType)(dV.UU,{title:(0,L.__)("Chart","ablocks"),attributes:dV.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--chart"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",pV(i),pV(i,"Tablet"),pV(i,"Mobile"),e(t=>pV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-chart-canvas",mV(i),mV(i,"Tablet"),mV(i,"Mobile"),e(t=>mV(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{
4406 -children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(cV,{...t}),(0,I.jsx)(uV,{...t})]})},save:hV,deprecated:[{attributes:{block_id:{type:"string",default:""},chartType:{type:"string",default:"bar"},chartBG:{type:"string",default:"#fff"},data:{type:"object",default:{labels:["January","February","March","April","May","June"],datasets:[{label:"Sales",data:[300,500,200,800,700,900],backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1,pointStyle:"star",pointRadius:8,pointHoverRadius:12},{label:"buys",data:[400,600,300,900,800,800],backgroundColor:"yellow",borderColor:"red",borderWidth:1,pointStyle:"triangle",pointRadius:8,pointHoverRadius:12}]}},options:{type:"object",default:{responsive:!0,aspectRatio:1,maintainAspectRatio:!0,scales:{x:{ticks:{color:"blue",font:{size:14}},grid:{display:!0,color:"lightgray",lineWidth:1},title:{display:!0,text:"X-Axis Label",color:"darkblue",align:"center",font:{size:16,weight:"bold"}}},y:{ticks:{color:"green",font:{
4414 +animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function XV(t){const{attributes:e,setAttributes:o}=t,{block_id:n,data:s,options:r,chartType:b,chartHeight:c,chartWidth:d,chartBG:u}=e,[p,m]=(0,a.useState)(!1),h=(0,a.useRef)(null),g=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let t=!0;return m(!0),g.current&&(g.current.destroy(),g.current=null),Promise.all([i.e(106),i.e(5961)]).then(i.bind(i,92656)).then(({default:i})=>{if(!t)return;const o=(0,
4415 +M.bu)(`.ablocks-block-${n}.ablocks-block--chart canvas`);if(o){const t=o.getContext("2d");g.current=new i(o,e,t)}m(!1)}),()=>{t=!1,g.current&&g.current.destroy()}},[s,r,b]),(0,a.useEffect)(()=>{const t={...c,value:620*d.value/100,valueTablet:620*d.valueTablet/100,valueMobile:620*d.valueMobile/100,valueUnit:"px",valueUnitTablet:"px",valueUnitMobile:"px"};o({chartHeight:t})},[b,d]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:n,name:YV.UU,attributes:e,children:[p&&(0,I.jsx)(N.Spinner,{}),(0,I.jsx)("canvas",{className:"ablocks-chart-canvas",ref:h,style:{display:"block",boxSizing:"border-box",background:u}})]})]})}const BV=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),EV=(t,e="")=>{const{chartHeight:i,chartWidth:o,chartType:a}=t,l={...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:95,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})};l.width&&(l.width=`${l.width} !important`);const n={
4416 +...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:620,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return n.height&&(n.height=`${n.height} !important`),{...n,...l}};function FV(t){const{attributes:e}=t,{block_id:i,chartType:o,chartBG:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:YV.UU,attributes:e,blockProps:{"data-chart-type":o,"data-data":JSON.stringify(e.data),"data-options":JSON.stringify(e.options)},children:(0,I.jsx)("canvas",{style:`display: block;box-sizing: border-box;background: ${a};`,className:"ablocks-chart-canvas"})})})}FV.propTypes={};function qV(t){const{attributes:e}=t,{block_id:i,chartType:o,chartBG:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:"ablocks/chart",attributes:e,blockProps:{"data-chart-type":o,"data-data":JSON.stringify(e.data),"data-options":JSON.stringify(e.options)},children:(0,I.jsx)("canvas",{
4417 +style:`display: block;box-sizing: border-box;background: ${a};`,className:"ablocks-chart-canvas"})})})}qV.propTypes={},(0,M.xV)(YV.UU)&&(0,o.registerBlockType)(YV.UU,{title:(0,L.__)("Chart","ablocks"),attributes:YV.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--chart"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",BV(i),BV(i,"Tablet"),BV(i,"Mobile"),e(t=>BV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-chart-canvas",EV(i),EV(i,"Tablet"),EV(i,"Mobile"),e(t=>EV(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{
4418 +children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(OV,{...t}),(0,I.jsx)(XV,{...t})]})},save:FV,deprecated:[{attributes:{block_id:{type:"string",default:""},chartType:{type:"string",default:"bar"},chartBG:{type:"string",default:"#fff"},data:{type:"object",default:{labels:["January","February","March","April","May","June"],datasets:[{label:"Sales",data:[300,500,200,800,700,900],backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1,pointStyle:"star",pointRadius:8,pointHoverRadius:12},{label:"buys",data:[400,600,300,900,800,800],backgroundColor:"yellow",borderColor:"red",borderWidth:1,pointStyle:"triangle",pointRadius:8,pointHoverRadius:12}]}},options:{type:"object",default:{responsive:!0,aspectRatio:1,maintainAspectRatio:!0,scales:{x:{ticks:{color:"blue",font:{size:14}},grid:{display:!0,color:"lightgray",lineWidth:1},title:{display:!0,text:"X-Axis Label",color:"darkblue",align:"center",font:{size:16,weight:"bold"}}},y:{ticks:{color:"green",font:{
4407 4419 size:14}},grid:{display:!0,color:"gray",lineWidth:1},title:{display:!0,text:"Y-Axis Label",color:"darkgreen",align:"center",font:{size:16,weight:"bold"}}}},plugins:{legend:{position:"top",labels:{usePointStyle:!0}},title:{display:!0,text:"Monthly Sales",position:"top",align:"center",padding:10,font:{size:20,weight:"bold"}},subtitle:{display:!1,text:"Custom Chart Subtitle",position:"top",align:"center",padding:10,font:{size:12,weight:"bold"}}}}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},chartHeight:{type:"object",default:{value:620,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},chartWidth:{type:"object",default:{value:95,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",
4408 4420 bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",
4409 4421 leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",
4410 4422 commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",
@@ -4411,18 +4423,18 @@
4411 4423 imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",
4412 4424 imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",
4413 4425 offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",
4414 4426 offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",
4415 -yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:gV}]});var fV=i(9233);(0,L.__)("Thumbnail","ablocks"),(0,L.__)("Medium","ablocks"),(0,L.__)("Large","ablocks"),(0,L.__)("Full","ablocks"),(0,L.__)("Custom","ablocks"),(0,L.__)("None","ablocks"),(0,L.__)("Custom","ablocks");const yV=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom"}],TV=[{label:(0,
4416 -L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Fill","ablocks"),value:"fill"},{label:(0,L.__)("Cover","ablocks"),value:"cover"},{label:(0,L.__)("Contain","ablocks"),value:"contain"}],HV=[{label:(0,L.__)("Static","ablocks"),value:"static"},{label:(0,L.__)("Zoom in","ablocks"),value:"zoomin"},{label:(0,L.__)("Slide","ablocks"),value:"slide"},{label:(0,L.__)("Gray scale","ablocks"),value:"grayscale"},{label:(0,L.__)("Blur","ablocks"),value:"blur"}],MV=[{label:(0,L.__)("Original","ablocks"),value:"original"},{label:(0,L.__)("Square - 1:1","ablocks"),value:"1/1"},{label:(0,L.__)("Standard - 4:3","ablocks"),value:"4/3"},{label:(0,L.__)("Portrait - 3:4","ablocks"),value:"3/4"},{label:(0,L.__)("Classic - 3:2","ablocks"),value:"3/2"},{label:(0,L.__)("Classic Portrait - 2:3","ablocks"),value:"2/3"},{label:(0,L.__)("Wide - 16:9","ablocks"),value:"16/9"},{label:(0,L.__)("Tall - 9:16","ablocks"),value:"9/16"}];function xV(t){
4427 +yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:qV}]});var $V=i(9233);(0,L.__)("Thumbnail","ablocks"),(0,L.__)("Medium","ablocks"),(0,L.__)("Large","ablocks"),(0,L.__)("Full","ablocks"),(0,L.__)("Custom","ablocks"),(0,L.__)("None","ablocks"),(0,L.__)("Custom","ablocks");const GV=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Custom URL","ablocks"),value:"custom"}],ZV=[{label:(0,
4428 +L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Fill","ablocks"),value:"fill"},{label:(0,L.__)("Cover","ablocks"),value:"cover"},{label:(0,L.__)("Contain","ablocks"),value:"contain"}],KV=[{label:(0,L.__)("Static","ablocks"),value:"static"},{label:(0,L.__)("Zoom in","ablocks"),value:"zoomin"},{label:(0,L.__)("Slide","ablocks"),value:"slide"},{label:(0,L.__)("Gray scale","ablocks"),value:"grayscale"},{label:(0,L.__)("Blur","ablocks"),value:"blur"}],JV=[{label:(0,L.__)("Original","ablocks"),value:"original"},{label:(0,L.__)("Square - 1:1","ablocks"),value:"1/1"},{label:(0,L.__)("Standard - 4:3","ablocks"),value:"4/3"},{label:(0,L.__)("Portrait - 3:4","ablocks"),value:"3/4"},{label:(0,L.__)("Classic - 3:2","ablocks"),value:"3/2"},{label:(0,L.__)("Classic Portrait - 2:3","ablocks"),value:"2/3"},{label:(0,L.__)("Wide - 16:9","ablocks"),value:"16/9"},{label:(0,L.__)("Tall - 9:16","ablocks"),value:"9/16"}];function QV(t){
4417 4429 const{attributes:e,setAttributes:i,isSelected:o,currentImageData:n,context:s}=t,{imgId:b,imgIdTablet:c,imgIdMobile:d,opacity:u,opacityH:p,aspectRatio:m,alignment:h,cssFilter:g,cssHoverFilter:f,boxShadow:y,filterTransitionDuration:T,imgLink:{linkDestination:H,href:M},widthHeightWidget:x={}}=e,k=lt(),v=x?.["showHeight"+k],_=x?.["width"+k],[R,S]=(0,a.useState)([]);let W;W="Tablet"===k?c||b:"Mobile"===k&&(d||c)||b;const{image:P}=(0,r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:W&&o?e(W):null}},[o,W]),U=(0,I.jsxs)(I.Fragment,{children:[R?.length>0&&(0,I.jsx)(Ut,{label:(0,L.__)("Image sizes","ablocks"),isResponsive:!0,options:R,attributeName:"imgSize",attributeValue:e?.imgSize["value"+k],setAttributes:i,onChangeHandler:t=>{const o=((t,e)=>{const{media_details:{sizes:i}}=t;if("custom"===e)return{width:i.large?.width,height:i.large?.height,url:i.large?.source_url,objectFit:"cover"};const o=i[e],{width:a,height:l,source_url:n}=o;return{width:a,height:l,url:n}
4418 -})(P,t),{url:a,objectFit:l,aspectRatio:n}=o;return i({["imgUrl"+k]:a,imgSize:{...e?.imgSize,["value"+k]:t},widthHeightWidget:{...e?.widthHeightWidget},objectFit:{...e?.objectFit,["value"+k]:l||e?.objectFit["value"+k]},aspectRatio:{...e?.aspectRatio,["value"+k]:n||e?.aspectRatio["value"+k]}})}}),(0,I.jsx)(Ut,{label:(0,L.__)("Aspect ratio","ablocks"),isResponsive:!0,options:MV,onChangeHandler:t=>{const e={...m,["value"+k]:t},o={...x};let a="";const l=n?.media_details?.width,s=n?.media_details?.height;if(t&&"original"!==t){const[e,i]=t.split("/").map(parseFloat);a=e/i}else t&&"original"===t&&(a=l/s);e["ratio"+k]=a,a&&_&&(o["showHeight"+k]=!1,o["height"+k]=""),i({aspectRatio:e,widthHeightWidget:o})},attributeName:"aspectRatio",attributeValue:m,attributeObjectKey:"value",setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:h,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,
4430 +})(P,t),{url:a,objectFit:l,aspectRatio:n}=o;return i({["imgUrl"+k]:a,imgSize:{...e?.imgSize,["value"+k]:t},widthHeightWidget:{...e?.widthHeightWidget},objectFit:{...e?.objectFit,["value"+k]:l||e?.objectFit["value"+k]},aspectRatio:{...e?.aspectRatio,["value"+k]:n||e?.aspectRatio["value"+k]}})}}),(0,I.jsx)(Ut,{label:(0,L.__)("Aspect ratio","ablocks"),isResponsive:!0,options:JV,onChangeHandler:t=>{const e={...m,["value"+k]:t},o={...x};let a="";const l=n?.media_details?.width,s=n?.media_details?.height;if(t&&"original"!==t){const[e,i]=t.split("/").map(parseFloat);a=e/i}else t&&"original"===t&&(a=l/s);e["ratio"+k]=a,a&&_&&(o["showHeight"+k]=!1,o["height"+k]=""),i({aspectRatio:e,widthHeightWidget:o})},attributeName:"aspectRatio",attributeValue:m,attributeObjectKey:"value",setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:h,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,
4419 4431 L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Featured Image Dimensions","ablocks"),isHeader:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeValue:e?.widthHeightWidget["width"+k],onChangeHandler:t=>{const e={};if(t&&!isNaN(t)){if(e.widthHeightWidget={...x,["width"+k]:t},v)e.aspectRatio={...m,["ratio"+k]:"",["value"+k]:void 0};else if(e.widthHeightWidget={...e.widthHeightWidget,["height"+k]:""},!m["value"+k]){const t=n?.media_details?.width,i=n?.media_details?.height;e.aspectRatio={...m,["ratio"+k]:t/i,["value"+k]:"original"}}}else{if(e.widthHeightWidget={...x,["width"+k]:""},!m["value"+k]){const t=n?.media_details?.width,i=n?.media_details?.height;e.aspectRatio={...m,["ratio"+k]:t/i,["value"+k]:"original"}}v||(e.widthHeightWidget={...e.widthHeightWidget,["height"+k]:""})}i(e)},placeholder:(0,L.__)("Auto","ablocks"),isInline:!1,
4420 -isResponsive:!0,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Height","ablocks"),attributeName:"height",attributeValue:x["showHeight"+k]?x["height"+k]:"",placeholder:(0,L.__)("Auto","ablocks"),isResponsive:!0,onChangeHandler:t=>{const e={};if(t&&!isNaN(t))e.widthHeightWidget={...x,["height"+k]:t,["showHeight"+k]:!0},_&&(e.aspectRatio={...m,["ratio"+k]:_/t,["value"+k]:void 0});else if(e.widthHeightWidget={...x,["height"+k]:"",["showHeight"+k]:!1},_){const t=n?.media_details?.width,i=n?.media_details?.height;e.aspectRatio={...m,["ratio"+k]:t/i,["value"+k]:"original"}}i(e)},isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Object fit","ablocks"),isResponsive:!0,options:TV,attributeName:"objectFit",attributeValue:e.objectFit,attributeObjectKey:"value",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Kl,{label:(0,L.__)("Title","ablocks"),attributeName:"imgTitle",attributeValue:e.imgTitle,setAttributes:i,isInline:!1,context:s}),(0,I.jsx)(Ut,{label:(0,
4421 -L.__)("Link","ablocks"),options:yV,attributeObjectKey:"linkDestination",attributeValue:e?.imgLink,setAttributes:i,onChangeHandler:t=>{i({imgLink:{...e?.imgLink,linkDestination:t}})}}),"custom"===H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Image link","ablocks"),attributeName:"imgLink",attributeValue:M,isInline:!1,setAttributes:i,onChangeHandler:t=>{i({imgLink:{...e?.imgLink,href:t}})},disableDynamicContent:!0}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Open in new tab","ablocks"),attributeValue:e?.imgLink,setAttributes:i,attributeName:"imgLink",attributeObjectKey:"linkTarget"})]}),(0,I.jsxs)("div",{className:"ablocks-alt-text-control",children:[(0,I.jsxs)("div",{className:"ablocks-alt-text-control__header",children:[(0,I.jsx)("span",{children:(0,L.__)("Alt Text","ablocks")}),(0,I.jsx)("span",{onClick:()=>{i({imgAltText:""})},onKeyDown:()=>{},role:"presentation",className:"ablocks-alt-text-control__clear",children:(0,L.__)("clear","ablocks")})]}),(0,I.jsx)(Kl,{
4422 -attributeName:"imgAltText",attributeValue:e.imgAltText,setAttributes:i,isInline:!1,context:s})]}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("On Hover image","ablocks"),options:HV,attributeName:"onHoverImg",attributeValue:e.onHoverImg,setAttributes:i})]}),j=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Filter & Opacity","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:g,attributeName:"cssFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacity",attributeValue:u,setAttributes:i,attributeDefaultValue:fV.ke})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:f,attributeName:"cssHoverFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,
4423 -step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:p,setAttributes:i,attributeDefaultValue:fV.md}),(0,I.jsx)(_t,{label:(0,L.__)("Transition duration(ms)","ablocks"),min:0,max:10,step:.5,isInline:!1,isResponsive:!1,setAttributes:i,attributeName:"filterTransitionDuration",attributeValue:T,attributeDefaultValue:fV.yy})]})}),(0,I.jsx)(It,{margin:"20"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(Iv,{note:(0,L.__)("Border hover worked only frontend","ablocks")}),(0,I.jsx)(It,{margin:"20"}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:y,setAttributes:i}),(0,I.jsx)(Iv,{note:(0,L.__)("Box shadow hover worked only frontend","ablocks")})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{
4424 -children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Featured Image","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:U,style:j})})})})})}xV.propTypes={};const kV={UU:"ablocks/featured-image",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""}},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",
4432 +isResponsive:!0,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Height","ablocks"),attributeName:"height",attributeValue:x["showHeight"+k]?x["height"+k]:"",placeholder:(0,L.__)("Auto","ablocks"),isResponsive:!0,onChangeHandler:t=>{const e={};if(t&&!isNaN(t))e.widthHeightWidget={...x,["height"+k]:t,["showHeight"+k]:!0},_&&(e.aspectRatio={...m,["ratio"+k]:_/t,["value"+k]:void 0});else if(e.widthHeightWidget={...x,["height"+k]:"",["showHeight"+k]:!1},_){const t=n?.media_details?.width,i=n?.media_details?.height;e.aspectRatio={...m,["ratio"+k]:t/i,["value"+k]:"original"}}i(e)},isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Object fit","ablocks"),isResponsive:!0,options:ZV,attributeName:"objectFit",attributeValue:e.objectFit,attributeObjectKey:"value",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Kl,{label:(0,L.__)("Title","ablocks"),attributeName:"imgTitle",attributeValue:e.imgTitle,setAttributes:i,isInline:!1,context:s}),(0,I.jsx)(Ut,{label:(0,
4433 +L.__)("Link","ablocks"),options:GV,attributeObjectKey:"linkDestination",attributeValue:e?.imgLink,setAttributes:i,onChangeHandler:t=>{i({imgLink:{...e?.imgLink,linkDestination:t}})}}),"custom"===H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Image link","ablocks"),attributeName:"imgLink",attributeValue:M,isInline:!1,setAttributes:i,onChangeHandler:t=>{i({imgLink:{...e?.imgLink,href:t}})},disableDynamicContent:!0}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Open in new tab","ablocks"),attributeValue:e?.imgLink,setAttributes:i,attributeName:"imgLink",attributeObjectKey:"linkTarget"})]}),(0,I.jsxs)("div",{className:"ablocks-alt-text-control",children:[(0,I.jsxs)("div",{className:"ablocks-alt-text-control__header",children:[(0,I.jsx)("span",{children:(0,L.__)("Alt Text","ablocks")}),(0,I.jsx)("span",{onClick:()=>{i({imgAltText:""})},onKeyDown:()=>{},role:"presentation",className:"ablocks-alt-text-control__clear",children:(0,L.__)("clear","ablocks")})]}),(0,I.jsx)(Kl,{
4434 +attributeName:"imgAltText",attributeValue:e.imgAltText,setAttributes:i,isInline:!1,context:s})]}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("On Hover image","ablocks"),options:KV,attributeName:"onHoverImg",attributeValue:e.onHoverImg,setAttributes:i})]}),j=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Filter & Opacity","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:g,attributeName:"cssFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacity",attributeValue:u,setAttributes:i,attributeDefaultValue:$V.ke})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:f,attributeName:"cssHoverFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,
4435 +step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:p,setAttributes:i,attributeDefaultValue:$V.md}),(0,I.jsx)(_t,{label:(0,L.__)("Transition duration(ms)","ablocks"),min:0,max:10,step:.5,isInline:!1,isResponsive:!1,setAttributes:i,attributeName:"filterTransitionDuration",attributeValue:T,attributeDefaultValue:$V.yy})]})}),(0,I.jsx)(It,{margin:"20"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(Iv,{note:(0,L.__)("Border hover worked only frontend","ablocks")}),(0,I.jsx)(It,{margin:"20"}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:y,setAttributes:i}),(0,I.jsx)(Iv,{note:(0,L.__)("Box shadow hover worked only frontend","ablocks")})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{
4436 +children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Featured Image","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:U,style:j})})})})})}QV.propTypes={};const tO={UU:"ablocks/featured-image",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""}},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",
4425 4437 imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1}},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},imgCaption:{type:"boolean",default:!1},position:{type:"string",default:"below"},imgLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",linkClass:""}},imgAltText:{type:"string",default:""},onHoverImg:{type:"string",default:"static"},imgTitle:{type:"string",default:""},cssFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},cssHoverFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",
4426 4438 shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",
4427 4439 bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},padding:{type:"object",default:{isLinked:!0,
4428 4440 isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},opacity:{type:"number",default:1},opacityH:{type:"number",default:1},transitionDuration:{type:"number",default:.5},filterTransitionDuration:{type:"number",default:.5},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",
@@ -4432,19 +4444,19 @@
4432 4444 imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",
4433 4445 imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",
4434 4446 scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,
4435 4447 xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",
4436 -blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},vV=t=>parseInt(t||0,10)||0;function _V(t){const{attributes:e,context:i}=t,{block_id:o}=e,l=(0,r.useSelect)(t=>{
4437 -const o=t("core/editor"),a=t("core/edit-site")?.getEditedPostContext?.()??{},l=vV(i?.postId||o?.getCurrentPostId?.()||a?.postId||e?.postId);if(l)return l;const n=i?.postType||a?.postType||o?.getCurrentPostType?.()||"post",s=t("core")?.getEntityRecords?.("postType",n,{per_page:1,order:"desc",orderby:"date"});return vV(s?.[0]?.id)},[i?.postId,i?.postType,e?.postId])||0,n=(0,a.useMemo)(()=>l?{post_id:l}:{},[l]);return(0,I.jsx)(Yb.A,{blockId:o,name:kV.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight}],children:(0,I.jsx)(tW(),{block:kV.UU,httpMethod:"POST",attributes:e,urlQueryArgs:n},`fi-ssr-${l}`)})}const RV=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},SV=(t,e="")=>{const{alignment:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o["justify-content"]=i["value"+e]),o},WV=(t,e="")=>{const{opacity:i,onHoverImg:o}=t,a={},l={...(0,Eb.qD)({attributeValue:i,defaultValue:1,
4438 -property:"opacity",unitDefaultValue:"",device:e})};if(""!==t?.objectFit["value"+e]&&"default"!==t?.objectFit["value"+e]&&(a["object-fit"]=t?.objectFit["value"+e]),t.aspectRatio&&"object"==typeof t.aspectRatio){const i=t.aspectRatio["value"+e];i&&"original"!==i&&(a["aspect-ratio"]=i)}"slide"===o&&(a.transform="translate3d(-40px, 0, 0)",a.transition="transform 0.3s");const n=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return t.widthHeightWidget["width"+e]&&(a.width=t.widthHeightWidget["width"+e]+"px"),t.widthHeightWidget["height"+e]&&(a.height=t.widthHeightWidget["height"+e]+"px"),{...a,...l,...(0,y.qD)(n,e),...(0,cy.qD)(t?.cssFilter,e),...(0,H.qD)(t?.boxShadow,e)}},PV=(t,e="")=>{const{onHoverImg:i,opacityH:o}=t,a={},l={...(0,Eb.qD)({attributeValue:o,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})},n={...(0,Eb.qD)({attributeValue:t.transitionDuration,defaultValue:.5,property:"transitionDuration",unitDefaultValue:"",device:e})},s={...(0,Eb.qD)({
4448 +blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},eO=t=>parseInt(t||0,10)||0;function iO(t){const{attributes:e,context:i}=t,{block_id:o}=e,l=(0,r.useSelect)(t=>{
4449 +const o=t("core/editor"),a=t("core/edit-site")?.getEditedPostContext?.()??{},l=eO(i?.postId||o?.getCurrentPostId?.()||a?.postId||e?.postId);if(l)return l;const n=i?.postType||a?.postType||o?.getCurrentPostType?.()||"post",s=t("core")?.getEntityRecords?.("postType",n,{per_page:1,order:"desc",orderby:"date"});return eO(s?.[0]?.id)},[i?.postId,i?.postType,e?.postId])||0,n=(0,a.useMemo)(()=>l?{post_id:l}:{},[l]);return(0,I.jsx)(Yb.A,{blockId:o,name:tO.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight}],children:(0,I.jsx)(sW(),{block:tO.UU,httpMethod:"POST",attributes:e,urlQueryArgs:n},`fi-ssr-${l}`)})}const oO=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},aO=(t,e="")=>{const{alignment:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o["justify-content"]=i["value"+e]),o},lO=(t,e="")=>{const{opacity:i,onHoverImg:o}=t,a={},l={...(0,Eb.qD)({attributeValue:i,defaultValue:1,
4450 +property:"opacity",unitDefaultValue:"",device:e})};if(""!==t?.objectFit["value"+e]&&"default"!==t?.objectFit["value"+e]&&(a["object-fit"]=t?.objectFit["value"+e]),t.aspectRatio&&"object"==typeof t.aspectRatio){const i=t.aspectRatio["value"+e];i&&"original"!==i&&(a["aspect-ratio"]=i)}"slide"===o&&(a.transform="translate3d(-40px, 0, 0)",a.transition="transform 0.3s");const n=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return t.widthHeightWidget["width"+e]&&(a.width=t.widthHeightWidget["width"+e]+"px"),t.widthHeightWidget["height"+e]&&(a.height=t.widthHeightWidget["height"+e]+"px"),{...a,...l,...(0,y.qD)(n,e),...(0,cy.qD)(t?.cssFilter,e),...(0,H.qD)(t?.boxShadow,e)}},nO=(t,e="")=>{const{onHoverImg:i,opacityH:o}=t,a={},l={...(0,Eb.qD)({attributeValue:o,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})},n={...(0,Eb.qD)({attributeValue:t.transitionDuration,defaultValue:.5,property:"transitionDuration",unitDefaultValue:"",device:e})},s={...(0,Eb.qD)({
4439 4451 attributeValue:t.filterTransitionDuration,defaultValue:.5,property:"filterTransitionDuration",unitDefaultValue:"",device:e})};t["imgUrl"+e]&&("zoomin"===i?(a.transform="scale(1.1)",a.transition="transform 0.3s"):"grayscale"===i?(a.filter="grayscale(100%)",a.transition="transform 0.3s"):"blur"===i?(a.filter="blur(3px)",a.transition="transform 0.3s"):"slide"===i&&(a.transform="translate3d(0, 0, 0)",a.transition="transform 0.3s"),""!==o&&void 0!==o&&(a.opacity=o),(t.border?.transitionDuration||t.boxShadow?.transitionDuration||s.filterTransitionDuration||n.transitionDuration)&&(a.transition=`\n border ${t.border?.transitionDuration||n.transitionDuration}s, \n box-shadow ${t.boxShadow?.transitionDuration||n.transitionDuration}s,\n opacity ${s.filterTransitionDuration}s, \n filter ${s.filterTransitionDuration}s, \n transform 0.3s\n `));const r=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{
4440 -...a,...l,...(0,y.a9)(r,e),...(0,cy.qD)(t?.cssHoverFilter,e),...(0,H.a9)(t?.boxShadow,e)}};(0,M.xV)(kV.UU)&&(0,o.registerBlockType)(kV.UU,{title:(0,L.__)("Featured Image","ablocks"),attributes:kV.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-image"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new A(i,l),e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",RV(i),RV(i,"Tablet"),RV(i,"Mobile"),e(t=>RV(i,t))),t.addClassStyles("{{WRAPPER}}",SV(i),SV(i,"Tablet"),SV(i,"Mobile"),e(t=>SV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container > .ablocks-block--featured-image > .ablocks-featured-image",WV(i),WV(i,"Tablet"),WV(i,"Mobile"),e(t=>WV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--featured-image img:hover",PV(i),PV(i,"Tablet"),PV(i,"Mobile"),e(t=>PV(i,t))),(0,
4441 -b.applyFilters)("ablocks.featuredImage.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(xV,{...t}),(0,I.jsx)(_V,{...t})]})},save:()=>null});var UV=i(58372);function jV(t){const{attributes:e,setAttributes:i}=t,{homeBreadcrumbs:o,positionBreadcrumb:a,breadcrumbTitlecolor:n,breadcrumbLinkcolor:s,breadcrumbHoverLinkcolor:r,breadcrumbseparatorcolor:b,SeparatorChange:c,breadcrumbseparsize:d,breadcrumbSpaceBetween:u,beforeBreadcrumbImage:p,beforeBreadcrumbTextImage:m,beforeBreadcrumbText:h,beforeTextImage:g,beforeBreadcrumbBackgroundcolor:f,beforeBreadcrumbPaddingcolor:y,beforeBreadcrumbBorderRadius:T,BreadcrumbBorderRadius:H,breadcrumbItemPadding:M,breadcrumbItemBackground:x,beforeSeparator:k,breadcrumbTitleTypography:v=!0}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Breadcrumbs Settings","ablocks"),
4452 +...a,...l,...(0,y.a9)(r,e),...(0,cy.qD)(t?.cssHoverFilter,e),...(0,H.a9)(t?.boxShadow,e)}};(0,M.xV)(tO.UU)&&(0,o.registerBlockType)(tO.UU,{title:(0,L.__)("Featured Image","ablocks"),attributes:tO.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-image"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new A(i,l),e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",oO(i),oO(i,"Tablet"),oO(i,"Mobile"),e(t=>oO(i,t))),t.addClassStyles("{{WRAPPER}}",aO(i),aO(i,"Tablet"),aO(i,"Mobile"),e(t=>aO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container > .ablocks-block--featured-image > .ablocks-featured-image",lO(i),lO(i,"Tablet"),lO(i,"Mobile"),e(t=>lO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--featured-image img:hover",nO(i),nO(i,"Tablet"),nO(i,"Mobile"),e(t=>nO(i,t))),(0,
4453 +b.applyFilters)("ablocks.featuredImage.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(QV,{...t}),(0,I.jsx)(iO,{...t})]})},save:()=>null});var sO=i(58372);function rO(t){const{attributes:e,setAttributes:i}=t,{homeBreadcrumbs:o,positionBreadcrumb:a,breadcrumbTitlecolor:n,breadcrumbLinkcolor:s,breadcrumbHoverLinkcolor:r,breadcrumbseparatorcolor:b,SeparatorChange:c,breadcrumbseparsize:d,breadcrumbSpaceBetween:u,beforeBreadcrumbImage:p,beforeBreadcrumbTextImage:m,beforeBreadcrumbText:h,beforeTextImage:g,beforeBreadcrumbBackgroundcolor:f,beforeBreadcrumbPaddingcolor:y,beforeBreadcrumbBorderRadius:T,BreadcrumbBorderRadius:H,breadcrumbItemPadding:M,breadcrumbItemBackground:x,beforeSeparator:k,breadcrumbTitleTypography:v=!0}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Breadcrumbs Settings","ablocks"),
4442 4454 initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Home Text Change","ablocks"),attributeName:"homeBreadcrumbs",attributeValue:o,setAttributes:i,isInline:!1,placeholder:(0,L.__)("Home","ablocks"),disableDynamicContent:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"positionBreadcrumb",attributeValue:a,setAttributes:i,options:[{label:(0,L.__)("Start","ablocks"),value:"start",icon:"arrow-left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("End","ablocks"),value:"end",icon:"arrow-right"}],isInline:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Before Text/Image","ablocks"),attributeValue:g,setAttributes:i,attributeName:"beforeTextImage"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable FAQ Schema (SEO)","ablocks"),attributeValue:e?.enableFaqSchema,setAttributes:i,attributeName:"enableFaqSchema"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,
4443 -L.__)("Typography","ablocks"),attributeName:"breadcrumbTitleTypography",attributeValue:v,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"breadcrumbTitlecolor",attributeValue:n,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Space Between","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"breadcrumbSpaceBetween",attributeValue:e?.breadcrumbSpaceBetween,setAttributes:i,attributeDefaultValue:UV.sk}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"breadcrumbItemBackground",attributeValue:x,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"breadcrumbItemPadding",attributeValue:M,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Border Radius","ablocks"),isResponsive:!0,attributeName:"BreadcrumbBorderRadius",attributeValue:H,setAttributes:i})]})})}),(0,I.jsx)(N.PanelBody,{title:(0,
4455 +L.__)("Typography","ablocks"),attributeName:"breadcrumbTitleTypography",attributeValue:v,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"breadcrumbTitlecolor",attributeValue:n,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Space Between","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"breadcrumbSpaceBetween",attributeValue:e?.breadcrumbSpaceBetween,setAttributes:i,attributeDefaultValue:sO.sk}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"breadcrumbItemBackground",attributeValue:x,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"breadcrumbItemPadding",attributeValue:M,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Border Radius","ablocks"),isResponsive:!0,attributeName:"BreadcrumbBorderRadius",attributeValue:H,setAttributes:i})]})})}),(0,I.jsx)(N.PanelBody,{title:(0,
4444 4456 L.__)("Link Style","ablocks"),initialOpen:!1,children:(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Link Color","ablocks"),isGradient:!0,attributeName:"breadcrumbLinkcolor",attributeValue:s,setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Link Color","ablocks"),isGradient:!0,attributeName:"breadcrumbHoverLinkcolor",attributeValue:r,setAttributes:i})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Separator Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Kl,{label:(0,L.__)("Separator Change","ablocks"),attributeName:"SeparatorChange",attributeValue:c,setAttributes:i,isInline:!1,placeholder:(0,L.__)(">","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Separator Color","ablocks"),isGradient:!0,attributeName:"breadcrumbseparatorcolor",attributeValue:b,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Separator Size","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"breadcrumbseparsize",attributeValue:e?.breadcrumbseparsize,
4445 -setAttributes:i,attributeDefaultValue:UV.St})]}),g&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Before Text/Image","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Select Text/Image","ablocks"),attributeName:"beforeBreadcrumbTextImage",attributeValue:m,setAttributes:i,options:[{label:(0,L.__)("Select option","ablocks"),value:""},{label:(0,L.__)("Text","ablocks"),value:"text"},{label:(0,L.__)("Image","ablocks"),value:"image"}]}),"image"===e.beforeBreadcrumbTextImage&&(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,onSelectImageHandler:t=>{i({imageSizes:t.sizes,beforeBreadcrumbImage:t.url})},onRemoveImageHandler:()=>{i({beforeBreadcrumbImage:void 0})},attributeName:"beforeBreadcrumbImage",setAttributes:i}),"text"===e.beforeBreadcrumbTextImage&&(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"beforeBreadcrumbText",attributeValue:h,setAttributes:i,isInline:!1,placeholder:(0,L.__)("Home","ablocks"),
4446 -disableDynamicContent:!1}),e.beforeBreadcrumbTextImage&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Before Separator","ablocks"),attributeValue:k,setAttributes:i,attributeName:"beforeSeparator"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"beforeBreadcrumbBackgroundcolor",attributeValue:f,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"beforeBreadcrumbPaddingcolor",attributeValue:y,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Border Radius","ablocks"),isResponsive:!0,attributeName:"beforeBreadcrumbBorderRadius",attributeValue:T,setAttributes:i})]})})})]})})})}jV.propTypes={};const wV={UU:"ablocks/breadcrumb",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},homeBreadcrumbs:{type:"string",default:""},enableFaqSchema:{type:"boolean",default:!1},SeparatorChange:{type:"string",default:""},breadcrumbTitlecolor:{
4457 +setAttributes:i,attributeDefaultValue:sO.St})]}),g&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Before Text/Image","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Select Text/Image","ablocks"),attributeName:"beforeBreadcrumbTextImage",attributeValue:m,setAttributes:i,options:[{label:(0,L.__)("Select option","ablocks"),value:""},{label:(0,L.__)("Text","ablocks"),value:"text"},{label:(0,L.__)("Image","ablocks"),value:"image"}]}),"image"===e.beforeBreadcrumbTextImage&&(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,onSelectImageHandler:t=>{i({imageSizes:t.sizes,beforeBreadcrumbImage:t.url})},onRemoveImageHandler:()=>{i({beforeBreadcrumbImage:void 0})},attributeName:"beforeBreadcrumbImage",setAttributes:i}),"text"===e.beforeBreadcrumbTextImage&&(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"beforeBreadcrumbText",attributeValue:h,setAttributes:i,isInline:!1,placeholder:(0,L.__)("Home","ablocks"),
4458 +disableDynamicContent:!1}),e.beforeBreadcrumbTextImage&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Before Separator","ablocks"),attributeValue:k,setAttributes:i,attributeName:"beforeSeparator"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"beforeBreadcrumbBackgroundcolor",attributeValue:f,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"beforeBreadcrumbPaddingcolor",attributeValue:y,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Border Radius","ablocks"),isResponsive:!0,attributeName:"beforeBreadcrumbBorderRadius",attributeValue:T,setAttributes:i})]})})})]})})})}rO.propTypes={};const bO={UU:"ablocks/breadcrumb",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},homeBreadcrumbs:{type:"string",default:""},enableFaqSchema:{type:"boolean",default:!1},SeparatorChange:{type:"string",default:""},breadcrumbTitlecolor:{
4447 4459 type:"string",default:""},breadcrumbHoverLinkcolor:{type:"string",default:""},beforeSeparator:{type:"boolean",default:!1},breadcrumbItemBackground:{type:"string",default:""},breadcrumbLinkcolor:{type:"string",default:""},breadcrumbseparatorcolor:{type:"string",default:""},beforeBreadcrumbImage:{type:"string",default:""},beforeBreadcrumbText:{type:"string",default:""},beforeBreadcrumbTextImage:{type:"string",default:""},beforeBreadcrumbBackgroundcolor:{type:"string",default:""},beforeTextImage:{type:"boolean",default:!1},positionBreadcrumb:{type:"object",default:""},breadcrumbSpaceBetween:{type:"number",default:10},breadcrumbseparsize:{type:"number",default:20},breadcrumbTitleTypographyGlobal:{type:"string",default:""},breadcrumbTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",
4448 4460 fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},beforeBreadcrumbBorderRadius:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},BreadcrumbBorderRadius:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",
4449 4461 leftMobile:"",unitMobile:""}},beforeBreadcrumbPaddingcolor:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},breadcrumbItemPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}
4450 4462 },_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",
@@ -4454,22 +4466,22 @@
4454 4466 imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",
4455 4467 offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",
4456 4468 scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",
4457 4469 yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{
4458 -type:"array",default:[],items:{type:"object"}}}};function zV(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:wV.UU,attributes:e,typography:[{fontFamily:e.breadcrumbTitleTypography?.fontFamily,weight:e.breadcrumbTitleTypography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/breadcrumb",httpMethod:"POST",attributes:e})})})})}zV.propTypes={};const CV=(t,e="")=>{const i={};return t?.breadcrumbSpaceBetween&&(i.gap=`${t?.breadcrumbSpaceBetween}px`),{...i,...(0,Zt.qD)(t?.positionBreadcrumb,"justify-content",e)}},AV=(t,e="")=>({...(0,Zt.qD)(t?.positionBreadcrumb,"justify-content",e)}),LV=(t,e="")=>{const i={},o=(0,M.Zy)(t.breadcrumbTitleTypography,{weight:"500"}),a=t.breadcrumbTitleTypographyGlobal?t.breadcrumbTitleTypographyGlobal:"";return t?.breadcrumbTitlecolor&&(i.color=(0,Hs.qD)(t?.breadcrumbTitlecolor)),t?.breadcrumbItemBackground&&(i.backgroundColor=(0,Hs.qD)(t?.breadcrumbItemBackground)),{...i,
4459 -...(0,U.qD)(o,e,a),...(0,Zt.qD)(t?.taxonomyTitleDirection,"flex-direction",e),...(0,c.qD)(t?.breadcrumbItemPadding,"padding",e),...(0,c.qD)(t?.BreadcrumbBorderRadius,"border-radius",e)}},DV=(t,e="")=>{const i={};return t?.breadcrumbLinkcolor&&(i.color=(0,Hs.qD)(t?.breadcrumbLinkcolor)),{...i}},NV=(t,e="")=>{const i={};return t?.breadcrumbHoverLinkcolor&&(i.color=(0,Hs.qD)(t?.breadcrumbHoverLinkcolor)),{...i}},IV=(t,e="")=>{const i={};return t?.breadcrumbseparatorcolor&&(i.color=(0,Hs.qD)(t?.breadcrumbseparatorcolor)),t?.breadcrumbseparsize&&(i.fontsize=`${t?.breadcrumbseparsize}px`),{...i}},VV=(t,e="")=>{const i={};return t?.beforeBreadcrumbBackgroundcolor&&(i.backgroundColor=(0,Hs.qD)(t?.beforeBreadcrumbBackgroundcolor)),{...i,...(0,c.qD)(t?.beforeBreadcrumbPaddingcolor,"padding",e),...(0,c.qD)(t?.beforeBreadcrumbBorderRadius,"border-radius",e)}};(0,M.xV)(wV.UU)&&(0,o.registerBlockType)(wV.UU,{title:(0,L.__)("Breadcrumb","ablocks"),attributes:wV.uK,icon:(0,I.jsx)("span",{
4460 -className:"ablocks-icon ablocks-icon--angle-right"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs",CV(i),CV(i,"Tablet"),CV(i,"Mobile"),t.customDeviceMap(t=>CV(i,t))),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span",AV(i),AV(i,"Tablet"),LV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span a",DV(i),DV(i,"Tablet"),DV(i,"Mobile"),t.customDeviceMap(t=>DV(i,t))),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span a:hover",NV(i),NV(i,"Tablet"),NV(i,"Mobile"),t.customDeviceMap(t=>NV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs__item",LV(i),LV(i,"Tablet"),LV(i,"Mobile"),t.customDeviceMap(t=>LV(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs__separator",IV(i),IV(i,"Tablet"),IV(i,"Mobile"),t.customDeviceMap(t=>IV(i,t))),
4461 -t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs___before-image , {{WRAPPER}} .ablocks-breadcrumbs__before-text",VV(i),VV(i,"Tablet"),VV(i,"Mobile"),t.customDeviceMap(t=>VV(i,t))),(0,b.applyFilters)("ablocks.breadcrumb.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(jV,{...t}),(0,I.jsx)("style",{children:s}),(0,I.jsx)(zV,{...t})]})},save:()=>null});const OV=(0,Eb.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),YV=(0,Eb.D$)({attributeName:"innerCircleSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:250,defaultValueTablet:200,defaultValueMobile:120,copyStyle:!0}),XV=(0,Eb.D$)({attributeName:"itemButtonSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:120,defaultValueMobile:80,copyStyle:!0}),BV=(0,Eb.D$)({attributeName:"itemPosition",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,
4462 -defaultValueTablet:30,defaultValueMobile:20,copyStyle:!0}),EV=(0,Eb.D$)({attributeName:"circleSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:450,defaultValueTablet:350,defaultValueMobile:250,copyStyle:!0}),FV=(0,Eb.D$)({attributeName:"dividerWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),qV=(0,Eb.D$)({attributeName:"imgWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),$V=(0,Eb.D$)({attributeName:"itemSpacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),GV=(0,Eb.D$)({attributeName:"imgRadius",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),ZV=(0,Eb.D$)({attributeName:"imgHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),KV=(0,Eb.D$)({
4463 -attributeName:"dividerWeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:5,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),JV=((0,L.__)("Title","ablocks"),(0,L.__)("Info Title","ablocks"),(0,L.__)("Info Description","ablocks"),(0,Zt.D$)("alignment",!0,{value:"center"}),(0,c.D$)("padding",!1),(0,c.D$)("segMargin",!1),(0,y.D$)("border",!0),(0,c.D$)("circlePadding",!0),(0,c.D$)("layoutPadding",!0),(0,y.D$)("circleBorder",!0),(0,y.D$)("layoutBorder",!0),(0,H.D$)("circleBoxShadow"),(0,H.D$)("layoutBoxShadow"),(0,U.D$)("itemTypography",!0),(0,U.D$)("titleTypography",!0),(0,U.D$)("textTypography",!0),_r.Ay,(0,L.__)("Full","ablocks"),(0,L.__)("Large","ablocks"),(0,L.__)("Medium","ablocks"),(0,L.__)("Thumbnail","ablocks"),(0,L.__)("vertical","ablocks"),(0,L.__)("horizontal","ablocks"),[{label:(0,L.__)("Solid","ablocks"),value:"solid"},{label:(0,L.__)("Double","ablocks"),value:"double"},{label:(0,L.__)("Dotted","ablocks"),value:"dotted"},{label:(0,L.__)("Dashed","ablocks"),
4464 -value:"dashed"}]),QV=((0,L.__)("Start","ablocks"),(0,L.__)("End","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Between","ablocks"),(0,L.__)("Around","ablocks"),[{value:"default",label:(0,L.__)("Default","ablocks")},{value:"stacked",label:(0,L.__)("Stacked","ablocks")},{value:"framed",label:(0,L.__)("Framed","ablocks")}]),tO=[{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}],eO=t=>{const{iconAttributes:e,index:i,listProperties:o,inlineColor:a}=t;let l;{const t=e?.[i];l=(0,I.jsx)(Fd,{customIconData:t,style:{color:a||(o?.iconColor?(0,Hs.qD)(o?.iconColor):""),fill:o?.iconColor?(0,Hs.qD)(o?.iconColor):""}})}return l};function iO(t){
4470 +type:"array",default:[],items:{type:"object"}}}};function cO(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:bO.UU,attributes:e,typography:[{fontFamily:e.breadcrumbTitleTypography?.fontFamily,weight:e.breadcrumbTitleTypography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/breadcrumb",httpMethod:"POST",attributes:e})})})})}cO.propTypes={};const dO=(t,e="")=>{const i={};return t?.breadcrumbSpaceBetween&&(i.gap=`${t?.breadcrumbSpaceBetween}px`),{...i,...(0,Zt.qD)(t?.positionBreadcrumb,"justify-content",e)}},uO=(t,e="")=>({...(0,Zt.qD)(t?.positionBreadcrumb,"justify-content",e)}),pO=(t,e="")=>{const i={},o=(0,M.Zy)(t.breadcrumbTitleTypography,{weight:"500"}),a=t.breadcrumbTitleTypographyGlobal?t.breadcrumbTitleTypographyGlobal:"";return t?.breadcrumbTitlecolor&&(i.color=(0,Hs.qD)(t?.breadcrumbTitlecolor)),t?.breadcrumbItemBackground&&(i.backgroundColor=(0,Hs.qD)(t?.breadcrumbItemBackground)),{...i,
4471 +...(0,U.qD)(o,e,a),...(0,Zt.qD)(t?.taxonomyTitleDirection,"flex-direction",e),...(0,c.qD)(t?.breadcrumbItemPadding,"padding",e),...(0,c.qD)(t?.BreadcrumbBorderRadius,"border-radius",e)}},mO=(t,e="")=>{const i={};return t?.breadcrumbLinkcolor&&(i.color=(0,Hs.qD)(t?.breadcrumbLinkcolor)),{...i}},hO=(t,e="")=>{const i={};return t?.breadcrumbHoverLinkcolor&&(i.color=(0,Hs.qD)(t?.breadcrumbHoverLinkcolor)),{...i}},gO=(t,e="")=>{const i={};return t?.breadcrumbseparatorcolor&&(i.color=(0,Hs.qD)(t?.breadcrumbseparatorcolor)),t?.breadcrumbseparsize&&(i.fontsize=`${t?.breadcrumbseparsize}px`),{...i}},fO=(t,e="")=>{const i={};return t?.beforeBreadcrumbBackgroundcolor&&(i.backgroundColor=(0,Hs.qD)(t?.beforeBreadcrumbBackgroundcolor)),{...i,...(0,c.qD)(t?.beforeBreadcrumbPaddingcolor,"padding",e),...(0,c.qD)(t?.beforeBreadcrumbBorderRadius,"border-radius",e)}};(0,M.xV)(bO.UU)&&(0,o.registerBlockType)(bO.UU,{title:(0,L.__)("Breadcrumb","ablocks"),attributes:bO.uK,icon:(0,I.jsx)("span",{
4472 +className:"ablocks-icon ablocks-icon--angle-right"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs",dO(i),dO(i,"Tablet"),dO(i,"Mobile"),t.customDeviceMap(t=>dO(i,t))),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span",uO(i),uO(i,"Tablet"),pO(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span a",mO(i),mO(i,"Tablet"),mO(i,"Mobile"),t.customDeviceMap(t=>mO(i,t))),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span a:hover",hO(i),hO(i,"Tablet"),hO(i,"Mobile"),t.customDeviceMap(t=>hO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs__item",pO(i),pO(i,"Tablet"),pO(i,"Mobile"),t.customDeviceMap(t=>pO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs__separator",gO(i),gO(i,"Tablet"),gO(i,"Mobile"),t.customDeviceMap(t=>gO(i,t))),
4473 +t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs___before-image , {{WRAPPER}} .ablocks-breadcrumbs__before-text",fO(i),fO(i,"Tablet"),fO(i,"Mobile"),t.customDeviceMap(t=>fO(i,t))),(0,b.applyFilters)("ablocks.breadcrumb.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(rO,{...t}),(0,I.jsx)("style",{children:s}),(0,I.jsx)(cO,{...t})]})},save:()=>null});const yO=(0,Eb.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),TO=(0,Eb.D$)({attributeName:"innerCircleSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:250,defaultValueTablet:200,defaultValueMobile:120,copyStyle:!0}),HO=(0,Eb.D$)({attributeName:"itemButtonSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:120,defaultValueMobile:80,copyStyle:!0}),MO=(0,Eb.D$)({attributeName:"itemPosition",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,
4474 +defaultValueTablet:30,defaultValueMobile:20,copyStyle:!0}),xO=(0,Eb.D$)({attributeName:"circleSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:450,defaultValueTablet:350,defaultValueMobile:250,copyStyle:!0}),kO=(0,Eb.D$)({attributeName:"dividerWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),vO=(0,Eb.D$)({attributeName:"imgWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),_O=(0,Eb.D$)({attributeName:"itemSpacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),RO=(0,Eb.D$)({attributeName:"imgRadius",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),SO=(0,Eb.D$)({attributeName:"imgHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),WO=(0,Eb.D$)({
4475 +attributeName:"dividerWeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:5,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),PO=((0,L.__)("Title","ablocks"),(0,L.__)("Info Title","ablocks"),(0,L.__)("Info Description","ablocks"),(0,Zt.D$)("alignment",!0,{value:"center"}),(0,c.D$)("padding",!1),(0,c.D$)("segMargin",!1),(0,y.D$)("border",!0),(0,c.D$)("circlePadding",!0),(0,c.D$)("layoutPadding",!0),(0,y.D$)("circleBorder",!0),(0,y.D$)("layoutBorder",!0),(0,H.D$)("circleBoxShadow"),(0,H.D$)("layoutBoxShadow"),(0,U.D$)("itemTypography",!0),(0,U.D$)("titleTypography",!0),(0,U.D$)("textTypography",!0),_r.Ay,(0,L.__)("Full","ablocks"),(0,L.__)("Large","ablocks"),(0,L.__)("Medium","ablocks"),(0,L.__)("Thumbnail","ablocks"),(0,L.__)("vertical","ablocks"),(0,L.__)("horizontal","ablocks"),[{label:(0,L.__)("Solid","ablocks"),value:"solid"},{label:(0,L.__)("Double","ablocks"),value:"double"},{label:(0,L.__)("Dotted","ablocks"),value:"dotted"},{label:(0,L.__)("Dashed","ablocks"),
4476 +value:"dashed"}]),UO=((0,L.__)("Start","ablocks"),(0,L.__)("End","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Between","ablocks"),(0,L.__)("Around","ablocks"),[{value:"default",label:(0,L.__)("Default","ablocks")},{value:"stacked",label:(0,L.__)("Stacked","ablocks")},{value:"framed",label:(0,L.__)("Framed","ablocks")}]),jO=[{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}],wO=t=>{const{iconAttributes:e,index:i,listProperties:o,inlineColor:a}=t;let l;{const t=e?.[i];l=(0,I.jsx)(Fd,{customIconData:t,style:{color:a||(o?.iconColor?(0,Hs.qD)(o?.iconColor):""),fill:o?.iconColor?(0,Hs.qD)(o?.iconColor):""}})}return l};function zO(t){
4465 4477 const{attributes:e,setAttributes:i}=t,{itemLists:o,enableSegments:l,itemTitle:n,itemText:s,showTextInButton:r,showIconInButton:b,selectedItemNumber:c,animation:d,itemTrigger:u,animationSpeed:p,layoutShowTitle:m,layoutShowText:h,layoutShowImage:g,layoutImagePosition:f,iconSize:y,iconColor:T,padding:H,segMargin:M,iconType:x,iconShape:k,itemButtonSize:v,innerCircleSize:_,circleSize:R,iconBackgroundColor:S,listIcons:W,listIconsClasses:P,divider:U,dividerPatternUrl:j,dividerWeight:w,dividerWidth:z,borderColor:C,selectedImageSize:A,circleBorder:N,alignment:O,circlePadding:Y,circleBoxShadow:B,itemTypography:E,itemPosition:F,itemButtonColor:q,itemColor:$,layoutPadding:G,layoutColor:Z,layoutBorder:K,layoutBoxShadow:J,titleColor:Q,titleTypography:tt,textColor:et,textTypography:it,itemSpacing:ot,imgWidth:lt,imgHeight:nt,imgRadius:st,layoutImageType:rt,defaultImg:bt}=e,ct=(0,a.useRef)(!1),dt="stack"===x||"framed"===x,ut=(t,e,a)=>{const l=o.map(i=>i.id===t?{...i,[a]:e}:i);i({itemLists:l})},pt=()=>{
4466 4478 const t=o.length?Math.max(...o.map(t=>t.id))+1:0,e={id:t,iconTitle:(0,L.sprintf)((0,L.__)("Title %d","ablocks"),t),link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconTitleColor:"",iconColor:"",buttonBgColor:"",title:(0,L.sprintf)((0,L.__)("Info Title %d","ablocks"),t),titleColor:"",dividerColor:"",description:(0,L.sprintf)((0,L.__)("Info Description %d","ablocks"),t),descriptionColor:"",backgroundImage:"",selectedImageSize:"",itemButtonTransition:"",isOpen:!1},a=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({itemLists:[...a,e],listIconsClasses:[...P,""],listIcons:[...W||[],{path:"",viewBox:""}]})},mt=(t,e,i)=>{const o=Array.from(t),[a]=o.splice(e,1);return o.splice(i,0,a),o},ht=(t,e,a)=>{const l=o.map(i=>i.id===t.id?{...i,[e]:a}:i);i({itemLists:l})};return(0,a.useEffect)(()=>{if(!l)return;if(o.length>=4)return;if(ct.current)return;ct.current=!0;const t=setTimeout(()=>{pt(),ct.current=!1},200);return()=>clearTimeout(t)
4467 4479 },[l,o.length]),(0,I.jsx)(React.Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-list-block/",children:[(0,I.jsx)(V,{title:(0,L.__)(" General","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Infographic Alignment","ablocks"),options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:O,setAttributes:i,isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("Default Item Title","ablocks"),attributeName:"itemTitle",attributeValue:n,setAttributes:i,placeholder:(0,L.__)("Enter your item title","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Default Item Text","ablocks"),attributeName:"itemText",attributeValue:s,setAttributes:i,placeholder:(0,
4468 4480 L.__)("Enter your item text","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(at,{label:(0,L.__)(" Default Image","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,attributeName:"defaultImg",onSelectImageHandler:t=>i({defaultImg:t.url}),onRemoveImageHandler:t=>{i({defaultImg:""})},setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Default Item","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:-1},...o?.map(t=>({label:t.iconTitle,value:t.id}))??[]],attributeName:"selectedItemNumber",attributeValue:c,setAttributes:i,onChangeHandler:t=>i({selectedItemNumber:t})}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)(" Show Icon In Button","ablocks"),attributeValue:b,setAttributes:i,attributeName:"showIconInButton"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)(" Show text In Button","ablocks"),attributeValue:r,setAttributes:i,attributeName:"showTextInButton"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)(" Enable Segments Type","ablocks"),
4469 -attributeValue:l,setAttributes:i,attributeName:"enableSegments"}),!l&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Animation","ablocks"),attributeValue:d,setAttributes:i,attributeName:"animation"}),d&&!l&&(0,I.jsx)(As,{label:(0,L.__)("Animation Speed","ablocks"),attributeName:"animationSpeed",attributeValue:p,min:.1,step:.1,placeHolder:20,setAttributes:i,disableDynamicContent:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Item Trigger Type","ablocks"),options:[{label:(0,L.__)("Hover","ablocks"),value:"mouseenter"},{label:(0,L.__)("Click","ablocks"),value:"click"}],attributeName:"itemTrigger",attributeValue:u,setAttributes:i,onChangeHandler:t=>i({itemTrigger:t})})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Circle Size","ablocks"),min:_.value,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"circleSize",attributeValue:R,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:EV}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,
4470 -isHeader:!0}),(0,I.jsx)(Us,{attributeName:"circleBorder",attributeValue:N,setAttributes:i,hasBorderRadius:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"circlePadding",attributeValue:Y,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"circleBoxShadow",attributeValue:B,setAttributes:i}),(0,I.jsx)(_t,{label:l?(0,L.__)("Segment Inner Item Size","ablocks"):(0,L.__)("Item Button Size","ablocks"),min:1,max:R?.value,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemButtonSize",attributeValue:v,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:XV}),!l&&(0,I.jsx)(_t,{label:(0,L.__)("item Position","ablocks"),min:1,step:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemPosition",attributeValue:F,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:BV
4471 -}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"itemTypography",attributeValue:E,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Item Color","ablocks"),attributeName:"itemColor",attributeValue:$,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Item Button Color","ablocks"),attributeName:"itemButtonColor",attributeValue:q,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Inner Circle Size","ablocks"),min:1,max:R?.value,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"innerCircleSize",attributeValue:_,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:YV})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Layout","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)(" Enable Title","ablocks"),attributeValue:m,setAttributes:i,attributeName:"layoutShowTitle"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Divider","ablocks"),attributeValue:U,
4481 +attributeValue:l,setAttributes:i,attributeName:"enableSegments"}),!l&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Animation","ablocks"),attributeValue:d,setAttributes:i,attributeName:"animation"}),d&&!l&&(0,I.jsx)(As,{label:(0,L.__)("Animation Speed","ablocks"),attributeName:"animationSpeed",attributeValue:p,min:.1,step:.1,placeHolder:20,setAttributes:i,disableDynamicContent:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Item Trigger Type","ablocks"),options:[{label:(0,L.__)("Hover","ablocks"),value:"mouseenter"},{label:(0,L.__)("Click","ablocks"),value:"click"}],attributeName:"itemTrigger",attributeValue:u,setAttributes:i,onChangeHandler:t=>i({itemTrigger:t})})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Circle Size","ablocks"),min:_.value,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"circleSize",attributeValue:R,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:xO}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,
4482 +isHeader:!0}),(0,I.jsx)(Us,{attributeName:"circleBorder",attributeValue:N,setAttributes:i,hasBorderRadius:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"circlePadding",attributeValue:Y,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"circleBoxShadow",attributeValue:B,setAttributes:i}),(0,I.jsx)(_t,{label:l?(0,L.__)("Segment Inner Item Size","ablocks"):(0,L.__)("Item Button Size","ablocks"),min:1,max:R?.value,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemButtonSize",attributeValue:v,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:HO}),!l&&(0,I.jsx)(_t,{label:(0,L.__)("item Position","ablocks"),min:1,step:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemPosition",attributeValue:F,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:MO
4483 +}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"itemTypography",attributeValue:E,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Item Color","ablocks"),attributeName:"itemColor",attributeValue:$,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Item Button Color","ablocks"),attributeName:"itemButtonColor",attributeValue:q,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Inner Circle Size","ablocks"),min:1,max:R?.value,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"innerCircleSize",attributeValue:_,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:TO})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Layout","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)(" Enable Title","ablocks"),attributeValue:m,setAttributes:i,attributeName:"layoutShowTitle"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Divider","ablocks"),attributeValue:U,
4472 4484 setAttributes:i,attributeName:"divider"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)(" Enable Text","ablocks"),attributeValue:h,setAttributes:i,attributeName:"layoutShowText"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)(" Enable Image","ablocks"),attributeValue:g,setAttributes:i,attributeName:"layoutShowImage"}),(0,I.jsx)(Ut,{label:(0,L.__)(" Image Position","ablocks"),options:[{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Top","ablocks"),value:"top"}],attributeName:"layoutImagePosition",attributeValue:f,setAttributes:i,onChangeHandler:t=>i({layoutImagePosition:t})})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("BG Color","ablocks"),attributeName:"layoutColor",attributeValue:Z,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"layoutBorder",attributeValue:K,setAttributes:i,hasBorderRadius:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
4473 4485 isResponsive:!0,attributeName:"layoutPadding",attributeValue:G,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"layoutBoxShadow",attributeValue:J,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)(" Infographic Setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=mt(o,t.source.index,t.destination.index),a=mt(P,t.source.index,t.destination.index);i({itemLists:e,listIconsClasses:a});const l=mt(W,t.source.index,t.destination.index);i({listIcons:l})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[o?.map((t,a)=>(0,I.jsx)(Af,{draggableId:`${t?.id}`,index:a,children:n=>(0,I.jsxs)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"ablocks-editor-list",
4474 4486 children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=o.map(e=>({...e,isOpen:e.id===t&&!e.isOpen}));i({itemLists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.iconTitle.length>20?t?.iconTitle.slice(0,20)+"...":t?.iconTitle})]}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>{l&&o.length<=4?alert("You cannot delete when segments are enabled. Minimum 4 items required."):((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t.id===e);if(-1===a)return
4475 4487 ;const l=o.filter((t,e)=>e!==a),n=P.filter((t,e)=>e!==a),s=(W||[]).filter((t,e)=>e!==a);i({itemLists:l,listIconsClasses:n,listIcons:s})})(e,t?.id)},role:"presentation",onKeyDown:()=>{}}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t?.id===e),l=o[a],n=[...o].sort((t,e)=>t.id-e.id),s={id:(n[n.length-1]?.id??0)+1,iconTitle:l?.iconTitle,link:l.link,iconTitleColor:l.iconTitleColor,iconColor:l.iconColor,buttonBgColor:l.buttonBgColor,title:l?.title,titleColor:l.titleColor,dividerType:l.dividerType,dividerColor:l.dividerColor,description:l?.description,descriptionColor:l.descriptionColor,backgroundImage:l.backgroundImage,selectedImageSize:l.selectedImageSize,itemButtonTransition:l.itemButtonTransition,isOpen:!1},r=[...o,s],b=[...P,P[a]||""],c=[...W||[],(W||[])[a]||{path:"",viewBox:""}];i({itemLists:r,listIconsClasses:b,listIcons:c})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,
@@ -4476,13 +4488,13 @@
4476 4488 I.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Button Label","ablocks"),attributeValue:t?.iconTitle,setAttributes:i,onChangeHandler:e=>ut(t?.id,e,"iconTitle"),placeholder:(0,L.__)("Enter your icon title","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Button Icon","ablocks"),attributes:e,setAttributes:i,onChangeHandler:e=>((t,e)=>{let a=[];switch(t.substring(2,3)){case"r":a=Cd;break;case"s":a=Ld;break;case"b":a=Ad}const l=a[t.substring(7)],n=`0 0 ${l[0]} ${l[1]}`,s=l[4],r=[...W||[]],b=[...P||[]],c=o.findIndex(t=>t.id===e);if(-1===c)return;const d=[...r.slice(0,c)||[],{path:s,viewBox:n},...r.slice(c+1)||[]],u=[...b.slice(0,c)||[],t,...b.slice(c+1)||[]];i({listIcons:d,listIconsClasses:u})})(e,t.id),deleteHandler:()=>(t=>{const e=W||[],o=P||[],a=[...e.slice(0,t)||[],{path:"",viewBox:""},...e.slice(t+1)||[]],l=[...o.slice(0,t)||[],"",...o.slice(t+1)||[]];i({
4477 4489 listIcons:a,listIconsClasses:l})})(a),getIconClass:()=>P?.[a],legacySupport:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Title","ablocks"),attributeValue:t?.title,setAttributes:i,onChangeHandler:e=>ut(t?.id,e,"title"),placeholder:(0,L.__)("Enter your title","ablocks"),disableDynamicContent:!0}),l&&(0,I.jsx)(As,{label:(0,L.__)("item Button Transition","ablocks"),attributeName:"itemButtonTransition",attributeValue:t.itemButtonTransition,min:0,max:360,setAttributes:t=>{const o=[...e.itemLists],l="object"==typeof t&&null!==t?t.itemButtonTransition??0:t;o[a].itemButtonTransition=l,i({itemLists:o})}}),(0,I.jsx)(le,{label:(0,L.__)("Description","ablocks"),attributeValue:t?.description,setAttributes:i,onChangeHandler:e=>ut(t?.id,e,"description"),placeholder:(0,L.__)("Enter your description","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(at,{label:(0,L.__)("Image","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:t,attributeObjectKey:"backgroundImage",
4478 4490 disableDynamicContent:!0,attributeName:"backgroundImage",onSelectImageHandler:t=>{const o=[...e.itemLists];o[a]={...o[a],backgroundImage:t.url||""},i({itemLists:o})},onRemoveImageHandler:()=>{const t=[...e.itemLists];t[a]={...t[a],backgroundImage:""},i({itemLists:t})},setAttributes:i}),(0,I.jsx)(As,{label:(0,L.__)("Image Height","ablocks"),attributeName:"selectedImageSize",min:0,attributeValue:t.selectedImageSize,setAttributes:t=>{const o=[...e.itemLists],l="object"==typeof t&&null!==t?t.selectedImageSize??"":t;o[a].selectedImageSize=40===l?"":l,i({itemLists:o})}}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:t.link,setAttributes:i,onChangeHandler:(e,i)=>ht(t,"link",{...t.link,[e]:i})})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Button label color","ablocks"),attributeName:"iconTitleColor",attributeValue:t.iconTitleColor,setAttributes:i,resetHandler:()=>ht(t,"iconTitleColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,
4479 4491 I.jsx)(Ws,{label:(0,L.__)("Button Icon color","ablocks"),attributeName:"iconColor",attributeValue:t.iconColor,setAttributes:i,resetHandler:()=>ht(t,"iconColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Button BG Color","ablocks"),attributeName:"buttonBgColor",attributeValue:t.buttonBgColor,setAttributes:i,resetHandler:()=>ht(t,"buttonBgColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Title color","ablocks"),attributeName:"titleColor",attributeValue:t.titleColor,setAttributes:i,resetHandler:()=>ht(t,"titleColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Divider color","ablocks"),attributeName:"dividerColor",attributeValue:t.dividerColor,setAttributes:i,resetHandler:()=>ht(t,"dividerColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Description color","ablocks"),attributeName:"descriptionColor",attributeValue:t.descriptionColor,setAttributes:i,resetHandler:()=>ht(t,"descriptionColor"),
4480 -onChangeHandler:(e,i)=>{ht(t,e,i)}})]})})})]})},t?.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:pt,className:"ablocks-add-list-item-button"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Item Spacing","ablocks"),attributeName:"itemSpacing",attributeObjectKey:"value",attributeValue:ot,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:$V})," ",l&&(0,I.jsx)(xt,{label:(0,L.__)("Item Adjustable Margin","ablocks"),isResponsive:!0,attributeName:"segMargin",attributeValue:M,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Title Color","ablocks"),attributeName:"titleColor",attributeValue:Q,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Title Typography","ablocks"),attributeName:"titleTypography",attributeValue:tt,setAttributes:i,isResponsive:!0,attributes:e}),U&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Divider Style","ablocks"),options:JV,
4481 -attributeName:"dividerPatternUrl",attributeValue:j,onChangeHandler:t=>{const e=JV?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Divider Weight","ablocks"),attributeName:"dividerWeight",attributeObjectKey:"value",attributeValue:w,isResponsive:!0,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,autoSyncRange:!0,isInline:!1,attributeDefaultValue:KV,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Divider Width","ablocks"),attributeName:"dividerWidth",attributeObjectKey:"value",attributeValue:z,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:FV}),(0,I.jsx)(Ws,{label:(0,L.__)("Divider Color","ablocks"),attributeName:"borderColor",attributeValue:C,setAttributes:i})]}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"textColor",attributeValue:et,setAttributes:i}),(0,I.jsx)(wc,{label:(0,
4482 -L.__)("Text Typography","ablocks"),attributeName:"textTypography",attributeValue:it,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(_t,{label:(0,L.__)("Image Radius","ablocks"),attributeName:"imgRadius",attributeObjectKey:"value",attributeValue:st,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:GV}),(0,I.jsx)(_t,{label:(0,L.__)("Image Width","ablocks"),attributeName:"imgWidth",attributeObjectKey:"value",attributeValue:lt,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:qV}),(0,I.jsx)(_t,{label:(0,L.__)("Image Height","ablocks"),attributeName:"imgHeight",attributeObjectKey:"value",attributeValue:nt,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:ZV}),(0,I.jsx)(Ut,{label:(0,L.__)(" Image Type ","ablocks"),options:[{label:(0,L.__)("Cover","ablocks"),value:"cover"},{label:(0,L.__)("Contain","ablocks"),value:"contain"}],
4483 -attributeName:"layoutImageType",attributeValue:rt,setAttributes:i,onChangeHandler:t=>i({layoutImageType:t})})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("View","ablocks"),options:QV,attributeName:"iconType",attributeValue:x,setAttributes:i}),dt&&(0,I.jsx)(Ut,{label:(0,L.__)("Shape","ablocks"),options:tO,attributeValue:k,attributeName:"iconShape",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),min:0,max:300,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSize",attributeValue:y,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:OV,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),
4484 -attributeName:"iconBackgroundColor",attributeValue:S,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:H,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i})]})})})]})})})}iO.propTypes={};const oO={UU:"ablocks/interactive-circle-infographic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},enableSegments:{type:"boolean",default:!1},animation:{type:"boolean",default:!1},showIconInButton:{type:"boolean",default:!0},showTextInButton:{type:"boolean",default:!0},itemTitle:{type:"string",default:"Demo item title"},itemText:{type:"string",default:"Demo item text"},itemTrigger:{type:"string",default:"click"},animationSpeed:{type:"number",default:20},selectedItemNumber:{type:"number",default:1},layoutShowTitle:{type:"boolean",default:!0},layoutShowText:{
4492 +onChangeHandler:(e,i)=>{ht(t,e,i)}})]})})})]})},t?.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:pt,className:"ablocks-add-list-item-button"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Item Spacing","ablocks"),attributeName:"itemSpacing",attributeObjectKey:"value",attributeValue:ot,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:_O})," ",l&&(0,I.jsx)(xt,{label:(0,L.__)("Item Adjustable Margin","ablocks"),isResponsive:!0,attributeName:"segMargin",attributeValue:M,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Title Color","ablocks"),attributeName:"titleColor",attributeValue:Q,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Title Typography","ablocks"),attributeName:"titleTypography",attributeValue:tt,setAttributes:i,isResponsive:!0,attributes:e}),U&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Divider Style","ablocks"),options:PO,
4493 +attributeName:"dividerPatternUrl",attributeValue:j,onChangeHandler:t=>{const e=PO?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Divider Weight","ablocks"),attributeName:"dividerWeight",attributeObjectKey:"value",attributeValue:w,isResponsive:!0,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,autoSyncRange:!0,isInline:!1,attributeDefaultValue:WO,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Divider Width","ablocks"),attributeName:"dividerWidth",attributeObjectKey:"value",attributeValue:z,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:kO}),(0,I.jsx)(Ws,{label:(0,L.__)("Divider Color","ablocks"),attributeName:"borderColor",attributeValue:C,setAttributes:i})]}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"textColor",attributeValue:et,setAttributes:i}),(0,I.jsx)(wc,{label:(0,
4494 +L.__)("Text Typography","ablocks"),attributeName:"textTypography",attributeValue:it,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(_t,{label:(0,L.__)("Image Radius","ablocks"),attributeName:"imgRadius",attributeObjectKey:"value",attributeValue:st,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:RO}),(0,I.jsx)(_t,{label:(0,L.__)("Image Width","ablocks"),attributeName:"imgWidth",attributeObjectKey:"value",attributeValue:lt,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:vO}),(0,I.jsx)(_t,{label:(0,L.__)("Image Height","ablocks"),attributeName:"imgHeight",attributeObjectKey:"value",attributeValue:nt,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:SO}),(0,I.jsx)(Ut,{label:(0,L.__)(" Image Type ","ablocks"),options:[{label:(0,L.__)("Cover","ablocks"),value:"cover"},{label:(0,L.__)("Contain","ablocks"),value:"contain"}],
4495 +attributeName:"layoutImageType",attributeValue:rt,setAttributes:i,onChangeHandler:t=>i({layoutImageType:t})})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("View","ablocks"),options:UO,attributeName:"iconType",attributeValue:x,setAttributes:i}),dt&&(0,I.jsx)(Ut,{label:(0,L.__)("Shape","ablocks"),options:jO,attributeValue:k,attributeName:"iconShape",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),min:0,max:300,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSize",attributeValue:y,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:yO,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),
4496 +attributeName:"iconBackgroundColor",attributeValue:S,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:H,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i})]})})})]})})})}zO.propTypes={};const CO={UU:"ablocks/interactive-circle-infographic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},enableSegments:{type:"boolean",default:!1},animation:{type:"boolean",default:!1},showIconInButton:{type:"boolean",default:!0},showTextInButton:{type:"boolean",default:!0},itemTitle:{type:"string",default:"Demo item title"},itemText:{type:"string",default:"Demo item text"},itemTrigger:{type:"string",default:"click"},animationSpeed:{type:"number",default:20},selectedItemNumber:{type:"number",default:1},layoutShowTitle:{type:"boolean",default:!0},layoutShowText:{
4485 4497 type:"boolean",default:!0},layoutShowImage:{type:"boolean",default:!1},layoutImagePosition:{type:"string",default:"bottom"},layoutImageType:{type:"string",default:"bottom"},iconColor:{type:"string",default:"#000000"},itemLists:{type:"array",default:[{id:0,isOpen:!1,link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconTitle:"Title",iconTitleColor:"",iconColor:"",buttonBgColor:"",title:"Info Title",titleColor:"",dividerType:"",dividerColor:"",description:"Info Description",descriptionColor:"",backgroundImage:"",selectedImageSize:40,itemButtonTransition:10}]},listIconsClasses:{type:"array",default:[]},listIcons:{type:"array",default:[]},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconBackground:{type:"boolean",default:!1},iconBackgroundColor:{type:"string",default:""},textColor:{type:"string",default:"#000000"},titleColor:{type:"string",default:"#000000"},divider:{type:"boolean",default:!0},
4486 4498 dividerPatternUrl:{type:"string",default:"solid"},borderColor:{type:"string",default:"#000000"},layoutColor:{type:"string",default:"#eddfdf"},itemColor:{type:"string",default:"#000000"},defaultImg:{type:"string",default:""},itemButtonColor:{type:"string",default:"#c3b021"},circleBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",
4487 4499 bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",
4488 4500 unitRadiusHMobile:"",transitionDuration:""}},layoutBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,
@@ -4500,112 +4512,112 @@
4500 4512 imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",
4501 4513 externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",
4502 4514 xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{
4503 4515 mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{
4504 -type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function aO({activeSegment:t,attributes:e}){const{itemLists:i,itemTitle:o,itemText:a,dividerPatternUrl:l,dividerWeight:n,dividerWidth:s,layoutShowTitle:r,divider:b,layoutShowText:c,layoutShowImage:d,layoutImagePosition:u,borderColor:p,defaultImg:m}=e;return(0,I.jsx)(I.Fragment,{children:t>=0&&i?.[t]?(0,I.jsxs)(I.Fragment,{children:[d&&"top"===u&&i[t].backgroundImage&&(0,I.jsxs)(I.Fragment,{children:[" ",(0,
4516 +type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function AO({activeSegment:t,attributes:e}){const{itemLists:i,itemTitle:o,itemText:a,dividerPatternUrl:l,dividerWeight:n,dividerWidth:s,layoutShowTitle:r,divider:b,layoutShowText:c,layoutShowImage:d,layoutImagePosition:u,borderColor:p,defaultImg:m}=e;return(0,I.jsx)(I.Fragment,{children:t>=0&&i?.[t]?(0,I.jsxs)(I.Fragment,{children:[d&&"top"===u&&i[t].backgroundImage&&(0,I.jsxs)(I.Fragment,{children:[" ",(0,
4505 4517 I.jsx)("img",{style:{height:i[t].selectedImageSize,objectFit:"cover"},src:i[t].backgroundImage,loading:"lazy"})," "]}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",className:"ablocks-interactive-inner-heading",value:i[t].title,style:{color:(0,Hs.qD)(i[t].titleColor)}}),b&&(0,I.jsx)("div",{className:" ablocks-interactive-divider ablocks-divider__pattern-css ",style:{"--ablocks-divider-pattern-color":`${(0,Hs.qD)(i[t].dividerColor)}`}}),c&&(0,I.jsx)(D.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:i[t].description,style:{color:(0,Hs.qD)(i[t].descriptionColor)}}),d&&"bottom"===u&&i[t].backgroundImage&&(0,I.jsx)("img",{style:{height:i[t].selectedImageSize,objectFit:"cover"},src:i[t].backgroundImage,loading:"lazy"})]}):(0,I.jsxs)(I.Fragment,{children:[d&&m&&"top"===u&&(0,I.jsx)("img",{src:m,loading:"lazy",style:{objectFit:"cover"}}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",className:"ablocks-interactive-inner-heading",value:o}),b&&(0,I.jsx)("div",{
4506 -className:" ablocks-interactive-divider ablocks-divider__pattern-css "}),c&&(0,I.jsx)(D.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:a}),d&&m&&"bottom"===u&&(0,I.jsx)("img",{src:m,loading:"lazy",style:{objectFit:"cover"}})]})})}function lO({index:t,attributes:e,list:i}){const{listIcons:o,defaultImg:a,showTextInButton:l,showIconInButton:n,itemColor:s}=e;return(0,I.jsxs)("div",{className:"ablocks-interactive-item-content",children:[n&&(0,I.jsx)(eO,{index:t,iconAttributes:o,listProperties:i,inlineColor:i?.iconColor}),l&&(0,I.jsx)(D.RichText.Content,{tagName:"span",value:i?.iconTitle,className:"ablocks-interactive__item-text",style:{color:(0,Hs.qD)(i?.iconTitleColor)||s}})]},i?.id)}function nO({activeSegment:t,attributes:e}){const{itemLists:i,itemTitle:o,itemText:a,dividerPatternUrl:l,dividerWeight:n,layoutShowTitle:s,divider:r,layoutShowText:b,layoutShowImage:c,layoutImagePosition:d,borderColor:u,defaultImg:p}=e;return(0,I.jsx)(I.Fragment,{
4518 +className:" ablocks-interactive-divider ablocks-divider__pattern-css "}),c&&(0,I.jsx)(D.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:a}),d&&m&&"bottom"===u&&(0,I.jsx)("img",{src:m,loading:"lazy",style:{objectFit:"cover"}})]})})}function LO({index:t,attributes:e,list:i}){const{listIcons:o,defaultImg:a,showTextInButton:l,showIconInButton:n,itemColor:s}=e;return(0,I.jsxs)("div",{className:"ablocks-interactive-item-content",children:[n&&(0,I.jsx)(wO,{index:t,iconAttributes:o,listProperties:i,inlineColor:i?.iconColor}),l&&(0,I.jsx)(D.RichText.Content,{tagName:"span",value:i?.iconTitle,className:"ablocks-interactive__item-text",style:{color:(0,Hs.qD)(i?.iconTitleColor)||s}})]},i?.id)}function DO({activeSegment:t,attributes:e}){const{itemLists:i,itemTitle:o,itemText:a,dividerPatternUrl:l,dividerWeight:n,layoutShowTitle:s,divider:r,layoutShowText:b,layoutShowImage:c,layoutImagePosition:d,borderColor:u,defaultImg:p}=e;return(0,I.jsx)(I.Fragment,{
4507 4519 children:t>=0&&i?.[t]?(0,I.jsxs)(I.Fragment,{children:[c&&"top"===d&&(0,I.jsx)("img",{style:{height:i[t].selectedImageSize,objectFit:"cover"},loading:"lazy",src:i[t].backgroundImage}),s&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",className:"ablocks-interactive-inner-heading",value:i[t]?.title||"",style:{color:(0,Hs.qD)(i[t]?.titleColor)||void 0}}),r&&(0,I.jsx)("div",{className:" ablocks-interactive-divider ablocks-divider__pattern-css ",style:{"border-bottom-color":i[t]?.dividerColor?.trim()||void 0}}),b&&(0,I.jsx)(D.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:i[t].description,style:{color:(0,Hs.qD)(i[t].descriptionColor)}}),c&&"bottom"===d&&(0,I.jsx)("img",{style:{height:i[t].selectedImageSize,objectFit:"cover"},src:i[t].backgroundImage,loading:"lazy"})]}):(0,I.jsxs)(I.Fragment,{children:[c&&"top"===d&&(0,I.jsx)("img",{src:p,loading:"lazy",style:{objectFit:"cover"}}),s&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",
4508 -className:"ablocks-interactive-inner-heading",value:o}),r&&(0,I.jsx)("div",{className:" ablocks-interactive-divider ablocks-divider__pattern-css "}),b&&(0,I.jsx)(D.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:a}),c&&"bottom"===d&&(0,I.jsx)("img",{src:p,loading:"lazy",style:{objectFit:"cover"}})]})})}function sO(t){const{attributes:e,setAttributes:i}=t,{block_id:o,alignment:n,itemLists:s,enableSegments:r,itemTitle:b,itemText:c,listIconsClasses:d,listIcons:u,divider:p,dividerPatternUrl:m,dividerWeight:h,dividerWidth:g,borderColor:f,circleSize:y,itemButtonSize:T,innerCircleSize:H,iconSize:M,selectedItemNumber:x,itemTrigger:k,animationSpeed:v,itemPosition:_,animation:R,circleBorder:S,circlePadding:W,circleBoxShadow:P}=e,[U,j]=(0,a.useState)(!1),[w,z]=(0,a.useState)(x);(0,a.useEffect)(()=>{z(x)},[x]);const C=t=>{const{linkTarget:e,href:i="",noFollow:o,keyValue:a}=t||{};let l={};return i&&(l.href=i),e&&(l.target="_blank"),
4509 -l.rel=o?e?"nofollow noreferrer noopener":"nofollow":"noopener",a&&(l={...l,...(0,wb.jM)(a)}),l},A=t=>"mouseenter"===k?{onMouseEnter:()=>z(t)}:{onClick:()=>z(t)},L=s.length,N=lt();let V=_?.value?_?.value:50;"Tablet"===N?V=_?.valueTablet?_?.valueTablet:30:"Mobile"===N&&(V=_?.valueMobile?_?.valueMobile:20);const O=Math.min(y?.value??450,y?.value??450)*Number((V/100).toFixed(2));return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:n,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:o,name:oO.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-interactive-circle-wrapper",children:(0,I.jsxs)("div",{className:"ablocks-interactive-circle",children:[0==r&&(0,I.jsx)("div",{className:"ablocks-interactive-circle-content",children:(0,I.jsx)(aO,{activeSegment:w,attributes:e})}),(0,I.jsxs)("div",{className:1==r?"ablocks-interactive-segments":"ablocks-interactive-items",onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),style:!r&&R?{
4510 -animation:`ring-rotate ${v}s linear infinite`,animationPlayState:U?"paused":"running"}:{},children:[r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-interactive-segments-inner",style:{mask:`radial-gradient(circle, transparent ${H/2}px, black ${H/2+1}px)`},children:s?.map((t,i)=>{const o=360/s.length,a=-1*(90-(o-2)),l=i*o+1,n=t.itemButtonTransition||0;return(0,I.jsxs)("a",{...C(t.link),children:[(0,I.jsx)("div",{className:"ablocks-interactive-segment",style:{backgroundColor:t.buttonBgColor,transform:`rotate(${l}deg) skewY(${a}deg)`},...A(i),children:(0,I.jsx)("div",{style:{transform:`rotate(${0==n?-l:n}deg)`},className:"ablocks-interactive-segment-content ablocks-interactive-item-content",children:(0,I.jsx)(lO,{index:i,attributes:e,list:t})})},t.id)," "]})})}),(0,I.jsx)("div",{className:"ablocks-interactive-circle-inner",children:(0,I.jsx)(aO,{activeSegment:w,attributes:e})})," "]}),!r&&s?.map((t,i)=>{
4511 -const o=(360/L*i-90)*Math.PI/180,a=Math.cos(o)*O,l=Math.sin(o)*O;return(0,I.jsx)("div",{className:"ablocks-interactive-item","data-title":t.title,"data-index":i,"data-text":t.description,addEv:!0,...A(i),style:{left:`calc(50% + ${a}px)`,top:`calc(50% + ${l}px`},children:(0,I.jsxs)("a",{...C(t.link),children:[(0,I.jsx)("div",{style:{...!r&&R?{animation:`inner-counter-rotate ${v}s linear infinite`,animationPlayState:U?"paused":"running"}:{},backgroundColor:t?.buttonBgColor},className:"ablocks-interactive-item-inner ablocks-interactive-item-content",children:(0,I.jsx)(lO,{index:i,attributes:e,list:t})})," "]})},t.id)})]})]})})})]})}sO.propTypes={};const rO=(t,e="")=>{const i={},{alignment:o}=t;return i["justify-content"]=`${o?.["value"+e]||"center"}`,i.display="flex",{...i}},bO=(t,e="")=>{const i={},{circleSize:o,enableSegments:a}=t;return""!==o["value"+e]&&void 0!==o["value"+e]&&!1===a&&(i.width=`${o["value"+e]}px`,i.height=`${o["value"+e]}px`),{...i}},cO=(t,e="")=>{const i=(0,
4512 -M.Zy)(t?.circlePadding,{unit:"px"});"default"===t?.circleBorder?.borderStyle&&""===t?.circleBorder?.borderColor&&(t.circleBorder={...t.circleBorder,borderColor:"#ad15e0",borderStyle:"solid",commonWidth:"5"});const o=(0,M.Zy)(t?.circleBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.circleBoxShadow,e)}},dO=(t,e="")=>{const i=(0,M.Zy)(t?.segMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},uO=(t,e="")=>{const i=(0,M.Zy)(t?.circleBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.circleBoxShadow,e)}},pO=(t,e="")=>{const{itemButtonSize:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.height=`${i["value"+e]}px`,o.width=`${i["value"+e]}px`,o["text-align"]="center"),o},mO=(t,e="")=>{const{iconSize:i,iconColor:o,iconType:a,iconShape:l,iconBackgroundColor:n}=t,s={};"stacked"===a?(s.background=(0,Hs.qD)(t?.iconBackgroundColor)||"#ddd",s.padding=".2em",s.color=(0,
4513 -Hs.qD)(t?.iconColor)||"#000000","circle"===l&&(s["border-radius"]="50px")):"framed"===a&&(s.background=(0,Hs.qD)(t?.iconBackgroundColor)||"transparent",s.padding=".2em",s.color=(0,Hs.qD)(t?.iconColor)||"#69727d",s.border=`2px solid ${o||"#69727d"}`,"circle"===l&&(s["border-radius"]="50px")),""!==t["iconColor"+e]&&void 0!==t.iconColor&&(s.color=(0,Hs.qD)(t?.iconColor),s.fill=(0,Hs.qD)(t?.iconColor)),""!==n&&void 0!==n&&(s.background=(0,Hs.qD)(t?.iconBackgroundColor));const r=(0,M.Zy)(t?.padding,{unit:"px"}),b=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...s,...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"font-size",device:e}),...(0,y.qD)(b,e),...(0,c.qD)(r,"padding",e)}},hO=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},gO=(t,e)=>{const i=(0,M.Zy)(t.itemTypography,{weight:"400"}),o=t.itemTypographyGlobal?t.itemTypographyGlobal:[]
4514 -;return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.itemColor)}},fO=(t,e)=>({background:(0,Hs.qD)(t?.itemButtonColor)}),yO=(t,e="")=>{const{itemSpacing:i,innerCircleSize:o}=t,a={},l=(0,M.Zy)(t?.layoutPadding,{unit:"px"});"default"===t?.layoutBorder?.borderStyle&&""===t?.layoutBorder?.borderColor&&(t.layoutBorder={...t.layoutBorder,borderColor:"#2fcc00",borderStyle:"solid",commonWidth:"4"});const n=(0,M.Zy)(t?.layoutBorder,{unitWidth:"px",unitRadius:"px"});return a.background=(0,Hs.qD)(t?.layoutColor),a.display="flex",a["flex-direction"]="column",a["border-radius"]="50%",a["align-items"]="center",a["justify-content"]="center",a["text-align"]="center",a.overflow="hidden",{...a,...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:1,hasUnit:!0,unitDefaultValue:"px",property:"row-gap",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({
4515 -attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.qD)(n,e),...(0,c.qD)(l,"padding",e),...(0,H.qD)(t?.layoutBoxShadow,e)}},TO=(t,e="")=>{const i=(0,M.Zy)(t?.layoutBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.layoutBoxShadow,e)}},HO=(t,e="")=>{const i={};i.color=(0,Hs.qD)(t?.titleColor);const o=(0,M.Zy)(t.titleTypography,{weight:"400"}),a=t.titleTypographyGlobal?t.titleTypographyGlobal:[];return{...i,...(0,U.qD)(o,e,a)}},MO=(t,e="")=>{const i={},{dividerWeight:o,dividerWidth:a,dividerPatternUrl:l,borderColor:n}=t;return i["--ablocks-divider-pattern-style"]=l,i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(n),{...i,...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"--ablocks-divider-pattern-weight",device:e}),...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",
4516 -isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}},xO=(t,e="")=>{const i={};i.color=(0,Hs.qD)(t?.textColor);const o=(0,M.Zy)(t.textTypography,{weight:"400"}),a=t.textTypographyGlobal?t.textTypographyGlobal:[];return{...i,...(0,U.qD)(o,e,a)}},kO=(t,e="")=>{const i={},{layoutImageType:o,imgHeight:a,imgWidth:l,imgRadius:n,itemLists:s}=t;return i["object-fit"]=o,{...i,...(0,Eb.qD)({attributeValue:n,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"border-radius",device:e}),...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}},vO=(t,e="")=>{const i={},{circleSize:o,enableSegments:a}=t
4517 -;return""!==o["value"+e]&&void 0!==o["value"+e]&&!0===a&&(i.width=`${o["value"+e]}px`,i.height=`${o["value"+e]}px`),{...i}};function _O({attributes:t}){const{block_id:e,alignment:i,itemLists:o,enableSegments:a,itemTitle:n,itemText:s,listIconsClasses:r,listIcons:b,divider:c,dividerPatternUrl:d,dividerWeight:u,dividerWidth:p,borderColor:m,circleSize:h,itemButtonSize:g,innerCircleSize:f,iconSize:y,selectedItemNumber:T,itemTrigger:H,animationSpeed:M,animation:x,itemPosition:k,circleBorder:v,circlePadding:_,circleBoxShadow:R}=t,S=o.map(({title:t,titleColor:e,dividerColor:i,description:o,descriptionColor:a,backgroundImage:l,selectedImageSize:n,itemButtonTransition:s})=>({title:t,titleColor:e,dividerColor:i,description:o,descriptionColor:a,backgroundImage:l,selectedImageSize:n,itemButtonTransition:s})),W=t=>{const{linkTarget:e,href:i="",noFollow:o,keyValue:a}=t||{};let l={};return i&&(l.href=i),e&&(l.target="_blank"),l.rel=o?e?"nofollow noreferrer noopener":"nofollow":"noopener",a&&(l={...l,
4518 -...(0,wb.jM)(a)}),l},P=t=>"mouseenter"===H?{onMouseEnter:()=>setActiveSegment(t)}:{onClick:()=>setActiveSegment(t)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:e,name:oO.UU,attributes:t,blockProps:{"data-layout":S?JSON.stringify(S):"","data-enable-segments":a,"data-enable-animation":x,"data-block-id":e,"data-circle-size":h.value??450,"data-inner-circle":f.value??"","data-item-trigger":H??"","data-animation-speed":M,"data-itemPosition":`${k?.value??"50"},${k?.valueTablet??"30"},${k?.valueMobile??"20"}`,"data-icon-size":y?JSON.stringify(y):"","data-item-position":k??""},children:(0,I.jsx)("div",{className:"ablocks-interactive-circle-wrapper",children:(0,I.jsxs)("div",{className:"ablocks-interactive-circle",children:[0==a&&(0,I.jsx)("div",{className:"ablocks-interactive-circle-content",children:(0,I.jsx)(nO,{activeSegment:T,attributes:t})}),(0,I.jsxs)("div",{className:1==a?"ablocks-interactive-segments":"ablocks-interactive-items",children:[a&&(0,I.jsxs)(I.Fragment,{
4519 -children:[(0,I.jsx)("div",{className:"ablocks-interactive-segments-inner",children:o?.map((e,i)=>(0,I.jsxs)("a",{...W(e.link),children:[(0,I.jsx)("div",{className:"ablocks-interactive-segment",style:{backgroundColor:e.buttonBgColor},...P(i),children:(0,I.jsx)("div",{style:{transform:`rotate(${e.itemButtonTransition}deg)`},className:"ablocks-interactive-segment-content ablocks-interactive-item-content",children:(0,I.jsx)(lO,{index:i,attributes:t,list:e},i)})},e.id)," "]}))}),(0,I.jsx)("div",{className:"ablocks-interactive-circle-inner",children:(0,I.jsx)(nO,{activeSegment:T,attributes:t})})," "]}),!a&&o?.map((e,i)=>(0,I.jsx)("div",{className:"ablocks-interactive-item","data-title":e.title,"data-index":i,"data-text":e.description,...P(i),children:(0,I.jsxs)("a",{...W(e.link),children:[(0,I.jsx)("div",{className:"ablocks-interactive-item-inner ablocks-interactive-item-content",style:{backgroundColor:e.buttonBgColor},children:(0,I.jsx)(lO,{index:i,attributes:t,list:e},i)})," "]})},e.id))]
4520 -})]})})})})}_O.propTypes={},(0,M.xV)(oO.UU)&&(0,o.registerBlockType)(oO.UU,{title:(0,L.__)("Infographic Block","ablocks"),attributes:oO.uK,icon:(0,I.jsx)("span",{class:"ablocks-icon ablocks-icon--interactive-circle"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-wrapper",bO(i),bO(i,"Tablet"),bO(i,"Mobile"),t.customDeviceMap(t=>bO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segment-content.ablocks-interactive-item-content",dO(i),dO(i,"Tablet"),dO(i,"Mobile"),t.customDeviceMap(t=>dO(i,t))),
4521 -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segments",vO(i),vO(i,"Tablet"),vO(i,"Mobile"),t.customDeviceMap(t=>vO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle",cO(i),cO(i,"Tablet"),cO(i,"Mobile"),t.customDeviceMap(t=>cO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle:hover",uO(i),uO(i,"Tablet"),uO(i,"Mobile"),t.customDeviceMap(t=>uO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",rO(i),rO(i,"Tablet"),rO(i,"Mobile"),t.customDeviceMap(t=>rO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-inner",fO(i),fO(i),fO(i),t.customDeviceMap(t=>fO(i))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segment",fO(i),fO(i),fO(i),t.customDeviceMap(t=>fO(i))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner",yO(i),yO(i,"Tablet"),yO(i,"Mobile"),t.customDeviceMap(t=>yO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner:hover",TO(i),TO(i,"Tablet"),TO(i,"Mobile"),t.customDeviceMap(t=>TO(i,t))),
4522 -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner h2",HO(i),HO(i,"Tablet"),HO(i,"Mobile"),t.customDeviceMap(t=>HO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner .ablocks-divider__pattern-css",MO(i),MO(i,"Tablet"),MO(i,"Mobile"),t.customDeviceMap(t=>MO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner p",xO(i),xO(i,"Tablet"),xO(i,"Mobile"),t.customDeviceMap(t=>xO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner img",kO(i),kO(i,"Tablet"),kO(i,"Mobile"),t.customDeviceMap(t=>kO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content",yO(i),yO(i,"Tablet"),yO(i,"Mobile"),t.customDeviceMap(t=>yO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content:hover",TO(i),TO(i,"Tablet"),TO(i,"Mobile"),t.customDeviceMap(t=>TO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content h2",HO(i),HO(i,"Tablet"),HO(i,"Mobile"),t.customDeviceMap(t=>HO(i,t))),
4523 -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content .ablocks-divider__pattern-css",MO(i),MO(i,"Tablet"),MO(i,"Mobile"),t.customDeviceMap(t=>MO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content p",xO(i),xO(i,"Tablet"),xO(i,"Mobile"),t.customDeviceMap(t=>xO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content img",kO(i),kO(i,"Tablet"),kO(i,"Mobile"),t.customDeviceMap(t=>kO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content",pO(i),pO(i,"Tablet"),pO(i,"Mobile"),t.customDeviceMap(t=>pO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content .ablocks-svg-icon",mO(i),mO(i,"Tablet"),mO(i,"Mobile"),t.customDeviceMap(t=>mO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-items-content .ablocks-svg-icon:hover",hO(i),hO(i,"Tablet"),hO(i,"Mobile"),t.customDeviceMap(t=>hO(i,t))),
4524 -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content .ablocks-interactive__item-text",gO(i),gO(i,"Tablet"),gO(i,"Mobile"),t.customDeviceMap(t=>gO(i,t))),(0,b.applyFilters)("ablocks.itemLists.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(iO,{...t}),(0,I.jsx)(sO,{...t})]})},save:_O});const RO=[{name:"custom",title:(0,L.__)("Custom Blank Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/blankForm.svg",alt:(0,L.__)("Custom Blank Form","ablocks")}),attributes:{formType:"customform",formActions:["email","submission"],submissionMetaData:["userIp","userAgent"]},scope:["block"],innerBlocks:[]},{name:"contact",title:(0,L.__)("Simple Contact Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/contactForm.svg",alt:(0,L.__)("Simple Contact Form","ablocks")}),attributes:{formType:"contact",formActions:["email","submission"],
4520 +className:"ablocks-interactive-inner-heading",value:o}),r&&(0,I.jsx)("div",{className:" ablocks-interactive-divider ablocks-divider__pattern-css "}),b&&(0,I.jsx)(D.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:a}),c&&"bottom"===d&&(0,I.jsx)("img",{src:p,loading:"lazy",style:{objectFit:"cover"}})]})})}function NO(t){const{attributes:e,setAttributes:i}=t,{block_id:o,alignment:n,itemLists:s,enableSegments:r,itemTitle:b,itemText:c,listIconsClasses:d,listIcons:u,divider:p,dividerPatternUrl:m,dividerWeight:h,dividerWidth:g,borderColor:f,circleSize:y,itemButtonSize:T,innerCircleSize:H,iconSize:M,selectedItemNumber:x,itemTrigger:k,animationSpeed:v,itemPosition:_,animation:R,circleBorder:S,circlePadding:W,circleBoxShadow:P}=e,[U,j]=(0,a.useState)(!1),[w,z]=(0,a.useState)(x);(0,a.useEffect)(()=>{z(x)},[x]);const C=t=>{const{linkTarget:e,href:i="",noFollow:o,keyValue:a}=t||{};let l={};return i&&(l.href=i),e&&(l.target="_blank"),
4521 +l.rel=o?e?"nofollow noreferrer noopener":"nofollow":"noopener",a&&(l={...l,...(0,wb.jM)(a)}),l},A=t=>"mouseenter"===k?{onMouseEnter:()=>z(t)}:{onClick:()=>z(t)},L=s.length,N=lt();let V=_?.value?_?.value:50;"Tablet"===N?V=_?.valueTablet?_?.valueTablet:30:"Mobile"===N&&(V=_?.valueMobile?_?.valueMobile:20);const O=Math.min(y?.value??450,y?.value??450)*Number((V/100).toFixed(2));return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:n,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:o,name:CO.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-interactive-circle-wrapper",children:(0,I.jsxs)("div",{className:"ablocks-interactive-circle",children:[0==r&&(0,I.jsx)("div",{className:"ablocks-interactive-circle-content",children:(0,I.jsx)(AO,{activeSegment:w,attributes:e})}),(0,I.jsxs)("div",{className:1==r?"ablocks-interactive-segments":"ablocks-interactive-items",onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),style:!r&&R?{
4522 +animation:`ring-rotate ${v}s linear infinite`,animationPlayState:U?"paused":"running"}:{},children:[r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-interactive-segments-inner",style:{mask:`radial-gradient(circle, transparent ${H/2}px, black ${H/2+1}px)`},children:s?.map((t,i)=>{const o=360/s.length,a=-1*(90-(o-2)),l=i*o+1,n=t.itemButtonTransition||0;return(0,I.jsxs)("a",{...C(t.link),children:[(0,I.jsx)("div",{className:"ablocks-interactive-segment",style:{backgroundColor:t.buttonBgColor,transform:`rotate(${l}deg) skewY(${a}deg)`},...A(i),children:(0,I.jsx)("div",{style:{transform:`rotate(${0==n?-l:n}deg)`},className:"ablocks-interactive-segment-content ablocks-interactive-item-content",children:(0,I.jsx)(LO,{index:i,attributes:e,list:t})})},t.id)," "]})})}),(0,I.jsx)("div",{className:"ablocks-interactive-circle-inner",children:(0,I.jsx)(AO,{activeSegment:w,attributes:e})})," "]}),!r&&s?.map((t,i)=>{
4523 +const o=(360/L*i-90)*Math.PI/180,a=Math.cos(o)*O,l=Math.sin(o)*O;return(0,I.jsx)("div",{className:"ablocks-interactive-item","data-title":t.title,"data-index":i,"data-text":t.description,addEv:!0,...A(i),style:{left:`calc(50% + ${a}px)`,top:`calc(50% + ${l}px`},children:(0,I.jsxs)("a",{...C(t.link),children:[(0,I.jsx)("div",{style:{...!r&&R?{animation:`inner-counter-rotate ${v}s linear infinite`,animationPlayState:U?"paused":"running"}:{},backgroundColor:t?.buttonBgColor},className:"ablocks-interactive-item-inner ablocks-interactive-item-content",children:(0,I.jsx)(LO,{index:i,attributes:e,list:t})})," "]})},t.id)})]})]})})})]})}NO.propTypes={};const IO=(t,e="")=>{const i={},{alignment:o}=t;return i["justify-content"]=`${o?.["value"+e]||"center"}`,i.display="flex",{...i}},VO=(t,e="")=>{const i={},{circleSize:o,enableSegments:a}=t;return""!==o["value"+e]&&void 0!==o["value"+e]&&!1===a&&(i.width=`${o["value"+e]}px`,i.height=`${o["value"+e]}px`),{...i}},OO=(t,e="")=>{const i=(0,
4524 +M.Zy)(t?.circlePadding,{unit:"px"});"default"===t?.circleBorder?.borderStyle&&""===t?.circleBorder?.borderColor&&(t.circleBorder={...t.circleBorder,borderColor:"#ad15e0",borderStyle:"solid",commonWidth:"5"});const o=(0,M.Zy)(t?.circleBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.circleBoxShadow,e)}},YO=(t,e="")=>{const i=(0,M.Zy)(t?.segMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},XO=(t,e="")=>{const i=(0,M.Zy)(t?.circleBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.circleBoxShadow,e)}},BO=(t,e="")=>{const{itemButtonSize:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.height=`${i["value"+e]}px`,o.width=`${i["value"+e]}px`,o["text-align"]="center"),o},EO=(t,e="")=>{const{iconSize:i,iconColor:o,iconType:a,iconShape:l,iconBackgroundColor:n}=t,s={};"stacked"===a?(s.background=(0,Hs.qD)(t?.iconBackgroundColor)||"#ddd",s.padding=".2em",s.color=(0,
4525 +Hs.qD)(t?.iconColor)||"#000000","circle"===l&&(s["border-radius"]="50px")):"framed"===a&&(s.background=(0,Hs.qD)(t?.iconBackgroundColor)||"transparent",s.padding=".2em",s.color=(0,Hs.qD)(t?.iconColor)||"#69727d",s.border=`2px solid ${o||"#69727d"}`,"circle"===l&&(s["border-radius"]="50px")),""!==t["iconColor"+e]&&void 0!==t.iconColor&&(s.color=(0,Hs.qD)(t?.iconColor),s.fill=(0,Hs.qD)(t?.iconColor)),""!==n&&void 0!==n&&(s.background=(0,Hs.qD)(t?.iconBackgroundColor));const r=(0,M.Zy)(t?.padding,{unit:"px"}),b=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...s,...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"font-size",device:e}),...(0,y.qD)(b,e),...(0,c.qD)(r,"padding",e)}},FO=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},qO=(t,e)=>{const i=(0,M.Zy)(t.itemTypography,{weight:"400"}),o=t.itemTypographyGlobal?t.itemTypographyGlobal:[]
4526 +;return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.itemColor)}},$O=(t,e)=>({background:(0,Hs.qD)(t?.itemButtonColor)}),GO=(t,e="")=>{const{itemSpacing:i,innerCircleSize:o}=t,a={},l=(0,M.Zy)(t?.layoutPadding,{unit:"px"});"default"===t?.layoutBorder?.borderStyle&&""===t?.layoutBorder?.borderColor&&(t.layoutBorder={...t.layoutBorder,borderColor:"#2fcc00",borderStyle:"solid",commonWidth:"4"});const n=(0,M.Zy)(t?.layoutBorder,{unitWidth:"px",unitRadius:"px"});return a.background=(0,Hs.qD)(t?.layoutColor),a.display="flex",a["flex-direction"]="column",a["border-radius"]="50%",a["align-items"]="center",a["justify-content"]="center",a["text-align"]="center",a.overflow="hidden",{...a,...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:1,hasUnit:!0,unitDefaultValue:"px",property:"row-gap",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({
4527 +attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.qD)(n,e),...(0,c.qD)(l,"padding",e),...(0,H.qD)(t?.layoutBoxShadow,e)}},ZO=(t,e="")=>{const i=(0,M.Zy)(t?.layoutBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.layoutBoxShadow,e)}},KO=(t,e="")=>{const i={};i.color=(0,Hs.qD)(t?.titleColor);const o=(0,M.Zy)(t.titleTypography,{weight:"400"}),a=t.titleTypographyGlobal?t.titleTypographyGlobal:[];return{...i,...(0,U.qD)(o,e,a)}},JO=(t,e="")=>{const i={},{dividerWeight:o,dividerWidth:a,dividerPatternUrl:l,borderColor:n}=t;return i["--ablocks-divider-pattern-style"]=l,i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(n),{...i,...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"--ablocks-divider-pattern-weight",device:e}),...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",
4528 +isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}},QO=(t,e="")=>{const i={};i.color=(0,Hs.qD)(t?.textColor);const o=(0,M.Zy)(t.textTypography,{weight:"400"}),a=t.textTypographyGlobal?t.textTypographyGlobal:[];return{...i,...(0,U.qD)(o,e,a)}},tY=(t,e="")=>{const i={},{layoutImageType:o,imgHeight:a,imgWidth:l,imgRadius:n,itemLists:s}=t;return i["object-fit"]=o,{...i,...(0,Eb.qD)({attributeValue:n,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"border-radius",device:e}),...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}},eY=(t,e="")=>{const i={},{circleSize:o,enableSegments:a}=t
4529 +;return""!==o["value"+e]&&void 0!==o["value"+e]&&!0===a&&(i.width=`${o["value"+e]}px`,i.height=`${o["value"+e]}px`),{...i}};function iY({attributes:t}){const{block_id:e,alignment:i,itemLists:o,enableSegments:a,itemTitle:n,itemText:s,listIconsClasses:r,listIcons:b,divider:c,dividerPatternUrl:d,dividerWeight:u,dividerWidth:p,borderColor:m,circleSize:h,itemButtonSize:g,innerCircleSize:f,iconSize:y,selectedItemNumber:T,itemTrigger:H,animationSpeed:M,animation:x,itemPosition:k,circleBorder:v,circlePadding:_,circleBoxShadow:R}=t,S=o.map(({title:t,titleColor:e,dividerColor:i,description:o,descriptionColor:a,backgroundImage:l,selectedImageSize:n,itemButtonTransition:s})=>({title:t,titleColor:e,dividerColor:i,description:o,descriptionColor:a,backgroundImage:l,selectedImageSize:n,itemButtonTransition:s})),W=t=>{const{linkTarget:e,href:i="",noFollow:o,keyValue:a}=t||{};let l={};return i&&(l.href=i),e&&(l.target="_blank"),l.rel=o?e?"nofollow noreferrer noopener":"nofollow":"noopener",a&&(l={...l,
4530 +...(0,wb.jM)(a)}),l},P=t=>"mouseenter"===H?{onMouseEnter:()=>setActiveSegment(t)}:{onClick:()=>setActiveSegment(t)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:e,name:CO.UU,attributes:t,blockProps:{"data-layout":S?JSON.stringify(S):"","data-enable-segments":a,"data-enable-animation":x,"data-block-id":e,"data-circle-size":h.value??450,"data-inner-circle":f.value??"","data-item-trigger":H??"","data-animation-speed":M,"data-itemPosition":`${k?.value??"50"},${k?.valueTablet??"30"},${k?.valueMobile??"20"}`,"data-icon-size":y?JSON.stringify(y):"","data-item-position":k??""},children:(0,I.jsx)("div",{className:"ablocks-interactive-circle-wrapper",children:(0,I.jsxs)("div",{className:"ablocks-interactive-circle",children:[0==a&&(0,I.jsx)("div",{className:"ablocks-interactive-circle-content",children:(0,I.jsx)(DO,{activeSegment:T,attributes:t})}),(0,I.jsxs)("div",{className:1==a?"ablocks-interactive-segments":"ablocks-interactive-items",children:[a&&(0,I.jsxs)(I.Fragment,{
4531 +children:[(0,I.jsx)("div",{className:"ablocks-interactive-segments-inner",children:o?.map((e,i)=>(0,I.jsxs)("a",{...W(e.link),children:[(0,I.jsx)("div",{className:"ablocks-interactive-segment",style:{backgroundColor:e.buttonBgColor},...P(i),children:(0,I.jsx)("div",{style:{transform:`rotate(${e.itemButtonTransition}deg)`},className:"ablocks-interactive-segment-content ablocks-interactive-item-content",children:(0,I.jsx)(LO,{index:i,attributes:t,list:e},i)})},e.id)," "]}))}),(0,I.jsx)("div",{className:"ablocks-interactive-circle-inner",children:(0,I.jsx)(DO,{activeSegment:T,attributes:t})})," "]}),!a&&o?.map((e,i)=>(0,I.jsx)("div",{className:"ablocks-interactive-item","data-title":e.title,"data-index":i,"data-text":e.description,...P(i),children:(0,I.jsxs)("a",{...W(e.link),children:[(0,I.jsx)("div",{className:"ablocks-interactive-item-inner ablocks-interactive-item-content",style:{backgroundColor:e.buttonBgColor},children:(0,I.jsx)(LO,{index:i,attributes:t,list:e},i)})," "]})},e.id))]
4532 +})]})})})})}iY.propTypes={},(0,M.xV)(CO.UU)&&(0,o.registerBlockType)(CO.UU,{title:(0,L.__)("Infographic Block","ablocks"),attributes:CO.uK,icon:(0,I.jsx)("span",{class:"ablocks-icon ablocks-icon--interactive-circle"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-wrapper",VO(i),VO(i,"Tablet"),VO(i,"Mobile"),t.customDeviceMap(t=>VO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segment-content.ablocks-interactive-item-content",YO(i),YO(i,"Tablet"),YO(i,"Mobile"),t.customDeviceMap(t=>YO(i,t))),
4533 +t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segments",eY(i),eY(i,"Tablet"),eY(i,"Mobile"),t.customDeviceMap(t=>eY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle",OO(i),OO(i,"Tablet"),OO(i,"Mobile"),t.customDeviceMap(t=>OO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle:hover",XO(i),XO(i,"Tablet"),XO(i,"Mobile"),t.customDeviceMap(t=>XO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",IO(i),IO(i,"Tablet"),IO(i,"Mobile"),t.customDeviceMap(t=>IO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-inner",$O(i),$O(i),$O(i),t.customDeviceMap(t=>$O(i))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segment",$O(i),$O(i),$O(i),t.customDeviceMap(t=>$O(i))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner",GO(i),GO(i,"Tablet"),GO(i,"Mobile"),t.customDeviceMap(t=>GO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner:hover",ZO(i),ZO(i,"Tablet"),ZO(i,"Mobile"),t.customDeviceMap(t=>ZO(i,t))),
4534 +t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner h2",KO(i),KO(i,"Tablet"),KO(i,"Mobile"),t.customDeviceMap(t=>KO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner .ablocks-divider__pattern-css",JO(i),JO(i,"Tablet"),JO(i,"Mobile"),t.customDeviceMap(t=>JO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner p",QO(i),QO(i,"Tablet"),QO(i,"Mobile"),t.customDeviceMap(t=>QO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner img",tY(i),tY(i,"Tablet"),tY(i,"Mobile"),t.customDeviceMap(t=>tY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content",GO(i),GO(i,"Tablet"),GO(i,"Mobile"),t.customDeviceMap(t=>GO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content:hover",ZO(i),ZO(i,"Tablet"),ZO(i,"Mobile"),t.customDeviceMap(t=>ZO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content h2",KO(i),KO(i,"Tablet"),KO(i,"Mobile"),t.customDeviceMap(t=>KO(i,t))),
4535 +t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content .ablocks-divider__pattern-css",JO(i),JO(i,"Tablet"),JO(i,"Mobile"),t.customDeviceMap(t=>JO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content p",QO(i),QO(i,"Tablet"),QO(i,"Mobile"),t.customDeviceMap(t=>QO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content img",tY(i),tY(i,"Tablet"),tY(i,"Mobile"),t.customDeviceMap(t=>tY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content",BO(i),BO(i,"Tablet"),BO(i,"Mobile"),t.customDeviceMap(t=>BO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content .ablocks-svg-icon",EO(i),EO(i,"Tablet"),EO(i,"Mobile"),t.customDeviceMap(t=>EO(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-items-content .ablocks-svg-icon:hover",FO(i),FO(i,"Tablet"),FO(i,"Mobile"),t.customDeviceMap(t=>FO(i,t))),
4536 +t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content .ablocks-interactive__item-text",qO(i),qO(i,"Tablet"),qO(i,"Mobile"),t.customDeviceMap(t=>qO(i,t))),(0,b.applyFilters)("ablocks.itemLists.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(zO,{...t}),(0,I.jsx)(NO,{...t})]})},save:iY});const oY=[{name:"custom",title:(0,L.__)("Custom Blank Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/blankForm.svg",alt:(0,L.__)("Custom Blank Form","ablocks")}),attributes:{formType:"customform",formActions:["email","submission"],submissionMetaData:["userIp","userAgent"]},scope:["block"],innerBlocks:[]},{name:"contact",title:(0,L.__)("Simple Contact Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/contactForm.svg",alt:(0,L.__)("Simple Contact Form","ablocks")}),attributes:{formType:"contact",formActions:["email","submission"],
4525 4537 submissionMetaData:["userIp","userAgent"]},scope:["block"],innerBlocks:[["ablocks/form-input",{name:"first_name",label:"First Name",placeholder:"First Name",type:"text",inputType:"Text"}],["ablocks/form-input",{name:"last_name",label:"Last Name",placeholder:"Last Name",type:"text",inputType:"Text"}],["ablocks/form-input",{name:"email",label:"Email",placeholder:"[email protected]",type:"email",inputType:"Email"}],["ablocks/form-textarea",{name:"message",label:"Message",placeholder:"Enter your Message",type:"text",inputType:"Textarea"}]]},{name:"registration",title:(0,L.__)("Registration Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/registrationForm.svg",alt:(0,L.__)("Registration Form","ablocks")}),attributes:{formType:"registration",buttonText:"Register"},scope:["block"],innerBlocks:[["ablocks/form-input",{name:"username",label:"Username",placeholder:"Username",type:"username",inputType:"Username",nameChangeable:!1}],["ablocks/form-input",{name:"email",
4526 4538 label:"Email",placeholder:"Email",type:"email",inputType:"Email",nameChangeable:!1}],["ablocks/form-password",{label:"Password",name:"password",placeholder:"Password",type:"password",inputType:"Password",nameChangeable:!1}],["ablocks/form-password",{label:"Confirm Password",name:"confirm_password",placeholder:"Confirm password",type:"password",inputType:"Password",nameChangeable:!1}],["ablocks/form-checkbox",{name:"accept",label:"Accept our terms and condition",type:"checkbox",inputType:"checkbox",isRequired:!0,nameChangeable:!1}]]},{name:"login",title:(0,L.__)("Login Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/loginForm.svg",alt:(0,L.__)("Login Form","ablocks")}),attributes:{formType:"login",buttonText:"Log In"},scope:["block"],innerBlocks:[["ablocks/form-input",{name:"username",label:"Username or Email",placeholder:"Username or Email",type:"text",inputType:"Username",nameChangeable:!1}],["ablocks/form-password",{label:"Password",name:"password",
4527 4539 placeholder:"Password",type:"password",inputType:"Password",nameChangeable:!1}],["ablocks/form-checkbox",{name:"rememberme",label:"Remember Me"}]]},{name:"subscription",title:(0,L.__)("Subscription Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/subcriptionForm.svg",alt:(0,L.__)("Subscription Form","ablocks")}),attributes:{formType:"subscription",buttonText:"Subscription",formActions:["email","submission"],submissionMetaData:["userIp","userAgent"]},scope:["block"],innerBlocks:[["ablocks/form-input",{name:"email",label:"Email",placeholder:"Email",type:"email",inputType:"Email",nameChangeable:!1}]]},{name:"multi-step",title:(0,L.__)("Multi Step Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/multiStepForm.svg",alt:(0,L.__)("Multi Step Form","ablocks")}),attributes:{formType:"multistep",buttonText:"Subscription",buttonSize:"small",formActions:["email","submission"],submissionMetaData:["userIp","userAgent"]},scope:["block"],
4528 -innerBlocks:[["ablocks/form-multi-step"]]},{name:"forget_password",title:(0,L.__)("Forget Password Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/forgetPasswordForm.svg",alt:(0,L.__)("Forget Password Form","ablocks")}),attributes:{formType:"forget_password",buttonText:"Forget Password"},scope:["block"],innerBlocks:[["ablocks/form-input",{name:"email",label:"User Email",placeholder:"Email",type:"email",inputType:"Email",nameChangeable:!1}]]}],SO=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}];function WO(t,e,i,o){if("mailchimp"===t){const t=e?.data?.data?.lists;if(Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.id})).filter(t=>!i.mailchimpListIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({
4529 -mailchimpListIdOptions:[...i.mailchimpListIdOptions,...e],mailchimpValidateApi:!0})}else o({mailchimpListIdOptions:[{label:"select options",value:"default"}],mailchimpValidateApi:!1})}}function PO(t,e,i,o){if("mailerlite"===t){const t=e?.data?.data?.groups;if(Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.id})).filter(t=>!i.mailerliteGroupIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({mailerliteGroupIdOptions:[...i.mailerliteGroupIdOptions,...e],mailerliteValidateApi:!0})}else o({mailerliteGroupIdOptions:[{label:"select options",value:"default"}],mailerliteValidateApi:!1})}}function UO(t,e,i,o){if("drip"===t){const t=e?.data?.data?.accounts;if(Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.id})).filter(t=>!i.dripAccountIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({dripAccountIdOptions:[...i.dripAccountIdOptions,...e],dripValidateApi:!0})}else o({dripAccountIdOptions:[{label:"select options",value:"default"}],dripValidateApi:!1})}}
4530 -function jO(t,e,i,o){if("getresponse"===t){const t=e?.data?.data?.campaigns;if(Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.campaignId})).filter(t=>!i.getResponseListIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({getResponseListIdOptions:[...i.getResponseListIdOptions,...e],getResponseValidateApi:!0})}else o({getResponseListIdOptions:[{label:"select options",value:"default"}],getResponseValidateApi:!1})}}function wO(t,e,i,o){if("convertkit"===t){const t=e?.data?.data?.forms?.forms,a=e?.data?.data?.tags;if(Array.isArray(a)&&o({convertkitTagsOptions:a.map(t=>({label:t.name,value:t.id}))}),Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.id})).filter(t=>!i.convertkitFormIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({convertkitFormIdOptions:[...i.convertkitFormIdOptions,...e],convertkitValidateApi:!0})}else o({convertkitFormIdOptions:[{label:"select options",value:"default"}],convertkitValidateApi:!1})}}async function zO(t,e,i,o){try{
4531 -const a=await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t,api:e});"mailchimp"===t&&WO(t,a,o,i),"mailerlite"===t&&PO(t,a,o,i),"drip"===t&&UO(t,a,o,i),"getresponse"===t&&jO(t,a,o,i),"convertkit"===t&&wO("convertkit",a,o,i)}catch(e){"mailchimp"===t&&i({mailchimpListIdOptions:[{label:"select options",value:"default"}]})}}const CO=async(t,e,i)=>{const o=await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t});"mailchimp"===t&&!0===o.data.success&&WO(t,o,i,e),"mailerlite"===t&&!0===o.data.success&&PO(t,o,i,e),"drip"===t&&!0===o.data.success&&UO(t,o,i,e),"getresponse"===t&&!0===o.data.success&&jO("getresponse",o,i,e),"convertkit"===t&&!0===o.data.success&&wO("convertkit",o,i,e)},AO=async(t,e,i,o)=>{let a;if(a=e?await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t,list_id:i,api:e}):await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t,list_id:i}),"mailchimp"===t&&!0===a.data.success){
4540 +innerBlocks:[["ablocks/form-multi-step"]]},{name:"forget_password",title:(0,L.__)("Forget Password Form","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/form-builder/forgetPasswordForm.svg",alt:(0,L.__)("Forget Password Form","ablocks")}),attributes:{formType:"forget_password",buttonText:"Forget Password"},scope:["block"],innerBlocks:[["ablocks/form-input",{name:"email",label:"User Email",placeholder:"Email",type:"email",inputType:"Email",nameChangeable:!1}]]}],aY=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}];function lY(t,e,i,o){if("mailchimp"===t){const t=e?.data?.data?.lists;if(Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.id})).filter(t=>!i.mailchimpListIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({
4541 +mailchimpListIdOptions:[...i.mailchimpListIdOptions,...e],mailchimpValidateApi:!0})}else o({mailchimpListIdOptions:[{label:"select options",value:"default"}],mailchimpValidateApi:!1})}}function nY(t,e,i,o){if("mailerlite"===t){const t=e?.data?.data?.groups;if(Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.id})).filter(t=>!i.mailerliteGroupIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({mailerliteGroupIdOptions:[...i.mailerliteGroupIdOptions,...e],mailerliteValidateApi:!0})}else o({mailerliteGroupIdOptions:[{label:"select options",value:"default"}],mailerliteValidateApi:!1})}}function sY(t,e,i,o){if("drip"===t){const t=e?.data?.data?.accounts;if(Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.id})).filter(t=>!i.dripAccountIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({dripAccountIdOptions:[...i.dripAccountIdOptions,...e],dripValidateApi:!0})}else o({dripAccountIdOptions:[{label:"select options",value:"default"}],dripValidateApi:!1})}}
4542 +function rY(t,e,i,o){if("getresponse"===t){const t=e?.data?.data?.campaigns;if(Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.campaignId})).filter(t=>!i.getResponseListIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({getResponseListIdOptions:[...i.getResponseListIdOptions,...e],getResponseValidateApi:!0})}else o({getResponseListIdOptions:[{label:"select options",value:"default"}],getResponseValidateApi:!1})}}function bY(t,e,i,o){if("convertkit"===t){const t=e?.data?.data?.forms?.forms,a=e?.data?.data?.tags;if(Array.isArray(a)&&o({convertkitTagsOptions:a.map(t=>({label:t.name,value:t.id}))}),Array.isArray(t)){const e=t.map(t=>({label:t.name,value:t.id})).filter(t=>!i.convertkitFormIdOptions.some(e=>e.label===t.label&&e.value===t.value));o({convertkitFormIdOptions:[...i.convertkitFormIdOptions,...e],convertkitValidateApi:!0})}else o({convertkitFormIdOptions:[{label:"select options",value:"default"}],convertkitValidateApi:!1})}}async function cY(t,e,i,o){try{
4543 +const a=await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t,api:e});"mailchimp"===t&&lY(t,a,o,i),"mailerlite"===t&&nY(t,a,o,i),"drip"===t&&sY(t,a,o,i),"getresponse"===t&&rY(t,a,o,i),"convertkit"===t&&bY("convertkit",a,o,i)}catch(e){"mailchimp"===t&&i({mailchimpListIdOptions:[{label:"select options",value:"default"}]})}}const dY=async(t,e,i)=>{const o=await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t});"mailchimp"===t&&!0===o.data.success&&lY(t,o,i,e),"mailerlite"===t&&!0===o.data.success&&nY(t,o,i,e),"drip"===t&&!0===o.data.success&&sY(t,o,i,e),"getresponse"===t&&!0===o.data.success&&rY("getresponse",o,i,e),"convertkit"===t&&!0===o.data.success&&bY("convertkit",o,i,e)},uY=async(t,e,i,o)=>{let a;if(a=e?await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t,list_id:i,api:e}):await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t,list_id:i}),"mailchimp"===t&&!0===a.data.success){
4532 4544 const t=a.data.data,e=t?._group_list,i=t._field_list;if(e&&o({mailchimpgroupsOptions:Object.entries(e).map(([t,e])=>({value:t,label:e}))}),i){const t={};i.forEach(e=>{const i=e.tag;t[i]="default"});const e=i.reduce((t,{tag:e})=>(t[e]="default",t),{});o({mailchimpMapFields:[...i],mailchimpMapSelects:{...t},...e})}}if("mailerlite"===t&&!0===a.data.success){const t=a.data.data.fields;if(t){const e={};t.forEach(t=>{const i=t.key;e[i]="default"});const i=t.reduce((t,{key:e})=>(t[e]="default",t),{});o({mailerliteMapFields:[...t],mailerliteMapSelects:{...e},...i})}}if("drip"===t&&!0===a.data.success){const t=a.data.data._field_list;if(t){const e={};t.forEach(t=>{const i=t.tag;e[i]="default"});const i=t.reduce((t,{tag:e})=>(t[e]="default",t),{});o({dripMapFields:[...t],dripMapSelects:{...e},...i})}}if("getresponse"===t&&!0===a.data.success){const t=a.data.data.fields;if(t){const e={};t.forEach(t=>{const i=t.customFieldId;e[i]="default"});const i=t.reduce((t,{customFieldId:e})=>(t[e]="default",
4533 -t),{});o({getResponseMapFields:[...t],getResponseMapSelects:{...e},...i})}}if("convertkit"===t&&!0===a.data.success){const t=a.data.data._field_list;if(t){const e={};t.forEach(t=>{const i=t.tag;e[i]="default"});const i=t.reduce((t,{tag:e})=>(t[e]="default",t),{});o({convertkitMapFields:[...t],convertkitMapSelects:{...e},...i})}}},LO=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Small","ablocks"),value:"small"},{label:(0,L.__)("Medium","ablocks"),value:"medium"},{label:(0,L.__)("Large","ablocks"),value:"large"},{label:(0,L.__)("Extra Large","ablocks"),value:"extra-large"},{label:(0,L.__)("Full Width","ablocks"),value:"full-width"}],DO=t=>M.zX?t:(0,I.jsxs)("div",{style:{justifyContent:"left"},className:"ablocks-pro-toggle__label-control",children:[(0,I.jsx)(at,{label:t,isResponsive:!1}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--lock"})]}),NO=[{label:(0,L.__)("Collect Submission","ablocks"),value:"submission"},{label:(0,L.__)("Mailchimp","ablocks"),
4534 -value:"mailchimp"},{label:DO((0,L.__)("Mailerlite","ablocks")),value:"mailerlite",isDisabled:!M.zX},{label:DO((0,L.__)("Drip","ablocks")),value:"drip",isDisabled:!M.zX},{label:DO((0,L.__)("GetResponse","ablocks")),value:"getResponse",isDisabled:!M.zX},{label:DO((0,L.__)("Convertkit","ablocks")),value:"convertkit",isDisabled:!M.zX},{label:DO((0,L.__)("Webhook","ablocks")),value:"webhook",isDisabled:!M.zX}],IO=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Custom","ablocks"),value:"custom"}],VO=[{label:(0,L.__)("User IP","ablocks"),value:"userIp"},{label:(0,L.__)("User Agent","ablocks"),value:"userAgent"}],OO=({attributes:t,setAttributes:e})=>{const{formActions:i,formName:o,formType:l,customForm:n}=t;(0,a.useEffect)(()=>{"custom"===t?.formType&&e(""!==t?.formName?{formType:o}:{formType:"custom"})},[o]),(0,a.useEffect)(()=>{"custom"===t?.formType&&e({customForm:!0})},[t.formType]);const s=!("contact"!==l&&"subscription"!==l&&"multi-step"!==l&&!n);return(0,
4535 -I.jsx)("div",{className:"ablocks-form-builder-action-after-submition",children:s&&(0,I.jsx)("div",{className:"ablocks-form-builder-action-after-submition__action-types-section",children:(0,I.jsx)(Ut,{label:(0,L.__)("Action Types","ablocks"),className:"ablocks-form-builder-action-after-submition__action-types-select",isMulti:!0,options:NO,attributeName:"formActions",attributeValue:i||[],setAttributes:e})})})},YO=(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-ellipsis-vertical",children:[(0,I.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,I.jsx)("circle",{cx:"12",cy:"5",r:"1"}),(0,I.jsx)("circle",{cx:"12",cy:"19",r:"1"})]}),XO=({formTags:t=[],genericTags:e,attributes:i,setAttributes:o,targetKey:l,isQuillEditor:n=!1})=>{const[s,r]=(0,a.useState)(!1),[b,c]=(0,a.useState)("bottom"),d=(0,a.useRef)(null),u=t=>{
4536 -d.current&&!d.current.contains(t.target)&&r(!1)},p=t=>{const e=i[l]||"";o({[l]:`${e}${e?" ":""}{${t}}`}),r(!1)};return(0,a.useEffect)(()=>(document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)),[]),(0,a.useEffect)(()=>{if(!s||!d.current)return;const t=d.current.getBoundingClientRect(),e=window.innerHeight-t.bottom,i=t.top;c(e<260&&i>e?"top":"bottom")},[s]),(0,I.jsxs)("div",{className:"ablocks-form-builder-action-button",ref:d,children:[(0,I.jsx)("button",{onClick:()=>r(!s),className:n?"ablocks-form-builder-action-button-quill-trigger":"ablocks-form-builder-action-button__trigger",children:n?(0,I.jsxs)(I.Fragment,{children:["Add Shortcode"," ",(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"})]}):YO}),s&&(0,I.jsxs)("div",{className:`ablocks-form-builder-action-button__dropdown ablocks-form-builder-action-button__dropdown--${b}`,children:[(0,I.jsxs)("div",{className:"ablocks-form-builder-action-button__section",children:[(0,
4545 +t),{});o({getResponseMapFields:[...t],getResponseMapSelects:{...e},...i})}}if("convertkit"===t&&!0===a.data.success){const t=a.data.data._field_list;if(t){const e={};t.forEach(t=>{const i=t.tag;e[i]="default"});const i=t.reduce((t,{tag:e})=>(t[e]="default",t),{});o({convertkitMapFields:[...t],convertkitMapSelects:{...e},...i})}}},pY=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Small","ablocks"),value:"small"},{label:(0,L.__)("Medium","ablocks"),value:"medium"},{label:(0,L.__)("Large","ablocks"),value:"large"},{label:(0,L.__)("Extra Large","ablocks"),value:"extra-large"},{label:(0,L.__)("Full Width","ablocks"),value:"full-width"}],mY=t=>M.zX?t:(0,I.jsxs)("div",{style:{justifyContent:"left"},className:"ablocks-pro-toggle__label-control",children:[(0,I.jsx)(at,{label:t,isResponsive:!1}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--lock"})]}),hY=[{label:(0,L.__)("Collect Submission","ablocks"),value:"submission"},{label:(0,L.__)("Mailchimp","ablocks"),
4546 +value:"mailchimp"},{label:mY((0,L.__)("Mailerlite","ablocks")),value:"mailerlite",isDisabled:!M.zX},{label:mY((0,L.__)("Drip","ablocks")),value:"drip",isDisabled:!M.zX},{label:mY((0,L.__)("GetResponse","ablocks")),value:"getResponse",isDisabled:!M.zX},{label:mY((0,L.__)("Convertkit","ablocks")),value:"convertkit",isDisabled:!M.zX},{label:mY((0,L.__)("Webhook","ablocks")),value:"webhook",isDisabled:!M.zX}],gY=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Custom","ablocks"),value:"custom"}],fY=[{label:(0,L.__)("User IP","ablocks"),value:"userIp"},{label:(0,L.__)("User Agent","ablocks"),value:"userAgent"}],yY=({attributes:t,setAttributes:e})=>{const{formActions:i,formName:o,formType:l,customForm:n}=t;(0,a.useEffect)(()=>{"custom"===t?.formType&&e(""!==t?.formName?{formType:o}:{formType:"custom"})},[o]),(0,a.useEffect)(()=>{"custom"===t?.formType&&e({customForm:!0})},[t.formType]);const s=!("contact"!==l&&"subscription"!==l&&"multi-step"!==l&&!n);return(0,
4547 +I.jsx)("div",{className:"ablocks-form-builder-action-after-submition",children:s&&(0,I.jsx)("div",{className:"ablocks-form-builder-action-after-submition__action-types-section",children:(0,I.jsx)(Ut,{label:(0,L.__)("Action Types","ablocks"),className:"ablocks-form-builder-action-after-submition__action-types-select",isMulti:!0,options:hY,attributeName:"formActions",attributeValue:i||[],setAttributes:e})})})},TY=(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-ellipsis-vertical",children:[(0,I.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,I.jsx)("circle",{cx:"12",cy:"5",r:"1"}),(0,I.jsx)("circle",{cx:"12",cy:"19",r:"1"})]}),HY=({formTags:t=[],genericTags:e,attributes:i,setAttributes:o,targetKey:l,isQuillEditor:n=!1})=>{const[s,r]=(0,a.useState)(!1),[b,c]=(0,a.useState)("bottom"),d=(0,a.useRef)(null),u=t=>{
4548 +d.current&&!d.current.contains(t.target)&&r(!1)},p=t=>{const e=i[l]||"";o({[l]:`${e}${e?" ":""}{${t}}`}),r(!1)};return(0,a.useEffect)(()=>(document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)),[]),(0,a.useEffect)(()=>{if(!s||!d.current)return;const t=d.current.getBoundingClientRect(),e=window.innerHeight-t.bottom,i=t.top;c(e<260&&i>e?"top":"bottom")},[s]),(0,I.jsxs)("div",{className:"ablocks-form-builder-action-button",ref:d,children:[(0,I.jsx)("button",{onClick:()=>r(!s),className:n?"ablocks-form-builder-action-button-quill-trigger":"ablocks-form-builder-action-button__trigger",children:n?(0,I.jsxs)(I.Fragment,{children:["Add Shortcode"," ",(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"})]}):TY}),s&&(0,I.jsxs)("div",{className:`ablocks-form-builder-action-button__dropdown ablocks-form-builder-action-button__dropdown--${b}`,children:[(0,I.jsxs)("div",{className:"ablocks-form-builder-action-button__section",children:[(0,
4537 4549 I.jsx)("strong",{className:"ablocks-form-builder-action-button__title",children:(0,L.__)("Form input tags","ablocks")}),t?.length>0?t.map((t,e)=>(0,I.jsx)("div",{className:"ablocks-form-builder-action-button__item",onClick:()=>p(t?.value),children:t?.label},e)):(0,I.jsx)("div",{className:"ablocks-form-builder-action-button__empty",children:(0,L.__)("No tags available","ablocks")})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder-action-button__section",children:[(0,I.jsx)("strong",{className:"ablocks-form-builder-action-button__title",children:(0,L.__)("Generic tags","ablocks")}),e?.length>0?e.map((t,e)=>(0,I.jsx)("div",{className:"ablocks-form-builder-action-button__item",onClick:()=>p(t?.value),children:t?.label},e)):(0,I.jsx)("div",{className:"ablocks-form-builder-action-button__empty",children:(0,L.__)("No tags available","ablocks")})]})]})]})
4538 -},BO=({label:t,type:e="text",value:i,onChange:o,showAction:a=!1,actionPlacement:l="side",genericTags:n,attributes:s,setAttributes:r,targetKey:b,formTags:c,placeholder:d="",options:u=[],rows:p=4,notice:m,selectMultiple:h=!1})=>(0,I.jsxs)("div",{className:"ablocks-form-builder-form-group",children:["select"!==e&&(0,I.jsx)(I.Fragment,{children:a&&"label"===l?(0,I.jsxs)("div",{className:"ablocks-form-builder-form-label-row",children:[(0,I.jsx)("label",{className:"ablocks-form-builder-form-label",children:t}),(0,I.jsx)(XO,{formTags:c,genericTags:n,attributes:s,setAttributes:r,targetKey:b})]}):(0,I.jsx)("label",{className:"ablocks-form-builder-form-label",children:t})}),(0,I.jsxs)("div",{className:"ablocks-form-builder-row",children:[(0,I.jsx)("div",{style:{width:a&&"side"===l?"95%":"100%"},className:"ablocks-form-builder-row__filed",children:(()=>{switch(e){case"select":return(0,I.jsx)(Ut,{label:t,isResponsive:!1,isMulti:!!h,className:"ablocks-form-builder-form-select-control",options:u,
4539 -attributeValue:i,onChangeHandler:t=>{if("function"!=typeof o)return;const e=Array.isArray(t)?t:[t];o({target:{value:t,selectedOptions:e.map(t=>({value:t}))}})}});case"textarea":return(0,I.jsx)("textarea",{className:"ablocks-form-builder-form-textarea",value:i,onChange:o,placeholder:d,rows:p});default:return(0,I.jsx)("input",{className:"ablocks-form-builder-form-input",type:e,value:i,placeholder:d,onChange:o})}})()}),a&&"side"===l&&(0,I.jsx)(XO,{formTags:c,genericTags:n,attributes:s,setAttributes:r,targetKey:b})]}),m&&(0,I.jsx)("p",{className:"ablocks-form-builder-action-after-submission-notice",children:(0,L.__)(m,"ablocks")})]});function EO({attributes:t,setAttributes:e}){const{mailchimpOption:i,mailchimpApiKey:o,mailchimpListId:l,mailchimpTags:n,showDoubleOpt:s,childDetails:r,mailchimpListIdOptions:b,formActions:c,mapEmailOptions:d,mapOtherOptions:u,mailchimpgroupsOptions:p,mailchimpgroupSelects:m,mailchimpValidateApi:h,mailchimpMapSelects:g,mailchimpEmailSelects:f}=t,[y,T]=(0,
4540 -a.useState)(!0),H=i||"default",M="ablocks-mailchimp-api-default",x="ablocks-mailchimp-api-custom",k="custom"!==H||""!==o;return(0,a.useEffect)(()=>{c.includes("mailchimp")&&CO("mailchimp",e,t)},[i]),(0,a.useEffect)(()=>{"custom"===H&&""===o||"default"===l||"default"!==g&&void 0!==g||AO("mailchimp","custom"===H?o:void 0,l,e)},[l,H,o]),(0,a.useEffect)(()=>{"custom"===H&&""!==o&&zO("mailchimp",o,e,t)},[H,o]),(0,a.useEffect)(()=>{if(0!==r.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,L.__)("None","ablocks"),value:"default"},{label:(0,L.__)("Email","ablocks"),value:"email"}]}),Array.isArray(r)&&0!==r.length){const t=r.map(t=>({label:t.name?.toUpperCase()||(0,L.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,L.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[r]),(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp ablocks-form-builder__mailchimp--panel",children:(0,I.jsxs)("div",{
4550 +},MY=({label:t,type:e="text",value:i,onChange:o,showAction:a=!1,actionPlacement:l="side",genericTags:n,attributes:s,setAttributes:r,targetKey:b,formTags:c,placeholder:d="",options:u=[],rows:p=4,notice:m,selectMultiple:h=!1})=>(0,I.jsxs)("div",{className:"ablocks-form-builder-form-group",children:["select"!==e&&(0,I.jsx)(I.Fragment,{children:a&&"label"===l?(0,I.jsxs)("div",{className:"ablocks-form-builder-form-label-row",children:[(0,I.jsx)("label",{className:"ablocks-form-builder-form-label",children:t}),(0,I.jsx)(HY,{formTags:c,genericTags:n,attributes:s,setAttributes:r,targetKey:b})]}):(0,I.jsx)("label",{className:"ablocks-form-builder-form-label",children:t})}),(0,I.jsxs)("div",{className:"ablocks-form-builder-row",children:[(0,I.jsx)("div",{style:{width:a&&"side"===l?"95%":"100%"},className:"ablocks-form-builder-row__filed",children:(()=>{switch(e){case"select":return(0,I.jsx)(Ut,{label:t,isResponsive:!1,isMulti:!!h,className:"ablocks-form-builder-form-select-control",options:u,
4551 +attributeValue:i,onChangeHandler:t=>{if("function"!=typeof o)return;const e=Array.isArray(t)?t:[t];o({target:{value:t,selectedOptions:e.map(t=>({value:t}))}})}});case"textarea":return(0,I.jsx)("textarea",{className:"ablocks-form-builder-form-textarea",value:i,onChange:o,placeholder:d,rows:p});default:return(0,I.jsx)("input",{className:"ablocks-form-builder-form-input",type:e,value:i,placeholder:d,onChange:o})}})()}),a&&"side"===l&&(0,I.jsx)(HY,{formTags:c,genericTags:n,attributes:s,setAttributes:r,targetKey:b})]}),m&&(0,I.jsx)("p",{className:"ablocks-form-builder-action-after-submission-notice",children:(0,L.__)(m,"ablocks")})]});function xY({attributes:t,setAttributes:e}){const{mailchimpOption:i,mailchimpApiKey:o,mailchimpListId:l,mailchimpTags:n,showDoubleOpt:s,childDetails:r,mailchimpListIdOptions:b,formActions:c,mapEmailOptions:d,mapOtherOptions:u,mailchimpgroupsOptions:p,mailchimpgroupSelects:m,mailchimpValidateApi:h,mailchimpMapSelects:g,mailchimpEmailSelects:f}=t,[y,T]=(0,
4552 +a.useState)(!0),H=i||"default",M="ablocks-mailchimp-api-default",x="ablocks-mailchimp-api-custom",k="custom"!==H||""!==o;return(0,a.useEffect)(()=>{c.includes("mailchimp")&&dY("mailchimp",e,t)},[i]),(0,a.useEffect)(()=>{"custom"===H&&""===o||"default"===l||"default"!==g&&void 0!==g||uY("mailchimp","custom"===H?o:void 0,l,e)},[l,H,o]),(0,a.useEffect)(()=>{"custom"===H&&""!==o&&cY("mailchimp",o,e,t)},[H,o]),(0,a.useEffect)(()=>{if(0!==r.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,L.__)("None","ablocks"),value:"default"},{label:(0,L.__)("Email","ablocks"),value:"email"}]}),Array.isArray(r)&&0!==r.length){const t=r.map(t=>({label:t.name?.toUpperCase()||(0,L.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,L.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[r]),(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp ablocks-form-builder__mailchimp--panel",children:(0,I.jsxs)("div",{
4541 4553 className:"ablocks-form-builder__mailchimp__panel",children:[(0,I.jsxs)("button",{type:"button",className:"ablocks-form-builder__mailchimp__panel-header "+(y?"is-open":"is-collapsed"),onClick:()=>T(t=>!t),"aria-expanded":y,children:[(0,I.jsx)("h3",{className:"ablocks-form-builder__mailchimp__panel-title",children:(0,L.__)("Mailchimp","ablocks")}),(0,I.jsx)("span",{className:"ablocks-form-builder__mailchimp__panel-chevron","aria-hidden":"true"})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder__mailchimp__panel-body",hidden:!y,children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__mailchimp__option-list",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__mailchimp__option",children:[(0,I.jsx)("input",{id:M,className:"ablocks-form-builder__mailchimp__option-radio",type:"radio",name:"mailchimpApiMode",checked:"default"===H,onChange:()=>e({mailchimpOption:"default"})}),(0,I.jsxs)("label",{htmlFor:M,children:[(0,I.jsx)("div",{
4542 -className:"ablocks-form-builder__mailchimp__option-title",children:(0,L.__)("Default API Key","ablocks")}),(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__option-desc",children:(0,L.__)("Lorem ipsum dorem","ablocks")})]})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder__mailchimp__option",children:[(0,I.jsx)("input",{id:x,className:"ablocks-form-builder__mailchimp__option-radio",type:"radio",name:"mailchimpApiMode",checked:"custom"===H,onChange:()=>e({mailchimpOption:"custom"})}),(0,I.jsxs)("label",{htmlFor:x,children:[(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__option-title",children:(0,L.__)("Custom API Key","ablocks")}),(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__option-desc",children:(0,L.__)("Add a custom API key for this Mailchimp integration","ablocks")})]})]})]}),"custom"===H&&(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__api-card",children:(0,I.jsx)(BO,{label:(0,L.__)("Custom API Key","ablocks"),type:"text",
4543 -value:o,onChange:t=>e({mailchimpApiKey:t.target.value}),placeholder:(0,L.__)("Enter mailchimp API key","ablocks"),attributes:t,setAttributes:e})}),k&&("default"===H?(0,I.jsxs)("div",{className:"ablocks-form-builder__mailchimp__api-card",children:[(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__audience",children:(0,I.jsx)(BO,{label:(0,L.__)("Audience","ablocks"),type:"select",value:l,onChange:t=>e({mailchimpListId:t.target.value}),options:b,attributes:t,setAttributes:e})}),"default"!==l&&h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(BO,{label:(0,L.__)("Group","ablocks"),type:"select",selectMultiple:!0,value:m,onChange:t=>e({mailchimpgroupSelects:Array.from(t.target.selectedOptions,t=>t.value)}),options:p,attributes:t,setAttributes:e}),(0,I.jsx)(BO,{label:(0,L.__)("Tags","ablocks"),type:"textarea",value:n,onChange:t=>e({mailchimpTags:t.target.value}),placeholder:(0,L.__)("Add comma separated tags","ablocks"),attributes:t,setAttributes:e}),(0,I.jsx)("div",{
4544 -className:"ablocks-form-builder-form-group",children:(0,I.jsxs)("label",{className:"ablocks-form-builder-form-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:s,onChange:t=>e({showDoubleOpt:t.target.checked})}),(0,L.__)("Double Opt-in","ablocks")]})}),(0,I.jsxs)("div",{className:"field-map-section",children:[(0,I.jsx)("h4",{className:"field-map-title",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"field-map-divider"}),(0,I.jsx)(BO,{label:(0,L.__)("Email","ablocks"),type:"select",value:f,onChange:t=>e({mailchimpEmailSelects:t.target.value}),options:d,attributes:t,setAttributes:e}),t?.mailchimpMapFields&&t?.mailchimpMapSelects&&t.mailchimpMapFields.map((i,o)=>{const a=g?.[i.tag]||"";return(0,I.jsx)(Ut,{label:i.name,isResponsive:!1,className:"ablocks-form-builder-form-group ablocks-form-builder-form-group--select",attributeValue:a,options:u,onChangeHandler:o=>e({...t,mailchimpMapSelects:{...t.mailchimpMapSelects,[i.tag]:o}})},o)})]})]})]}):(0,
4545 -I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__audience",children:(0,I.jsx)(BO,{label:(0,L.__)("Audience","ablocks"),type:"select",value:l,onChange:t=>e({mailchimpListId:t.target.value}),options:b,attributes:t,setAttributes:e})}),"default"!==l&&h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(BO,{label:(0,L.__)("Group","ablocks"),type:"select",selectMultiple:!0,value:m,onChange:t=>e({mailchimpgroupSelects:Array.from(t.target.selectedOptions,t=>t.value)}),options:p,attributes:t,setAttributes:e}),(0,I.jsx)(BO,{label:(0,L.__)("Tags","ablocks"),type:"textarea",value:n,onChange:t=>e({mailchimpTags:t.target.value}),placeholder:(0,L.__)("Add comma separated tags","ablocks"),attributes:t,setAttributes:e}),(0,I.jsx)("div",{className:"ablocks-form-builder-form-group",children:(0,I.jsxs)("label",{className:"ablocks-form-builder-form-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:s,onChange:t=>e({showDoubleOpt:t.target.checked})}),(0,
4546 -L.__)("Double Opt-in","ablocks")]})}),(0,I.jsxs)("div",{className:"field-map-section",children:[(0,I.jsx)("h4",{className:"field-map-title",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"field-map-divider"}),(0,I.jsx)(BO,{label:(0,L.__)("Email","ablocks"),type:"select",value:f,onChange:t=>e({mailchimpEmailSelects:t.target.value}),options:d,attributes:t,setAttributes:e}),t?.mailchimpMapFields&&t?.mailchimpMapSelects&&t.mailchimpMapFields.map((i,o)=>{const a=g?.[i.tag]||"";return(0,I.jsx)(Ut,{label:i.name,isResponsive:!1,className:"ablocks-form-builder-form-group ablocks-form-builder-form-group--select",attributeValue:a,options:u,onChangeHandler:o=>e({...t,mailchimpMapSelects:{...t.mailchimpMapSelects,[i.tag]:o}})},o)})]})]})]}))]})]})})}function FO({attributes:t,setAttributes:e}){
4547 -const{formActions:i,mapOtherOptions:o,mailerliteOption:l,mailerliteApiKey:n,mailerliteValidateApi:s,mailerliteGroupId:r,mailerliteGroupIdOptions:b,mailerliteMapSelects:c,mapEmailOptions:d,allowReSubscribe:u,childDetails:p}=t;return(0,a.useEffect)(()=>{i.includes("mailerlite")&&CO("mailerlite",e,t)},[l,i]),(0,a.useEffect)(()=>{"default"===r||"default"!==c&&void 0!==c||AO("mailerlite",n,r,e)},[r]),(0,a.useEffect)(()=>{""!==n&&zO("mailerlite",n,e,t)},[n]),(0,a.useEffect)(()=>{if(0!==p.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,L.__)("None","ablocks"),value:"default"},{label:(0,L.__)("Email","ablocks"),value:"email"}]}),Array.isArray(p)&&0!==p.length){const t=p.map(t=>({label:t.name?.toUpperCase()||(0,L.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,L.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[p]),(0,I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,
4548 -I.jsx)(BO,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:l,onChange:t=>e({mailerliteOption:t.target.value}),options:IO,attributes:t,setAttributes:e}),"custom"===l&&(0,I.jsx)(BO,{label:(0,L.__)("Custom Api Key","ablocks"),type:"text",value:n,onChange:t=>e({mailerliteApiKey:t.target.value}),attributes:t,setAttributes:e}),("default"===l||""!==n)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(BO,{label:(0,L.__)("Group","ablocks"),type:"select",value:r,onChange:t=>e({mailerliteGroupId:t.target.value}),options:b,attributes:t,setAttributes:e}),"default"!==r&&!0===s&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"mailerlite-section__field-map-group",children:[(0,I.jsx)("label",{className:"mailerlite-section__label",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"mailerlite-section__divider"}),t?.mailerliteMapFields&&t?.mailerliteMapSelects&&t?.mailerliteMapFields.map((i,a)=>{const l=c?.[i.key]||"";return(0,I.jsx)("div",{
4549 -className:"mailerlite-section__field-group",children:(0,I.jsx)(Ut,{label:i.title,isResponsive:!1,className:"ablocks-form-builder-form-group",attributeValue:l,options:"email"===i.key?d:o,onChangeHandler:o=>e({...t,mailerliteMapSelects:{...t.mailerliteMapSelects,[i.key]:o||null}})})},a)})]}),(0,I.jsx)("div",{className:"mailerlite-section__toggle-group",children:(0,I.jsxs)("label",{className:"mailerlite-section__toggle-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:!!u,onChange:t=>e({allowReSubscribe:t.target.checked})}),(0,L.__)("Allow Re-Subscribe","ablocks")]})})]})]})]})}function qO({attributes:t,setAttributes:e}){const{formActions:i,mapEmailOptions:o,dripOption:l,dripApiKey:n,dripValidateApi:s,dripAccountId:r,dripAccountIdOptions:b,dripEmailSelects:c,showFormFields:d,dripTags:u}=t;return(0,a.useEffect)(()=>{i.includes("drip")&&CO("drip",e,t)},[i,l]),(0,a.useEffect)(()=>{""!==n&&zO("drip",n,e,t)},[n]),(0,I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",
4550 -children:[(0,I.jsx)(BO,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:l,onChange:t=>e({dripOption:t.target.value}),options:IO,attributes:t,setAttributes:e}),"custom"===l&&(0,I.jsx)(BO,{label:(0,L.__)("Custom Api Key","ablocks"),type:"text",value:n,onChange:t=>e({dripApiKey:t.target.value}),attributes:t,setAttributes:e}),("default"===l||""!==n)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(BO,{label:(0,L.__)("Account","ablocks"),type:"select",value:r,onChange:t=>e({dripAccountId:t.target.value}),options:b,attributes:t,setAttributes:e}),"default"!==r&&!0===s&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h4",{className:"drip-section__label",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"drip-section__divider"}),(0,I.jsx)(BO,{label:(0,L.__)("Email","ablocks"),type:"select",value:c,onChange:t=>e({dripEmailSelects:t.target.value}),options:o,attributes:t,setAttributes:e}),(0,I.jsx)("div",{className:"ablocks-form-builder-form-group",children:(0,I.jsxs)("label",{
4551 -className:"ablocks-form-builder-form-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:d,onChange:t=>e({showFormFields:t.target.checked})}),(0,L.__)("Form Field","ablocks")]})}),(0,I.jsx)(BO,{label:(0,L.__)("Tags","ablocks"),type:"textarea",value:u,onChange:t=>e({dripTags:t.target.value}),placeholder:(0,L.__)("Add comma separated tags","ablocks"),attributes:t,setAttributes:e})]})]})]})}function $O({attributes:t,setAttributes:e}){const{formType:i}=t,o=t?.submissionMetaData||[],[l,n]=(0,a.useState)(!0),s=(0,a.useMemo)(()=>{const t={userIp:(0,L.__)("Automatically captured for security and verification purposes.","ablocks"),userAgent:(0,L.__)("Browser and device information collected to improve user experience and compatibility.","ablocks")};return VO.map(e=>({value:e.value,title:e.label,description:t[e.value]||""}))},[]),r=t=>o.includes(t);return(0,I.jsx)("div",{className:"ablocks-form-builder__submission ablocks-form-builder__submission--panel",children:(0,I.jsxs)("div",{
4554 +className:"ablocks-form-builder__mailchimp__option-title",children:(0,L.__)("Default API Key","ablocks")}),(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__option-desc",children:(0,L.__)("Lorem ipsum dorem","ablocks")})]})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder__mailchimp__option",children:[(0,I.jsx)("input",{id:x,className:"ablocks-form-builder__mailchimp__option-radio",type:"radio",name:"mailchimpApiMode",checked:"custom"===H,onChange:()=>e({mailchimpOption:"custom"})}),(0,I.jsxs)("label",{htmlFor:x,children:[(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__option-title",children:(0,L.__)("Custom API Key","ablocks")}),(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__option-desc",children:(0,L.__)("Add a custom API key for this Mailchimp integration","ablocks")})]})]})]}),"custom"===H&&(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__api-card",children:(0,I.jsx)(MY,{label:(0,L.__)("Custom API Key","ablocks"),type:"text",
4555 +value:o,onChange:t=>e({mailchimpApiKey:t.target.value}),placeholder:(0,L.__)("Enter mailchimp API key","ablocks"),attributes:t,setAttributes:e})}),k&&("default"===H?(0,I.jsxs)("div",{className:"ablocks-form-builder__mailchimp__api-card",children:[(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__audience",children:(0,I.jsx)(MY,{label:(0,L.__)("Audience","ablocks"),type:"select",value:l,onChange:t=>e({mailchimpListId:t.target.value}),options:b,attributes:t,setAttributes:e})}),"default"!==l&&h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(MY,{label:(0,L.__)("Group","ablocks"),type:"select",selectMultiple:!0,value:m,onChange:t=>e({mailchimpgroupSelects:Array.from(t.target.selectedOptions,t=>t.value)}),options:p,attributes:t,setAttributes:e}),(0,I.jsx)(MY,{label:(0,L.__)("Tags","ablocks"),type:"textarea",value:n,onChange:t=>e({mailchimpTags:t.target.value}),placeholder:(0,L.__)("Add comma separated tags","ablocks"),attributes:t,setAttributes:e}),(0,I.jsx)("div",{
4556 +className:"ablocks-form-builder-form-group",children:(0,I.jsxs)("label",{className:"ablocks-form-builder-form-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:s,onChange:t=>e({showDoubleOpt:t.target.checked})}),(0,L.__)("Double Opt-in","ablocks")]})}),(0,I.jsxs)("div",{className:"field-map-section",children:[(0,I.jsx)("h4",{className:"field-map-title",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"field-map-divider"}),(0,I.jsx)(MY,{label:(0,L.__)("Email","ablocks"),type:"select",value:f,onChange:t=>e({mailchimpEmailSelects:t.target.value}),options:d,attributes:t,setAttributes:e}),t?.mailchimpMapFields&&t?.mailchimpMapSelects&&t.mailchimpMapFields.map((i,o)=>{const a=g?.[i.tag]||"";return(0,I.jsx)(Ut,{label:i.name,isResponsive:!1,className:"ablocks-form-builder-form-group ablocks-form-builder-form-group--select",attributeValue:a,options:u,onChangeHandler:o=>e({...t,mailchimpMapSelects:{...t.mailchimpMapSelects,[i.tag]:o}})},o)})]})]})]}):(0,
4557 +I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-form-builder__mailchimp__audience",children:(0,I.jsx)(MY,{label:(0,L.__)("Audience","ablocks"),type:"select",value:l,onChange:t=>e({mailchimpListId:t.target.value}),options:b,attributes:t,setAttributes:e})}),"default"!==l&&h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(MY,{label:(0,L.__)("Group","ablocks"),type:"select",selectMultiple:!0,value:m,onChange:t=>e({mailchimpgroupSelects:Array.from(t.target.selectedOptions,t=>t.value)}),options:p,attributes:t,setAttributes:e}),(0,I.jsx)(MY,{label:(0,L.__)("Tags","ablocks"),type:"textarea",value:n,onChange:t=>e({mailchimpTags:t.target.value}),placeholder:(0,L.__)("Add comma separated tags","ablocks"),attributes:t,setAttributes:e}),(0,I.jsx)("div",{className:"ablocks-form-builder-form-group",children:(0,I.jsxs)("label",{className:"ablocks-form-builder-form-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:s,onChange:t=>e({showDoubleOpt:t.target.checked})}),(0,
4558 +L.__)("Double Opt-in","ablocks")]})}),(0,I.jsxs)("div",{className:"field-map-section",children:[(0,I.jsx)("h4",{className:"field-map-title",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"field-map-divider"}),(0,I.jsx)(MY,{label:(0,L.__)("Email","ablocks"),type:"select",value:f,onChange:t=>e({mailchimpEmailSelects:t.target.value}),options:d,attributes:t,setAttributes:e}),t?.mailchimpMapFields&&t?.mailchimpMapSelects&&t.mailchimpMapFields.map((i,o)=>{const a=g?.[i.tag]||"";return(0,I.jsx)(Ut,{label:i.name,isResponsive:!1,className:"ablocks-form-builder-form-group ablocks-form-builder-form-group--select",attributeValue:a,options:u,onChangeHandler:o=>e({...t,mailchimpMapSelects:{...t.mailchimpMapSelects,[i.tag]:o}})},o)})]})]})]}))]})]})})}function kY({attributes:t,setAttributes:e}){
4559 +const{formActions:i,mapOtherOptions:o,mailerliteOption:l,mailerliteApiKey:n,mailerliteValidateApi:s,mailerliteGroupId:r,mailerliteGroupIdOptions:b,mailerliteMapSelects:c,mapEmailOptions:d,allowReSubscribe:u,childDetails:p}=t;return(0,a.useEffect)(()=>{i.includes("mailerlite")&&dY("mailerlite",e,t)},[l,i]),(0,a.useEffect)(()=>{"default"===r||"default"!==c&&void 0!==c||uY("mailerlite",n,r,e)},[r]),(0,a.useEffect)(()=>{""!==n&&cY("mailerlite",n,e,t)},[n]),(0,a.useEffect)(()=>{if(0!==p.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,L.__)("None","ablocks"),value:"default"},{label:(0,L.__)("Email","ablocks"),value:"email"}]}),Array.isArray(p)&&0!==p.length){const t=p.map(t=>({label:t.name?.toUpperCase()||(0,L.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,L.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[p]),(0,I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,
4560 +I.jsx)(MY,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:l,onChange:t=>e({mailerliteOption:t.target.value}),options:gY,attributes:t,setAttributes:e}),"custom"===l&&(0,I.jsx)(MY,{label:(0,L.__)("Custom Api Key","ablocks"),type:"text",value:n,onChange:t=>e({mailerliteApiKey:t.target.value}),attributes:t,setAttributes:e}),("default"===l||""!==n)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(MY,{label:(0,L.__)("Group","ablocks"),type:"select",value:r,onChange:t=>e({mailerliteGroupId:t.target.value}),options:b,attributes:t,setAttributes:e}),"default"!==r&&!0===s&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"mailerlite-section__field-map-group",children:[(0,I.jsx)("label",{className:"mailerlite-section__label",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"mailerlite-section__divider"}),t?.mailerliteMapFields&&t?.mailerliteMapSelects&&t?.mailerliteMapFields.map((i,a)=>{const l=c?.[i.key]||"";return(0,I.jsx)("div",{
4561 +className:"mailerlite-section__field-group",children:(0,I.jsx)(Ut,{label:i.title,isResponsive:!1,className:"ablocks-form-builder-form-group",attributeValue:l,options:"email"===i.key?d:o,onChangeHandler:o=>e({...t,mailerliteMapSelects:{...t.mailerliteMapSelects,[i.key]:o||null}})})},a)})]}),(0,I.jsx)("div",{className:"mailerlite-section__toggle-group",children:(0,I.jsxs)("label",{className:"mailerlite-section__toggle-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:!!u,onChange:t=>e({allowReSubscribe:t.target.checked})}),(0,L.__)("Allow Re-Subscribe","ablocks")]})})]})]})]})}function vY({attributes:t,setAttributes:e}){const{formActions:i,mapEmailOptions:o,dripOption:l,dripApiKey:n,dripValidateApi:s,dripAccountId:r,dripAccountIdOptions:b,dripEmailSelects:c,showFormFields:d,dripTags:u}=t;return(0,a.useEffect)(()=>{i.includes("drip")&&dY("drip",e,t)},[i,l]),(0,a.useEffect)(()=>{""!==n&&cY("drip",n,e,t)},[n]),(0,I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",
4562 +children:[(0,I.jsx)(MY,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:l,onChange:t=>e({dripOption:t.target.value}),options:gY,attributes:t,setAttributes:e}),"custom"===l&&(0,I.jsx)(MY,{label:(0,L.__)("Custom Api Key","ablocks"),type:"text",value:n,onChange:t=>e({dripApiKey:t.target.value}),attributes:t,setAttributes:e}),("default"===l||""!==n)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(MY,{label:(0,L.__)("Account","ablocks"),type:"select",value:r,onChange:t=>e({dripAccountId:t.target.value}),options:b,attributes:t,setAttributes:e}),"default"!==r&&!0===s&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h4",{className:"drip-section__label",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"drip-section__divider"}),(0,I.jsx)(MY,{label:(0,L.__)("Email","ablocks"),type:"select",value:c,onChange:t=>e({dripEmailSelects:t.target.value}),options:o,attributes:t,setAttributes:e}),(0,I.jsx)("div",{className:"ablocks-form-builder-form-group",children:(0,I.jsxs)("label",{
4563 +className:"ablocks-form-builder-form-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:d,onChange:t=>e({showFormFields:t.target.checked})}),(0,L.__)("Form Field","ablocks")]})}),(0,I.jsx)(MY,{label:(0,L.__)("Tags","ablocks"),type:"textarea",value:u,onChange:t=>e({dripTags:t.target.value}),placeholder:(0,L.__)("Add comma separated tags","ablocks"),attributes:t,setAttributes:e})]})]})]})}function _Y({attributes:t,setAttributes:e}){const{formType:i}=t,o=t?.submissionMetaData||[],[l,n]=(0,a.useState)(!0),s=(0,a.useMemo)(()=>{const t={userIp:(0,L.__)("Automatically captured for security and verification purposes.","ablocks"),userAgent:(0,L.__)("Browser and device information collected to improve user experience and compatibility.","ablocks")};return fY.map(e=>({value:e.value,title:e.label,description:t[e.value]||""}))},[]),r=t=>o.includes(t);return(0,I.jsx)("div",{className:"ablocks-form-builder__submission ablocks-form-builder__submission--panel",children:(0,I.jsxs)("div",{
4552 4564 className:"ablocks-form-builder__submission__panel",children:[(0,I.jsxs)("button",{type:"button",className:"ablocks-form-builder__submission__panel-header "+(l?"is-open":"is-collapsed"),onClick:()=>n(t=>!t),"aria-expanded":l,children:[(0,I.jsx)("h3",{className:"ablocks-form-builder__submission__panel-title",children:(0,L.__)("Submission","ablocks")}),(0,I.jsx)("span",{className:"ablocks-form-builder__submission__panel-chevron","aria-hidden":"true"})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder__submission__panel-body",hidden:!l,children:[s.map(t=>(0,I.jsxs)("div",{className:"ablocks-form-builder__submission__row",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__submission__row-text",children:[(0,I.jsx)("div",{className:"ablocks-form-builder__submission__row-title",children:t.title}),(0,I.jsx)("div",{className:"ablocks-form-builder__submission__row-desc",children:t.description})]}),(0,I.jsxs)("label",{className:"ablocks-form-builder__submission__toggle",children:[(0,
4553 4565 I.jsx)("input",{type:"checkbox",checked:r(t.value),onChange:()=>(t=>{const i=r(t)?o.filter(e=>e!==t):[...o,t];e({submissionMetaData:i})})(t.value),"aria-label":t.title}),(0,I.jsx)("span",{className:"ablocks-form-builder__submission__toggle-ui","aria-hidden":"true"})]})]},t.value)),"subscription"===i&&(0,I.jsxs)("div",{className:"ablocks-form-builder__submission__row",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__submission__row-text",children:[(0,I.jsx)("div",{className:"ablocks-form-builder__submission__row-title",children:(0,L.__)("Email Verification","ablocks")}),(0,I.jsx)("div",{className:"ablocks-form-builder__submission__row-desc",children:(0,L.__)("A verification email has been sent to the provided address. Please confirm to complete your submission.","ablocks")})]}),(0,I.jsxs)("label",{className:"ablocks-form-builder__submission__toggle",children:[(0,I.jsx)("input",{type:"checkbox",checked:!!t?.emailVerification,onChange:t=>e({emailVerification:t.target.checked
4554 -}),"aria-label":(0,L.__)("Email Verification","ablocks")}),(0,I.jsx)("span",{className:"ablocks-form-builder__submission__toggle-ui","aria-hidden":"true"})]})]})]})]})})}function GO({attributes:t,setAttributes:e}){const{formActions:i,mapOtherOptions:o,mailerliteApiKey:l,mapEmailOptions:n,getResponseOption:s,getResponseApiKey:r,getResponseValidateApi:b,getResponseListIdOptions:c,getResponseListId:d,getResponseMapSelects:u,childDetails:p}=t;return(0,a.useEffect)(()=>{i.includes("getResponse")&&CO("getresponse",e,t)},[i,s]),(0,a.useEffect)(()=>{"default"===d||"default"!==u&&void 0!==u||AO("getresponse",l,d,e)},[d]),(0,a.useEffect)(()=>{""!==r&&zO("getresponse",r,e,t)},[r]),(0,a.useEffect)(()=>{if(0!==p.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,L.__)("None","ablocks"),value:"default"},{label:(0,L.__)("Email","ablocks"),value:"email"}]}),Array.isArray(p)&&0!==p.length){const t=p.map(t=>({label:t.name?.toUpperCase()||(0,
4555 -L.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,L.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[p]),(0,I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,I.jsx)(BO,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:s,onChange:t=>e({getResponseOption:t.target.value}),options:IO,attributes:t,setAttributes:e}),"custom"===s&&(0,I.jsx)(BO,{label:(0,L.__)("Custom Api Key","ablocks"),type:"text",value:r,onChange:t=>e({getResponseApiKey:t.target.value}),attributes:t,setAttributes:e}),("default"===s||""!==r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(BO,{label:(0,L.__)("List","ablocks"),type:"select",value:d,onChange:t=>e({getResponseListId:t.target.value}),options:c,attributes:t,setAttributes:e}),"default"!==d&&!0===b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(BO,{label:(0,L.__)("Day Of Cycle","ablocks"),type:"number",value:t?.getResponseDayCycle||"",onChange:t=>e({
4556 -getResponseDayCycle:parseInt(t.target.value,10)||0}),attributes:t,setAttributes:e}),(0,I.jsxs)("div",{className:"getresponse-section__field-map-group",children:[(0,I.jsx)("label",{className:"getresponse-section__label",children:(0,L.__)("Field Mapping","ablocks")}),(0,I.jsx)("hr",{className:"getresponse-section__divider"}),t?.getResponseMapFields&&t?.getResponseMapSelects&&t?.getResponseMapFields.map((i,a)=>{const l=u?.[i.key];return(0,I.jsxs)("div",{className:"ablocks-form-builder-form-group",children:[(0,I.jsx)("label",{className:"ablocks-form-builder-form-label",children:i.name}),(0,I.jsx)(Ut,{label:"",isResponsive:!1,className:"ablocks-form-builder-form-select-control ablocks-form-builder-form-select-control--map",attributeValue:l||"",options:"email"===i.customFieldId?n:o,onChangeHandler:o=>e({...t,getResponseMapSelects:{...t.getResponseMapSelects,[i.customFieldId]:o||null}})})]},a)})]})]})]})]})}function ZO({attributes:t,setAttributes:e}){const{webhookLink:i}=t;return(0,
4557 -I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,I.jsx)(BO,{label:(0,L.__)("Webhook URL","ablocks"),type:"url",value:i.href||"",onChange:t=>e({webhookLink:{...i,href:t.target.value}}),placeholder:"https://your-webhook-endpoint.com",attributes:t,setAttributes:e}),(0,I.jsx)("div",{className:"ablocks-form-builder-form-group",children:(0,I.jsxs)("label",{className:"ablocks-form-builder-form-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:!!i.linkTarget,onChange:t=>{const o=t.target.checked;e({webhookLink:{...i,linkTarget:o}})}}),(0,I.jsx)("span",{style:{marginLeft:"8px"},children:(0,L.__)("Open in new window","ablocks")})]})})]})}function KO({attributes:t,setAttributes:e}){const{formActions:i,mapOtherOptions:o,mapEmailOptions:l,convertkitOption:n,convertkitApiKey:s,convertkitValidateApi:r,convertkitFormId:b,convertkitFormIdOptions:c,convertkitEmailSelects:d,convertkitFirstNameSelects:u,convertkitTagsOptions:p,convertkitTagsSelects:m,childDetails:h}=t
4558 -;return(0,a.useEffect)(()=>{i.includes("convertkit")&&CO("convertkit",e,t)},[n]),(0,a.useEffect)(()=>{""!==s&&zO("convertkit",s,e,t)},[s]),(0,a.useEffect)(()=>{if(0!==h.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,L.__)("None","ablocks"),value:"default"},{label:(0,L.__)("Email","ablocks"),value:"email"}]}),Array.isArray(h)&&0!==h.length){const t=h.map(t=>({label:t.name?.toUpperCase()||(0,L.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,L.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[h]),(0,I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,I.jsx)(BO,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:n,onChange:t=>e({convertkitOption:t.target.value}),options:IO,attributes:t,setAttributes:e}),"custom"===n&&(0,I.jsx)(BO,{label:(0,L.__)("Custom Api Key","ablocks"),type:"text",value:s,onChange:t=>e({convertkitApiKey:t.target.value}),attributes:t,
4559 -setAttributes:e}),("default"===n||""!==s)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(BO,{label:(0,L.__)("List","ablocks"),type:"select",value:b,onChange:t=>e({convertkitFormId:t.target.value}),options:c,attributes:t,setAttributes:e}),"default"!==b&&!0===r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h4",{className:"convertkit-section__label",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"convertkit-section__divider"}),(0,I.jsx)(BO,{label:(0,L.__)("Email","ablocks"),type:"select",value:d,onChange:t=>e({convertkitEmailSelects:t.target.value}),options:l,attributes:t,setAttributes:e}),(0,I.jsx)(BO,{label:(0,L.__)("First Name","ablocks"),type:"select",value:u,onChange:t=>e({convertkitFirstNameSelects:t.target.value}),options:o,attributes:t,setAttributes:e}),(0,I.jsx)(BO,{label:(0,L.__)("Tags","ablocks"),type:"select",selectMultiple:!0,value:m||[],onChange:t=>{const i=Array.from(t.target.selectedOptions,t=>t.value);e({convertkitTagsSelects:i})},options:p,attributes:t,
4560 -setAttributes:e})]})]})]})}const JO=[{label:(0,L.__)("User Email","ablocks"),value:"user_email"},{label:(0,L.__)("Admin Email","ablocks"),value:"admin_email"}],QO=[{label:(0,L.__)("All Data","ablocks"),value:"all-fields"},{label:(0,L.__)("Site Name","ablocks"),value:"site_name"}],tY=[{label:(0,L.__)("Site Name","ablocks"),value:"site_name"}],eY=(t=[],e=[],i=!1)=>{const o=(t="")=>{const e=t.split("-");return e[0]?.trim()||t},a=[...t.map(t=>{const e=t.attributes?.name?.trim(),i=t.attributes?.label?.trim();return e?{label:i||e,value:e}:null}).filter(Boolean),...e.map(t=>t?{label:o(t),value:t}:null).filter(Boolean)];return i?a.filter(t=>t.label?.toLowerCase().includes("email")):a},iY=({attributes:t,setAttributes:e,childAttributes:i,innerBlockDetails:o=[]})=>{const{link:l,confirmationType:n}=t,s=n||"success",[r,b]=(0,
4561 -a.useState)(!0),c="success"===s||"redirect"===s&&!!l?.linkTarget,d="ablocks-confirmation-type-success",u="ablocks-confirmation-type-redirect",p="ablocks-confirmation-open-new-window",m=(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__message-card",children:[(0,I.jsx)(BO,{label:(0,L.__)("Confirmation message","ablocks"),type:"textarea",value:t?.confirmationNotice,onChange:t=>e({confirmationNotice:t.target.value}),showAction:!0,genericTags:tY,formTags:eY(i,o),attributes:t,setAttributes:e,targetKey:"confirmationNotice",notice:(0,L.__)("This message will be displayed to users after successful form submission","ablocks"),rows:4}),(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__after-row",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__after-text",children:[(0,I.jsx)("div",{className:"ablocks-form-builder__confirmation__after-title",children:(0,L.__)("After form submission","ablocks")}),(0,I.jsx)("div",{
4566 +}),"aria-label":(0,L.__)("Email Verification","ablocks")}),(0,I.jsx)("span",{className:"ablocks-form-builder__submission__toggle-ui","aria-hidden":"true"})]})]})]})]})})}function RY({attributes:t,setAttributes:e}){const{formActions:i,mapOtherOptions:o,mailerliteApiKey:l,mapEmailOptions:n,getResponseOption:s,getResponseApiKey:r,getResponseValidateApi:b,getResponseListIdOptions:c,getResponseListId:d,getResponseMapSelects:u,childDetails:p}=t;return(0,a.useEffect)(()=>{i.includes("getResponse")&&dY("getresponse",e,t)},[i,s]),(0,a.useEffect)(()=>{"default"===d||"default"!==u&&void 0!==u||uY("getresponse",l,d,e)},[d]),(0,a.useEffect)(()=>{""!==r&&cY("getresponse",r,e,t)},[r]),(0,a.useEffect)(()=>{if(0!==p.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,L.__)("None","ablocks"),value:"default"},{label:(0,L.__)("Email","ablocks"),value:"email"}]}),Array.isArray(p)&&0!==p.length){const t=p.map(t=>({label:t.name?.toUpperCase()||(0,
4567 +L.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,L.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[p]),(0,I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,I.jsx)(MY,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:s,onChange:t=>e({getResponseOption:t.target.value}),options:gY,attributes:t,setAttributes:e}),"custom"===s&&(0,I.jsx)(MY,{label:(0,L.__)("Custom Api Key","ablocks"),type:"text",value:r,onChange:t=>e({getResponseApiKey:t.target.value}),attributes:t,setAttributes:e}),("default"===s||""!==r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(MY,{label:(0,L.__)("List","ablocks"),type:"select",value:d,onChange:t=>e({getResponseListId:t.target.value}),options:c,attributes:t,setAttributes:e}),"default"!==d&&!0===b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(MY,{label:(0,L.__)("Day Of Cycle","ablocks"),type:"number",value:t?.getResponseDayCycle||"",onChange:t=>e({
4568 +getResponseDayCycle:parseInt(t.target.value,10)||0}),attributes:t,setAttributes:e}),(0,I.jsxs)("div",{className:"getresponse-section__field-map-group",children:[(0,I.jsx)("label",{className:"getresponse-section__label",children:(0,L.__)("Field Mapping","ablocks")}),(0,I.jsx)("hr",{className:"getresponse-section__divider"}),t?.getResponseMapFields&&t?.getResponseMapSelects&&t?.getResponseMapFields.map((i,a)=>{const l=u?.[i.key];return(0,I.jsxs)("div",{className:"ablocks-form-builder-form-group",children:[(0,I.jsx)("label",{className:"ablocks-form-builder-form-label",children:i.name}),(0,I.jsx)(Ut,{label:"",isResponsive:!1,className:"ablocks-form-builder-form-select-control ablocks-form-builder-form-select-control--map",attributeValue:l||"",options:"email"===i.customFieldId?n:o,onChangeHandler:o=>e({...t,getResponseMapSelects:{...t.getResponseMapSelects,[i.customFieldId]:o||null}})})]},a)})]})]})]})]})}function SY({attributes:t,setAttributes:e}){const{webhookLink:i}=t;return(0,
4569 +I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,I.jsx)(MY,{label:(0,L.__)("Webhook URL","ablocks"),type:"url",value:i.href||"",onChange:t=>e({webhookLink:{...i,href:t.target.value}}),placeholder:"https://your-webhook-endpoint.com",attributes:t,setAttributes:e}),(0,I.jsx)("div",{className:"ablocks-form-builder-form-group",children:(0,I.jsxs)("label",{className:"ablocks-form-builder-form-label",children:[(0,I.jsx)("input",{type:"checkbox",checked:!!i.linkTarget,onChange:t=>{const o=t.target.checked;e({webhookLink:{...i,linkTarget:o}})}}),(0,I.jsx)("span",{style:{marginLeft:"8px"},children:(0,L.__)("Open in new window","ablocks")})]})})]})}function WY({attributes:t,setAttributes:e}){const{formActions:i,mapOtherOptions:o,mapEmailOptions:l,convertkitOption:n,convertkitApiKey:s,convertkitValidateApi:r,convertkitFormId:b,convertkitFormIdOptions:c,convertkitEmailSelects:d,convertkitFirstNameSelects:u,convertkitTagsOptions:p,convertkitTagsSelects:m,childDetails:h}=t
4570 +;return(0,a.useEffect)(()=>{i.includes("convertkit")&&dY("convertkit",e,t)},[n]),(0,a.useEffect)(()=>{""!==s&&cY("convertkit",s,e,t)},[s]),(0,a.useEffect)(()=>{if(0!==h.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,L.__)("None","ablocks"),value:"default"},{label:(0,L.__)("Email","ablocks"),value:"email"}]}),Array.isArray(h)&&0!==h.length){const t=h.map(t=>({label:t.name?.toUpperCase()||(0,L.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,L.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[h]),(0,I.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,I.jsx)(MY,{label:(0,L.__)("Api Key","ablocks"),type:"select",value:n,onChange:t=>e({convertkitOption:t.target.value}),options:gY,attributes:t,setAttributes:e}),"custom"===n&&(0,I.jsx)(MY,{label:(0,L.__)("Custom Api Key","ablocks"),type:"text",value:s,onChange:t=>e({convertkitApiKey:t.target.value}),attributes:t,
4571 +setAttributes:e}),("default"===n||""!==s)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(MY,{label:(0,L.__)("List","ablocks"),type:"select",value:b,onChange:t=>e({convertkitFormId:t.target.value}),options:c,attributes:t,setAttributes:e}),"default"!==b&&!0===r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h4",{className:"convertkit-section__label",children:(0,L.__)("Field Map","ablocks")}),(0,I.jsx)("hr",{className:"convertkit-section__divider"}),(0,I.jsx)(MY,{label:(0,L.__)("Email","ablocks"),type:"select",value:d,onChange:t=>e({convertkitEmailSelects:t.target.value}),options:l,attributes:t,setAttributes:e}),(0,I.jsx)(MY,{label:(0,L.__)("First Name","ablocks"),type:"select",value:u,onChange:t=>e({convertkitFirstNameSelects:t.target.value}),options:o,attributes:t,setAttributes:e}),(0,I.jsx)(MY,{label:(0,L.__)("Tags","ablocks"),type:"select",selectMultiple:!0,value:m||[],onChange:t=>{const i=Array.from(t.target.selectedOptions,t=>t.value);e({convertkitTagsSelects:i})},options:p,attributes:t,
4572 +setAttributes:e})]})]})]})}const PY=[{label:(0,L.__)("User Email","ablocks"),value:"user_email"},{label:(0,L.__)("Admin Email","ablocks"),value:"admin_email"}],UY=[{label:(0,L.__)("All Data","ablocks"),value:"all-fields"},{label:(0,L.__)("Site Name","ablocks"),value:"site_name"}],jY=[{label:(0,L.__)("Site Name","ablocks"),value:"site_name"}],wY=(t=[],e=[],i=!1)=>{const o=(t="")=>{const e=t.split("-");return e[0]?.trim()||t},a=[...t.map(t=>{const e=t.attributes?.name?.trim(),i=t.attributes?.label?.trim();return e?{label:i||e,value:e}:null}).filter(Boolean),...e.map(t=>t?{label:o(t),value:t}:null).filter(Boolean)];return i?a.filter(t=>t.label?.toLowerCase().includes("email")):a},zY=({attributes:t,setAttributes:e,childAttributes:i,innerBlockDetails:o=[]})=>{const{link:l,confirmationType:n}=t,s=n||"success",[r,b]=(0,
4573 +a.useState)(!0),c="success"===s||"redirect"===s&&!!l?.linkTarget,d="ablocks-confirmation-type-success",u="ablocks-confirmation-type-redirect",p="ablocks-confirmation-open-new-window",m=(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__message-card",children:[(0,I.jsx)(MY,{label:(0,L.__)("Confirmation message","ablocks"),type:"textarea",value:t?.confirmationNotice,onChange:t=>e({confirmationNotice:t.target.value}),showAction:!0,genericTags:jY,formTags:wY(i,o),attributes:t,setAttributes:e,targetKey:"confirmationNotice",notice:(0,L.__)("This message will be displayed to users after successful form submission","ablocks"),rows:4}),(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__after-row",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__after-text",children:[(0,I.jsx)("div",{className:"ablocks-form-builder__confirmation__after-title",children:(0,L.__)("After form submission","ablocks")}),(0,I.jsx)("div",{
4562 4574 className:"ablocks-form-builder__confirmation__after-desc",children:(0,L.__)("Show or hide the form after submission","ablocks")})]}),(0,I.jsx)(Ut,{label:"",isResponsive:!1,className:"ablocks-form-builder__confirmation__after-select",attributeValue:t?.afterFormSubmission||"hide",options:[{label:(0,L.__)("Hide Form","ablocks"),value:"hide"},{label:(0,L.__)("Reset Form","ablocks"),value:"reset"}],onChangeHandler:t=>e({afterFormSubmission:t})})]})]}),h=(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__option "+("redirect"===s?"is-active":""),children:[(0,I.jsx)("input",{id:u,className:"ablocks-form-builder__confirmation__option-radio",type:"radio",name:"confirmationType",disabled:!M.zX,checked:"redirect"===s,onChange:()=>e({confirmationType:"redirect"})}),(0,I.jsxs)("label",{htmlFor:u,className:"ablocks-form-builder__confirmation__option-content",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__option-title",children:[(0,I.jsx)("span",{children:(0,
4563 4575 L.__)("Redirect","ablocks")}),!M.zX&&(0,I.jsx)("span",{className:"ablocks-form-builder__confirmation__pro-badge",children:(0,L.__)("Pro","ablocks")})]}),(0,I.jsx)("div",{className:"ablocks-form-builder__confirmation__option-desc",children:(0,L.__)("Send users to a different page after submission","ablocks")})]})]});return(0,I.jsx)("div",{className:"ablocks-form-builder__confirmation ablocks-form-builder__confirmation--panel",children:(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__panel",children:[(0,I.jsxs)("button",{type:"button",className:"ablocks-form-builder__confirmation__panel-header "+(r?"is-open":"is-collapsed"),onClick:()=>b(t=>!t),"aria-expanded":r,children:[(0,I.jsx)("h3",{className:"ablocks-form-builder__confirmation__panel-title",children:(0,L.__)("Form Confirmation","ablocks")}),(0,I.jsx)("span",{className:"ablocks-form-builder__confirmation__panel-chevron","aria-hidden":"true"})]}),(0,I.jsxs)("div",{
4564 4576 className:"ablocks-form-builder__confirmation__panel-body",hidden:!r,children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__option-list",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__option "+("success"===s?"is-active":""),children:[(0,I.jsx)("input",{id:d,className:"ablocks-form-builder__confirmation__option-radio",type:"radio",name:"confirmationType",checked:"success"===s,onChange:()=>e({confirmationType:"success"})}),(0,I.jsxs)("label",{htmlFor:d,className:"ablocks-form-builder__confirmation__option-content",children:[(0,I.jsx)("div",{className:"ablocks-form-builder__confirmation__option-title",children:(0,L.__)("Success message","ablocks")}),(0,I.jsx)("div",{className:"ablocks-form-builder__confirmation__option-desc",children:(0,L.__)("Show a confirmation message on the current page","ablocks")})]})]}),M.zX?h:(0,I.jsx)(F,{tooltipText:(0,L.__)("This feature requires Pro activation.","ablocks"),position:"top",children:h})]
4565 -}),"redirect"===s&&(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__redirect",children:[(0,I.jsx)(BO,{label:(0,L.__)("Custom URL","ablocks"),type:"url",value:l?.href||"",onChange:t=>e({link:{...l,href:t.target.value}}),placeholder:"https://example.com",attributes:t,setAttributes:e}),(0,I.jsxs)("div",{className:"ablocks-form-builder-form-group ablocks-form-builder__confirmation__open-new-window",children:[(0,I.jsx)("input",{id:p,type:"checkbox",checked:!!l?.linkTarget,onChange:t=>{const i=t.target.checked;e({link:{...l,linkTarget:i}})}}),(0,I.jsx)("label",{htmlFor:p,className:"ablocks-form-builder-form-label",children:(0,L.__)("Open in new window","ablocks")})]}),!!l?.linkTarget&&m]}),"success"===s&&c&&m]})]})})};var oY=i(75827),aY=i(62682),lY=i.n(aY);const nY=oY.default.import("blots/block");class sY extends nY{static create(t){const e=super.create(t);if(!0===t)return e;const i=document.createElement("img");return i.setAttribute("src",t),e.appendChild(i),e}
4566 -deleteAt(t,e){super.deleteAt(t,e),this.cache={}}static value(t){const{src:e,custom:i}=t.dataset;return{src:e,custom:i}}}sY.blotName="imageBlot",sY.className="image-uploading",sY.tagName="span",oY.default.register({"formats/imageBlot":sY});const rY=sY;class bY{constructor(t,e){this.quill=t,this.options=e,this.range=null,this.placeholderDelta=null,"function"!=typeof this.options.upload&&console.warn("[Missing config] upload function that returns a promise is required");var i=this.quill.getModule("toolbar");i&&i.addHandler("image",this.selectLocalImage.bind(this)),this.handleDrop=this.handleDrop.bind(this),this.handlePaste=this.handlePaste.bind(this),this.quill.root.addEventListener("drop",this.handleDrop,!1),this.quill.root.addEventListener("paste",this.handlePaste,!1)}selectLocalImage(){this.quill.focus(),this.range=this.quill.getSelection(),this.fileHolder=document.createElement("input"),this.fileHolder.setAttribute("type","file"),this.fileHolder.setAttribute("accept","image/*"),
4577 +}),"redirect"===s&&(0,I.jsxs)("div",{className:"ablocks-form-builder__confirmation__redirect",children:[(0,I.jsx)(MY,{label:(0,L.__)("Custom URL","ablocks"),type:"url",value:l?.href||"",onChange:t=>e({link:{...l,href:t.target.value}}),placeholder:"https://example.com",attributes:t,setAttributes:e}),(0,I.jsxs)("div",{className:"ablocks-form-builder-form-group ablocks-form-builder__confirmation__open-new-window",children:[(0,I.jsx)("input",{id:p,type:"checkbox",checked:!!l?.linkTarget,onChange:t=>{const i=t.target.checked;e({link:{...l,linkTarget:i}})}}),(0,I.jsx)("label",{htmlFor:p,className:"ablocks-form-builder-form-label",children:(0,L.__)("Open in new window","ablocks")})]}),!!l?.linkTarget&&m]}),"success"===s&&c&&m]})]})})};var CY=i(75827),AY=i(62682),LY=i.n(AY);const DY=CY.default.import("blots/block");class NY extends DY{static create(t){const e=super.create(t);if(!0===t)return e;const i=document.createElement("img");return i.setAttribute("src",t),e.appendChild(i),e}
4578 +deleteAt(t,e){super.deleteAt(t,e),this.cache={}}static value(t){const{src:e,custom:i}=t.dataset;return{src:e,custom:i}}}NY.blotName="imageBlot",NY.className="image-uploading",NY.tagName="span",CY.default.register({"formats/imageBlot":NY});const IY=NY;class VY{constructor(t,e){this.quill=t,this.options=e,this.range=null,this.placeholderDelta=null,"function"!=typeof this.options.upload&&console.warn("[Missing config] upload function that returns a promise is required");var i=this.quill.getModule("toolbar");i&&i.addHandler("image",this.selectLocalImage.bind(this)),this.handleDrop=this.handleDrop.bind(this),this.handlePaste=this.handlePaste.bind(this),this.quill.root.addEventListener("drop",this.handleDrop,!1),this.quill.root.addEventListener("paste",this.handlePaste,!1)}selectLocalImage(){this.quill.focus(),this.range=this.quill.getSelection(),this.fileHolder=document.createElement("input"),this.fileHolder.setAttribute("type","file"),this.fileHolder.setAttribute("accept","image/*"),
4567 4579 this.fileHolder.setAttribute("style","visibility:hidden"),this.fileHolder.onchange=this.fileChanged.bind(this),document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(()=>{document.body.removeChild(this.fileHolder)})}handleDrop(t){if(t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length){if(t.stopPropagation(),t.preventDefault(),document.caretRangeFromPoint){const e=document.getSelection(),i=document.caretRangeFromPoint(t.clientX,t.clientY);e&&i&&e.setBaseAndExtent(i.startContainer,i.startOffset,i.startContainer,i.startOffset)}else{const e=document.getSelection(),i=document.caretPositionFromPoint(t.clientX,t.clientY);e&&i&&e.setBaseAndExtent(i.offsetNode,i.offset,i.offsetNode,i.offset)}this.quill.focus(),this.range=this.quill.getSelection();let e=t.dataTransfer.files[0];setTimeout(()=>{this.quill.focus(),this.range=this.quill.getSelection(),this.readAndUploadFile(e)},0)}}handlePaste(t){let e=t.clipboardData||window.clipboardData
4568 -;if(e&&(e.items||e.files)){let i=e.items||e.files;const o=/^image\/(jpe?g|gif|png|svg|webp)$/i;for(let e=0;e<i.length;e++)if(o.test(i[e].type)){let o=i[e].getAsFile?i[e].getAsFile():i[e];o&&(this.quill.focus(),this.range=this.quill.getSelection(),t.preventDefault(),setTimeout(()=>{this.quill.focus(),this.range=this.quill.getSelection(),this.readAndUploadFile(o)},0))}}}readAndUploadFile(t){let e=!1;const i=new FileReader;i.addEventListener("load",()=>{if(!e){let t=i.result;this.insertBase64Image(t)}},!1),t&&i.readAsDataURL(t),this.options.upload(t).then(t=>{this.insertToEditor(t)},t=>{e=!0,this.removeBase64Image(),console.warn(t)})}fileChanged(){const t=this.fileHolder.files[0];this.readAndUploadFile(t)}insertBase64Image(t){const e=this.range;this.placeholderDelta=this.quill.insertEmbed(e.index,rY.blotName,`${t}`,"user")}insertToEditor(t){const e=this.range,i=this.calculatePlaceholderInsertLength();this.quill.deleteText(e.index,i,"user"),
4569 -this.quill.insertEmbed(e.index,"image",`${t}`,"user"),e.index++,this.quill.setSelection(e,"user")}calculatePlaceholderInsertLength(){return this.placeholderDelta.ops.reduce((t,e)=>(e.hasOwnProperty("insert")&&t++,t),0)}removeBase64Image(){const t=this.range,e=this.calculatePlaceholderInsertLength();this.quill.deleteText(t.index,e,"user")}}window.ImageUploader=bY;const cY=bY;var dY=i(59792),uY=i(64036),pY=i.n(uY),mY=i(73117),hY=i.n(mY);const gY=oY.default.import("blots/block/embed");class fY extends gY{static create(t){const e=super.create();return e.setAttribute("src",t),e.setAttribute("controls",!0),e.setAttribute("class","ablocks-custom-video"),e.setAttribute("data-blot-formatter-unclickable-bound",!0),e}static value(t){return t.getAttribute("src")}}fY.blotName="customVideo",fY.tagName="video",oY.default.register(fY);class yY extends gY{static create(t){const e=super.create();return e.setAttribute("src",t),e.setAttribute("controls",!0),e.setAttribute("class","ablocks-custom-audio"),
4570 -e.setAttribute("data-blot-formatter-unclickable-bound",!0),e}static value(t){return t.getAttribute("src")}}yY.blotName="customAudio",yY.tagName="audio",oY.default.register(yY);class TY extends gY{static create(t){const e=super.create();return e.innerHTML=t,e}static value(t){return t.innerHTML}}TY.blotName="customHTML",TY.tagName="div",oY.default.register(TY);const HY=oY.default.import("formats/image");function MY({defaultValue:t="",saveValueHandler:e,suffix:i,isCustomHTML:o=!1}){const n=(0,a.useRef)(null),[s,r]=(0,a.useState)(""),[b,c]=(0,a.useState)(!1),d=(0,a.useRef)(!1),u=o?[["customHTML"]]:[],p=(0,a.useCallback)(e,[]),m=(0,a.useCallback)((t="")=>{const e=t.trim();return e&&"<p><br></p>"!==e?e:""},[]);(0,a.useEffect)(()=>{if(d.current)return;const e=document.getElementById(`editor-container--${i}`);e&&e.querySelector(".ql-editor")&&(e.innerHTML="");const o=new oY.default(`#editor-container--${i}`,{modules:{toolbar:{container:[[{font:[]}],[{header:["1","2","3","4","5","6"]}],[{
4580 +;if(e&&(e.items||e.files)){let i=e.items||e.files;const o=/^image\/(jpe?g|gif|png|svg|webp)$/i;for(let e=0;e<i.length;e++)if(o.test(i[e].type)){let o=i[e].getAsFile?i[e].getAsFile():i[e];o&&(this.quill.focus(),this.range=this.quill.getSelection(),t.preventDefault(),setTimeout(()=>{this.quill.focus(),this.range=this.quill.getSelection(),this.readAndUploadFile(o)},0))}}}readAndUploadFile(t){let e=!1;const i=new FileReader;i.addEventListener("load",()=>{if(!e){let t=i.result;this.insertBase64Image(t)}},!1),t&&i.readAsDataURL(t),this.options.upload(t).then(t=>{this.insertToEditor(t)},t=>{e=!0,this.removeBase64Image(),console.warn(t)})}fileChanged(){const t=this.fileHolder.files[0];this.readAndUploadFile(t)}insertBase64Image(t){const e=this.range;this.placeholderDelta=this.quill.insertEmbed(e.index,IY.blotName,`${t}`,"user")}insertToEditor(t){const e=this.range,i=this.calculatePlaceholderInsertLength();this.quill.deleteText(e.index,i,"user"),
4581 +this.quill.insertEmbed(e.index,"image",`${t}`,"user"),e.index++,this.quill.setSelection(e,"user")}calculatePlaceholderInsertLength(){return this.placeholderDelta.ops.reduce((t,e)=>(e.hasOwnProperty("insert")&&t++,t),0)}removeBase64Image(){const t=this.range,e=this.calculatePlaceholderInsertLength();this.quill.deleteText(t.index,e,"user")}}window.ImageUploader=VY;const OY=VY;var YY=i(59792),XY=i(64036),BY=i.n(XY),EY=i(73117),FY=i.n(EY);const qY=CY.default.import("blots/block/embed");class $Y extends qY{static create(t){const e=super.create();return e.setAttribute("src",t),e.setAttribute("controls",!0),e.setAttribute("class","ablocks-custom-video"),e.setAttribute("data-blot-formatter-unclickable-bound",!0),e}static value(t){return t.getAttribute("src")}}$Y.blotName="customVideo",$Y.tagName="video",CY.default.register($Y);class GY extends qY{static create(t){const e=super.create();return e.setAttribute("src",t),e.setAttribute("controls",!0),e.setAttribute("class","ablocks-custom-audio"),
4582 +e.setAttribute("data-blot-formatter-unclickable-bound",!0),e}static value(t){return t.getAttribute("src")}}GY.blotName="customAudio",GY.tagName="audio",CY.default.register(GY);class ZY extends qY{static create(t){const e=super.create();return e.innerHTML=t,e}static value(t){return t.innerHTML}}ZY.blotName="customHTML",ZY.tagName="div",CY.default.register(ZY);const KY=CY.default.import("formats/image");function JY({defaultValue:t="",saveValueHandler:e,suffix:i,isCustomHTML:o=!1}){const n=(0,a.useRef)(null),[s,r]=(0,a.useState)(""),[b,c]=(0,a.useState)(!1),d=(0,a.useRef)(!1),u=o?[["customHTML"]]:[],p=(0,a.useCallback)(e,[]),m=(0,a.useCallback)((t="")=>{const e=t.trim();return e&&"<p><br></p>"!==e?e:""},[]);(0,a.useEffect)(()=>{if(d.current)return;const e=document.getElementById(`editor-container--${i}`);e&&e.querySelector(".ql-editor")&&(e.innerHTML="");const o=new CY.default(`#editor-container--${i}`,{modules:{toolbar:{container:[[{font:[]}],[{header:["1","2","3","4","5","6"]}],[{
4571 4583 size:[]}],["bold","italic","underline","strike","blockquote","code-block"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],[{script:"sub"},{script:"super"}],[{direction:"rtl"}],["image","link"],["table"],["clean"],["pdf"],["audio"],["video"],...u],handlers:{image:()=>h("image"),pdf:()=>h("pdf"),customHTML:()=>c(!0),audio:()=>h("mp3"),video:()=>h("video")}},clipboard:{matchVisual:!1},blotFormatter:{},htmlEditButton:{syntax:!1},"better-table":{operationMenu:{items:{unmergeCells:{text:(0,L.__)("Unmerge Cells","ablocks")}}},table:!0}},theme:"snow"});n.current=o,d.current=!0,t&&o.clipboard.dangerouslyPasteHTML(t);const a=()=>{const t=o.root.innerHTML;p(t)};return o.on("text-change",a),()=>{if(o){o.off("text-change",a);const t=o.getModule("toolbar");t&&t.container&&t.container.remove();const e=o.container;e&&(e.innerHTML="")}d.current=!1}},[i]),(0,a.useEffect)(()=>{if(!d.current||!n.current)return
4572 4584 ;const e=n.current,i=m(e.root.innerHTML),o=m(t);if(i===o)return;const a=e.getSelection();if(o?e.clipboard.dangerouslyPasteHTML(o,"silent"):e.setText("","silent"),a){const t=e.getLength(),i=Math.min(a.index,t-1);e.setSelection(Math.max(i,0),a.length,"silent")}},[t,m]);const h=t=>{let e;e||(e=window.wp.media((t=>{switch(t){case"image":default:return{title:(0,L.__)("Choose Image","ablocks"),button:{text:(0,L.__)("Choose Image","ablocks")},multiple:!1};case"pdf":return{title:(0,L.__)("Choose PDF","ablocks"),button:{text:(0,L.__)("Choose PDF","ablocks")},multiple:!1};case"mp3":return{title:(0,L.__)("Choose Audio","ablocks"),button:{text:(0,L.__)("Choose Audio","ablocks")},multiple:!1};case"video":return{title:(0,L.__)("Choose Video","ablocks"),button:{text:(0,L.__)("Choose Video","ablocks")},multiple:!1}}})(t)),e.on("select",function(){const i=e.state().get("selection").first().toJSON().url;"image"===t?g(i):"pdf"===t?f(i):"mp3"===t?T(i):"video"===t&&y(i)})),e.open()},g=t=>{
4573 -const e=n.current.getSelection();n.current.insertEmbed(e.index,"image",t)},f=t=>{const e=n.current.getSelection();n.current.clipboard.dangerouslyPasteHTML(e.index,`<a href="${t}" target="_blank">${(0,L.__)("Download PDF","ablocks")}</a>`)},y=t=>{const e=n.current.getSelection();n.current.insertEmbed(e.index,"customVideo",t)},T=t=>{const e=n.current.getSelection();n.current.insertEmbed(e.index,"customAudio",t)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("div",{id:`editor-container--${i}`})})}oY.default.register("modules/imageUploader",cY),oY.default.register("modules/imageResize",lY()),oY.default.register("modules/blotFormatter",dY.Ay),oY.default.register("modules/htmlEditButton",hY()),oY.default.register("modules/table",pY()),oY.default.register(class extends HY{static create(t){const e=super.create(t);return"object"==typeof t&&(e.setAttribute("src",t.url),t.width&&e.setAttribute("width",t.width),t.height&&e.setAttribute("height",t.height),
4574 -t.style&&e.setAttribute("style",t.style)),e}static value(t){return{url:t.getAttribute("src"),width:t.getAttribute("width"),height:t.getAttribute("height"),style:t.getAttribute("style")}}format(t,e){"width"===t||"height"===t?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}},!0);const xY={size:Y().string};function kY({size:t="md"}){return(0,I.jsx)("div",{className:`ablocks-preloader ablocks-preloader--${t}`,children:(0,I.jsx)(N.Spinner,{})})}kY.propTypes=xY;const vY=({attributes:t,setAttributes:e,childAttributes:i,innerBlockDetails:o=[]})=>{const[a,l]=(0,Yt.useState)([]),[n,s]=(0,Yt.useState)([]),[b,c]=(0,Yt.useState)(null),[d,u]=(0,Yt.useState)(!0),[p,m]=(0,Yt.useState)(!1),[h,g]=(0,Yt.useState)(!1),[f,y]=(0,Yt.useState)(!1),[T,H]=(0,Yt.useState)(null),{createNotice:x}=(0,r.useDispatch)("core/notices"),k="AttributeEmailOne",v="AttributeEmailTwo",{email_template_id:_}=t,R="subscription"===t.formType,S=(0,Yt.useCallback)(async()=>{if(!_)return l([]),
4585 +const e=n.current.getSelection();n.current.insertEmbed(e.index,"image",t)},f=t=>{const e=n.current.getSelection();n.current.clipboard.dangerouslyPasteHTML(e.index,`<a href="${t}" target="_blank">${(0,L.__)("Download PDF","ablocks")}</a>`)},y=t=>{const e=n.current.getSelection();n.current.insertEmbed(e.index,"customVideo",t)},T=t=>{const e=n.current.getSelection();n.current.insertEmbed(e.index,"customAudio",t)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("div",{id:`editor-container--${i}`})})}CY.default.register("modules/imageUploader",OY),CY.default.register("modules/imageResize",LY()),CY.default.register("modules/blotFormatter",YY.Ay),CY.default.register("modules/htmlEditButton",FY()),CY.default.register("modules/table",BY()),CY.default.register(class extends KY{static create(t){const e=super.create(t);return"object"==typeof t&&(e.setAttribute("src",t.url),t.width&&e.setAttribute("width",t.width),t.height&&e.setAttribute("height",t.height),
4586 +t.style&&e.setAttribute("style",t.style)),e}static value(t){return{url:t.getAttribute("src"),width:t.getAttribute("width"),height:t.getAttribute("height"),style:t.getAttribute("style")}}format(t,e){"width"===t||"height"===t?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}},!0);const QY={size:Y().string};function tX({size:t="md"}){return(0,I.jsx)("div",{className:`ablocks-preloader ablocks-preloader--${t}`,children:(0,I.jsx)(N.Spinner,{})})}tX.propTypes=QY;const eX=({attributes:t,setAttributes:e,childAttributes:i,innerBlockDetails:o=[]})=>{const[a,l]=(0,Yt.useState)([]),[n,s]=(0,Yt.useState)([]),[b,c]=(0,Yt.useState)(null),[d,u]=(0,Yt.useState)(!0),[p,m]=(0,Yt.useState)(!1),[h,g]=(0,Yt.useState)(!1),[f,y]=(0,Yt.useState)(!1),[T,H]=(0,Yt.useState)(null),{createNotice:x}=(0,r.useDispatch)("core/notices"),k="AttributeEmailOne",v="AttributeEmailTwo",{email_template_id:_}=t,R="subscription"===t.formType,S=(0,Yt.useCallback)(async()=>{if(!_)return l([]),
4575 4587 s([]),void y(!0);g(!0);try{const t={action:"ablocks/get_templates",email_template_id:_,isSubscription:R},e=await(0,M.In)(t),i=e?.data;if(i&&i.success&&i.data){const t=Object.keys(i.data).map(t=>({slug:t,...i.data[t]}));l(t);const e=t.map(t=>t.slug);s(e)}else l([]),s([])}catch(t){l([]),s([])}finally{g(!1),y(!0)}},[_,R]),W=(0,Yt.useCallback)(async t=>{if(t.to&&""!==t.to.trim())try{const i={action:"ablocks/update_template",email_template_id:_,...t},o=await(0,M.In)(i);o?.data?.success&&("AttributeEmailOne"===t.slug&&e({emailOneSubject:"New message",emailOneTo:"",emailOneFormName:"Local Name",emailOneFormEmail:"",emailOneMessage:"{all-fields}",emailOneReplyTo:"",emailOneCc:"",emailOneBcc:"",emailOneType:"HTML",formActions:["submission"]}),"AttributeEmailTwo"===t.slug&&e({emailTwoSubject:"New message",emailTwoTo:"",emailTwoFormName:"Local Name",emailTwoFormEmail:"",emailTwoMessage:"{all-fields}",emailTwoReplyTo:"",emailTwoCc:"",emailTwoBcc:"",emailTwoType:"HTML",formActions:["submission"]}),
4576 4588 c(null),S())}catch(t){}else x("error",(0,L.__)('Please enter a valid "To" email address before saving the template.',"ablocks"),{type:"snackbar"})},[x,_,S,e]),P=(0,Yt.useCallback)(async t=>{try{const e={action:"ablocks/delete_template",email_template_id:_,slug:t},i=await(0,M.In)(e);i?.data?.success&&(b&&b.slug===t&&c(null),S())}catch(t){}},[b,_,S]),U=(0,Yt.useCallback)(()=>{const e=[];"New message"===t.emailOneSubject&&""===t.emailOneTo&&"Local Name"===t.emailOneFormName&&""===t.emailOneFormEmail&&"{all-fields}"===t.emailOneMessage&&""===t.emailOneReplyTo&&""===t.emailOneCc&&""===t.emailOneBcc&&"HTML"===t.emailOneType||n.includes(k)||e.push({slug:"AttributeEmailOne",subject:t.emailOneSubject||"New message",from:t.emailOneFormEmail||"",from_name:t.emailOneFormName||"",to:t.emailOneTo||"[email protected]",body:t.emailOneMessage||"{all-fields}",reply_to:t.emailOneReplyTo||"",cc:t.emailOneCc||"",bcc:t.emailOneBcc||"",format:t.emailOneType?.toLowerCase()||"html",status:!0}),
4577 4589 "New message"===t.emailTwoSubject&&""===t.emailTwoTo&&"Local Name"===t.emailTwoFormName&&""===t.emailTwoFormEmail&&"{all-fields}"===t.emailTwoMessage&&""===t.emailTwoReplyTo&&""===t.emailTwoCc&&""===t.emailTwoBcc&&"HTML"===t.emailTwoType||n.includes(v)||e.push({slug:"AttributeEmailTwo",subject:t.emailTwoSubject||"New message",from:t.emailTwoFormEmail||"",from_name:t.emailTwoFormName||"",to:t.emailTwoTo||"[email protected]",body:t.emailTwoMessage||"{all-fields}",reply_to:t.emailTwoReplyTo||"",cc:t.emailTwoCc||"",bcc:t.emailTwoBcc||"",format:t.emailTwoType?.toLowerCase()||"html",status:!0}),e.length>0&&e.forEach(t=>W(t))},[t,k,v,W,n]);(0,Yt.useEffect)(()=>{f&&!h&&(n.includes(v)&&n.includes(k)||U())},[U,k,v,f,h,n]),(0,Yt.useEffect)(()=>{S()},[S]);const j=a.length>0,w=!!b&&a.some(t=>t.slug===b.slug);return(0,I.jsxs)(I.Fragment,{children:[T&&(0,I.jsxs)(N.Modal,{title:(0,L.__)("Delete template","ablocks"),onRequestClose:()=>H(null),
4578 4590 className:"ablocks-form-builder__email-notifications__delete-modal",children:[(0,I.jsx)("p",{children:(0,L.__)("Are you sure you want to delete this template?","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__delete-actions",children:[(0,I.jsx)(N.Button,{variant:"secondary",onClick:()=>H(null),children:(0,L.__)("Cancel","ablocks")}),(0,I.jsx)(N.Button,{variant:"primary",isDestructive:!0,onClick:async()=>{await P(T.slug),H(null)},children:(0,L.__)("Delete","ablocks")})]})]}),(0,I.jsx)("div",{className:"ablocks-form-builder__email-notifications ablocks-form-builder__email-notifications--panel",children:(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__panel",children:[b?(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__config-header",children:[(0,I.jsx)("button",{type:"button",className:"ablocks-form-builder__email-notifications__back",onClick:()=>{m(!1),c(null)},"aria-label":(0,L.__)("Back","ablocks"),
4579 4591 children:(0,I.jsx)("span",{className:"dashicons dashicons-arrow-left-alt2","aria-hidden":"true"})}),(0,I.jsx)("h3",{className:"ablocks-form-builder__email-notifications__panel-title",children:(0,L.__)("Email Configuration","ablocks")})]}):(0,I.jsxs)("button",{type:"button",className:"ablocks-form-builder__email-notifications__panel-header "+(d?"is-open":"is-collapsed"),onClick:()=>u(t=>!t),"aria-expanded":d,children:[(0,I.jsx)("h3",{className:"ablocks-form-builder__email-notifications__panel-title",children:(0,L.__)("Email notifications","ablocks")}),(0,I.jsx)("span",{className:"ablocks-form-builder__email-notifications__panel-chevron","aria-hidden":"true"})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__panel-body",hidden:!b&&!d,children:[b&&(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__editor",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__editor-body",children:[(0,I.jsxs)("div",{
4580 -className:"ablocks-form-builder__email-notifications__grid",children:[(0,I.jsx)(BO,{label:(0,L.__)("From name","ablocks"),type:"text",value:b.from_name||"",onChange:t=>c({...b,from_name:t.target.value}),showAction:!0,formTags:eY(i,o),genericTags:tY,attributes:{...t,from_name:b.from_name},setAttributes:t=>c(e=>({...e,from_name:t.from_name})),targetKey:"from_name"}),(0,I.jsx)("div",{className:"ablocks-form-builder__email-notifications__send-as",children:(0,I.jsx)(Ut,{label:(0,L.__)("Send as","ablocks"),isResponsive:!1,className:"ablocks-form-builder__email-notifications__send-as-select",options:[{label:(0,L.__)("HTML","ablocks"),value:"html"},{label:(0,L.__)("Plain","ablocks"),value:"plain"}],attributeValue:b.format||"html",onChangeHandler:t=>c(e=>({...e,format:t}))})})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__card",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__from-email",children:[(0,I.jsxs)("button",{type:"button",
4581 -className:"ablocks-form-builder__email-notifications__ccbcc-toggle",onClick:()=>m(t=>!t),children:[(0,L.__)("Cc","ablocks")," ",(0,L.__)("Bcc","ablocks")]}),(0,I.jsx)(BO,{label:(0,L.__)("From email","ablocks"),type:"email",value:b.from||"",onChange:t=>c({...b,from:t.target.value}),showAction:!0,formTags:eY(i,o,!0),genericTags:JO,attributes:{...t,from:b.from},setAttributes:t=>c(e=>({...e,from:t.from})),targetKey:"from",notice:(0,L.__)("Notifications can use only one From Email so please enter a single address.","ablocks")})]}),p&&(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__ccbcc",children:[(0,I.jsx)(BO,{label:(0,L.__)("Cc","ablocks"),type:"email",value:b.cc||"",onChange:t=>c(e=>({...e,cc:t.target.value})),showAction:!0,formTags:eY(i,o,!0),genericTags:JO,attributes:{...t,cc:b.cc},setAttributes:t=>c(e=>({...e,cc:t.cc})),targetKey:"cc",notice:(0,L.__)("Comma separated values are also accepted.","ablocks")}),(0,I.jsx)(BO,{label:(0,L.__)("Bcc","ablocks"),
4582 -type:"email",value:b.bcc||"",onChange:t=>c(e=>({...e,bcc:t.target.value})),showAction:!0,formTags:eY(i,o,!0),genericTags:JO,attributes:{...t,bcc:b.bcc},setAttributes:t=>c(e=>({...e,bcc:t.bcc})),targetKey:"bcc",notice:(0,L.__)("Comma separated values are also accepted.","ablocks")})]}),(0,I.jsx)(BO,{label:(0,L.__)("Subject","ablocks"),type:"text",value:b.subject||"",onChange:t=>c({...b,subject:t.target.value}),showAction:!0,formTags:eY(i,o),genericTags:tY,attributes:{...t,subject:b.subject},setAttributes:t=>c(e=>({...e,subject:t.subject})),targetKey:"subject"}),(0,I.jsxs)("div",{className:"ablocks-form-builder-form-group",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder-editor-label",children:[(0,I.jsx)("div",{className:"ablocks-form-builder-form-label",children:(0,L.__)("Message","ablocks")}),(0,I.jsx)(XO,{formTags:eY(i,o),genericTags:QO,attributes:{...t,body:b.body},setAttributes:t=>c(e=>({...e,body:t.body})),targetKey:"body",isQuillEditor:!0})]}),(0,I.jsx)(MY,{
4583 -defaultValue:b.body||"",saveValueHandler:t=>{c(e=>({...e,body:t}))},suffix:`formbuilder-message-${b.slug}`},`editor-message-${b.slug}`)]})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__card",children:[(0,I.jsx)(BO,{label:(0,L.__)("To","ablocks"),type:"email",value:b.to||"",onChange:t=>c({...b,to:t.target.value}),showAction:!0,formTags:eY(i,o,!0),genericTags:JO,attributes:{...t,to:b.to},setAttributes:t=>c(e=>({...e,to:t.to})),targetKey:"to",notice:(0,L.__)("Comma separated values are also accepted.","ablocks")}),(0,I.jsx)(BO,{label:(0,L.__)("Reply-To","ablocks"),type:"email",value:b.reply_to||"",onChange:t=>c(e=>({...e,reply_to:t.target.value})),showAction:!0,formTags:eY(i,o,!0),genericTags:JO,attributes:{...t,reply_to:b.reply_to},setAttributes:t=>c(e=>({...e,reply_to:t.reply_to})),targetKey:"reply_to",notice:(0,L.__)("Notifications can use only one Reply-To so please enter a single address.","ablocks")})]})]}),(0,I.jsx)("div",{
4584 -className:"ablocks-form-builder__email-notifications__editor-footer",children:(0,I.jsx)("button",{type:"button",className:"ablocks-form-builder__email-notifications__save",onClick:()=>W(b),children:(0,L.__)(w?"Save Template":"Create Template","ablocks")})})]}),!b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-form-builder__email-templates-list ablocks-form-builder__email-notifications__table",children:(0,I.jsxs)("table",{"aria-busy":h,children:[(0,I.jsx)("thead",{children:(0,I.jsxs)("tr",{children:[(0,I.jsx)("th",{children:(0,L.__)("Name","ablocks")}),(0,I.jsx)("th",{children:(0,L.__)("Subject","ablocks")}),(0,I.jsx)("th",{children:(0,L.__)("Status","ablocks")}),(0,I.jsx)("th",{children:(0,L.__)("Action","ablocks")})]})}),(0,I.jsx)("tbody",{children:h?(0,I.jsx)("tr",{children:(0,I.jsx)("td",{colSpan:"4",className:"ablocks-form-builder__email-notifications__loading-cell",children:(0,I.jsx)("div",{className:"kzui-table__loader",children:(0,I.jsx)(kY,{})})})
4592 +className:"ablocks-form-builder__email-notifications__grid",children:[(0,I.jsx)(MY,{label:(0,L.__)("From name","ablocks"),type:"text",value:b.from_name||"",onChange:t=>c({...b,from_name:t.target.value}),showAction:!0,formTags:wY(i,o),genericTags:jY,attributes:{...t,from_name:b.from_name},setAttributes:t=>c(e=>({...e,from_name:t.from_name})),targetKey:"from_name"}),(0,I.jsx)("div",{className:"ablocks-form-builder__email-notifications__send-as",children:(0,I.jsx)(Ut,{label:(0,L.__)("Send as","ablocks"),isResponsive:!1,className:"ablocks-form-builder__email-notifications__send-as-select",options:[{label:(0,L.__)("HTML","ablocks"),value:"html"},{label:(0,L.__)("Plain","ablocks"),value:"plain"}],attributeValue:b.format||"html",onChangeHandler:t=>c(e=>({...e,format:t}))})})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__card",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__from-email",children:[(0,I.jsxs)("button",{type:"button",
4593 +className:"ablocks-form-builder__email-notifications__ccbcc-toggle",onClick:()=>m(t=>!t),children:[(0,L.__)("Cc","ablocks")," ",(0,L.__)("Bcc","ablocks")]}),(0,I.jsx)(MY,{label:(0,L.__)("From email","ablocks"),type:"email",value:b.from||"",onChange:t=>c({...b,from:t.target.value}),showAction:!0,formTags:wY(i,o,!0),genericTags:PY,attributes:{...t,from:b.from},setAttributes:t=>c(e=>({...e,from:t.from})),targetKey:"from",notice:(0,L.__)("Notifications can use only one From Email so please enter a single address.","ablocks")})]}),p&&(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__ccbcc",children:[(0,I.jsx)(MY,{label:(0,L.__)("Cc","ablocks"),type:"email",value:b.cc||"",onChange:t=>c(e=>({...e,cc:t.target.value})),showAction:!0,formTags:wY(i,o,!0),genericTags:PY,attributes:{...t,cc:b.cc},setAttributes:t=>c(e=>({...e,cc:t.cc})),targetKey:"cc",notice:(0,L.__)("Comma separated values are also accepted.","ablocks")}),(0,I.jsx)(MY,{label:(0,L.__)("Bcc","ablocks"),
4594 +type:"email",value:b.bcc||"",onChange:t=>c(e=>({...e,bcc:t.target.value})),showAction:!0,formTags:wY(i,o,!0),genericTags:PY,attributes:{...t,bcc:b.bcc},setAttributes:t=>c(e=>({...e,bcc:t.bcc})),targetKey:"bcc",notice:(0,L.__)("Comma separated values are also accepted.","ablocks")})]}),(0,I.jsx)(MY,{label:(0,L.__)("Subject","ablocks"),type:"text",value:b.subject||"",onChange:t=>c({...b,subject:t.target.value}),showAction:!0,formTags:wY(i,o),genericTags:jY,attributes:{...t,subject:b.subject},setAttributes:t=>c(e=>({...e,subject:t.subject})),targetKey:"subject"}),(0,I.jsxs)("div",{className:"ablocks-form-builder-form-group",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder-editor-label",children:[(0,I.jsx)("div",{className:"ablocks-form-builder-form-label",children:(0,L.__)("Message","ablocks")}),(0,I.jsx)(HY,{formTags:wY(i,o),genericTags:UY,attributes:{...t,body:b.body},setAttributes:t=>c(e=>({...e,body:t.body})),targetKey:"body",isQuillEditor:!0})]}),(0,I.jsx)(JY,{
4595 +defaultValue:b.body||"",saveValueHandler:t=>{c(e=>({...e,body:t}))},suffix:`formbuilder-message-${b.slug}`},`editor-message-${b.slug}`)]})]}),(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__card",children:[(0,I.jsx)(MY,{label:(0,L.__)("To","ablocks"),type:"email",value:b.to||"",onChange:t=>c({...b,to:t.target.value}),showAction:!0,formTags:wY(i,o,!0),genericTags:PY,attributes:{...t,to:b.to},setAttributes:t=>c(e=>({...e,to:t.to})),targetKey:"to",notice:(0,L.__)("Comma separated values are also accepted.","ablocks")}),(0,I.jsx)(MY,{label:(0,L.__)("Reply-To","ablocks"),type:"email",value:b.reply_to||"",onChange:t=>c(e=>({...e,reply_to:t.target.value})),showAction:!0,formTags:wY(i,o,!0),genericTags:PY,attributes:{...t,reply_to:b.reply_to},setAttributes:t=>c(e=>({...e,reply_to:t.reply_to})),targetKey:"reply_to",notice:(0,L.__)("Notifications can use only one Reply-To so please enter a single address.","ablocks")})]})]}),(0,I.jsx)("div",{
4596 +className:"ablocks-form-builder__email-notifications__editor-footer",children:(0,I.jsx)("button",{type:"button",className:"ablocks-form-builder__email-notifications__save",onClick:()=>W(b),children:(0,L.__)(w?"Save Template":"Create Template","ablocks")})})]}),!b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-form-builder__email-templates-list ablocks-form-builder__email-notifications__table",children:(0,I.jsxs)("table",{"aria-busy":h,children:[(0,I.jsx)("thead",{children:(0,I.jsxs)("tr",{children:[(0,I.jsx)("th",{children:(0,L.__)("Name","ablocks")}),(0,I.jsx)("th",{children:(0,L.__)("Subject","ablocks")}),(0,I.jsx)("th",{children:(0,L.__)("Status","ablocks")}),(0,I.jsx)("th",{children:(0,L.__)("Action","ablocks")})]})}),(0,I.jsx)("tbody",{children:h?(0,I.jsx)("tr",{children:(0,I.jsx)("td",{colSpan:"4",className:"ablocks-form-builder__email-notifications__loading-cell",children:(0,I.jsx)("div",{className:"kzui-table__loader",children:(0,I.jsx)(tX,{})})})
4585 4597 }):j?a.map(t=>{const e=!0===t.status||1===t.status||"1"===t.status,i="{site_name}"===t.from_name&&window.ABlocksGlobal?.form_builder?.site_title||t.from_name;return(0,I.jsxs)("tr",{children:[(0,I.jsx)("td",{className:"ablocks-form-builder__email-notifications__name",children:i||"—"}),(0,I.jsx)("td",{className:"ablocks-form-builder__email-notifications__subject",children:t.subject||"—"}),(0,I.jsx)("td",{className:"ablocks-form-builder__email-notifications__status-cell",children:(0,I.jsx)(Ut,{label:"",isResponsive:!1,className:"ablocks-form-builder__email-notifications__status-select "+(e?"is-enabled":"is-disabled"),attributeValue:e?"enabled":"disabled",options:[{label:(0,L.__)("Enable","ablocks"),value:"enabled"},{label:(0,L.__)("Disable","ablocks"),value:"disabled"}],onChangeHandler:e=>W({...t,status:"enabled"===e})})}),(0,I.jsxs)("td",{className:"ablocks-form-builder__email-notifications__actions",children:[(0,I.jsx)("button",{type:"button",
4586 4598 className:"ablocks-form-builder__email-notifications__icon-btn",onClick:()=>(t=>{m(!(!t?.cc&&!t?.bcc)),c({...t})})(t),title:(0,L.__)("Edit template","ablocks"),children:(0,I.jsx)("span",{className:"dashicons dashicons-edit"})}),(0,I.jsx)("button",{type:"button",className:"ablocks-form-builder__email-notifications__icon-btn is-danger",onClick:()=>H(t),title:(0,L.__)("Delete template","ablocks"),children:(0,I.jsx)("span",{className:"dashicons dashicons-trash"})})]})]},t.slug)}):(0,I.jsx)("tr",{children:(0,I.jsx)("td",{colSpan:"4",children:(0,I.jsxs)("div",{className:"ablocks-form-builder__email-notifications__empty",children:[(0,I.jsx)("span",{className:"ablocks-form-builder__email-notifications__empty-icon",children:"💬"}),(0,I.jsx)("strong",{children:(0,L.__)("No email templates yet","ablocks")}),(0,I.jsx)("span",{children:(0,L.__)("Create your first email template to send notifications for form submissions.","ablocks")})]})})})})]})}),(0,I.jsx)("div",{
4587 -className:"ablocks-form-builder__email-notifications__footer",children:(0,I.jsxs)("button",{type:"button",className:"ablocks-form-builder__email-notifications__add-button",onClick:()=>{const t={slug:"template-"+Date.now(),subject:"New Form Submission-{form_title}",from:window.ABlocksGlobal?.form_builder?.admin_email||"",from_name:window.ABlocksGlobal?.form_builder?.site_title||"",to:"",body:"{all-fields}",reply_to:window.ABlocksGlobal?.form_builder?.admin_email||"",cc:"",bcc:"",format:"html",status:!0};m(!1),c(t)},children:[(0,I.jsx)("span",{"aria-hidden":"true",children:"+"}),(0,L.__)("Add New Email Template","ablocks")]})})]})]})]})})]})};function _Y(t){const{attributes:e}=t,[i,o]=(0,a.useState)("general"),[n,s]=(0,a.useState)([{name:"general",icon:"ablocks-icon",title:(0,L.__)("General","ablocks")},{name:"from_confirmation",icon:"ablocks-icon",title:(0,L.__)("Form Confirmation","ablocks")},{name:"from_email_notifications",icon:"ablocks-icon",title:(0,
4599 +className:"ablocks-form-builder__email-notifications__footer",children:(0,I.jsxs)("button",{type:"button",className:"ablocks-form-builder__email-notifications__add-button",onClick:()=>{const t={slug:"template-"+Date.now(),subject:"New Form Submission-{form_title}",from:window.ABlocksGlobal?.form_builder?.admin_email||"",from_name:window.ABlocksGlobal?.form_builder?.site_title||"",to:"",body:"{all-fields}",reply_to:window.ABlocksGlobal?.form_builder?.admin_email||"",cc:"",bcc:"",format:"html",status:!0};m(!1),c(t)},children:[(0,I.jsx)("span",{"aria-hidden":"true",children:"+"}),(0,L.__)("Add New Email Template","ablocks")]})})]})]})]})})]})};function iX(t){const{attributes:e}=t,[i,o]=(0,a.useState)("general"),[n,s]=(0,a.useState)([{name:"general",icon:"ablocks-icon",title:(0,L.__)("General","ablocks")},{name:"from_confirmation",icon:"ablocks-icon",title:(0,L.__)("Form Confirmation","ablocks")},{name:"from_email_notifications",icon:"ablocks-icon",title:(0,
4588 4600 L.__)("Email Notifications","ablocks")}]);(0,a.useEffect)(()=>{const{formActions:t=[]}=e,i=[{name:"general",icon:"ablocks-icon",title:(0,L.__)("General","ablocks")},{name:"from_confirmation",icon:"ablocks-icon",title:(0,L.__)("Form Confirmation","ablocks")}],o=[{name:"from_email_notifications",icon:"ablocks-icon",title:(0,L.__)("Email Notifications","ablocks")}],a=t?.map(t=>{switch(t){case"webhook":return{name:"webhook",icon:"ablocks-icon",title:(0,L.__)("Webhook","ablocks")};case"mailchimp":return{name:"mailchimp",icon:"ablocks-icon",title:(0,L.__)("Mailchimp","ablocks")};case"mailerlite":return{name:"mailerlite",icon:"ablocks-icon",title:(0,L.__)("MailerLite","ablocks")};case"drip":return{name:"drip",icon:"ablocks-icon",title:(0,L.__)("Drip","ablocks")};case"submission":return{name:"submssion",icon:"ablocks-icon",title:(0,L.__)("Submission","ablocks")};case"getResponse":return{name:"getResponse",icon:"ablocks-icon ",title:(0,L.__)("GetResponse","ablocks")};case"convertkit":return{
4589 4601 name:"convertkit",icon:"ablocks-icon",title:(0,L.__)("convertkit","ablocks")};case"from_confirmation":return{name:"from_confirmation",icon:"ablocks-icon",title:(0,L.__)("Form Confirmation","ablocks")};case"from_email_notifications":return{name:"from_email_notifications",icon:"ablocks-icon",title:(0,L.__)("Email Notifications","ablocks")};default:return null}}).filter(t=>t&&![...i,...o].some(e=>e.name===t.name));s([...i,...a,...o])},[e.formActions]);const r=["from_confirmation","submssion","from_email_notifications","mailchimp"].includes(i);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("div",{className:"ablocks-form-builder-action-setting",children:(0,I.jsx)("div",{className:"ablocks-form-builder-action-setting__settings",children:(0,I.jsx)("div",{className:"ablocks-form-builder-action-setting__page-content",children:(0,I.jsxs)("div",{className:"ablocks-form-builder-action-setting__page-content--settings",children:[(0,I.jsx)("div",{
4590 -className:"ablocks-form-builder-action-setting__tab-panel",children:n.map((t,e)=>{const a=i===t.name;return(0,I.jsx)("div",{className:"ablocks-form-builder-action-setting__tab-panel-item "+(a?"ablocks-form-builder-action-setting__tab-panel-item--open":""),children:(0,I.jsxs)("button",{onClick:()=>o(t.name),className:"ablocks-form-builder-action-setting__tab-item "+(a?"ablocks-form-builder-action-setting__tab-item--active":""),children:[(0,I.jsx)("span",{className:t.icon}),t.title]})},e)})}),(0,I.jsx)("div",{className:"ablocks-form-builder-action-setting__settings-content "+(r?"ablocks-form-builder-action-setting__settings-content--panel":""),children:(e=>{switch(e){case"general":return(0,I.jsx)(OO,{...t});case"from_confirmation":return(0,I.jsx)(iY,{...t});case"from_email_notifications":return(0,I.jsx)(vY,{...t});case"mailchimp":return(0,I.jsx)(EO,{...t});case"mailerlite":return(0,I.jsx)(FO,{...t});case"drip":return(0,I.jsx)(qO,{...t});case"submssion":return(0,I.jsx)($O,{...t})
4591 -;case"getResponse":return(0,I.jsx)(GO,{...t});case"webhook":return(0,I.jsx)(ZO,{...t});case"convertkit":return(0,I.jsx)(KO,{...t});default:return null}})(i)})]})})})})})}const RY=["ablocks/form-input","ablocks/form-password","ablocks/form-email","ablocks/form-textarea","ablocks/form-checkbox","ablocks/form-select","ablocks/form-radio","ablocks/form-hidden","ablocks/form-rating","ablocks/form-datepicker","ablocks/form-upload","ablocks/form-timepicker"];function SY(t){const e=[];return t.attributes?.name&&e.push(t.attributes.name),t.innerBlocks&&t.innerBlocks.length>0&&t.innerBlocks.forEach(t=>{e.push(...SY(t))}),e}function WY(t){return t.map(t=>({name:t.name,clientId:t.clientId,attributes:t.attributes,innerBlocks:t.innerBlocks&&t.innerBlocks.length?WY(t.innerBlocks):[]}))}function PY(t){return t.flatMap(t=>t.innerBlocks&&t.innerBlocks.length>0?WY(t.innerBlocks).flatMap(t=>SY(t)).filter(Boolean):[])}function UY(t){const e=[];return RY.includes(t.name)&&e.push(t.attributes?.name||""),
4592 -t.innerBlocks&&t.innerBlocks.length>0&&t.innerBlocks.forEach(t=>{e.push(...UY(t))}),e}function jY(t){const e=t.filter(t=>RY.includes(t.name)).map(t=>t.attributes?.name||"").filter(t=>""===t.trim()),i=t.flatMap(t=>t.innerBlocks&&t.innerBlocks.length>0?t.innerBlocks.flatMap(t=>UY(t)):[]);return[...e,...i.filter(t=>""===t.trim())]}var wY=i(90198);const zY=(0,Eb.D$)({attributeName:"labelSpacing",isResponsive:!0,defaultValue:10,copyStyle:!0}),CY=((0,Eb.D$)({attributeName:"helperTextSpacing",isResponsive:!0,defaultValue:10,copyStyle:!0}),(0,Eb.D$)({attributeName:"inputIconPosition",isResponsive:!1,defaultValue:75,copyStyle:!0})),AY=(0,Eb.D$)({attributeName:"navigatorSpacing",isResponsive:!1,defaultValue:10,copyStyle:!0}),LY=(0,Eb.D$)({attributeName:"rowsSpacing",isResponsive:!0,defaultValue:0,copyStyle:!0});(0,Eb.D$)({attributeName:"buttonHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0});function DY(t){
4602 +className:"ablocks-form-builder-action-setting__tab-panel",children:n.map((t,e)=>{const a=i===t.name;return(0,I.jsx)("div",{className:"ablocks-form-builder-action-setting__tab-panel-item "+(a?"ablocks-form-builder-action-setting__tab-panel-item--open":""),children:(0,I.jsxs)("button",{onClick:()=>o(t.name),className:"ablocks-form-builder-action-setting__tab-item "+(a?"ablocks-form-builder-action-setting__tab-item--active":""),children:[(0,I.jsx)("span",{className:t.icon}),t.title]})},e)})}),(0,I.jsx)("div",{className:"ablocks-form-builder-action-setting__settings-content "+(r?"ablocks-form-builder-action-setting__settings-content--panel":""),children:(e=>{switch(e){case"general":return(0,I.jsx)(yY,{...t});case"from_confirmation":return(0,I.jsx)(zY,{...t});case"from_email_notifications":return(0,I.jsx)(eX,{...t});case"mailchimp":return(0,I.jsx)(xY,{...t});case"mailerlite":return(0,I.jsx)(kY,{...t});case"drip":return(0,I.jsx)(vY,{...t});case"submssion":return(0,I.jsx)(_Y,{...t})
4603 +;case"getResponse":return(0,I.jsx)(RY,{...t});case"webhook":return(0,I.jsx)(SY,{...t});case"convertkit":return(0,I.jsx)(WY,{...t});default:return null}})(i)})]})})})})})}const oX=["ablocks/form-input","ablocks/form-password","ablocks/form-email","ablocks/form-textarea","ablocks/form-checkbox","ablocks/form-select","ablocks/form-radio","ablocks/form-hidden","ablocks/form-rating","ablocks/form-datepicker","ablocks/form-upload","ablocks/form-timepicker"];function aX(t){const e=[];return t.attributes?.name&&e.push(t.attributes.name),t.innerBlocks&&t.innerBlocks.length>0&&t.innerBlocks.forEach(t=>{e.push(...aX(t))}),e}function lX(t){return t.map(t=>({name:t.name,clientId:t.clientId,attributes:t.attributes,innerBlocks:t.innerBlocks&&t.innerBlocks.length?lX(t.innerBlocks):[]}))}function nX(t){return t.flatMap(t=>t.innerBlocks&&t.innerBlocks.length>0?lX(t.innerBlocks).flatMap(t=>aX(t)).filter(Boolean):[])}function sX(t){const e=[];return oX.includes(t.name)&&e.push(t.attributes?.name||""),
4604 +t.innerBlocks&&t.innerBlocks.length>0&&t.innerBlocks.forEach(t=>{e.push(...sX(t))}),e}function rX(t){const e=t.filter(t=>oX.includes(t.name)).map(t=>t.attributes?.name||"").filter(t=>""===t.trim()),i=t.flatMap(t=>t.innerBlocks&&t.innerBlocks.length>0?t.innerBlocks.flatMap(t=>sX(t)):[]);return[...e,...i.filter(t=>""===t.trim())]}var bX=i(90198);const cX=(0,Eb.D$)({attributeName:"labelSpacing",isResponsive:!0,defaultValue:10,copyStyle:!0}),dX=((0,Eb.D$)({attributeName:"helperTextSpacing",isResponsive:!0,defaultValue:10,copyStyle:!0}),(0,Eb.D$)({attributeName:"inputIconPosition",isResponsive:!1,defaultValue:75,copyStyle:!0})),uX=(0,Eb.D$)({attributeName:"navigatorSpacing",isResponsive:!1,defaultValue:10,copyStyle:!0}),pX=(0,Eb.D$)({attributeName:"rowsSpacing",isResponsive:!0,defaultValue:0,copyStyle:!0});(0,Eb.D$)({attributeName:"buttonHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0});function mX(t){
4593 4605 const{attributes:e,setAttributes:i,clientId:o}=t,{dir:n,formName:s,formType:b,labelTypography:c,labelColor:d,labelSpacing:u,helperTextColor:p,helperTextSpacing:m,helperTextTypography:h,inputBgColor:g,inputColor:f,inputPlaceholderColor:y,inputBorder:T,inputPadding:H,inputTypography:M,inputIconPosition:x,successColor:k,successBackground:v,errorColor:_,errorBackground:R,userRoles:S,roleSlug:W,showLabels:P,subscriberToUser:U,adminNotify:j,rowsSpacing:w,inputAlignment:z,labelAlignment:C,buttonSize:A,buttonColor:O,buttonBgColor:Y,buttonHColor:X,buttonBgHColor:B,buttonTypography:E,buttonPadding:F,buttonBorder:q,buttonText:$,buttonTextAlignment:G,buttonAlignment:Z,loginRedirect:K,link:J,registerRedirect:Q,navigatorAccess:tt,customForm:et,navigatorPadding:it,navigatorIconShow:ot,navigatorColor:lt,navigatorTypography:nt,navigatorAlignment:st,navigatorSpacing:rt,loginLabel:bt,registerLabel:ct,forgetPasswordLabel:dt,showErrorDemo:ut,showSuccessDemo:pt,homeLabel:mt,successErrorTypography:ht,successErrorAlignment:gt,successErrorPadding:ft,formActions:yt}=e,[Tt,Ht]=(0,
4594 -a.useState)(!1);(0,a.useEffect)(()=>{"custom"===e?.formType&&i({customForm:!0})},[e.formType]);const Mt="forget_password"===b||"login"===b||"registration"===b,kt=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]),vt=function(t){return t.map(t=>({name:t.name,attributes:t.attributes,clientId:t.clientId}))}(kt),Rt=PY(kt);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsxs)(V,{title:(0,L.__)("General","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Form Direction","ablocks"),options:[{label:(0,L.__)("Row","ablocks"),value:"row",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,L.__)("Column","ablocks"),value:"column",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,L.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,I.jsx)("span",{
4606 +a.useState)(!1);(0,a.useEffect)(()=>{"custom"===e?.formType&&i({customForm:!0})},[e.formType]);const Mt="forget_password"===b||"login"===b||"registration"===b,kt=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]),vt=function(t){return t.map(t=>({name:t.name,attributes:t.attributes,clientId:t.clientId}))}(kt),Rt=nX(kt);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsxs)(V,{title:(0,L.__)("General","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Form Direction","ablocks"),options:[{label:(0,L.__)("Row","ablocks"),value:"row",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,L.__)("Column","ablocks"),value:"column",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,L.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,I.jsx)("span",{
4595 4607 className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,L.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],attributeName:"dir",attributeValue:n,setAttributes:i}),(et||"multi-step"===b)&&(0,I.jsx)(Kl,{label:(0,L.__)("Form Name","ablocks"),attributeValue:s,attributeName:"formName",setAttributes:i,isInline:!1}),"registration"===b&&S.length>1&&(0,I.jsx)(Ut,{label:(0,L.__)("Select User Roles","ablocks"),isResponsive:!1,options:S,attributeValue:W,attributeName:"roleSlug",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Labels","ablocks"),attributeValue:P,setAttributes:i,attributeName:"showLabels",isResponsive:!1}),"subscription"===b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Convert Subscriber to User","ablocks"),attributeValue:U,setAttributes:i,attributeName:"subscriberToUser",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,
4596 -L.__)("Admin Notification","ablocks"),attributeValue:j,setAttributes:i,attributeName:"adminNotify",isResponsive:!1})]}),(0,I.jsx)(_t,{label:(0,L.__)("Rows Spacing","ablocks"),attributeName:"rowsSpacing",attributeValue:w,setAttributes:i,min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:LY}),(0,I.jsx)(Jt,{label:(0,L.__)("Label Alignment","ablocks"),attributeName:"labelAlignment",attributeValue:C,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Jt,{label:(0,L.__)("Input Text Alignment","ablocks"),attributeName:"inputAlignment",attributeValue:z,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),Mt&&(0,I.jsx)(Ot,{
4608 +L.__)("Admin Notification","ablocks"),attributeValue:j,setAttributes:i,attributeName:"adminNotify",isResponsive:!1})]}),(0,I.jsx)(_t,{label:(0,L.__)("Rows Spacing","ablocks"),attributeName:"rowsSpacing",attributeValue:w,setAttributes:i,min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:pX}),(0,I.jsx)(Jt,{label:(0,L.__)("Label Alignment","ablocks"),attributeName:"labelAlignment",attributeValue:C,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Jt,{label:(0,L.__)("Input Text Alignment","ablocks"),attributeName:"inputAlignment",attributeValue:z,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),Mt&&(0,I.jsx)(Ot,{
4597 4609 label:(0,L.__)("Navigator Access","ablocks"),attributeValue:tt,setAttributes:i,attributeName:"navigatorAccess",isResponsive:!1}),"registration"===b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Redirect After Register","ablocks"),attributeValue:Q,setAttributes:i,attributeName:"registerRedirect",isResponsive:!1}),Q&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("u",{style:{paddingBottom:"10px",display:"block"},children:(0,I.jsxs)("i",{children:[(0,I.jsx)("b",{children:"Note:"})," Only URLs from this website are allowed. External links will not work."]})}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:J,setAttributes:i,noFollowIOn:!1})]})]}),"login"===b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Redirect After Login","ablocks"),attributeValue:K,setAttributes:i,attributeName:"loginRedirect",isResponsive:!1}),K&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("u",{style:{paddingBottom:"10px",display:"block"},children:(0,
4598 4610 I.jsxs)("i",{children:[(0,I.jsx)("b",{children:"Note:"})," Only URLs from this website are allowed. External links will not work."]})}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:J,setAttributes:i,noFollowIOn:!1})]})]})]}),tt&&(0,I.jsxs)(V,{title:(0,L.__)("Navigator","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Kl,{label:(0,L.__)("Home Label","ablocks"),attributeName:"homeLabel",setAttributes:i,attributeValue:mt,isInline:!1,disableDynamicContent:!0}),("forget_password"===b||"registration"===b)&&(0,I.jsx)(Kl,{label:(0,L.__)("Login Label","ablocks"),attributeName:"loginLabel",setAttributes:i,attributeValue:bt,isInline:!1,disableDynamicContent:!0}),"login"===b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Register Label","ablocks"),attributeName:"registerLabel",setAttributes:i,attributeValue:ct,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Forget Password Label","ablocks"),
4599 4611 attributeName:"forgetPasswordLabel",setAttributes:i,attributeValue:dt,isInline:!1,disableDynamicContent:!0})]}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:ot,setAttributes:i,attributeName:"navigatorIconShow",isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"navigatorTypography",attributeValue:nt,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigatorColor",attributeValue:lt,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"navigatorAlignment",attributeValue:st,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),attributeName:"navigatorSpacing",attributeValue:rt,setAttributes:i,min:1,max:100,isInline:!1,
4600 -isResponsive:!1,attributeDefaultValue:AY}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"navigatorPadding",attributeValue:it,setAttributes:i})]}),P&&(0,I.jsxs)(V,{title:(0,L.__)("Labels","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),attributeName:"labelSpacing",attributeValue:u,setAttributes:i,min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:zY}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Position","ablocks"),attributeName:"inputIconPosition",attributeValue:x,setAttributes:i,min:1,max:100,isInline:!1,isResponsive:!1,attributeDefaultValue:CY})]}),(0,I.jsxs)(V,{title:(0,L.__)("Helper text","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,
4601 -L.__)("Typography","ablocks"),attributeName:"helperTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"helperTextColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),attributeName:"helperTextSpacing",attributeValue:m,setAttributes:i,min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:zY})]}),(0,I.jsxs)(V,{title:(0,L.__)("Input","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"inputColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Placeholder Color","ablocks"),attributeName:"inputPlaceholderColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"inputBgColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"inputTypography",attributeValue:M,setAttributes:i,
4602 -isResponsive:!0,attributes:e}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"inputPadding",attributeValue:H,setAttributes:i}),(0,I.jsx)(at,{label:"Border",isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"inputBorder",attributeValue:T,setAttributes:i})]}),(0,I.jsx)(V,{title:(0,L.__)("Submit Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"buttonText",setAttributes:i,attributeValue:$,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),isResponsive:!1,options:LO,attributeValue:A,attributeName:"buttonSize",setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"buttonAlignment",attributeValue:Z,setAttributes:i,isInline:!1,options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}]}),(0,
4612 +isResponsive:!1,attributeDefaultValue:uX}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"navigatorPadding",attributeValue:it,setAttributes:i})]}),P&&(0,I.jsxs)(V,{title:(0,L.__)("Labels","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),attributeName:"labelSpacing",attributeValue:u,setAttributes:i,min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:cX}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Position","ablocks"),attributeName:"inputIconPosition",attributeValue:x,setAttributes:i,min:1,max:100,isInline:!1,isResponsive:!1,attributeDefaultValue:dX})]}),(0,I.jsxs)(V,{title:(0,L.__)("Helper text","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,
4613 +L.__)("Typography","ablocks"),attributeName:"helperTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"helperTextColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),attributeName:"helperTextSpacing",attributeValue:m,setAttributes:i,min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:cX})]}),(0,I.jsxs)(V,{title:(0,L.__)("Input","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"inputColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Placeholder Color","ablocks"),attributeName:"inputPlaceholderColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"inputBgColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"inputTypography",attributeValue:M,setAttributes:i,
4614 +isResponsive:!0,attributes:e}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"inputPadding",attributeValue:H,setAttributes:i}),(0,I.jsx)(at,{label:"Border",isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"inputBorder",attributeValue:T,setAttributes:i})]}),(0,I.jsx)(V,{title:(0,L.__)("Submit Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"buttonText",setAttributes:i,attributeValue:$,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),isResponsive:!1,options:pY,attributeValue:A,attributeName:"buttonSize",setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"buttonAlignment",attributeValue:Z,setAttributes:i,isInline:!1,options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}]}),(0,
4603 4615 I.jsx)(Jt,{label:(0,L.__)("Text Alignment","ablocks"),attributeName:"buttonTextAlignment",attributeValue:G,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"buttonPadding",attributeValue:F,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:E,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"buttonColor",attributeValue:O,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"buttonBgColor",attributeValue:Y,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,
4604 4616 I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"buttonHColor",attributeValue:X,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"buttonBgHColor",attributeValue:B,setAttributes:i})]})}),(0,I.jsx)(at,{label:"Border",isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:q,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Success & Error Styles","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{label:(0,L.__)("Demo Success","ablocks"),attributeValue:pt,setAttributes:i,attributeName:"showSuccessDemo",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Demo Error","ablocks"),attributeValue:ut,setAttributes:i,attributeName:"showErrorDemo",isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"successErrorTypography",attributeValue:ht,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"successErrorAlignment",attributeValue:gt,
4605 4617 setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"successErrorPadding",attributeValue:ft,setAttributes:i}),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Success Color","ablocks"),attributeName:"successColor",attributeValue:k,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Success Background","ablocks"),attributeName:"successBackground",attributeValue:v,setAttributes:i})]}),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Error Color","ablocks"),attributeName:"errorColor",attributeValue:_,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Error Background","ablocks"),attributeName:"errorBackground",attributeValue:R,setAttributes:i})]})]}),yt&&(0,I.jsx)("div",{onClick:()=>Ht(!0),children:(0,I.jsx)(V,{
4606 -title:(0,L.__)("Action After Submit","ablocks"),initialOpen:!1})}),Tt&&(0,I.jsx)(N.Modal,{title:"Form Settings",onRequestClose:()=>Ht(!1),className:"ablocks-form-builder-modal",children:(0,I.jsx)(_Y,{setAttributes:i,attributes:e,childAttributes:vt,innerBlockDetails:Rt})})]})})})}(0,U.D$)("labelTypography",!0),(0,U.D$)("helperTextTypography",!0),(0,Zt.D$)("labelAlignment",!0,{value:"left"}),(0,Zt.D$)("inputAlignment",!0,{value:"left"}),(0,Zt.D$)("buttonAlignment",!0,{value:"center"}),(0,Zt.D$)("buttonTextAlignment",!0,{value:"center"}),(0,Zt.D$)("navigatorAlignment",!0,{value:"left"}),(0,Zt.D$)("successErrorAlignment",!0,{value:"center"}),(0,wY.D$)("dir",!0,{value:"column"}),(0,y.D$)("inputBorder",!0),(0,c.D$)("inputPadding",!0),(0,c.D$)("buttonPadding",!0),(0,c.D$)("navigatorPadding",!0),(0,c.D$)("successErrorPadding",!0),(0,U.D$)("inputTypography",!0),(0,U.D$)("navigatorTypography",!0),(0,U.D$)("successErrorTypography",!0),(0,wb.D$)("link"),(0,wb.D$)("webhookLink"),(0,
4607 -U.D$)("buttonTypography",!0),(0,y.D$)("buttonBorder",!0),_r.Ay;const NY={UU:"ablocks/form-builder",uK:{block_id:{type:"string",default:""},email_list_id:{type:"string",default:""},blockVersion:{type:"number",default:""},variationSelected:{type:"boolean",default:!0},postId:{type:"number",default:""},email_template_id:{type:"string",default:""},showLabels:{type:"boolean",default:!0},subscriberToUser:{type:"boolean",default:!1},adminNotify:{type:"boolean",default:!0},loginRedirect:{type:"boolean",default:!1},registerRedirect:{type:"boolean",default:!1},navigatorAccess:{type:"boolean",default:!1},formName:{type:"string",default:""},formType:{type:"string",default:""},formActions:{type:"array",default:[]},childDetails:{type:"array",default:[]},labelColor:{type:"string",default:"#000000"},helperTextColor:{type:"string",default:""},customForm:{type:"boolean",default:!1},inputColor:{type:"string",default:""},inputBgColor:{type:"string",default:"white"},inputPlaceholderColor:{type:"string",
4618 +title:(0,L.__)("Action After Submit","ablocks"),initialOpen:!1})}),Tt&&(0,I.jsx)(N.Modal,{title:"Form Settings",onRequestClose:()=>Ht(!1),className:"ablocks-form-builder-modal",children:(0,I.jsx)(iX,{setAttributes:i,attributes:e,childAttributes:vt,innerBlockDetails:Rt})})]})})})}(0,U.D$)("labelTypography",!0),(0,U.D$)("helperTextTypography",!0),(0,Zt.D$)("labelAlignment",!0,{value:"left"}),(0,Zt.D$)("inputAlignment",!0,{value:"left"}),(0,Zt.D$)("buttonAlignment",!0,{value:"center"}),(0,Zt.D$)("buttonTextAlignment",!0,{value:"center"}),(0,Zt.D$)("navigatorAlignment",!0,{value:"left"}),(0,Zt.D$)("successErrorAlignment",!0,{value:"center"}),(0,bX.D$)("dir",!0,{value:"column"}),(0,y.D$)("inputBorder",!0),(0,c.D$)("inputPadding",!0),(0,c.D$)("buttonPadding",!0),(0,c.D$)("navigatorPadding",!0),(0,c.D$)("successErrorPadding",!0),(0,U.D$)("inputTypography",!0),(0,U.D$)("navigatorTypography",!0),(0,U.D$)("successErrorTypography",!0),(0,wb.D$)("link"),(0,wb.D$)("webhookLink"),(0,
4619 +U.D$)("buttonTypography",!0),(0,y.D$)("buttonBorder",!0),_r.Ay;const hX={UU:"ablocks/form-builder",uK:{block_id:{type:"string",default:""},email_list_id:{type:"string",default:""},blockVersion:{type:"number",default:""},variationSelected:{type:"boolean",default:!0},postId:{type:"number",default:""},email_template_id:{type:"string",default:""},showLabels:{type:"boolean",default:!0},subscriberToUser:{type:"boolean",default:!1},adminNotify:{type:"boolean",default:!0},loginRedirect:{type:"boolean",default:!1},registerRedirect:{type:"boolean",default:!1},navigatorAccess:{type:"boolean",default:!1},formName:{type:"string",default:""},formType:{type:"string",default:""},formActions:{type:"array",default:[]},childDetails:{type:"array",default:[]},labelColor:{type:"string",default:"#000000"},helperTextColor:{type:"string",default:""},customForm:{type:"boolean",default:!1},inputColor:{type:"string",default:""},inputBgColor:{type:"string",default:"white"},inputPlaceholderColor:{type:"string",
4608 4620 default:""},buttonSize:{type:"string",default:"full-width"},buttonColor:{type:"string",default:""},buttonBgColor:{type:"string",default:""},buttonHColor:{type:"string",default:""},buttonBgHColor:{type:"string",default:""},buttonText:{type:"string",default:"Submit Here"},emailOneTo:{type:"string",default:""},emailOneSubject:{type:"string",default:"New message"},emailOneMessage:{type:"string",default:"{all-fields}"},emailOneFormEmail:{type:"string",default:""},emailOneFormName:{type:"string",default:"Local Name"},emailOneReplyTo:{type:"string",default:""},emailOneCc:{type:"string",default:""},emailOneBcc:{type:"string",default:""},emailOneType:{type:"string",default:"HTML"},emailTwoTo:{type:"string",default:""},emailTwoSubject:{type:"string",default:"New message"},emailTwoMessage:{type:"string",default:"{all-fields}"},emailTwoFormEmail:{type:"string",default:""},emailTwoFormName:{type:"string",default:"Local Name"},emailTwoReplyTo:{type:"string",default:""},emailTwoCc:{type:"string",
4609 4621 default:""},emailTwoBcc:{type:"string",default:""},emailTwoType:{type:"string",default:"HTML"},mailchimpOption:{type:"string",default:"default"},mailchimpApiKey:{type:"string",default:""},mailchimpValidateApi:{type:"boolean",default:!1},mailchimpListIdOptions:{type:"array",default:[{label:"select options",value:"default"}]},mailchimpMapFields:{type:"array",default:[]},mailchimpMapSelects:{type:"object"},mailchimpListId:{type:"string",default:"default"},mailchimpgroupsOptions:{type:"array",default:[]},mailchimpgroupSelects:{type:"array",default:[]},mailchimpTags:{type:"string",default:""},mapEmailOptions:{type:"array",default:[{label:"None",value:"default"}]},mailchimpEmailSelects:{type:"string",default:"default"},mapOtherOptions:{type:"array",default:[{label:"None",value:"default"}]},showDoubleOpt:{type:"boolean",default:!1},mailchimpStatus:{type:"string",default:""},mailerliteOption:{type:"string",default:"default"},mailerliteApiKey:{type:"string",default:""},mailerliteValidateApi:{
4610 4622 type:"boolean",default:!1},mailerliteGroupId:{type:"string",default:"default"},mailerliteGroupIdOptions:{type:"array",default:[{label:"select options",value:"default"}]},mailerliteMapFields:{type:"array",default:[]},mailerliteMapSelects:{type:"object"},allowReSubscribe:{type:"boolean",default:!1},dripOption:{type:"string",default:"default"},dripApiKey:{type:"string",default:""},dripValidateApi:{type:"boolean",default:!1},dripAccountIdOptions:{type:"array",default:[{label:"select options",value:"default"}]},dripAccountId:{type:"string",default:"default"},dripMapFields:{type:"array",default:[]},dripMapSelects:{type:"object"},dripEmailSelects:{type:"string",default:"default"},dripTags:{type:"string",default:""},showFormFields:{type:"boolean",default:!1},getResponseOption:{type:"string",default:"default"},getResponseApiKey:{type:"string",default:""},getResponseValidateApi:{type:"boolean",default:!1},getResponseListId:{type:"string",default:"default"},getResponseListIdOptions:{type:"array",
4611 4623 default:[{label:"select options",value:"default"}]},getResponseMapFields:{type:"array",default:[]},getResponseMapSelects:{type:"object"},getResponseDayCycle:{type:"number",default:1},convertkitOption:{type:"string",default:"default"},convertkitApiKey:{type:"string",default:""},convertkitValidateApi:{type:"boolean",default:!1},convertkitFormId:{type:"string",default:"default"},convertkitFormIdOptions:{type:"array",default:[{label:"select options",value:"default"}]},convertkitMapFields:{type:"array",default:[]},convertkitMapSelects:{type:"object"},convertkitEmailSelects:{type:"string",default:"default"},convertkitFirstNameSelects:{type:"string",default:"default"},convertkitTagsOptions:{type:"array",default:[]},convertkitTagsSelects:{type:"array",default:[]},emailVerification:{type:"boolean",default:!1},submissionMetaData:{type:"array",default:[]},navigatorColor:{type:"string",default:"#74777C"},navigatorIcon:{type:"object",default:{viewBox:"0 0 448 512",
@@ -4627,22 +4639,22 @@
4627 4639 imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",
4628 4640 vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",
4629 4641 xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{
4630 4642 type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},
4631 -_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function IY(t){
4632 -const{attributes:e,setAttributes:i,isSelected:o,clientId:n}=t,{block_id:s,dir:b,formType:c,alignment:d,buttonSize:u,buttonText:p,loginRedirect:m,registerRedirect:h,postId:g,link:f,navigatorAccess:y,forgetPasswordLabel:T,loginLabel:H,registerLabel:x,navigatorIcon:k,showErrorDemo:v,showSuccessDemo:_,homeLabel:R,navigatorIconShow:S,email_template_id:W}=e,{updateBlockAttributes:P}=(0,r.useDispatch)("core/block-editor"),[U,j]=(0,a.useState)(!1),w=(0,a.useRef)(1),z=(0,a.useRef)(wp.data.select("core/block-editor").getBlocks(n)),C=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(n),[n]),A=function(t){const e=t.map(t=>t.attributes?.name).filter(Boolean),i=t.flatMap(t=>t.innerBlocks&&t.innerBlocks.length>0?t.innerBlocks.flatMap(t=>SY(t)):[]),o=[...e,...i],a=o.filter((t,e)=>o.indexOf(t)!==e);return[...new Set(a)]}(C),L=jY(C);(0,a.useEffect)(()=>{const t=C.map(t=>({name:t.attributes.name,inputType:t.attributes.inputType}));i({childDetails:t})},[C])
4643 +_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function gX(t){
4644 +const{attributes:e,setAttributes:i,isSelected:o,clientId:n}=t,{block_id:s,dir:b,formType:c,alignment:d,buttonSize:u,buttonText:p,loginRedirect:m,registerRedirect:h,postId:g,link:f,navigatorAccess:y,forgetPasswordLabel:T,loginLabel:H,registerLabel:x,navigatorIcon:k,showErrorDemo:v,showSuccessDemo:_,homeLabel:R,navigatorIconShow:S,email_template_id:W}=e,{updateBlockAttributes:P}=(0,r.useDispatch)("core/block-editor"),[U,j]=(0,a.useState)(!1),w=(0,a.useRef)(1),z=(0,a.useRef)(wp.data.select("core/block-editor").getBlocks(n)),C=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(n),[n]),A=function(t){const e=t.map(t=>t.attributes?.name).filter(Boolean),i=t.flatMap(t=>t.innerBlocks&&t.innerBlocks.length>0?t.innerBlocks.flatMap(t=>aX(t)):[]),o=[...e,...i],a=o.filter((t,e)=>o.indexOf(t)!==e);return[...new Set(a)]}(C),L=rX(C);(0,a.useEffect)(()=>{const t=C.map(t=>({name:t.attributes.name,inputType:t.attributes.inputType}));i({childDetails:t})},[C])
4633 4645 ;const N=["ablocks/form-input","ablocks/form-password","ablocks/form-email","ablocks/form-textarea","ablocks/form-checkbox","ablocks/form-select","ablocks/form-radio","ablocks/heading","ablocks/paragraph","ablocks/icon","ablocks/image","ablocks/divider","ablocks/form-hidden","ablocks/form-rating","ablocks/form-datepicker","ablocks/form-upload","ablocks/form-timepicker"],V=(0,r.useDispatch)();(0,a.useEffect)(()=>{const t=wp.data.select("core/editor").getCurrentPostId();i({postId:t}),"registration"===c&&(async t=>{const e=await(0,M.In)({action:"ablocks/registration_form_setting_data"});e.data.success&&t({userRoles:Object.entries(e.data.data).map(([t,e])=>({label:e,value:t}))})})(i),""===W&&i({email_template_id:`ablocks-form-email-template-UnId${Math.floor(11500*Math.random())+133}`})},[]),(0,a.useEffect)(()=>{const t=(0,r.select)("core/block-editor").getBlocks().filter(t=>"ablocks/form-builder"===t.name),e=t.map(t=>t.attributes.email_template_id).filter(t=>t&&""!==t)
4634 4646 ;if(e.filter(t=>t===W).length>1&&W){const t=async()=>{try{const t={action:"ablocks/get_templates",email_template_id:W,isSubscription:"subscription"===c},e=await(0,M.In)(t),o=`ablocks-form-email-template-UnId${Math.floor(11500*Math.random())+133}`;if(e?.data?.success&&e?.data?.data&&Object.keys(e.data.data).length>0){const t=e.data.data;for(const e in t){const i={action:"ablocks/update_template",email_template_id:o,slug:e,...t[e]};await(0,M.In)(i)}}i({email_template_id:o})}catch(t){console.error("Error handling duplicate block:",t);const e=`ablocks-form-email-template-UnId${Math.floor(11500*Math.random())+133}`;i({email_template_id:e})}};t()}else if(W){const t=async()=>{try{const t={action:"ablocks/get_templates",email_template_id:W,isSubscription:"subscription"===c},e=await(0,M.In)(t);if(e?.data?.success&&e?.data?.data&&Object.keys(e.data.data).length>0){const t=`ablocks-form-email-template-UnId${Math.floor(11500*Math.random())+133}`,o=e.data.data;for(const e in o){const i={
4635 4647 action:"ablocks/update_template",email_template_id:t,slug:e,...o[e]};await(0,M.In)(i)}i({email_template_id:t})}}catch(t){console.error("Error checking existing templates:",t)}};t()}},[s]),(0,a.useEffect)(()=>{const t=(0,r.subscribe)(()=>{(0,r.select)("core/block-editor").getBlocks(n).length>z.current.length&&j(!0)});return()=>t()},[n]),(0,a.useEffect)(()=>{if(!U)return;const t=(0,r.select)("core/block-editor").getBlocks(n),e=t.filter(t=>!z.current.some(e=>e.clientId===t.clientId));e.forEach(t=>{if(N.includes(t.name)){const e=`field-${Math.floor(1e3*Math.random())+1}`;let i;i="ablocks/form-checkbox"===t.name||"ablocks/form-radio"===t.name?{name:"MulSe"+e,inputType:"checkbox"}:{name:e,inputType:"Text"},V("core/block-editor").updateBlockAttributes(t.clientId,i),w.current++}}),z.current=t,j(!1)},[U]);const O=(0,D.useInnerBlocksProps)({className:"ablocks-form-builder__fields"},{allowedBlocks:N}),Y=-1!==["login","registration","forget_password"].indexOf(c)?c:"submit";return(0,
4636 -a.useEffect)(()=>{o&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(n);t.length>0&&t.forEach(t=>{const e=t.clientId;P(e,{formType:c,submitButtonText:p,submitButtonSize:u})})})()},[e,o]),(0,a.useEffect)(()=>()=>{(0,r.select)("core/block-editor").getBlock(n)||(async()=>{try{const t={action:"ablocks/remove_templates",email_template_id:W};await(0,M.In)(t)}catch(t){console.error("Error removing templates:",t)}})()},[s,n,W]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:d,setAttributes:i,options:SO})}),(0,I.jsxs)(Yb.A,{blockId:s,name:NY.UU,attributes:e,children:[A.length>0&&(0,I.jsxs)("div",{className:"ablocks-form-builder-duplicatedname",children:['⚠️ Some field name are duplicated: "',A.join(", "),'" . Please make each field name unique to avoid conflicts.']}),L.length>0&&(0,I.jsx)("div",{className:"ablocks-form-builder-duplicatedname",children:'⚠️ Some field "Name" are empty. Please provide a name its Requried ! .'}),(0,
4648 +a.useEffect)(()=>{o&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(n);t.length>0&&t.forEach(t=>{const e=t.clientId;P(e,{formType:c,submitButtonText:p,submitButtonSize:u})})})()},[e,o]),(0,a.useEffect)(()=>()=>{(0,r.select)("core/block-editor").getBlock(n)||(async()=>{try{const t={action:"ablocks/remove_templates",email_template_id:W};await(0,M.In)(t)}catch(t){console.error("Error removing templates:",t)}})()},[s,n,W]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:d,setAttributes:i,options:aY})}),(0,I.jsxs)(Yb.A,{blockId:s,name:hX.UU,attributes:e,children:[A.length>0&&(0,I.jsxs)("div",{className:"ablocks-form-builder-duplicatedname",children:['⚠️ Some field name are duplicated: "',A.join(", "),'" . Please make each field name unique to avoid conflicts.']}),L.length>0&&(0,I.jsx)("div",{className:"ablocks-form-builder-duplicatedname",children:'⚠️ Some field "Name" are empty. Please provide a name its Requried ! .'}),(0,
4637 4649 I.jsxs)("form",{id:`ablocks-form-builder-${s}`,className:"ablocks-form-builder",method:"post",children:[(0,I.jsx)("input",{type:"hidden",name:"security",value:""}),(0,I.jsx)("input",{type:"hidden",name:"action",value:`ablocks/form_builder_${Y}_handler`}),(0,I.jsx)("input",{type:"hidden",name:"current_post_id",value:g}),(0,I.jsx)("input",{type:"hidden",name:"block_id",value:s}),!0===m||!0===h?(0,I.jsx)("input",{type:"hidden",name:"redirect_url",value:f?.href}):null,(0,I.jsx)("div",{...O}),"multi-step"!==c&&(0,I.jsx)("button",{className:`ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${u}`,type:"button",children:p})]}),(_||v)&&(0,I.jsx)("div",{className:"ablocks-block--form-builder__feedback-message ablocks-block--form-builder__"+(v?"error":"success"),children:(0,I.jsx)("p",{className:(v?"error":"success")+"-msg",
4638 -children:v?"Oops! Something went wrong while submitting the form. Please try again later.":"Congratulations! Your form has been submitted successfully!"})}),y&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator",children:["login"===c&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:[(0,I.jsx)("a",{href:"#",children:x}),"|",(0,I.jsx)("a",{href:"#",children:T})]}),("registration"===c||"forget_password"===c)&&(0,I.jsx)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:(0,I.jsx)("a",{href:"#",children:H})}),("registration"===c||"forget_password"===c||"login"===c)&&(0,I.jsx)("div",{className:"ablocks-block--form-builder__navigator-home-page",children:(0,I.jsxs)("a",{href:"#",children:[S&&(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:k.viewBox,className:"ablocks-svg-icon ablocks-block--form-builder__arrow-icon",children:(0,I.jsx)("path",{d:k.path})}),R]})})]})]})]})}const VY=t=>{
4639 -const{clientId:e,setAttributes:i,defaultVariation:a}=t,{replaceInnerBlocks:l}=(0,r.useDispatch)("core/block-editor");return(0,I.jsxs)("div",{className:"ablocks-form-builder-block-variation-picker",children:[(0,I.jsx)("span",{className:"ablocks-variation-picker-delete-button ablocks-icon ablocks-icon--close",onClick:()=>wp.data.dispatch("core/block-editor").removeBlock(e),role:"presentation"}),(0,I.jsx)(D.__experimentalBlockVariationPicker,{label:(0,L.__)("Please Select a Form Type","ablocks"),variations:RO,onSelect:t=>((t=a)=>{t.attributes&&i({...t.attributes,variationSelected:!1,formType:t.name,formActions:t.attributes.formActions||""}),t.innerBlocks&&l(e,(0,o.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))})(t)})]})},OY=(t,e="")=>{const i={},o=t?.dir?.["value"+e];return"row"===o||"row-reverse"===o?(i["flex-direction"]=o,i["align-items"]="center"):"column"!==o&&"column-reverse"!==o||(i["flex-direction"]=o,i["flex-wrap"]="wrap"),{...i}},YY=(t,e="")=>{const i={}
4640 -;return"multi-step"!==t?.formType&&(i.display="flex",i["flex-wrap"]="wrap",i["row-gap"]="2px",i["column-gap"]="Mobile"===e?"4px":"8px"),{...i}},XY=(t,e="")=>{const i={};return"multi-step"===t?.formType&&(i.display="none"),{...i}},BY=(t,e="")=>{const{rowsSpacing:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"margin-top",defaultValue:0,unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"margin-bottom",defaultValue:0,unitDefaultValue:"px",device:e})}},EY=(t,e="")=>{const{labelTypography:i,labelSpacing:o,showLabels:a,labelAlignment:l}=t,n=(0,M.Zy)(i,{weight:"400"}),s=t.labelTypographyGlobal?t.labelTypographyGlobal:"",r={color:(0,Hs.qD)(t?.labelColor),...(0,U.qD)(n,e,s),...(0,Zt.qD)(l,"text-align",e),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,property:"margin-bottom",defaultValue:10,unitDefaultValue:"px",device:e})}
4641 -;return r["margin-bottom"]&&(r["margin-bottom"]=r["margin-bottom"]+" !important"),a||(r.display="none"),r},FY=(t,e="")=>{const{helperTextSpacing:i,showLabels:o,labelAlignment:a,helperTextTypography:l}=t,n=(0,M.Zy)(l,{weight:"400"}),s=t.helperTextTypographyGlobal?t.helperTextTypographyGlobal:"",r={color:(0,Hs.qD)(t?.helperTextColor),...(0,Zt.qD)(a,"text-align",e),...(0,U.qD)(n,e,s),...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"margin-bottom",defaultValue:10,unitDefaultValue:"px",device:e})};return o||(r.display="none"),i["value"+e]&&(r["margin-top"]=i["value"+e]+"px",r["margin-bottom"]=i["value"+e]+"px"),r},qY=(t,e="")=>{const{inputTypography:i,inputBorder:o,inputPadding:a,inputAlignment:l}=t,n={};"default"===o.borderStyle&&(n.border="1px solid #A7AAAD",n["border-radius"]="5px"),n["box-sizing"]="border-box";const s=(0,M.Zy)(i,{weight:"400"}),r=t.inputTypographyGlobal?t.inputTypographyGlobal:"",b=(0,M.Zy)(a,{unit:"px"}),d=(0,M.Zy)(o,{unitWidth:"px",
4642 -unitRadius:"px"});return{color:(0,Hs.qD)(t?.inputColor),background:(0,Hs.qD)(t?.inputBgColor),...n,...(0,Zt.qD)(l,"text-align",e),...(0,U.qD)(s,e,r),...(0,y.qD)(d,e),...(0,c.qD)(b,"padding",e)}},$Y=(t,e="")=>{const{inputBorder:i}=t,o={};return"default"===i.borderStyle&&(o.border="1px solid #007cba",o["border-radius"]="5px"),{...o,...(0,y.a9)(i,e)}},GY=(t,e="")=>{const{inputBorder:i}=t,o={};return"default"===i.borderStyle&&(o.border="1px solid #007cba",o["border-radius"]="5px"),{...o,...(0,y.a9)(i,e)}},ZY=(t,e="")=>{const{inputAlignment:i,inputTypography:o}=t,a=(0,M.Zy)(o,{weight:"400"}),l=t.inputTypographyGlobal?t.inputTypographyGlobal:"";return{color:(0,Hs.qD)(t?.inputPlaceholderColor),...(0,Zt.qD)(i,"text-align",e),...(0,U.qD)(a,e,l)}},KY=(t,e="")=>{const{buttonBorder:i,buttonTypography:o}=t,a=(0,M.Zy)(o,{weight:"400"}),l=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",n=(0,M.Zy)(t?.buttonPadding,{unit:"px"}),s=(0,M.Zy)(i,{unitWidth:"px",unitRadius:"px"});return{color:(0,
4643 -Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBgColor),...(0,y.qD)(s,e),...(0,U.qD)(a,e,l),...(0,c.qD)(n,"padding",e)}},JY=(t,e="")=>{const{buttonTextAlignment:i,buttonAlignment:o}=t;return{...(0,Zt.qD)(i,"text-align",e),...(0,Zt.qD)(o,"align-self",e)}},QY=(t,e="")=>{const{buttonBorder:i}=t;return{color:(0,Hs.qD)(t?.buttonHColor),background:(0,Hs.qD)(t?.buttonBgHColor),...(0,y.a9)(i,e)}},tX=(t,e)=>{const{inputIconPosition:i}=t;return{...(0,Eb.qD)({attributeValue:i,isResponsive:!1,property:"top",defaultValue:75,unitDefaultValue:"%",device:e})}},eX=(t,e)=>{const i=(0,M.Zy)(t?.navigatorPadding,{unit:"px"}),o=(0,M.Zy)(t?.navigatorTypography,{weight:"400"}),a=t.navigatorTypographyGlobal?t.navigatorTypographyGlobal:"";return{color:(0,Hs.qD)(t?.navigatorColor),...(0,U.qD)(o,e,a),...(0,c.qD)(i,"padding",e),...(0,Zt.qD)(t.navigatorAlignment,"text-align",e)}},iX=(t,e)=>{const{navigatorSpacing:i}=t;return{...(0,Eb.qD)({attributeValue:i,isResponsive:!1,property:"margin-bottom",
4644 -defaultValue:20,unitDefaultValue:"px",device:e})}},oX=t=>({color:(0,Hs.qD)(t?.errorColor),background:(0,Hs.qD)(t?.errorBackground)}),aX=t=>({color:(0,Hs.qD)(t?.successColor),background:(0,Hs.qD)(t?.successBackground)}),lX=(t,e)=>{const i=(0,M.Zy)(t?.successErrorTypography,{weight:"400"}),o=t.successErrorTypographyGlobal?t.successErrorTypographyGlobal:"",a=(0,M.Zy)(t?.successErrorPadding,{unit:"px"});return{...(0,U.qD)(i,e,o),...(0,c.qD)(a,"padding",e),...(0,Zt.qD)(t.successErrorAlignment,"text-align",e)}},nX={UU:"ablocks/form-builder",uK:{block_id:{type:"string",default:""},variationSelected:{type:"boolean",default:!0},postId:{type:"number",default:""},showLabels:{type:"boolean",default:!0},loginRedirect:{type:"boolean",default:!1},registerRedirect:{type:"boolean",default:!1},navigatorAccess:{type:"boolean",default:!1},formName:{type:"string",default:""},formType:{type:"string",default:""},formActions:{type:"array",default:[]},childDetails:{type:"array",default:[]},labelColor:{
4650 +children:v?"Oops! Something went wrong while submitting the form. Please try again later.":"Congratulations! Your form has been submitted successfully!"})}),y&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator",children:["login"===c&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:[(0,I.jsx)("a",{href:"#",children:x}),"|",(0,I.jsx)("a",{href:"#",children:T})]}),("registration"===c||"forget_password"===c)&&(0,I.jsx)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:(0,I.jsx)("a",{href:"#",children:H})}),("registration"===c||"forget_password"===c||"login"===c)&&(0,I.jsx)("div",{className:"ablocks-block--form-builder__navigator-home-page",children:(0,I.jsxs)("a",{href:"#",children:[S&&(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:k.viewBox,className:"ablocks-svg-icon ablocks-block--form-builder__arrow-icon",children:(0,I.jsx)("path",{d:k.path})}),R]})})]})]})]})}const fX=t=>{
4651 +const{clientId:e,setAttributes:i,defaultVariation:a}=t,{replaceInnerBlocks:l}=(0,r.useDispatch)("core/block-editor");return(0,I.jsxs)("div",{className:"ablocks-form-builder-block-variation-picker",children:[(0,I.jsx)("span",{className:"ablocks-variation-picker-delete-button ablocks-icon ablocks-icon--close",onClick:()=>wp.data.dispatch("core/block-editor").removeBlock(e),role:"presentation"}),(0,I.jsx)(D.__experimentalBlockVariationPicker,{label:(0,L.__)("Please Select a Form Type","ablocks"),variations:oY,onSelect:t=>((t=a)=>{t.attributes&&i({...t.attributes,variationSelected:!1,formType:t.name,formActions:t.attributes.formActions||""}),t.innerBlocks&&l(e,(0,o.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))})(t)})]})},yX=(t,e="")=>{const i={},o=t?.dir?.["value"+e];return"row"===o||"row-reverse"===o?(i["flex-direction"]=o,i["align-items"]="center"):"column"!==o&&"column-reverse"!==o||(i["flex-direction"]=o,i["flex-wrap"]="wrap"),{...i}},TX=(t,e="")=>{const i={}
4652 +;return"multi-step"!==t?.formType&&(i.display="flex",i["flex-wrap"]="wrap",i["row-gap"]="2px",i["column-gap"]="Mobile"===e?"4px":"8px"),{...i}},HX=(t,e="")=>{const i={};return"multi-step"===t?.formType&&(i.display="none"),{...i}},MX=(t,e="")=>{const{rowsSpacing:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"margin-top",defaultValue:0,unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"margin-bottom",defaultValue:0,unitDefaultValue:"px",device:e})}},xX=(t,e="")=>{const{labelTypography:i,labelSpacing:o,showLabels:a,labelAlignment:l}=t,n=(0,M.Zy)(i,{weight:"400"}),s=t.labelTypographyGlobal?t.labelTypographyGlobal:"",r={color:(0,Hs.qD)(t?.labelColor),...(0,U.qD)(n,e,s),...(0,Zt.qD)(l,"text-align",e),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,property:"margin-bottom",defaultValue:10,unitDefaultValue:"px",device:e})}
4653 +;return r["margin-bottom"]&&(r["margin-bottom"]=r["margin-bottom"]+" !important"),a||(r.display="none"),r},kX=(t,e="")=>{const{helperTextSpacing:i,showLabels:o,labelAlignment:a,helperTextTypography:l}=t,n=(0,M.Zy)(l,{weight:"400"}),s=t.helperTextTypographyGlobal?t.helperTextTypographyGlobal:"",r={color:(0,Hs.qD)(t?.helperTextColor),...(0,Zt.qD)(a,"text-align",e),...(0,U.qD)(n,e,s),...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"margin-bottom",defaultValue:10,unitDefaultValue:"px",device:e})};return o||(r.display="none"),i["value"+e]&&(r["margin-top"]=i["value"+e]+"px",r["margin-bottom"]=i["value"+e]+"px"),r},vX=(t,e="")=>{const{inputTypography:i,inputBorder:o,inputPadding:a,inputAlignment:l}=t,n={};"default"===o.borderStyle&&(n.border="1px solid #A7AAAD",n["border-radius"]="5px"),n["box-sizing"]="border-box";const s=(0,M.Zy)(i,{weight:"400"}),r=t.inputTypographyGlobal?t.inputTypographyGlobal:"",b=(0,M.Zy)(a,{unit:"px"}),d=(0,M.Zy)(o,{unitWidth:"px",
4654 +unitRadius:"px"});return{color:(0,Hs.qD)(t?.inputColor),background:(0,Hs.qD)(t?.inputBgColor),...n,...(0,Zt.qD)(l,"text-align",e),...(0,U.qD)(s,e,r),...(0,y.qD)(d,e),...(0,c.qD)(b,"padding",e)}},_X=(t,e="")=>{const{inputBorder:i}=t,o={};return"default"===i.borderStyle&&(o.border="1px solid #007cba",o["border-radius"]="5px"),{...o,...(0,y.a9)(i,e)}},RX=(t,e="")=>{const{inputBorder:i}=t,o={};return"default"===i.borderStyle&&(o.border="1px solid #007cba",o["border-radius"]="5px"),{...o,...(0,y.a9)(i,e)}},SX=(t,e="")=>{const{inputAlignment:i,inputTypography:o}=t,a=(0,M.Zy)(o,{weight:"400"}),l=t.inputTypographyGlobal?t.inputTypographyGlobal:"";return{color:(0,Hs.qD)(t?.inputPlaceholderColor),...(0,Zt.qD)(i,"text-align",e),...(0,U.qD)(a,e,l)}},WX=(t,e="")=>{const{buttonBorder:i,buttonTypography:o}=t,a=(0,M.Zy)(o,{weight:"400"}),l=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",n=(0,M.Zy)(t?.buttonPadding,{unit:"px"}),s=(0,M.Zy)(i,{unitWidth:"px",unitRadius:"px"});return{color:(0,
4655 +Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBgColor),...(0,y.qD)(s,e),...(0,U.qD)(a,e,l),...(0,c.qD)(n,"padding",e)}},PX=(t,e="")=>{const{buttonTextAlignment:i,buttonAlignment:o}=t;return{...(0,Zt.qD)(i,"text-align",e),...(0,Zt.qD)(o,"align-self",e)}},UX=(t,e="")=>{const{buttonBorder:i}=t;return{color:(0,Hs.qD)(t?.buttonHColor),background:(0,Hs.qD)(t?.buttonBgHColor),...(0,y.a9)(i,e)}},jX=(t,e)=>{const{inputIconPosition:i}=t;return{...(0,Eb.qD)({attributeValue:i,isResponsive:!1,property:"top",defaultValue:75,unitDefaultValue:"%",device:e})}},wX=(t,e)=>{const i=(0,M.Zy)(t?.navigatorPadding,{unit:"px"}),o=(0,M.Zy)(t?.navigatorTypography,{weight:"400"}),a=t.navigatorTypographyGlobal?t.navigatorTypographyGlobal:"";return{color:(0,Hs.qD)(t?.navigatorColor),...(0,U.qD)(o,e,a),...(0,c.qD)(i,"padding",e),...(0,Zt.qD)(t.navigatorAlignment,"text-align",e)}},zX=(t,e)=>{const{navigatorSpacing:i}=t;return{...(0,Eb.qD)({attributeValue:i,isResponsive:!1,property:"margin-bottom",
4656 +defaultValue:20,unitDefaultValue:"px",device:e})}},CX=t=>({color:(0,Hs.qD)(t?.errorColor),background:(0,Hs.qD)(t?.errorBackground)}),AX=t=>({color:(0,Hs.qD)(t?.successColor),background:(0,Hs.qD)(t?.successBackground)}),LX=(t,e)=>{const i=(0,M.Zy)(t?.successErrorTypography,{weight:"400"}),o=t.successErrorTypographyGlobal?t.successErrorTypographyGlobal:"",a=(0,M.Zy)(t?.successErrorPadding,{unit:"px"});return{...(0,U.qD)(i,e,o),...(0,c.qD)(a,"padding",e),...(0,Zt.qD)(t.successErrorAlignment,"text-align",e)}},DX={UU:"ablocks/form-builder",uK:{block_id:{type:"string",default:""},variationSelected:{type:"boolean",default:!0},postId:{type:"number",default:""},showLabels:{type:"boolean",default:!0},loginRedirect:{type:"boolean",default:!1},registerRedirect:{type:"boolean",default:!1},navigatorAccess:{type:"boolean",default:!1},formName:{type:"string",default:""},formType:{type:"string",default:""},formActions:{type:"array",default:[]},childDetails:{type:"array",default:[]},labelColor:{
4645 4657 type:"string",default:"#000000"},helperTextColor:{type:"string",default:""},customForm:{type:"boolean",default:!1},inputColor:{type:"string",default:""},inputBgColor:{type:"string",default:"white"},inputPlaceholderColor:{type:"string",default:""},buttonSize:{type:"string",default:"full-width"},buttonColor:{type:"string",default:""},buttonBgColor:{type:"string",default:""},buttonHColor:{type:"string",default:""},buttonBgHColor:{type:"string",default:""},buttonText:{type:"string",default:"Submit Here"},emailOneTo:{type:"string",default:"[email protected]"},emailOneSubject:{type:"string",default:"New message"},emailOneMessage:{type:"string",default:"{all-fields}"},emailOneFormEmail:{type:"string",default:"[email protected]"},emailOneFormName:{type:"string",default:"Local Name"},emailOneReplyTo:{type:"string",default:"[email protected]"},emailOneCc:{type:"string",default:""},emailOneBcc:{type:"string",default:""},emailOneType:{type:"string",default:"HTML"},emailTwoTo:{type:"string",
4646 4658 default:"[email protected]"},emailTwoSubject:{type:"string",default:"New message"},emailTwoMessage:{type:"string",default:"{all-fields}"},emailTwoFormEmail:{type:"string",default:"[email protected]"},emailTwoFormName:{type:"string",default:"Local Name"},emailTwoReplyTo:{type:"string",default:"[email protected]"},emailTwoCc:{type:"string",default:""},emailTwoBcc:{type:"string",default:""},emailTwoType:{type:"string",default:"HTML"},mailchimpOption:{type:"string",default:"default"},mailchimpApiKey:{type:"string",default:""},mailchimpValidateApi:{type:"boolean",default:!1},mailchimpListIdOptions:{type:"array",default:[{label:"select options",value:"default"}]},mailchimpMapFields:{type:"array",default:[]},mailchimpMapSelects:{type:"object"},mailchimpListId:{type:"string",default:"default"},mailchimpgroupsOptions:{type:"array",default:[]},mailchimpgroupSelects:{type:"array",default:[]},mailchimpTags:{type:"string",default:""},mapEmailOptions:{type:"array",default:[{label:"None",
4647 4659 value:"default"}]},mailchimpEmailSelects:{type:"string",default:"default"},mapOtherOptions:{type:"array",default:[{label:"None",value:"default"}]},showDoubleOpt:{type:"boolean",default:!1},mailchimpStatus:{type:"string",default:""},mailerliteOption:{type:"string",default:"default"},mailerliteApiKey:{type:"string",default:""},mailerliteValidateApi:{type:"boolean",default:!1},mailerliteGroupId:{type:"string",default:"default"},mailerliteGroupIdOptions:{type:"array",default:[{label:"select options",value:"default"}]},mailerliteMapFields:{type:"array",default:[]},mailerliteMapSelects:{type:"object"},allowReSubscribe:{type:"boolean",default:!1},dripOption:{type:"string",default:"default"},dripApiKey:{type:"string",default:""},dripValidateApi:{type:"boolean",default:!1},dripAccountIdOptions:{type:"array",default:[{label:"select options",value:"default"}]},dripAccountId:{type:"string",default:"default"},dripMapFields:{type:"array",default:[]},dripMapSelects:{type:"object"},dripEmailSelects:{
4648 4660 type:"string",default:"default"},dripTags:{type:"string",default:""},showFormFields:{type:"boolean",default:!1},getResponseOption:{type:"string",default:"default"},getResponseApiKey:{type:"string",default:""},getResponseValidateApi:{type:"boolean",default:!1},getResponseListId:{type:"string",default:"default"},getResponseListIdOptions:{type:"array",default:[{label:"select options",value:"default"}]},getResponseMapFields:{type:"array",default:[]},getResponseMapSelects:{type:"object"},getResponseDayCycle:{type:"number",default:1},convertkitOption:{type:"string",default:"default"},convertkitApiKey:{type:"string",default:""},convertkitValidateApi:{type:"boolean",default:!1},convertkitFormId:{type:"string",default:"default"},convertkitFormIdOptions:{type:"array",default:[{label:"select options",value:"default"}]},convertkitMapFields:{type:"array",default:[]},convertkitMapSelects:{type:"object"},convertkitEmailSelects:{type:"string",default:"default"},convertkitFirstNameSelects:{
@@ -4663,26 +4675,26 @@
4663 4675 vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",
4664 4676 imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",
4665 4677 zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",
4666 4678 rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",
4667 -maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};(0,M.xV)(NY.UU)&&(0,
4668 -o.registerBlockType)(NY.UU,{attributes:NY.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--form"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const{blockParents:s}=(0,r.useSelect)(t=>{const e=t("core/block-editor");return{blockParents:e?.getBlockParents(l),hasChildBlocks:e?.getBlockOrder(l).length>0}}),b=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .ablocks-form-builder",OY(i),OY(i,"Tablet"),OY(i,"Mobile"),e(t=>OY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__field",BY(i),BY(i,"Tablet"),BY(i,"Mobile"),e(t=>BY(i,t))),
4669 -t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__label",EY(i),EY(i,"Tablet"),EY(i,"Mobile"),e(t=>EY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__helper-text",FY(i),FY(i,"Tablet"),FY(i,"Mobile"),e(t=>FY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input , {{WRAPPER}} .ablocks-form-builder__select , {{WRAPPER}} .ablocks-form-builder-datepicker-input , {{WRAPPER}} .ablocks-form-builder-timepicker-input ",qY(i),qY(i,"Tablet"),qY(i,"Mobile"),e(t=>qY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input:hover",$Y(i),$Y(i,"Tablet"),$Y(i,"Mobile"),e(t=>$Y(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input:focus",GY(i),GY(i,"Tablet"),GY(i,"Mobile"),e(t=>GY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input::placeholder",ZY(i),ZY(i,"Tablet"),ZY(i,"Mobile"),e(t=>ZY(i,t))),
4670 -t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon,{{WRAPPER}} .ablocks-form-builder__input-toggle-password",tX(i),tX(i,"Tablet"),tX(i,"Mobile"),e(t=>tX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button",JY(i),JY(i,"Tablet"),JY(i,"Mobile"),e(t=>JY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button",KY(i),KY(i,"Tablet"),KY(i,"Mobile"),e(t=>KY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button:hover",QY(i),QY(i,"Tablet"),QY(i,"Mobile"),e(t=>QY(i,t))),t.addClassStyles("{{WRAPPER}} .block-editor-block-list__layout",YY(i),YY(i,"Tablet"),YY(i,"Mobile"),e(t=>YY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__fields.block-editor-block-list__layout > .block-list-appender",XY(i),XY(i,"Tablet"),XY(i,"Mobile"),e(t=>XY(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__navigator",eX(i),eX(i,"Tablet"),eX(i,"Mobile"),e(t=>eX(i,t))),
4671 -t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__navigator-redirect-page",iX(i),iX(i,"Tablet"),iX(i,"Mobile"),e(t=>iX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__error",oX(i),oX(i),oX(i),e(t=>oX(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__success",aX(i),aX(i),aX(i),e(t=>aX(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__feedback-message",lX(i),lX(i,"Tablet"),lX(i,"Mobile"),e(t=>lX(i,t))),t.generateCSS()},[i]);return i.variationSelected?(0,I.jsx)(VY,{...t}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:b}),e&&(0,I.jsx)(DY,{...t}),(0,I.jsx)(IY,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i,dir:o,buttonSize:a,formType:n,buttonText:s,postId:r,link:b,loginRedirect:c,registerRedirect:d,navigatorAccess:u,forgetPasswordLabel:p,loginLabel:m,registerLabel:h,navigatorIcon:g,homeLabel:f,navigatorIconShow:y}=e,T=-1!==["login","registration","forget_password"].indexOf(n)?n:"submit";return(0,
4672 -I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:NY.UU,attributes:e,children:[(0,I.jsxs)("form",{id:`ablocks-form-builder-${i}`,className:"ablocks-form-builder",method:"post",children:[(0,I.jsx)("input",{type:"hidden",name:"security",value:""}),(0,I.jsx)("input",{type:"hidden",name:"action",value:`ablocks/form_builder_${T}_handler`}),(0,I.jsx)("input",{type:"hidden",name:"current_post_id",value:r}),(0,I.jsx)("input",{type:"hidden",name:"block_id",value:i}),!0===c||!0===d?(0,I.jsx)("input",{type:"hidden",name:"redirect_url",value:b?.href}):null,(0,I.jsx)("div",{className:"ablocks-form-builder__fields",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),"multi-step"!==n&&(0,I.jsx)("button",{className:`ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${a}`,type:"submit",children:s})]}),(0,I.jsx)("div",{className:"ablocks-block--form-builder__feedback-message"}),u&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator",children:["login"===n&&(0,
4673 -I.jsxs)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:[(0,I.jsx)("a",{href:"{{ablocks_link_registration_page}}",children:h}),"|",(0,I.jsx)("a",{href:"{{ablocks_link_forget_password_page}}",children:p})]}),("registration"===n||"forget_password"===n)&&(0,I.jsx)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:(0,I.jsx)("a",{href:"{{ablocks_link_login_page}}",children:m})}),("registration"===n||"forget_password"===n||"login"===n)&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator-home-page",children:[y&&(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:g.viewBox,className:"ablocks-svg-icon ablocks-block--form-builder__arrow-icon",children:(0,I.jsx)("path",{d:g.path})}),(0,I.jsx)("a",{href:"{{ablocks_link_home}}",children:f})]})]})]})})},deprecated:[{attributes:nX.uK,save:function(t){
4674 -const{attributes:e}=t,{block_id:i,buttonSize:o,formType:a,buttonText:n,postId:s,link:r,loginRedirect:b,registerRedirect:c,navigatorAccess:d,forgetPasswordLabel:u,loginLabel:p,registerLabel:m,navigatorIcon:h,homeLabel:g,navigatorIconShow:f}=e,y=-1!==["login","registration","forget_password"].indexOf(a)?a:"submit";return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:nX.UU,attributes:e,children:[(0,I.jsxs)("form",{id:`ablocks-form-builder-${i}`,className:"ablocks-form-builder",method:"post",children:[(0,I.jsx)("input",{type:"hidden",name:"security",value:""}),(0,I.jsx)("input",{type:"hidden",name:"action",value:`ablocks/form_builder_${y}_handler`}),(0,I.jsx)("input",{type:"hidden",name:"current_post_id",value:s}),(0,I.jsx)("input",{type:"hidden",name:"block_id",value:i}),!0===b||!0===c?(0,I.jsx)("input",{type:"hidden",name:"redirect_url",value:r?.href}):null,(0,I.jsx)(D.InnerBlocks.Content,{}),"multi-step"!==a&&(0,I.jsx)("button",{
4679 +maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};(0,M.xV)(hX.UU)&&(0,
4680 +o.registerBlockType)(hX.UU,{attributes:hX.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--form"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const{blockParents:s}=(0,r.useSelect)(t=>{const e=t("core/block-editor");return{blockParents:e?.getBlockParents(l),hasChildBlocks:e?.getBlockOrder(l).length>0}}),b=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .ablocks-form-builder",yX(i),yX(i,"Tablet"),yX(i,"Mobile"),e(t=>yX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__field",MX(i),MX(i,"Tablet"),MX(i,"Mobile"),e(t=>MX(i,t))),
4681 +t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__label",xX(i),xX(i,"Tablet"),xX(i,"Mobile"),e(t=>xX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__helper-text",kX(i),kX(i,"Tablet"),kX(i,"Mobile"),e(t=>kX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input , {{WRAPPER}} .ablocks-form-builder__select , {{WRAPPER}} .ablocks-form-builder-datepicker-input , {{WRAPPER}} .ablocks-form-builder-timepicker-input ",vX(i),vX(i,"Tablet"),vX(i,"Mobile"),e(t=>vX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input:hover",_X(i),_X(i,"Tablet"),_X(i,"Mobile"),e(t=>_X(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input:focus",RX(i),RX(i,"Tablet"),RX(i,"Mobile"),e(t=>RX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input::placeholder",SX(i),SX(i,"Tablet"),SX(i,"Mobile"),e(t=>SX(i,t))),
4682 +t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon,{{WRAPPER}} .ablocks-form-builder__input-toggle-password",jX(i),jX(i,"Tablet"),jX(i,"Mobile"),e(t=>jX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button",PX(i),PX(i,"Tablet"),PX(i,"Mobile"),e(t=>PX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button",WX(i),WX(i,"Tablet"),WX(i,"Mobile"),e(t=>WX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button:hover",UX(i),UX(i,"Tablet"),UX(i,"Mobile"),e(t=>UX(i,t))),t.addClassStyles("{{WRAPPER}} .block-editor-block-list__layout",TX(i),TX(i,"Tablet"),TX(i,"Mobile"),e(t=>TX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__fields.block-editor-block-list__layout > .block-list-appender",HX(i),HX(i,"Tablet"),HX(i,"Mobile"),e(t=>HX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__navigator",wX(i),wX(i,"Tablet"),wX(i,"Mobile"),e(t=>wX(i,t))),
4683 +t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__navigator-redirect-page",zX(i),zX(i,"Tablet"),zX(i,"Mobile"),e(t=>zX(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__error",CX(i),CX(i),CX(i),e(t=>CX(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__success",AX(i),AX(i),AX(i),e(t=>AX(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__feedback-message",LX(i),LX(i,"Tablet"),LX(i,"Mobile"),e(t=>LX(i,t))),t.generateCSS()},[i]);return i.variationSelected?(0,I.jsx)(fX,{...t}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:b}),e&&(0,I.jsx)(mX,{...t}),(0,I.jsx)(gX,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i,dir:o,buttonSize:a,formType:n,buttonText:s,postId:r,link:b,loginRedirect:c,registerRedirect:d,navigatorAccess:u,forgetPasswordLabel:p,loginLabel:m,registerLabel:h,navigatorIcon:g,homeLabel:f,navigatorIconShow:y}=e,T=-1!==["login","registration","forget_password"].indexOf(n)?n:"submit";return(0,
4684 +I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:hX.UU,attributes:e,children:[(0,I.jsxs)("form",{id:`ablocks-form-builder-${i}`,className:"ablocks-form-builder",method:"post",children:[(0,I.jsx)("input",{type:"hidden",name:"security",value:""}),(0,I.jsx)("input",{type:"hidden",name:"action",value:`ablocks/form_builder_${T}_handler`}),(0,I.jsx)("input",{type:"hidden",name:"current_post_id",value:r}),(0,I.jsx)("input",{type:"hidden",name:"block_id",value:i}),!0===c||!0===d?(0,I.jsx)("input",{type:"hidden",name:"redirect_url",value:b?.href}):null,(0,I.jsx)("div",{className:"ablocks-form-builder__fields",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),"multi-step"!==n&&(0,I.jsx)("button",{className:`ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${a}`,type:"submit",children:s})]}),(0,I.jsx)("div",{className:"ablocks-block--form-builder__feedback-message"}),u&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator",children:["login"===n&&(0,
4685 +I.jsxs)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:[(0,I.jsx)("a",{href:"{{ablocks_link_registration_page}}",children:h}),"|",(0,I.jsx)("a",{href:"{{ablocks_link_forget_password_page}}",children:p})]}),("registration"===n||"forget_password"===n)&&(0,I.jsx)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:(0,I.jsx)("a",{href:"{{ablocks_link_login_page}}",children:m})}),("registration"===n||"forget_password"===n||"login"===n)&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator-home-page",children:[y&&(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:g.viewBox,className:"ablocks-svg-icon ablocks-block--form-builder__arrow-icon",children:(0,I.jsx)("path",{d:g.path})}),(0,I.jsx)("a",{href:"{{ablocks_link_home}}",children:f})]})]})]})})},deprecated:[{attributes:DX.uK,save:function(t){
4686 +const{attributes:e}=t,{block_id:i,buttonSize:o,formType:a,buttonText:n,postId:s,link:r,loginRedirect:b,registerRedirect:c,navigatorAccess:d,forgetPasswordLabel:u,loginLabel:p,registerLabel:m,navigatorIcon:h,homeLabel:g,navigatorIconShow:f}=e,y=-1!==["login","registration","forget_password"].indexOf(a)?a:"submit";return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:DX.UU,attributes:e,children:[(0,I.jsxs)("form",{id:`ablocks-form-builder-${i}`,className:"ablocks-form-builder",method:"post",children:[(0,I.jsx)("input",{type:"hidden",name:"security",value:""}),(0,I.jsx)("input",{type:"hidden",name:"action",value:`ablocks/form_builder_${y}_handler`}),(0,I.jsx)("input",{type:"hidden",name:"current_post_id",value:s}),(0,I.jsx)("input",{type:"hidden",name:"block_id",value:i}),!0===b||!0===c?(0,I.jsx)("input",{type:"hidden",name:"redirect_url",value:r?.href}):null,(0,I.jsx)(D.InnerBlocks.Content,{}),"multi-step"!==a&&(0,I.jsx)("button",{
4675 4687 className:`ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${o}`,type:"submit",children:n})]}),(0,I.jsx)("div",{className:"ablocks-block--form-builder__feedback-message"}),d&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator",children:["login"===a&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:[(0,I.jsx)("a",{href:"{{ablocks_link_registration_page}}",children:m}),"|",(0,I.jsx)("a",{href:"{{ablocks_link_forget_password_page}}",children:u})]}),("registration"===a||"forget_password"===a)&&(0,I.jsx)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:(0,I.jsx)("a",{href:"{{ablocks_link_login_page}}",children:p})}),("registration"===a||"forget_password"===a||"login"===a)&&(0,I.jsxs)("div",{className:"ablocks-block--form-builder__navigator-home-page",children:[f&&(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:h.viewBox,
4676 -className:"ablocks-svg-icon ablocks-block--form-builder__arrow-icon",children:(0,I.jsx)("path",{d:h.path})}),(0,I.jsx)("a",{href:"{{ablocks_link_home}}",children:g})]})]})]})})}}],variations:RO});const sX=[{label:(0,L.__)("Text","ablocks"),value:"Text"},{label:(0,L.__)("Number","ablocks"),value:"Number"},{label:(0,L.__)("Username","ablocks"),value:"Username"},{label:(0,L.__)("Email","ablocks"),value:"Email"},{label:(0,L.__)("URL","ablocks"),value:"URL"}],rX=((0,L.__)("first_name","ablocks"),(0,L.__)("last_name","ablocks"),(0,L.__)("custom","ablocks"),t=>{switch(t){case"first_name":return"given-name";case"last_name":return"family-name";case"email":return"email";case"username":return"username";case"url":return"url";default:return"off"}}),bX=(0,Eb.D$)({attributeName:"inputIconSize",isResponsive:!1,defaultValue:28,copyStyle:!0}),cX=(0,Eb.D$)({attributeName:"inputIconSpace",isResponsive:!1,defaultValue:38,copyStyle:!0}),dX=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",
4677 -isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),uX=(0,L.__)("name","ablocks");function pX(t){const{attributes:e,setAttributes:i}=t,{placeholder:o,isRequired:n,inputType:s,name:r,label:b,showIcon:c,inputIconSize:d,iconColor:u,inputIconSpace:p,emailType:m,helperText:h,errorMsg:g,formType:f,nameChangeable:y,inputWidth:T}=e;(0,a.useEffect)(()=>{!s&&sX.length>0&&i({inputType:sX[0].value})},[s,i]),(0,a.useEffect)(()=>{let t;switch(s){case"Text":t=(0,L.__)("Text","ablocks");break;case"Number":t=(0,L.__)("Number","ablocks");break;case"URL":t=(0,L.__)("URL","ablocks");break;case"Username":t=(0,L.__)("Username","ablocks");break;case"Email":t="email"===m?(0,L.__)("Email","ablocks"):(0,L.__)("Confirm Email","ablocks");break;default:t=(0,L.__)("Name","ablocks")}const e=[(0,L.__)("Name","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Number","ablocks"),(0,L.__)("URL","ablocks"),(0,L.__)("Username","ablocks"),(0,L.__)("Email","ablocks"),(0,
4688 +className:"ablocks-svg-icon ablocks-block--form-builder__arrow-icon",children:(0,I.jsx)("path",{d:h.path})}),(0,I.jsx)("a",{href:"{{ablocks_link_home}}",children:g})]})]})]})})}}],variations:oY});const NX=[{label:(0,L.__)("Text","ablocks"),value:"Text"},{label:(0,L.__)("Number","ablocks"),value:"Number"},{label:(0,L.__)("Username","ablocks"),value:"Username"},{label:(0,L.__)("Email","ablocks"),value:"Email"},{label:(0,L.__)("URL","ablocks"),value:"URL"}],IX=((0,L.__)("first_name","ablocks"),(0,L.__)("last_name","ablocks"),(0,L.__)("custom","ablocks"),t=>{switch(t){case"first_name":return"given-name";case"last_name":return"family-name";case"email":return"email";case"username":return"username";case"url":return"url";default:return"off"}}),VX=(0,Eb.D$)({attributeName:"inputIconSize",isResponsive:!1,defaultValue:28,copyStyle:!0}),OX=(0,Eb.D$)({attributeName:"inputIconSpace",isResponsive:!1,defaultValue:38,copyStyle:!0}),YX=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",
4689 +isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),XX=(0,L.__)("name","ablocks");function BX(t){const{attributes:e,setAttributes:i}=t,{placeholder:o,isRequired:n,inputType:s,name:r,label:b,showIcon:c,inputIconSize:d,iconColor:u,inputIconSpace:p,emailType:m,helperText:h,errorMsg:g,formType:f,nameChangeable:y,inputWidth:T}=e;(0,a.useEffect)(()=>{!s&&NX.length>0&&i({inputType:NX[0].value})},[s,i]),(0,a.useEffect)(()=>{let t;switch(s){case"Text":t=(0,L.__)("Text","ablocks");break;case"Number":t=(0,L.__)("Number","ablocks");break;case"URL":t=(0,L.__)("URL","ablocks");break;case"Username":t=(0,L.__)("Username","ablocks");break;case"Email":t="email"===m?(0,L.__)("Email","ablocks"):(0,L.__)("Confirm Email","ablocks");break;default:t=(0,L.__)("Name","ablocks")}const e=[(0,L.__)("Name","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Number","ablocks"),(0,L.__)("URL","ablocks"),(0,L.__)("Username","ablocks"),(0,L.__)("Email","ablocks"),(0,
4678 4690 L.__)("Confirm Email","ablocks")];b&&!e.includes(b)||i({label:t})},[s,m]);const H=(t,e)=>t?"URL"===e?(0,L.sprintf)(/* translators: %s: field label */ /* translators: %s: field label */
4679 4691 (0,L.__)("Please Enter your Valid %s","ablocks"),t):(0,L.sprintf)(/* translators: %s: field label */ /* translators: %s: field label */
4680 -(0,L.__)("Please Enter your %s","ablocks"),t):"",M=(0,a.useRef)();(0,a.useEffect)(()=>{if(void 0===M.current){const t=H(b,s);return void(M.current=o===uX||o===t?o:null)}if(null===M.current||o!==M.current)return void(M.current=null);if(!b)return;const t=H(b,s);i({placeholder:t}),M.current=t},[b,s]);const x=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(!s)return;if(""===r&&!x.current)return void(x.current=!0);const t="Text"===s?"first_name":s;if(!r||r.startsWith("field-")){const e=Math.floor(1e3*Math.random())+1;return void i({name:`${t}-${e}`})}const e=r.match(/^([A-Za-z_]+)-(\d+)$/);if(e&&e[1]!==t){const o=e[2];i({name:`${t}-${o}`})}},[s,r,i]);const k="registration"===f&&!1===y||"login"===f&&!1===y||"forget_password"===f&&!1===y||"subscription"===f&&!1===y;return s?.toLowerCase(),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",
4681 -children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsx)(V,{title:(0,L.__)("Input","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Field type","ablocks"),isResponsive:!1,options:sX,attributeName:"inputType",attributeValue:s,setAttributes:i,disabled:k}),(0,I.jsx)(_t,{label:(0,L.__)("Input Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:T,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:T,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:dX
4692 +(0,L.__)("Please Enter your %s","ablocks"),t):"",M=(0,a.useRef)();(0,a.useEffect)(()=>{if(void 0===M.current){const t=H(b,s);return void(M.current=o===XX||o===t?o:null)}if(null===M.current||o!==M.current)return void(M.current=null);if(!b)return;const t=H(b,s);i({placeholder:t}),M.current=t},[b,s]);const x=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(!s)return;if(""===r&&!x.current)return void(x.current=!0);const t="Text"===s?"first_name":s;if(!r||r.startsWith("field-")){const e=Math.floor(1e3*Math.random())+1;return void i({name:`${t}-${e}`})}const e=r.match(/^([A-Za-z_]+)-(\d+)$/);if(e&&e[1]!==t){const o=e[2];i({name:`${t}-${o}`})}},[s,r,i]);const k="registration"===f&&!1===y||"login"===f&&!1===y||"forget_password"===f&&!1===y||"subscription"===f&&!1===y;return s?.toLowerCase(),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",
4693 +children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsx)(V,{title:(0,L.__)("Input","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Field type","ablocks"),isResponsive:!1,options:NX,attributeName:"inputType",attributeValue:s,setAttributes:i,disabled:k}),(0,I.jsx)(_t,{label:(0,L.__)("Input Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:T,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:T,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:YX
4682 4694 }),"Email"===s&&!1===k&&(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,label:(0,L.__)("Email Type","ablocks"),options:[{label:(0,L.__)("Email","ablocks"),value:"email"},{label:(0,L.__)("Confirm Email","ablocks"),value:"confirm_email"}],attributeName:"emailType",attributeValue:m,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Name","ablocks"),attributeName:"name",setAttributes:t=>{t.name&&(t.name=t.name.replace(/\s+/g,"")),i(t)},attributeValue:r,isInline:!1,disabled:k,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:h,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Placeholder","ablocks"),attributeName:"placeholder",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),
4683 -attributeValue:n,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),n&&(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:g,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:c,setAttributes:i,attributeName:"showIcon",isResponsive:!1})]})}),c&&(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Icon","ablocks"),children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"inputIconSize",attributeValue:d,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:bX}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Space","ablocks"),attributeName:"inputIconSpace",attributeValue:p,setAttributes:i,isInline:!1,min:1,max:100,
4684 -step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:cX})]})]})]})})}(0,L.__)("Name","ablocks"),(0,L.__)("This field is required","ablocks"),(0,y.D$)("border",!0),(0,Ud.D$)("icon",{size:28}),(0,wY.D$)("emailType",!1,{value:"email"}),_r.Ay;const mX={UU:"ablocks/form-input",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},customName:{type:"string",default:""},label:{type:"string",default:"Name"},helperText:{type:"string",default:""},formType:{type:"string",default:""},errorMsg:{type:"string",default:"This field is required"},name:{type:"string",default:""},placeholder:{type:"string",default:"name"},inputType:{type:"string",default:""},isRequired:{type:"boolean",default:!0},nameChangeable:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:"#69727d"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,
4695 +attributeValue:n,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),n&&(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:g,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:c,setAttributes:i,attributeName:"showIcon",isResponsive:!1})]})}),c&&(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Icon","ablocks"),children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"inputIconSize",attributeValue:d,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:VX}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Space","ablocks"),attributeName:"inputIconSpace",attributeValue:p,setAttributes:i,isInline:!1,min:1,max:100,
4696 +step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:OX})]})]})]})})}(0,L.__)("Name","ablocks"),(0,L.__)("This field is required","ablocks"),(0,y.D$)("border",!0),(0,Ud.D$)("icon",{size:28}),(0,bX.D$)("emailType",!1,{value:"email"}),_r.Ay;const EX={UU:"ablocks/form-input",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},customName:{type:"string",default:""},label:{type:"string",default:"Name"},helperText:{type:"string",default:""},formType:{type:"string",default:""},errorMsg:{type:"string",default:"This field is required"},name:{type:"string",default:""},placeholder:{type:"string",default:"name"},inputType:{type:"string",default:""},isRequired:{type:"boolean",default:!0},nameChangeable:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:"#69727d"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,
4685 4697 commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",
4686 4698 topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},iconSvgPath:{type:"string",
4687 4699 default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"
4688 4700 },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",
@@ -4694,20 +4706,20 @@
4694 4706 imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,
4695 4707 videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",
4696 4708 yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,
4697 4709 maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{
4698 -animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function hX(t){const{attributes:e,setAttributes:i}=t,{block_id:o,placeholder:l,isRequired:n,name:s,inputType:r,label:b,showIcon:c,helperText:d,errorMsg:u,inputWidth:p}=e,m=lt(),h="Tablet"===m,g="Mobile"===m,{isDynamicEnabled:f,data:y}=id({attributeValue:s}),{isDynamicEnabled:T,data:H}=id({attributeValue:l}),{isDynamicEnabled:x,data:k}=id({attributeValue:b}),{isDynamicEnabled:v,data:_}=id({attributeValue:d
4710 +animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function FX(t){const{attributes:e,setAttributes:i}=t,{block_id:o,placeholder:l,isRequired:n,name:s,inputType:r,label:b,showIcon:c,helperText:d,errorMsg:u,inputWidth:p}=e,m=lt(),h="Tablet"===m,g="Mobile"===m,{isDynamicEnabled:f,data:y}=id({attributeValue:s}),{isDynamicEnabled:T,data:H}=id({attributeValue:l}),{isDynamicEnabled:x,data:k}=id({attributeValue:b}),{isDynamicEnabled:v,data:_}=id({attributeValue:d
4699 4711 }),{isDynamicEnabled:R,data:S}=id({attributeValue:u}),W=t=>(g?p?.valueMobile||p?.value:h&&p?.valueTablet||p?.value)===t?"ablocks-form-builder-toobar-button--active":"";(0,a.useEffect)(()=>{!function(t){const e=t?.querySelector(".ablocks-form-builder__input"),i=t?.getAttribute("data-required"),o=e?.getAttribute("type"),a=t?.querySelector(".ablocks-block-error-msg")?.textContent?.trim()||(0,L.__)("This field is required","ablocks"),l=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,n=/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/,s=t=>l.test(t),r=t=>n.test(t);e&&("true"===i&&e?.addEventListener("focusout",()=>{if(""===e.value.trim()){t.classList.add("error-msg");const e=t.querySelector(".ablocks-block-error-msg");e&&(e.textContent=a)}else if("email"!==o||s(e.value.trim())){if("url"===o&&!r(e.value.trim())){t.classList.add("error-msg");const e=t.querySelector(".ablocks-block-error-msg");e&&(e.textContent=(0,L.__)("Please enter a valid URL","ablocks"))}}else{t.classList.add("error-msg")
4700 4712 ;const e=t.querySelector(".ablocks-block-error-msg");e&&(e.textContent=(0,L.__)("Please enter a valid Email","ablocks"))}}),e?.addEventListener("input",()=>{if(""!==e.value.trim())if("email"!==o||s(e.value.trim()))if("url"!==o||r(e.value.trim())){t.classList.remove("error-msg");const e=t.querySelector(".ablocks-block-error-msg");e&&(e.textContent="true"===i?a:"")}else{t.classList.add("error-msg");const e=t.querySelector(".ablocks-block-error-msg");e&&(e.textContent=(0,L.__)("Please enter a valid URL","ablocks"))}else{t.classList.add("error-msg");const e=t.querySelector(".ablocks-block-error-msg");e&&(e.textContent=(0,L.__)("Please enter a valid Email","ablocks"))}else if("true"===i){t.classList.add("error-msg");const e=t.querySelector(".ablocks-block-error-msg");e&&(e.textContent=a)}else t.classList.remove("error-msg")}))}((0,M.bu)(`.ablocks-block-${o}`))},[o]);const P=t=>{const e=g?"Mobile":h?"Tablet":"Desktop",o={...p}
4701 4713 ;"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsxs)(N.Toolbar,{children:[(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,L.__)("100%","ablocks"),onClick:()=>P(100),className:W(100)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,L.__)("75%","ablocks"),onClick:()=>P(75),className:W(75)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,L.__)("50%","ablocks"),onClick:()=>P(50),className:W(50)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,L.__)("33%","ablocks"),onClick:()=>P(33),className:W(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>P(25),
4702 -className:W(25)})]})}),(0,I.jsxs)(sR,{blockId:o,name:mX.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:x?k:b}),(""!==d||""!==_)&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:v?_:d}),c&&(0,I.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,I.jsx)(Fd,{attributes:e})}),(0,I.jsx)("input",{className:`ablocks-form-builder__input ${c&&"ablocks-form-builder__input-show-icon"}`,placeholder:T?H:l,name:f?y:s,id:o,type:"username"===r.toLowerCase()?"text":"url"===r.toLowerCase()?"url":r.toLowerCase(),autoComplete:rX(f?y:s)}),n&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:R?S:u})]})]})}const gX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,
4703 -unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i},fX=t=>{const{inputIconSize:e}=t,i={};return e&&(i["font-size"]=`${e}px`),{...i}},yX=t=>({fill:(0,Hs.qD)(t?.iconColor)}),TX=t=>{const{inputIconSpace:e}=t,i={};return i["padding-left"]=`${e}px`,{...i}};(0,M.xV)(mX.UU,mX.$t[0])&&(0,o.registerBlockType)(mX.UU,{attributes:mX.uK,edit:function(t){const{attributes:e,clientId:i,setAttributes:o,isSelected:l}=t,{block_id:n}=e;(0,a.useEffect)(()=>{n&&n===i||o({block_id:i})},[n,i]);const s=new C(e,i);s.addClassStyles(`.ablocks-block--child-${n}`,gX(e),gX(e,"Tablet"),gX(e,"Mobile"),s.customDeviceMap(t=>gX(e,t))),l&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"
4704 -},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"}))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-show-icon",TX(e),TX(e),TX(e),s.customDeviceMap(t=>TX(e))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap",fX(e),fX(e),fX(e),s.customDeviceMap(t=>fX(e))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap .ablocks-svg-icon",yX(e),yX(e),yX(e),s.customDeviceMap(t=>yX(e)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),l&&(0,I.jsx)(pX,{...t}),(0,I.jsx)(hX,{...t})]})},save:function({attributes:t}){const{block_id:e,placeholder:i,isRequired:o,name:a,inputType:l,label:n,showIcon:s,helperText:r,errorMsg:b}=t;return(0,I.jsxs)(dR,{blockId:e,name:mX.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":o},children:[(0,I.jsx)("label",{
4705 -className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:n}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:r}),s&&(0,I.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,I.jsx)(Fd,{attributes:t})}),(0,I.jsx)("input",{className:`ablocks-form-builder__input ${s&&"ablocks-form-builder__input-show-icon"}`,placeholder:i,name:a,autoComplete:rX(a),id:e,type:"username"===l.toLowerCase()?"text":"url"===l.toLowerCase()?"url":l.toLowerCase()}),o&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:b})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--input"})});const HX=[{label:(0,L.__)("textarea","ablocks"),value:"textarea"},{label:(0,L.__)("bio","ablocks"),value:"bio"},{label:(0,L.__)("custom","ablocks"),value:"custom"}],MX=(0,Eb.D$)({attributeName:"textAreaRow",isResponsive:!1,defaultValue:5,copyStyle:!0}),xX=(0,Eb.D$)({attributeName:"inputWidth",
4706 -attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function kX(t){const{attributes:e,setAttributes:i}=t,{placeholder:o,isRequired:n,name:s,nameType:r,helperText:b,errorMsg:c,customName:d,inputWidth:u,label:p}=e;(0,a.useEffect)(()=>{!r&&HX.length>0&&i({nameType:HX[0].value})},[r,i]);const m=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if("Message"!==p||m.current||(i({label:" Message"}),m.current=!0),!r)return;if(""===s&&!m.current)return void(m.current=!0);const t=r;if(!s||s.startsWith("field-")){const e=Math.floor(1e3*Math.random())+1;return void i({name:`${t}-${e}`})}const e=s.match(/^([A-Za-z_]+)-(\d+)$/);if(e&&e[1]!==t){const o=e[2];i({name:`${t}-${o}`})}},[r,p,s,i]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{
4707 -className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0,I.jsx)(V,{title:(0,L.__)("Text Area","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Text Area Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:u,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:xX}),(0,I.jsx)(Ut,{label:(0,L.__)("Name Type","ablocks"),options:HX,isSearch:!0,attributeName:"nameType",attributeValue:r,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,
4708 -L.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:s,isInline:!1,disableDynamicContent:!0}),"custom"===r&&(0,I.jsx)(Kl,{label:(0,L.__)("Custom Name","ablocks"),attributeName:"customName",setAttributes:i,attributeValue:d,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:p,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Placeholder","ablocks"),attributeName:"placeholder",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Rows","ablocks"),min:1,max:100,step:1,isInline:!1,isResponsive:!1,attributeName:"textAreaRow",attributeValue:e?.textAreaRow,setAttributes:i,attributeDefaultValue:MX}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),attributeValue:n,
4709 -setAttributes:i,attributeName:"isRequired",isResponsive:!1}),n&&(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:c,isInline:!1,disableDynamicContent:!0})]})})})]})})}_r.Ay;const vX={UU:"ablocks/form-textarea",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},customName:{type:"string",default:""},name:{type:"string",default:""},helperText:{type:"string",default:""},nameType:{type:"string",default:""},errorMsg:{type:"string",default:"This field is required"},label:{type:"string",default:"Message"},isRequired:{type:"boolean",default:!0},placeholder:{type:"string",default:"Enter your message"},textAreaRow:{type:"number",default:5},inputWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",
4714 +className:W(25)})]})}),(0,I.jsxs)(mR,{blockId:o,name:EX.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:x?k:b}),(""!==d||""!==_)&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:v?_:d}),c&&(0,I.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,I.jsx)(Fd,{attributes:e})}),(0,I.jsx)("input",{className:`ablocks-form-builder__input ${c&&"ablocks-form-builder__input-show-icon"}`,placeholder:T?H:l,name:f?y:s,id:o,type:"username"===r.toLowerCase()?"text":"url"===r.toLowerCase()?"url":r.toLowerCase(),autoComplete:IX(f?y:s)}),n&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:R?S:u})]})]})}const qX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,
4715 +unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i},$X=t=>{const{inputIconSize:e}=t,i={};return e&&(i["font-size"]=`${e}px`),{...i}},GX=t=>({fill:(0,Hs.qD)(t?.iconColor)}),ZX=t=>{const{inputIconSpace:e}=t,i={};return i["padding-left"]=`${e}px`,{...i}};(0,M.xV)(EX.UU,EX.$t[0])&&(0,o.registerBlockType)(EX.UU,{attributes:EX.uK,edit:function(t){const{attributes:e,clientId:i,setAttributes:o,isSelected:l}=t,{block_id:n}=e;(0,a.useEffect)(()=>{n&&n===i||o({block_id:i})},[n,i]);const s=new C(e,i);s.addClassStyles(`.ablocks-block--child-${n}`,qX(e),qX(e,"Tablet"),qX(e,"Mobile"),s.customDeviceMap(t=>qX(e,t))),l&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"
4716 +},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"}))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-show-icon",ZX(e),ZX(e),ZX(e),s.customDeviceMap(t=>ZX(e))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap",$X(e),$X(e),$X(e),s.customDeviceMap(t=>$X(e))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap .ablocks-svg-icon",GX(e),GX(e),GX(e),s.customDeviceMap(t=>GX(e)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),l&&(0,I.jsx)(BX,{...t}),(0,I.jsx)(FX,{...t})]})},save:function({attributes:t}){const{block_id:e,placeholder:i,isRequired:o,name:a,inputType:l,label:n,showIcon:s,helperText:r,errorMsg:b}=t;return(0,I.jsxs)(yR,{blockId:e,name:EX.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":o},children:[(0,I.jsx)("label",{
4717 +className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:n}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:r}),s&&(0,I.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,I.jsx)(Fd,{attributes:t})}),(0,I.jsx)("input",{className:`ablocks-form-builder__input ${s&&"ablocks-form-builder__input-show-icon"}`,placeholder:i,name:a,autoComplete:IX(a),id:e,type:"username"===l.toLowerCase()?"text":"url"===l.toLowerCase()?"url":l.toLowerCase()}),o&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:b})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--input"})});const KX=[{label:(0,L.__)("textarea","ablocks"),value:"textarea"},{label:(0,L.__)("bio","ablocks"),value:"bio"},{label:(0,L.__)("custom","ablocks"),value:"custom"}],JX=(0,Eb.D$)({attributeName:"textAreaRow",isResponsive:!1,defaultValue:5,copyStyle:!0}),QX=(0,Eb.D$)({attributeName:"inputWidth",
4718 +attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function tB(t){const{attributes:e,setAttributes:i}=t,{placeholder:o,isRequired:n,name:s,nameType:r,helperText:b,errorMsg:c,customName:d,inputWidth:u,label:p}=e;(0,a.useEffect)(()=>{!r&&KX.length>0&&i({nameType:KX[0].value})},[r,i]);const m=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if("Message"!==p||m.current||(i({label:" Message"}),m.current=!0),!r)return;if(""===s&&!m.current)return void(m.current=!0);const t=r;if(!s||s.startsWith("field-")){const e=Math.floor(1e3*Math.random())+1;return void i({name:`${t}-${e}`})}const e=s.match(/^([A-Za-z_]+)-(\d+)$/);if(e&&e[1]!==t){const o=e[2];i({name:`${t}-${o}`})}},[r,p,s,i]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{
4719 +className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0,I.jsx)(V,{title:(0,L.__)("Text Area","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Text Area Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:u,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:QX}),(0,I.jsx)(Ut,{label:(0,L.__)("Name Type","ablocks"),options:KX,isSearch:!0,attributeName:"nameType",attributeValue:r,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,
4720 +L.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:s,isInline:!1,disableDynamicContent:!0}),"custom"===r&&(0,I.jsx)(Kl,{label:(0,L.__)("Custom Name","ablocks"),attributeName:"customName",setAttributes:i,attributeValue:d,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:p,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Placeholder","ablocks"),attributeName:"placeholder",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Rows","ablocks"),min:1,max:100,step:1,isInline:!1,isResponsive:!1,attributeName:"textAreaRow",attributeValue:e?.textAreaRow,setAttributes:i,attributeDefaultValue:JX}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),attributeValue:n,
4721 +setAttributes:i,attributeName:"isRequired",isResponsive:!1}),n&&(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:c,isInline:!1,disableDynamicContent:!0})]})})})]})})}_r.Ay;const eB={UU:"ablocks/form-textarea",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},customName:{type:"string",default:""},name:{type:"string",default:""},helperText:{type:"string",default:""},nameType:{type:"string",default:""},errorMsg:{type:"string",default:"This field is required"},label:{type:"string",default:"Message"},isRequired:{type:"boolean",default:!0},placeholder:{type:"string",default:"Enter your message"},textAreaRow:{type:"number",default:5},inputWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",
4710 4722 topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",
4711 4723 rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",
4712 4724 isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",
4713 4725 imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",
@@ -4714,15 +4726,15 @@
4714 4726 imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",
4715 4727 rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",
4716 4728 offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",
4717 4729 xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},
4718 -_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function _X(t){const{attributes:e,setAttributes:i}=t,{block_id:o,name:a,placeholder:l,isRequired:n,label:s,helperText:r,errorMsg:b,customName:c,inputWidth:d,textAreaRow:u}=e,p=lt(),m="Tablet"===p,h="Mobile"===p,g=t=>(h?d?.valueMobile||d?.value:m&&d?.valueTablet||d?.value)===t?"ablocks-form-builder-toobar-button--active":"",f=t=>{const e=h?"Mobile":m?"Tablet":"Desktop",o={...d};"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsxs)(N.Toolbar,{children:[(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,L.__)("100%","ablocks"),onClick:()=>f(100),className:g(100)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,
4719 -I.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,L.__)("75%","ablocks"),onClick:()=>f(75),className:g(75)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,L.__)("50%","ablocks"),onClick:()=>f(50),className:g(50)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,L.__)("33%","ablocks"),onClick:()=>f(33),className:g(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>f(25),className:g(25)})]})}),(0,I.jsxs)(sR,{blockId:o,name:vX.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:s}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),(0,I.jsx)("textarea",{
4720 -className:"ablocks-form-builder__input ablocks-form-builder__field__text",rows:u,placeholder:l,name:"custom"===a?c:a,id:o}),n&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:b})]})]})}const RX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i};(0,M.xV)(vX.UU,vX.$t[0])&&(0,o.registerBlockType)(vX.UU,{attributes:vX.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,RX(i),RX(i,"Tablet"),RX(i,"Mobile"),s.customDeviceMap(t=>RX(i,t))),
4721 -e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"})));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(kX,{...t}),(0,I.jsx)(_X,{...t})]})},save:function({attributes:t}){const{block_id:e,name:i,placeholder:o,isRequired:a,label:l,helperText:n,errorMsg:s,customName:r,textAreaRow:b}=t;return(0,I.jsxs)(dR,{blockId:e,name:vX.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":a},children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${a?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:l}),""!==n&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:n}),(0,I.jsx)("textarea",{
4722 -className:"ablocks-form-builder__input ablocks-form-builder__field__text",rows:b,placeholder:o,name:"custom"===i?r:i,id:e}),a&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:s})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--textarea"})});const SX=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function WX(t){const{attributes:e,setAttributes:i}=t,{isRequired:o,name:n,label:s,helperText:r,isChecked:b,errorMsg:c,inputWidth:d}=e,u=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if("Checkbox"!==s||u.current||(i({label:" Checkbox"}),u.current=!0),""!==n||u.current){if(!n||""===n.trim()||n.startsWith("MulSefield-")){const t=`Checkbox-${Math.floor(1e3*Math.random())+1}`;i({name:t})}}else u.current=!0},[n,s,i]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",
4723 -children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0,I.jsx)(V,{title:(0,L.__)("Checkbox","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Checkbox Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:d,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:d,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:SX}),(0,I.jsx)(Kl,{label:(0,L.__)("Name","ablocks"),attributeName:"name",setAttributes:i,
4724 -attributeValue:n,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:s,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:r,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Default Checked","ablocks"),attributeValue:b,setAttributes:i,attributeName:"isChecked",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),attributeValue:o,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),o&&(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:c,isInline:!1})]})})})]})})}(0,L.__)("Checkbox","ablocks"),(0,L.__)("This field is required","ablocks"),(0,L.__)("Enter your message","ablocks"),_r.Ay;const PX={UU:"ablocks/form-checkbox",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},label:{
4730 +_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function iB(t){const{attributes:e,setAttributes:i}=t,{block_id:o,name:a,placeholder:l,isRequired:n,label:s,helperText:r,errorMsg:b,customName:c,inputWidth:d,textAreaRow:u}=e,p=lt(),m="Tablet"===p,h="Mobile"===p,g=t=>(h?d?.valueMobile||d?.value:m&&d?.valueTablet||d?.value)===t?"ablocks-form-builder-toobar-button--active":"",f=t=>{const e=h?"Mobile":m?"Tablet":"Desktop",o={...d};"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsxs)(N.Toolbar,{children:[(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,L.__)("100%","ablocks"),onClick:()=>f(100),className:g(100)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,
4731 +I.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,L.__)("75%","ablocks"),onClick:()=>f(75),className:g(75)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,L.__)("50%","ablocks"),onClick:()=>f(50),className:g(50)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,L.__)("33%","ablocks"),onClick:()=>f(33),className:g(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>f(25),className:g(25)})]})}),(0,I.jsxs)(mR,{blockId:o,name:eB.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:s}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),(0,I.jsx)("textarea",{
4732 +className:"ablocks-form-builder__input ablocks-form-builder__field__text",rows:u,placeholder:l,name:"custom"===a?c:a,id:o}),n&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:b})]})]})}const oB=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i};(0,M.xV)(eB.UU,eB.$t[0])&&(0,o.registerBlockType)(eB.UU,{attributes:eB.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,oB(i),oB(i,"Tablet"),oB(i,"Mobile"),s.customDeviceMap(t=>oB(i,t))),
4733 +e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"})));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(tB,{...t}),(0,I.jsx)(iB,{...t})]})},save:function({attributes:t}){const{block_id:e,name:i,placeholder:o,isRequired:a,label:l,helperText:n,errorMsg:s,customName:r,textAreaRow:b}=t;return(0,I.jsxs)(yR,{blockId:e,name:eB.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":a},children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${a?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:l}),""!==n&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:n}),(0,I.jsx)("textarea",{
4734 +className:"ablocks-form-builder__input ablocks-form-builder__field__text",rows:b,placeholder:o,name:"custom"===i?r:i,id:e}),a&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:s})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--textarea"})});const aB=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function lB(t){const{attributes:e,setAttributes:i}=t,{isRequired:o,name:n,label:s,helperText:r,isChecked:b,errorMsg:c,inputWidth:d}=e,u=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if("Checkbox"!==s||u.current||(i({label:" Checkbox"}),u.current=!0),""!==n||u.current){if(!n||""===n.trim()||n.startsWith("MulSefield-")){const t=`Checkbox-${Math.floor(1e3*Math.random())+1}`;i({name:t})}}else u.current=!0},[n,s,i]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",
4735 +children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0,I.jsx)(V,{title:(0,L.__)("Checkbox","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Checkbox Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:d,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:d,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:aB}),(0,I.jsx)(Kl,{label:(0,L.__)("Name","ablocks"),attributeName:"name",setAttributes:i,
4736 +attributeValue:n,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:s,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:r,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Default Checked","ablocks"),attributeValue:b,setAttributes:i,attributeName:"isChecked",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),attributeValue:o,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),o&&(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:c,isInline:!1})]})})})]})})}(0,L.__)("Checkbox","ablocks"),(0,L.__)("This field is required","ablocks"),(0,L.__)("Enter your message","ablocks"),_r.Ay;const nB={UU:"ablocks/form-checkbox",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},label:{
4725 4737 type:"string",default:"Checkbox"},errorMsg:{type:"string",default:"This field is required"},helperText:{type:"string",default:""},inputType:{type:"string",default:""},name:{type:"string",default:""},isRequired:{type:"boolean",default:!1},isChecked:{type:"boolean",default:!1},placeholder:{type:"string",default:"Enter your message"},inputWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",
4726 4738 commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",
4727 4739 topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",
4728 4740 unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",
@@ -4729,18 +4741,18 @@
4729 4741 imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",
4730 4742 imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",
4731 4743 scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",
4732 4744 skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",
4733 -shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function UX(t){const{attributes:e,setAttributes:i}=t,{block_id:o,name:l,isRequired:n,label:s,helperText:r,isChecked:b,errorMsg:c,inputWidth:d,inputType:u}=e;(0,a.useEffect)(()=>{
4745 +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function sB(t){const{attributes:e,setAttributes:i}=t,{block_id:o,name:l,isRequired:n,label:s,helperText:r,isChecked:b,errorMsg:c,inputWidth:d,inputType:u}=e;(0,a.useEffect)(()=>{
4734 4746 ""!==u&&i({inputType:"checkbox"})},[]);const p=lt(),m="Tablet"===p,h="Mobile"===p,g=t=>(h?d?.valueMobile||d?.value:m&&d?.valueTablet||d?.value)===t?"ablocks-form-builder-toobar-button--active":"",f=t=>{const e=h?"Mobile":m?"Tablet":"Desktop",o={...d};"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsxs)(N.Toolbar,{children:[(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,L.__)("100%","ablocks"),onClick:()=>f(100),className:g(100)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,L.__)("75%","ablocks"),onClick:()=>f(75),className:g(75)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,L.__)("50%","ablocks"),onClick:()=>f(50),className:g(50)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{
4735 -className:"icon-33",children:"33%"}),label:(0,L.__)("33%","ablocks"),onClick:()=>f(33),className:g(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>f(25),className:g(25)})]})}),(0,I.jsxs)(sR,{blockId:o,name:PX.UU,attributes:e,className:"ablocks-form-builder__field ablocks-form-builder__checkbox",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__field__content",children:[(0,I.jsx)("input",{type:u||"checkbox",checked:b,name:l,id:`${s.toLowerCase().replace(/ /g,"_")}_${o}`}),(0,I.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:`${s.toLowerCase().replace(/ /g,"_")}_${o}`,children:s})]}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),n&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:c})]})]})}const jX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({
4736 -attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i};(0,M.xV)(PX.UU,PX.$t[0])&&(0,o.registerBlockType)(PX.UU,{attributes:PX.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,jX(i),jX(i,"Tablet"),jX(i,"Mobile"),s.customDeviceMap(t=>jX(i,t))),e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"})))
4737 -;const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(WX,{...t}),(0,I.jsx)(UX,{...t})]})},save:function({attributes:t}){const{block_id:e,label:i,isRequired:o,helperText:a,isChecked:l,errorMsg:n,name:s,inputType:r}=t;return(0,I.jsxs)(dR,{blockId:e,name:PX.UU,attributes:t,className:"ablocks-form-builder__field ablocks-form-builder__checkbox",blockProps:{"data-required":o},children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__field__content",children:[(0,I.jsx)("input",{type:"checkbox",checked:l,name:s,id:`${i.toLowerCase().replace(/ /g,"_")}_${e}`}),(0,I.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:`${i.toLowerCase().replace(/ /g,"_")}_${e}`,children:i})]}),""!==a&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:a}),o&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:n})]})},icon:(0,I.jsx)("span",{
4738 -className:"ablocks-icon ablocks-icon--checkbox"})});const wX=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function zX(t){const{attributes:e,setAttributes:i}=t,{isRequired:o,label:n,name:s,options:r,helperText:b,inputWidth:c}=e,[d,u]=(0,a.useState)(""),p=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if("What's your favorite programming lang?"!==n||p.current||(i({label:" What's your favorite programming lang? "}),p.current=!0),""!==s||p.current){if(!s||""===s.trim()||s.startsWith("field-")){const t=`Select-${Math.floor(1e3*Math.random())+1}`;i({name:t})}}else p.current=!0},[s,n,i]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,
4739 -L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0,I.jsxs)(V,{title:(0,L.__)("Select","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Select Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:c,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:c,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:wX}),(0,I.jsx)(Kl,{label:(0,L.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:s,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:n,isInline:!1,
4747 +className:"icon-33",children:"33%"}),label:(0,L.__)("33%","ablocks"),onClick:()=>f(33),className:g(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>f(25),className:g(25)})]})}),(0,I.jsxs)(mR,{blockId:o,name:nB.UU,attributes:e,className:"ablocks-form-builder__field ablocks-form-builder__checkbox",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__field__content",children:[(0,I.jsx)("input",{type:u||"checkbox",checked:b,name:l,id:`${s.toLowerCase().replace(/ /g,"_")}_${o}`}),(0,I.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:`${s.toLowerCase().replace(/ /g,"_")}_${o}`,children:s})]}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),n&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:c})]})]})}const rB=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({
4748 +attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i};(0,M.xV)(nB.UU,nB.$t[0])&&(0,o.registerBlockType)(nB.UU,{attributes:nB.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,rB(i),rB(i,"Tablet"),rB(i,"Mobile"),s.customDeviceMap(t=>rB(i,t))),e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"})))
4749 +;const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(lB,{...t}),(0,I.jsx)(sB,{...t})]})},save:function({attributes:t}){const{block_id:e,label:i,isRequired:o,helperText:a,isChecked:l,errorMsg:n,name:s,inputType:r}=t;return(0,I.jsxs)(yR,{blockId:e,name:nB.UU,attributes:t,className:"ablocks-form-builder__field ablocks-form-builder__checkbox",blockProps:{"data-required":o},children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__field__content",children:[(0,I.jsx)("input",{type:"checkbox",checked:l,name:s,id:`${i.toLowerCase().replace(/ /g,"_")}_${e}`}),(0,I.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:`${i.toLowerCase().replace(/ /g,"_")}_${e}`,children:i})]}),""!==a&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:a}),o&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:n})]})},icon:(0,I.jsx)("span",{
4750 +className:"ablocks-icon ablocks-icon--checkbox"})});const bB=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function cB(t){const{attributes:e,setAttributes:i}=t,{isRequired:o,label:n,name:s,options:r,helperText:b,inputWidth:c}=e,[d,u]=(0,a.useState)(""),p=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if("What's your favorite programming lang?"!==n||p.current||(i({label:" What's your favorite programming lang? "}),p.current=!0),""!==s||p.current){if(!s||""===s.trim()||s.startsWith("field-")){const t=`Select-${Math.floor(1e3*Math.random())+1}`;i({name:t})}}else p.current=!0},[s,n,i]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,
4751 +L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0,I.jsxs)(V,{title:(0,L.__)("Select","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Select Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:c,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:c,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:bB}),(0,I.jsx)(Kl,{label:(0,L.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:s,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:n,isInline:!1,
4740 4752 disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),attributeValue:o,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(r),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({options:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsx)("div",{ref:t.innerRef,...t.droppableProps,children:r.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t.id}`,index:e,children:e=>(0,I.jsxs)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-select",children:[(0,I.jsxs)("div",{className:"ablocks-editor-select__wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-editor-select__content-wrapper",role:"presentation",onClick:()=>(t=>{const e=r.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{
4741 4753 ...e,isOpen:!1});i({options:e})})(t?.id),children:[(0,I.jsx)("span",{className:"ablocks-editor-select__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,I.jsx)("span",{className:"ablocks-select-text",children:t.value})]}),(0,I.jsx)("div",{className:"ablocks-editor-select__options-wrapper",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",role:"presentation",onKeyDown:()=>{},onClick:()=>{return e=t?.id,void i({options:r.filter(t=>t.id!==e)});var e}})})]}),t?.isOpen&&(0,I.jsx)("div",{className:"ablocks-editor-select__inner-content",children:(0,I.jsx)(le,{label:(0,L.__)("Text","ablocks"),attributeValue:t?.value,setAttributes:i,onChangeHandler:e=>((t,e,o)=>{const a=r.map(i=>i.id===t?{...i,[o]:e}:i);i({options:a})})(t?.id,e,"value"),placeholder:(0,L.__)("Enter your text","ablocks")})})]})},t.id))})})}),(0,I.jsxs)("div",{className:"ablocks-editor-select__new-option",children:[(0,I.jsx)("input",{value:d,onChange:t=>{u(t.target.value)}
4742 -}),(0,I.jsx)("button",{onClick:()=>{const t=r.length>0?r.reduce((t,e)=>t.id>e.id?t:e):void 0,e={id:t?t.id+1:1,value:d};i({options:[...r,e]}),u("")},children:(0,L.__)("Add","ablocks")})]})]})})]})})}_r.Ay;const CX={UU:"ablocks/form-select",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},label:{type:"string",default:"What's your favorite programming lang?"},name:{type:"string",default:""},helperText:{type:"string",default:""},isRequired:{type:"boolean",default:!0},errorMsg:{type:"string",default:"This field is required"},options:{type:"array",default:[{id:1,value:"javascript"}]},inputWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",
4754 +}),(0,I.jsx)("button",{onClick:()=>{const t=r.length>0?r.reduce((t,e)=>t.id>e.id?t:e):void 0,e={id:t?t.id+1:1,value:d};i({options:[...r,e]}),u("")},children:(0,L.__)("Add","ablocks")})]})]})})]})})}_r.Ay;const dB={UU:"ablocks/form-select",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},label:{type:"string",default:"What's your favorite programming lang?"},name:{type:"string",default:""},helperText:{type:"string",default:""},isRequired:{type:"boolean",default:!0},errorMsg:{type:"string",default:"This field is required"},options:{type:"array",default:[{id:1,value:"javascript"}]},inputWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",
4743 4755 bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",
4744 4756 leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",
4745 4757 commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",
4746 4758 imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",
@@ -4747,15 +4759,15 @@
4747 4759 imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",
4748 4760 offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",
4749 4761 offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",
4750 4762 yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},
4751 -_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function AX(t){const{attributes:e,setAttributes:i}=t,{block_id:o,name:a,isRequired:l,label:n,options:s,helperText:r,errorMsg:b,inputWidth:c}=e,d=lt(),u="Tablet"===d,p="Mobile"===d,m=t=>(p?c?.valueMobile||c?.value:u&&c?.valueTablet||c?.value)===t?"ablocks-form-builder-toobar-button--active":"",h=t=>{const e=p?"Mobile":u?"Tablet":"Desktop",o={...c};"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsxs)(N.Toolbar,{children:[(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,L.__)("100%","ablocks"),onClick:()=>h(100),className:m(100)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,L.__)("75%","ablocks"),onClick:()=>h(75),className:m(75)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,
4752 -I.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,L.__)("50%","ablocks"),onClick:()=>h(50),className:m(50)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,L.__)("33%","ablocks"),onClick:()=>h(33),className:m(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>h(25),className:m(25)})]})}),(0,I.jsxs)(sR,{blockId:o,name:CX.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${l?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:n}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),(0,I.jsx)("select",{name:a,id:o,className:"ablocks-form-builder__select",children:s?.map(t=>(0,I.jsxs)("option",{value:t.value,children:[" ",t.value," "]},t?.value))}),l&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:b})]
4753 -})]})}const LX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i};function DX(t){const{attributes:e,setAttributes:i}=t,{steps:n,block_id:s}=e,b=(0,r.useDispatch)(),[c,d]=(0,a.useState)(""),{insertBlock:u,removeBlock:p}=wp.blockEditor?b("core/block-editor"):b("core/editor"),{getBlockOrder:m}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor");return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,
4763 +_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function uB(t){const{attributes:e,setAttributes:i}=t,{block_id:o,name:a,isRequired:l,label:n,options:s,helperText:r,errorMsg:b,inputWidth:c}=e,d=lt(),u="Tablet"===d,p="Mobile"===d,m=t=>(p?c?.valueMobile||c?.value:u&&c?.valueTablet||c?.value)===t?"ablocks-form-builder-toobar-button--active":"",h=t=>{const e=p?"Mobile":u?"Tablet":"Desktop",o={...c};"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsxs)(N.Toolbar,{children:[(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,L.__)("100%","ablocks"),onClick:()=>h(100),className:m(100)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,L.__)("75%","ablocks"),onClick:()=>h(75),className:m(75)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,
4764 +I.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,L.__)("50%","ablocks"),onClick:()=>h(50),className:m(50)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,L.__)("33%","ablocks"),onClick:()=>h(33),className:m(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>h(25),className:m(25)})]})}),(0,I.jsxs)(mR,{blockId:o,name:dB.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${l?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:n}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),(0,I.jsx)("select",{name:a,id:o,className:"ablocks-form-builder__select",children:s?.map(t=>(0,I.jsxs)("option",{value:t.value,children:[" ",t.value," "]},t?.value))}),l&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:b})]
4765 +})]})}const pB=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i};function mB(t){const{attributes:e,setAttributes:i}=t,{steps:n,block_id:s}=e,b=(0,r.useDispatch)(),[c,d]=(0,a.useState)(""),{insertBlock:u,removeBlock:p}=wp.blockEditor?b("core/block-editor"):b("core/editor"),{getBlockOrder:m}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor");return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,
4754 4766 I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Multi step","ablocks"),children:[n.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-editor-multi-step",children:[(0,I.jsxs)("div",{className:"ablocks-editor-multi-step__wrapper",role:"presentation",children:[(0,I.jsx)("div",{className:"ablocks-editor-multi-step__content-wrapper",role:"presentation",onClick:()=>(t=>{const e=n.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({steps:e})})(t?.id),children:(0,I.jsx)("span",{className:"ablocks-select-text",children:t.value})}),(0,I.jsx)("div",{
4755 4767 className:"ablocks-editor-multi-step__options-wrapper",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",role:"presentation",onClick:()=>(t=>{const e=m(s);p(e[t],!1);const o=n.filter((e,i)=>i!==t);i({steps:o})})(e)})})]}),t?.isOpen&&(0,I.jsx)("div",{className:"ablocks-editor-select__inner-content",children:(0,I.jsx)(le,{label:(0,L.__)("Text","ablocks"),attributeValue:t?.value,setAttributes:i,onChangeHandler:e=>((t,e,o)=>{const a=n.map(i=>i.id===t?{...i,[o]:e}:i);i({steps:a})})(t?.id,e,"value"),placeholder:(0,L.__)("Enter your text","ablocks")})})]},e)),(0,I.jsxs)("div",{className:"ablocks-editor-multi-step__new-option",children:[(0,I.jsx)("input",{value:c,onChange:t=>d(t.target.value)}),(0,I.jsx)("button",{onClick:()=>{const t=n.length>0?n.reduce((t,e)=>t.id>e.id?t:e):void 0,e={id:t?t.id+1:1,value:c},a=(0,o.createBlock)("ablocks/form-multi-step-child");u(a,e.id,s),i({steps:[...n,e]}),d("")},children:(0,L.__)("Add","ablocks")})]})]})]})})})}(0,
4756 -M.xV)(CX.UU,CX.$t[0])&&(0,o.registerBlockType)(CX.UU,{attributes:CX.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,LX(i),LX(i,"Tablet"),LX(i,"Mobile"),s.customDeviceMap(t=>LX(i,t))),e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"})));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(zX,{...t}),(0,I.jsx)(AX,{...t})]})},save:function({attributes:t}){const{block_id:e,name:i,isRequired:o,options:a,label:l,helperText:n,errorMsg:s}=t;return(0,I.jsxs)(dR,{blockId:e,name:CX.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{
4757 -"data-required":o},children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:l}),""!==n&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:n}),(0,I.jsxs)("div",{children:[(0,I.jsx)("select",{name:i||e,id:e,className:"ablocks-form-builder__select",children:a?.map(t=>(0,I.jsxs)("option",{value:t.value,children:[" ",t.value," "]},t?.value))}),o&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:s})]})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--select"})});const NX=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],IX=((0,L.__)("Contact form","ablocks"),(0,L.__)("Subscription form","ablocks"),(0,
4768 +M.xV)(dB.UU,dB.$t[0])&&(0,o.registerBlockType)(dB.UU,{attributes:dB.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,pB(i),pB(i,"Tablet"),pB(i,"Mobile"),s.customDeviceMap(t=>pB(i,t))),e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"})));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(cB,{...t}),(0,I.jsx)(uB,{...t})]})},save:function({attributes:t}){const{block_id:e,name:i,isRequired:o,options:a,label:l,helperText:n,errorMsg:s}=t;return(0,I.jsxs)(yR,{blockId:e,name:dB.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{
4769 +"data-required":o},children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:l}),""!==n&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:n}),(0,I.jsxs)("div",{children:[(0,I.jsx)("select",{name:i||e,id:e,className:"ablocks-form-builder__select",children:a?.map(t=>(0,I.jsxs)("option",{value:t.value,children:[" ",t.value," "]},t?.value))}),o&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:s})]})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--select"})});const hB=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],gB=((0,L.__)("Contact form","ablocks"),(0,L.__)("Subscription form","ablocks"),(0,
4758 4770 L.__)("RSVP form","ablocks"),(0,L.__)("Blank","ablocks"),{UU:"ablocks/form-multi-step",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},steps:{type:"array",default:[{id:1,value:"Step One"}]},submitButtonText:{type:"string",default:"Submit"},submitButtonSize:{type:"string",default:"default"},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",
4759 4771 widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",
4760 4772 leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",
4761 4773 positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",
@@ -4762,17 +4774,17 @@
4762 4774 imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",
4763 4775 videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,
4764 4776 flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",
4765 4777 yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",
4766 -blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}}),VX=class{constructor(t,e=!1){const i=t.querySelector(".ablocks-form-multi-step"),o=i.getAttribute("data-step");this.totalSteps=o,this.submitText=i.dataset.submitText||"Submit",this.editor=e,this.childElements=t.querySelectorAll(".ablocks-form-multi-step-child"),
4778 +blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}}),fB=class{constructor(t,e=!1){const i=t.querySelector(".ablocks-form-multi-step"),o=i.getAttribute("data-step");this.totalSteps=o,this.submitText=i.dataset.submitText||"Submit",this.editor=e,this.childElements=t.querySelectorAll(".ablocks-form-multi-step-child"),
4767 4779 this.formStepsBtn=t?.querySelectorAll(".ablocks-form-multi-step__step-wrapper"),this.currentActive=0;const a=t?.querySelector(".ablocks-form-multi-step__prev-btn");this.prevButton=a;const l=t?.querySelector(".ablocks-form-multi-step__next-btn");this.nextButton=l,this.handleCurrentActive(0),a?.addEventListener("click",()=>this.handlePrevClick(0)),l?.addEventListener("click",()=>this.handleNextClick(0))}handleCurrentActive=function(t){1===Number(this.totalSteps)||this.currentActive+1===Number(this.totalSteps)?(this.nextButton.type="button",this.nextButton.innerText=(0,L.__)("Submit","ablocks"),this.nextButton.innerText=this.submitText):(this.nextButton.innerText=(0,L.__)("Next 🡢","ablocks"),this.nextButton.type="button"),0===t&&this.prevButton?this.prevButton.style.display="none":t>0&&this.prevButton&&(this.prevButton.style.display="block"),this.formStepsBtn?.forEach(t=>t.classList.remove("ablocks-form-multi-step__step--active")),
4768 4780 this.formStepsBtn[t]?.classList.add("ablocks-form-multi-step__step--active"),this.childElements?.forEach(t=>t.classList.remove("ablocks-form-multi-step-child--active")),this.childElements[t]?.classList.add("ablocks-form-multi-step-child--active")};updateSubmitText=function(t){this.submitText=t||"Submit",this.handleCurrentActive(this.currentActive)};handlePrevClick=function(){this.currentActive-=1,this.handleCurrentActive(this.currentActive)};handleNextClick=function(){if(this.currentActive+1>=Number(this.totalSteps))return void(!1===this.editor&&(this.nextButton.type="submit"));const t=this.childElements[this.currentActive].querySelectorAll(".ablocks-form-builder__field");let e=!0;t.forEach(t=>{
4769 -const i="true"===t.getAttribute("data-required"),o=t.querySelector("input, textarea"),a=t.querySelector("select"),l=t.querySelector('input[type="checkbox"]'),n=t.querySelector('input[type="radio"]'),s=t.querySelectorAll(".ablocks-form-builder__radio-option"),r=t.querySelector('input[type="radio"]:checked');if(s?.length>=1){const o=parseInt(t?.getAttribute("data-minimum-value")),a=parseInt(t?.getAttribute("data-maximum-value")),l=Array.from(s).filter(t=>t.classList.contains("checked")).length;(o>l&&i||a<l&&i||i&&l<1)&&(e=!1)}i&&(l&&!l.checked||n&&!r||o&&""===o.value.trim()||a&&""===a.value)&&(e=!1),t.classList.toggle("error-msg",!e)}),e&&(this.currentActive+=1,this.handleCurrentActive(this.currentActive))}};function OX(t){const{attributes:e,setAttributes:i}=t,{block_id:o,alignment:n,steps:s,submitButtonText:b,submitButtonSize:c}=e,d=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/form-multi-step-child"],template:[["ablocks/form-multi-step-child"]],renderAppender:!1}),u=(0,
4770 -r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]).length,p=(0,a.useRef)(null);return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${o}`);u>0&&null!==t&&(p.current=new VX(t,!0))},[s,u]),(0,a.useEffect)(()=>{p.current?.updateSubmitText(b)},[b]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:n,setAttributes:i,options:NX})}),(0,I.jsxs)(sR,{blockId:o,name:IX.UU,attributes:e,children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step","data-step":s.length,"data-submit-text":b,children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__progress",children:s?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step-wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step ",children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__step-number",children:e+1}),(0,I.jsx)("span",{className:"ablocks-form-multi-step__step-title",children:t.value})]}),(0,I.jsx)("div",{
4771 -className:"ablocks-form-multi-step__divider",children:">"})]},t.id))}),(0,I.jsx)("div",{...d})]}),(0,I.jsxs)("div",{className:"ablocks-form-multi-step__btns",children:[(0,I.jsxs)("button",{type:"button",className:"ablocks-form-multi-step__prev-btn",children:["<-"," ",(0,L.__)("Back","ablocks")]}),(0,I.jsxs)("button",{type:"button",className:`ablocks-form-multi-step__next-btn ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${c}`,children:[(0,L.__)("Next","ablocks")," ","->"]})]})]})]})}function YX(t){const{attributes:e,setAttributes:i}=t;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,
4772 -L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{})]})})})}(0,M.xV)(IX.UU,IX.$t[0])&&(0,o.registerBlockType)(IX.UU,{attributes:IX.uK,icon:(0,I.jsx)("svg",{stroke:"currentColor",fill:"#E033EE",strokeWidth:"0",viewBox:"0 0 448 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4773 -d:"M448 75.2v361.7c0 24.3-19 43.2-43.2 43.2H43.2C19.3 480 0 461.4 0 436.8V75.2C0 51.1 18.8 32 43.2 32h361.7c24 0 43.1 18.8 43.1 43.2zm-37.3 361.6V75.2c0-3-2.6-5.8-5.8-5.8h-9.3L285.3 144 224 94.1 162.8 144 52.5 69.3h-9.3c-3.2 0-5.8 2.8-5.8 5.8v361.7c0 3 2.6 5.8 5.8 5.8h361.7c3.2.1 5.8-2.7 5.8-5.8zM150.2 186v37H76.7v-37h73.5zm0 74.4v37.3H76.7v-37.3h73.5zm11.1-147.3l54-43.7H96.8l64.5 43.7zm210 72.9v37h-196v-37h196zm0 74.4v37.3h-196v-37.3h196zm-84.6-147.3l64.5-43.7H232.8l53.9 43.7zM371.3 335v37.3h-99.4V335h99.4z"})}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l).generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(DX,{...t}),(0,I.jsx)(OX,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i,steps:o,submitButtonText:a,submitButtonSize:n}=e,s=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,
4774 -I.jsx)(dR,{blockId:i,name:IX.UU,attributes:e,children:(0,I.jsxs)("form",{children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step","data-step":o.length,"data-submit-text":a,children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__progress",children:o?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step-wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step ",children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__step-number",children:e+1}),(0,I.jsx)("span",{className:"ablocks-form-multi-step__step-title",children:t.value})]}),(0,I.jsx)("div",{className:"ablocks-form-multi-step__divider",children:">"})]},t.id))}),(0,I.jsx)("div",{...s})]}),(0,I.jsxs)("div",{className:"ablocks-form-multi-step__btns",children:[(0,I.jsxs)("button",{className:"ablocks-form-multi-step__prev-btn",children:["<-"," ",(0,L.__)("Back","ablocks")]}),(0,I.jsxs)("button",{className:"ablocks-form-multi-step__next-btn",children:[(0,
4781 +const i="true"===t.getAttribute("data-required"),o=t.querySelector("input, textarea"),a=t.querySelector("select"),l=t.querySelector('input[type="checkbox"]'),n=t.querySelector('input[type="radio"]'),s=t.querySelectorAll(".ablocks-form-builder__radio-option"),r=t.querySelector('input[type="radio"]:checked');if(s?.length>=1){const o=parseInt(t?.getAttribute("data-minimum-value")),a=parseInt(t?.getAttribute("data-maximum-value")),l=Array.from(s).filter(t=>t.classList.contains("checked")).length;(o>l&&i||a<l&&i||i&&l<1)&&(e=!1)}i&&(l&&!l.checked||n&&!r||o&&""===o.value.trim()||a&&""===a.value)&&(e=!1),t.classList.toggle("error-msg",!e)}),e&&(this.currentActive+=1,this.handleCurrentActive(this.currentActive))}};function yB(t){const{attributes:e,setAttributes:i}=t,{block_id:o,alignment:n,steps:s,submitButtonText:b,submitButtonSize:c}=e,d=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/form-multi-step-child"],template:[["ablocks/form-multi-step-child"]],renderAppender:!1}),u=(0,
4782 +r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]).length,p=(0,a.useRef)(null);return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${o}`);u>0&&null!==t&&(p.current=new fB(t,!0))},[s,u]),(0,a.useEffect)(()=>{p.current?.updateSubmitText(b)},[b]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:n,setAttributes:i,options:hB})}),(0,I.jsxs)(mR,{blockId:o,name:gB.UU,attributes:e,children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step","data-step":s.length,"data-submit-text":b,children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__progress",children:s?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step-wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step ",children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__step-number",children:e+1}),(0,I.jsx)("span",{className:"ablocks-form-multi-step__step-title",children:t.value})]}),(0,I.jsx)("div",{
4783 +className:"ablocks-form-multi-step__divider",children:">"})]},t.id))}),(0,I.jsx)("div",{...d})]}),(0,I.jsxs)("div",{className:"ablocks-form-multi-step__btns",children:[(0,I.jsxs)("button",{type:"button",className:"ablocks-form-multi-step__prev-btn",children:["<-"," ",(0,L.__)("Back","ablocks")]}),(0,I.jsxs)("button",{type:"button",className:`ablocks-form-multi-step__next-btn ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${c}`,children:[(0,L.__)("Next","ablocks")," ","->"]})]})]})]})}function TB(t){const{attributes:e,setAttributes:i}=t;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,
4784 +L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{})]})})})}(0,M.xV)(gB.UU,gB.$t[0])&&(0,o.registerBlockType)(gB.UU,{attributes:gB.uK,icon:(0,I.jsx)("svg",{stroke:"currentColor",fill:"#E033EE",strokeWidth:"0",viewBox:"0 0 448 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4785 +d:"M448 75.2v361.7c0 24.3-19 43.2-43.2 43.2H43.2C19.3 480 0 461.4 0 436.8V75.2C0 51.1 18.8 32 43.2 32h361.7c24 0 43.1 18.8 43.1 43.2zm-37.3 361.6V75.2c0-3-2.6-5.8-5.8-5.8h-9.3L285.3 144 224 94.1 162.8 144 52.5 69.3h-9.3c-3.2 0-5.8 2.8-5.8 5.8v361.7c0 3 2.6 5.8 5.8 5.8h361.7c3.2.1 5.8-2.7 5.8-5.8zM150.2 186v37H76.7v-37h73.5zm0 74.4v37.3H76.7v-37.3h73.5zm11.1-147.3l54-43.7H96.8l64.5 43.7zm210 72.9v37h-196v-37h196zm0 74.4v37.3h-196v-37.3h196zm-84.6-147.3l64.5-43.7H232.8l53.9 43.7zM371.3 335v37.3h-99.4V335h99.4z"})}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l).generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(mB,{...t}),(0,I.jsx)(yB,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i,steps:o,submitButtonText:a,submitButtonSize:n}=e,s=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,
4786 +I.jsx)(yR,{blockId:i,name:gB.UU,attributes:e,children:(0,I.jsxs)("form",{children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step","data-step":o.length,"data-submit-text":a,children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__progress",children:o?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step-wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step ",children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__step-number",children:e+1}),(0,I.jsx)("span",{className:"ablocks-form-multi-step__step-title",children:t.value})]}),(0,I.jsx)("div",{className:"ablocks-form-multi-step__divider",children:">"})]},t.id))}),(0,I.jsx)("div",{...s})]}),(0,I.jsxs)("div",{className:"ablocks-form-multi-step__btns",children:[(0,I.jsxs)("button",{className:"ablocks-form-multi-step__prev-btn",children:["<-"," ",(0,L.__)("Back","ablocks")]}),(0,I.jsxs)("button",{className:"ablocks-form-multi-step__next-btn",children:[(0,
4775 4787 L.__)("Next","ablocks")," ","->"]}),(0,I.jsxs)("button",{className:`ablocks-form-multi-step__next-btn ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${n}`,children:["Next ","->"]})]})]})})})},deprecated:[{attributes:{block_id:{type:"string",default:""},steps:{type:"array",default:[{id:1,value:"Step One"}]},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{
4776 4788 widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",
4777 4789 bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{
4778 4790 positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",
@@ -4779,11 +4791,11 @@
4779 4791 imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",
4780 4792 transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",
4781 4793 flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",
4782 4794 yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",
4783 -spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}},save:function(t){const{attributes:e}=t,{block_id:i,steps:o}=e,a=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:IX.UU,attributes:e,children:(0,I.jsxs)("form",{children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step","data-step":o.length,children:[(0,I.jsx)("div",{
4784 -className:"ablocks-form-multi-step__progress",children:o?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step-wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step ",children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__step-number",children:e+1}),(0,I.jsx)("span",{className:"ablocks-form-multi-step__step-title",children:t.value})]}),(0,I.jsx)("div",{className:"ablocks-form-multi-step__divider",children:">"})]},t.id))}),(0,I.jsx)("div",{...a})]}),(0,I.jsxs)("div",{className:"ablocks-form-multi-step__btns",children:[(0,I.jsxs)("button",{className:"ablocks-form-multi-step__prev-btn",children:["<-"," Back"]}),(0,I.jsxs)("button",{className:"ablocks-form-multi-step__next-btn",children:["Next ","->"]})]})]})})})},migrate:t=>({...t,submitButtonText:"Submit",submitButtonSize:"default"})}]});const XX=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{
4785 -icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],BX=((0,L.__)("Contact form","ablocks"),(0,L.__)("Subscription form","ablocks"),(0,L.__)("RSVP form","ablocks"),(0,L.__)("Blank","ablocks"),{UU:"ablocks/form-multi-step-child",$t:["ablocks/form-multi-step"],uK:{block_id:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",
4795 +spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}},save:function(t){const{attributes:e}=t,{block_id:i,steps:o}=e,a=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:gB.UU,attributes:e,children:(0,I.jsxs)("form",{children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step","data-step":o.length,children:[(0,I.jsx)("div",{
4796 +className:"ablocks-form-multi-step__progress",children:o?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step-wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-form-multi-step__step ",children:[(0,I.jsx)("div",{className:"ablocks-form-multi-step__step-number",children:e+1}),(0,I.jsx)("span",{className:"ablocks-form-multi-step__step-title",children:t.value})]}),(0,I.jsx)("div",{className:"ablocks-form-multi-step__divider",children:">"})]},t.id))}),(0,I.jsx)("div",{...a})]}),(0,I.jsxs)("div",{className:"ablocks-form-multi-step__btns",children:[(0,I.jsxs)("button",{className:"ablocks-form-multi-step__prev-btn",children:["<-"," Back"]}),(0,I.jsxs)("button",{className:"ablocks-form-multi-step__next-btn",children:["Next ","->"]})]})]})})})},migrate:t=>({...t,submitButtonText:"Submit",submitButtonSize:"default"})}]});const HB=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{
4797 +icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],MB=((0,L.__)("Contact form","ablocks"),(0,L.__)("Subscription form","ablocks"),(0,L.__)("RSVP form","ablocks"),(0,L.__)("Blank","ablocks"),{UU:"ablocks/form-multi-step-child",$t:["ablocks/form-multi-step"],uK:{block_id:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",
4786 4798 unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",
4787 4799 topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},
4788 4800 _position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",
4789 4801 imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",
@@ -4789,18 +4801,18 @@
4789 4801 imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",
4790 4802 imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",
4791 4803 skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",
4792 4804 xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",
4793 -color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}});function EX(t){const{attributes:e,setAttributes:i}=t,{block_id:o,alignment:a}=e,n=(0,D.useInnerBlocksProps)({className:"ablocks-form-multi-step-child"},{renderAppender:D.InnerBlocks.ButtonBlockAppender,
4794 -allowedBlocks:["ablocks/form-input","ablocks/form-password","ablocks/form-email","ablocks/form-textarea","ablocks/form-checkbox","ablocks/form-select","ablocks/form-radio","ablocks/heading","ablocks/paragraph","ablocks/icon","ablocks/image","ablocks/divider","ablocks/form-hidden","ablocks/form-rating","ablocks/form-datepicker","ablocks/form-upload","ablocks/form-timepicker"]});return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:a,setAttributes:i,options:XX})}),(0,I.jsx)(sR,{blockId:o,name:BX.UU,attributes:e,children:(0,I.jsx)("div",{...n})})]})}(0,M.xV)(BX.UU,BX.$t[0])&&(0,o.registerBlockType)(BX.UU,{attributes:BX.uK,icon:(0,I.jsx)("svg",{stroke:"currentColor",fill:"#E033EE",strokeWidth:"0",viewBox:"0 0 448 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4795 -d:"M448 75.2v361.7c0 24.3-19 43.2-43.2 43.2H43.2C19.3 480 0 461.4 0 436.8V75.2C0 51.1 18.8 32 43.2 32h361.7c24 0 43.1 18.8 43.1 43.2zm-37.3 361.6V75.2c0-3-2.6-5.8-5.8-5.8h-9.3L285.3 144 224 94.1 162.8 144 52.5 69.3h-9.3c-3.2 0-5.8 2.8-5.8 5.8v361.7c0 3 2.6 5.8 5.8 5.8h361.7c3.2.1 5.8-2.7 5.8-5.8zM150.2 186v37H76.7v-37h73.5zm0 74.4v37.3H76.7v-37.3h73.5zm11.1-147.3l54-43.7H96.8l64.5 43.7zm210 72.9v37h-196v-37h196zm0 74.4v37.3h-196v-37.3h196zm-84.6-147.3l64.5-43.7H232.8l53.9 43.7zM371.3 335v37.3h-99.4V335h99.4z"})}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l).generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(YX,{...t}),(0,I.jsx)(EX,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i}=e,o=D.useInnerBlocksProps.save({className:"ablocks-form-multi-step-child"});return(0,I.jsx)(l().Fragment,{children:(0,
4796 -I.jsx)(dR,{blockId:i,name:BX.UU,attributes:e,children:(0,I.jsx)("div",{...o})})})}});const FX=[{label:(0,L.__)("Full Width","ablocks"),value:100},{label:(0,L.__)("Two Columns","ablocks"),value:50},{label:(0,L.__)("Three Columns","ablocks"),value:33},{label:(0,L.__)("Four Columns","ablocks"),value:25}],qX=t=>{const{markerType:e,iconAttributes:i,index:o,listProperties:a}=t;let l;if("icon"===e){const t=i?.[o];l=(0,I.jsx)(Fd,{customIconData:t,style:{color:a?.["iconColor"+o]?a?.["iconColor"+o]:"",fill:a?.["iconColor"+o]?a?.["iconColor"+o]:""}})}return l},$X=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function GX(t){const{attributes:e,setAttributes:i}=t,{label:o,labelColor:n,radioArr:s,isRequired:r,name:b,helperText:c,inputType:d,optionWidth:u,markerType:p,listIconsClasses:m,listIcons:h,maximumValue:g,minimumValue:f,inputWidth:y}=e,[T,H]=(0,a.useState)(""),M=(0,a.useRef)(!1);return(0,
4805 +color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}});function xB(t){const{attributes:e,setAttributes:i}=t,{block_id:o,alignment:a}=e,n=(0,D.useInnerBlocksProps)({className:"ablocks-form-multi-step-child"},{renderAppender:D.InnerBlocks.ButtonBlockAppender,
4806 +allowedBlocks:["ablocks/form-input","ablocks/form-password","ablocks/form-email","ablocks/form-textarea","ablocks/form-checkbox","ablocks/form-select","ablocks/form-radio","ablocks/heading","ablocks/paragraph","ablocks/icon","ablocks/image","ablocks/divider","ablocks/form-hidden","ablocks/form-rating","ablocks/form-datepicker","ablocks/form-upload","ablocks/form-timepicker"]});return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:a,setAttributes:i,options:HB})}),(0,I.jsx)(mR,{blockId:o,name:MB.UU,attributes:e,children:(0,I.jsx)("div",{...n})})]})}(0,M.xV)(MB.UU,MB.$t[0])&&(0,o.registerBlockType)(MB.UU,{attributes:MB.uK,icon:(0,I.jsx)("svg",{stroke:"currentColor",fill:"#E033EE",strokeWidth:"0",viewBox:"0 0 448 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{
4807 +d:"M448 75.2v361.7c0 24.3-19 43.2-43.2 43.2H43.2C19.3 480 0 461.4 0 436.8V75.2C0 51.1 18.8 32 43.2 32h361.7c24 0 43.1 18.8 43.1 43.2zm-37.3 361.6V75.2c0-3-2.6-5.8-5.8-5.8h-9.3L285.3 144 224 94.1 162.8 144 52.5 69.3h-9.3c-3.2 0-5.8 2.8-5.8 5.8v361.7c0 3 2.6 5.8 5.8 5.8h361.7c3.2.1 5.8-2.7 5.8-5.8zM150.2 186v37H76.7v-37h73.5zm0 74.4v37.3H76.7v-37.3h73.5zm11.1-147.3l54-43.7H96.8l64.5 43.7zm210 72.9v37h-196v-37h196zm0 74.4v37.3h-196v-37.3h196zm-84.6-147.3l64.5-43.7H232.8l53.9 43.7zM371.3 335v37.3h-99.4V335h99.4z"})}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l).generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(TB,{...t}),(0,I.jsx)(xB,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i}=e,o=D.useInnerBlocksProps.save({className:"ablocks-form-multi-step-child"});return(0,I.jsx)(l().Fragment,{children:(0,
4808 +I.jsx)(yR,{blockId:i,name:MB.UU,attributes:e,children:(0,I.jsx)("div",{...o})})})}});const kB=[{label:(0,L.__)("Full Width","ablocks"),value:100},{label:(0,L.__)("Two Columns","ablocks"),value:50},{label:(0,L.__)("Three Columns","ablocks"),value:33},{label:(0,L.__)("Four Columns","ablocks"),value:25}],vB=t=>{const{markerType:e,iconAttributes:i,index:o,listProperties:a}=t;let l;if("icon"===e){const t=i?.[o];l=(0,I.jsx)(Fd,{customIconData:t,style:{color:a?.["iconColor"+o]?a?.["iconColor"+o]:"",fill:a?.["iconColor"+o]?a?.["iconColor"+o]:""}})}return l},_B=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function RB(t){const{attributes:e,setAttributes:i}=t,{label:o,labelColor:n,radioArr:s,isRequired:r,name:b,helperText:c,inputType:d,optionWidth:u,markerType:p,listIconsClasses:m,listIcons:h,maximumValue:g,minimumValue:f,inputWidth:y}=e,[T,H]=(0,a.useState)(""),M=(0,a.useRef)(!1);return(0,
4797 4809 a.useEffect)(()=>{if("What's your favorite programming lang?"!==o||M.current||(i({label:" What's your favorite programming lang? "}),M.current=!0),""!==b||M.current){if(!b||""===b.trim()||b.startsWith("MulSefield-")){const t=`MultiSelect-${Math.floor(1e3*Math.random())+1}`;i({name:t})}}else M.current=!0},[b,o,i]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0,
4798 -I.jsxs)(V,{title:(0,L.__)("Multi Select Block Settings","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Multi Select Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:y,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:y,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:$X}),(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,label:(0,L.__)("Option Type","ablocks"),options:[{label:(0,L.__)("Checkbox","ablocks"),value:"checkbox"},{label:(0,L.__)("Radio","ablocks"),value:"radio"}],attributeName:"inputType",attributeValue:d,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Helper Text","ablocks"),
4799 -attributeName:"helperText",setAttributes:i,attributeValue:c,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),attributeValue:r,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Choice Width","ablocks"),options:FX,isSearch:!0,attributeName:"optionWidth",attributeValue:u,setAttributes:i}),"radio"!==d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Minimum Value","ablocks"),attributeName:"minimumValue",attributeValue:f,setAttributes:i}),(0,I.jsx)(As,{label:(0,L.__)("Maximum Value","ablocks"),attributeName:"maximumValue",attributeValue:g,setAttributes:i})]}),(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(s),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({radioArr:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsx)("div",{ref:t.innerRef,...t.droppableProps,children:s.map((t,o)=>(0,I.jsx)(Af,{draggableId:`${t.id}`,index:o,
4810 +I.jsxs)(V,{title:(0,L.__)("Multi Select Block Settings","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Multi Select Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:y,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:y,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:_B}),(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,label:(0,L.__)("Option Type","ablocks"),options:[{label:(0,L.__)("Checkbox","ablocks"),value:"checkbox"},{label:(0,L.__)("Radio","ablocks"),value:"radio"}],attributeName:"inputType",attributeValue:d,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Helper Text","ablocks"),
4811 +attributeName:"helperText",setAttributes:i,attributeValue:c,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),attributeValue:r,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Choice Width","ablocks"),options:kB,isSearch:!0,attributeName:"optionWidth",attributeValue:u,setAttributes:i}),"radio"!==d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Minimum Value","ablocks"),attributeName:"minimumValue",attributeValue:f,setAttributes:i}),(0,I.jsx)(As,{label:(0,L.__)("Maximum Value","ablocks"),attributeName:"maximumValue",attributeValue:g,setAttributes:i})]}),(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(s),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({radioArr:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsx)("div",{ref:t.innerRef,...t.droppableProps,children:s.map((t,o)=>(0,I.jsx)(Af,{draggableId:`${t.id}`,index:o,
4800 4812 children:a=>(0,I.jsxs)("div",{ref:a.innerRef,...a.draggableProps,...a.dragHandleProps,className:"ablocks-editor-radio",children:[(0,I.jsxs)("div",{className:"ablocks-editor-radio__wrapper",role:"presentation",onKeyDown:()=>{},children:[(0,I.jsxs)("div",{className:"ablocks-editor-radio__content-wrapper",role:"presentation",onClick:()=>(t=>{const e=s.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({radioArr:e})})(t?.id),children:[(0,I.jsx)("span",{className:"ablocks-editor-radio__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,I.jsx)("span",{className:"ablocks-radio-text",children:t.value})]}),(0,I.jsx)("div",{className:"ablocks-editor-radio__options-wrapper",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{const o=s.filter(t=>t.id!==e);i({radioArr:o})})(0,t?.id),role:"presentation",onKeyDown:()=>{}})})]}),t?.isOpen&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{
4801 4813 className:"ablocks-editor-radio__inner-content",children:(0,I.jsx)(le,{label:(0,L.__)("Text","ablocks"),attributeValue:t?.value,setAttributes:i,onChangeHandler:e=>((t,e,o)=>{const a=s.map(i=>i.id===t?{...i,[o]:e}:i);i({radioArr:a})})(t?.id,e,"value"),placeholder:(0,L.__)("Enter your text","ablocks")})}),"icon"===p&&(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,onChangeHandler:t=>((t,e)=>{let o=[];switch(t.substring(2,3)){case"r":o=Cd;break;case"s":o=Ld;break;case"b":o=Ad}const a=o[t.substring(7)],l=`0 0 ${a[0]} ${a[1]}`,n=a[4],s=h||[],r=m||[],b=[...s.slice(0,e)||[],{path:n,viewBox:l},...s.slice(e+1)||[]],c=[...r.slice(0,e)||[],t,...r.slice(e+1)||[]];i({listIcons:b,listIconsClasses:c})})(t,o),deleteHandler:()=>(t=>{const e=h||[],o=m||[],a=[...e.slice(0,t)||[],{path:"",viewBox:""},...e.slice(t+1)||[]],l=[...o.slice(0,t)||[],"",...o.slice(t+1)||[]];i({listIcons:a,listIconsClasses:l})})(o),getIconClass:()=>m?.[o],legacySupport:!0})]})]})},t.id))})})}),(0,
4802 -I.jsxs)("div",{className:"ablocks-editor-radio__new-option",children:[(0,I.jsx)("input",{value:T,onChange:t=>{H(t.target.value)}}),(0,I.jsx)("button",{onClick:()=>{const t=s.length>0?s.reduce((t,e)=>t.id>e.id?t:e):void 0,e={id:t?t.id+1:1,value:T};i({radioArr:[...s,e]}),H("")},children:(0,L.__)("Add","ablocks")})]})]})})]})})}(0,Ud.D$)("icon",{path:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-up",hasNoSelectorOrSource:!0}),_r.Ay;const ZX={UU:"ablocks/form-radio",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},inputType:{type:"string",default:""},optionWidth:{type:"number",default:50},label:{type:"string",default:"What's your favorite programming lang?"
4814 +I.jsxs)("div",{className:"ablocks-editor-radio__new-option",children:[(0,I.jsx)("input",{value:T,onChange:t=>{H(t.target.value)}}),(0,I.jsx)("button",{onClick:()=>{const t=s.length>0?s.reduce((t,e)=>t.id>e.id?t:e):void 0,e={id:t?t.id+1:1,value:T};i({radioArr:[...s,e]}),H("")},children:(0,L.__)("Add","ablocks")})]})]})})]})})}(0,Ud.D$)("icon",{path:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-up",hasNoSelectorOrSource:!0}),_r.Ay;const SB={UU:"ablocks/form-radio",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},inputType:{type:"string",default:""},optionWidth:{type:"number",default:50},label:{type:"string",default:"What's your favorite programming lang?"
4803 4815 },helperText:{type:"string",default:""},name:{type:"string",default:""},isRequired:{type:"boolean",default:!0},errorMsg:{type:"string",default:"This field is required"},radioArr:{type:"array",default:[{id:1,value:"Javascript"}]},inputWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{
4804 4816 type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",
4805 4817 rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",
4806 4818 default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",
@@ -4807,21 +4819,21 @@
4807 4819 imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",
4808 4820 imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",
4809 4821 skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",
4810 4822 yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",
4811 -shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function KX(t){const{attributes:e,setAttributes:i}=t,{block_id:o,label:l,isRequired:n,name:s,radioArr:r,helperText:b,inputType:c,markerType:d,listIcons:u,inputWidth:p}=e;(0,a.useEffect)(()=>{""===c&&i({inputType:"checkbox"})},[])
4823 +shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function WB(t){const{attributes:e,setAttributes:i}=t,{block_id:o,label:l,isRequired:n,name:s,radioArr:r,helperText:b,inputType:c,markerType:d,listIcons:u,inputWidth:p}=e;(0,a.useEffect)(()=>{""===c&&i({inputType:"checkbox"})},[])
4812 4824 ;const m=lt(),h="Tablet"===m,g="Mobile"===m,f=t=>(g?p?.valueMobile||p?.value:h&&p?.valueTablet||p?.value)===t?"ablocks-form-builder-toobar-button--active":"",y=t=>{const e=g?"Mobile":h?"Tablet":"Desktop",o={...p};"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsxs)(N.Toolbar,{children:[(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,L.__)("100%","ablocks"),onClick:()=>y(100),className:f(100)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,L.__)("75%","ablocks"),onClick:()=>y(75),className:f(75)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,L.__)("50%","ablocks"),onClick:()=>y(50),className:f(50)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-33",children:"33%"}),
4813 -label:(0,L.__)("33%","ablocks"),onClick:()=>y(33),className:f(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>y(25),className:f(25)})]})}),(0,I.jsxs)(sR,{blockId:o,name:ZX.UU,attributes:e,className:"ablocks-form-builder__radio-field ablocks-form-builder__field",children:[(0,I.jsx)("p",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:l}),""!==b&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",children:b}),(0,I.jsx)("div",{className:"ablocks-form-builder__radio-all-options",children:r?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-form-builder__radio-option",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__radio-content",children:[(0,I.jsx)(qX,{markerType:d,index:e,iconAttributes:u,listProperties:t}),(0,I.jsxs)("label",{htmlFor:o,children:[" ",t.value," "]})]}),(0,I.jsx)("input",{type:c,name:s,value:t.value,
4814 -htmlFor:o})]},e))})]})]})}const JX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i},QX=t=>{const e={};return t?.optionWidth&&(e.width=t?.optionWidth-6+"%"),{...e}};(0,M.xV)(ZX.UU,ZX.$t[0])&&(0,o.registerBlockType)(ZX.UU,{attributes:ZX.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,JX(i),JX(i,"Tablet"),JX(i,"Mobile"),s.customDeviceMap(t=>JX(i,t))),e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{
4815 -border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"}))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__radio-option",QX(i),QX(i),QX(i),s.customDeviceMap(t=>QX(i)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(GX,{...t}),(0,I.jsx)(KX,{...t})]})},save:function({attributes:t}){const{block_id:e,label:i,isRequired:o,name:a,radioArr:l,helperText:n,inputType:s,markerType:r,listIcons:b,minimumValue:c,maximumValue:d}=t;return(0,I.jsxs)(dR,{blockId:e,name:ZX.UU,attributes:t,className:"ablocks-form-builder__radio-field ablocks-form-builder__field",blockProps:{"data-required":o,"data-minimum-value":"radio"===s?1:c,"data-maximum-value":"radio"===s?1:d},children:[(0,I.jsx)("p",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:i}),""!==n&&(0,
4816 -I.jsx)("label",{className:"ablocks-form-builder__helper-text",children:n}),(0,I.jsx)("div",{className:"ablocks-form-builder__radio-all-options",children:l?.map((t,i)=>(0,I.jsxs)("div",{className:"ablocks-form-builder__radio-option",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__radio-content",children:[(0,I.jsx)(qX,{markerType:r,index:i,iconAttributes:b,listProperties:t}),(0,I.jsxs)("label",{htmlFor:e,children:[" ",t.value," "]})]}),(0,I.jsx)("input",{type:s,name:`${a}[${"radio"===s?0:i}]`,value:t.value,id:i})]},i))})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--multi-choice"})});const tB=(0,Eb.D$)({attributeName:"inputIconSize",isResponsive:!1,defaultValue:28,copyStyle:!0}),eB=(0,Eb.D$)({attributeName:"inputIconSpace",isResponsive:!1,defaultValue:38,copyStyle:!0}),iB=(0,Eb.D$)({attributeName:"passwordShowHideIconSize",isResponsive:!1,defaultValue:18,copyStyle:!0}),oB=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,
4817 -defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function aB(t){const{attributes:e,setAttributes:i}=t,{placeholder:o,isRequired:n,name:s,helperText:r,label:b,iconColor:c,inputIconSize:d,inputIconSpace:u,showIcon:p,passwordShowHideToggle:m,passwordShowHideIconSize:h,passwordIconColor:g,errorMsg:f,formType:y,passwordType:T,inputWidth:H}=e;return(0,a.useEffect)(()=>{i({label:"password"===T?(0,L.__)("Password","ablocks"):(0,L.__)("Confirm Password","ablocks")})},[T]),(0,a.useEffect)(()=>{i({label:"password"===T?(0,L.__)("Password","ablocks"):(0,L.__)("Confirm Password","ablocks"),name:"confirm_password"!==s?"password":"confirm_password",passwordType:"confirm_password"===s?"confirm_password":"password"})},[]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{
4818 -className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsx)(V,{title:(0,L.__)("Password","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Password Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:H,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:H,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:oB}),"login"!==y&&(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,label:(0,L.__)("Password Type","ablocks"),options:[{label:(0,L.__)("Password","ablocks"),value:"password"},{
4825 +label:(0,L.__)("33%","ablocks"),onClick:()=>y(33),className:f(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>y(25),className:f(25)})]})}),(0,I.jsxs)(mR,{blockId:o,name:SB.UU,attributes:e,className:"ablocks-form-builder__radio-field ablocks-form-builder__field",children:[(0,I.jsx)("p",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:l}),""!==b&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",children:b}),(0,I.jsx)("div",{className:"ablocks-form-builder__radio-all-options",children:r?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-form-builder__radio-option",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__radio-content",children:[(0,I.jsx)(vB,{markerType:d,index:e,iconAttributes:u,listProperties:t}),(0,I.jsxs)("label",{htmlFor:o,children:[" ",t.value," "]})]}),(0,I.jsx)("input",{type:c,name:s,value:t.value,
4826 +htmlFor:o})]},e))})]})]})}const PB=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i},UB=t=>{const e={};return t?.optionWidth&&(e.width=t?.optionWidth-6+"%"),{...e}};(0,M.xV)(SB.UU,SB.$t[0])&&(0,o.registerBlockType)(SB.UU,{attributes:SB.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,PB(i),PB(i,"Tablet"),PB(i,"Mobile"),s.customDeviceMap(t=>PB(i,t))),e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{
4827 +border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},s.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"}))),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__radio-option",UB(i),UB(i),UB(i),s.customDeviceMap(t=>UB(i)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(RB,{...t}),(0,I.jsx)(WB,{...t})]})},save:function({attributes:t}){const{block_id:e,label:i,isRequired:o,name:a,radioArr:l,helperText:n,inputType:s,markerType:r,listIcons:b,minimumValue:c,maximumValue:d}=t;return(0,I.jsxs)(yR,{blockId:e,name:SB.UU,attributes:t,className:"ablocks-form-builder__radio-field ablocks-form-builder__field",blockProps:{"data-required":o,"data-minimum-value":"radio"===s?1:c,"data-maximum-value":"radio"===s?1:d},children:[(0,I.jsx)("p",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:i}),""!==n&&(0,
4828 +I.jsx)("label",{className:"ablocks-form-builder__helper-text",children:n}),(0,I.jsx)("div",{className:"ablocks-form-builder__radio-all-options",children:l?.map((t,i)=>(0,I.jsxs)("div",{className:"ablocks-form-builder__radio-option",children:[(0,I.jsxs)("div",{className:"ablocks-form-builder__radio-content",children:[(0,I.jsx)(vB,{markerType:r,index:i,iconAttributes:b,listProperties:t}),(0,I.jsxs)("label",{htmlFor:e,children:[" ",t.value," "]})]}),(0,I.jsx)("input",{type:s,name:`${a}[${"radio"===s?0:i}]`,value:t.value,id:i})]},i))})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--multi-choice"})});const jB=(0,Eb.D$)({attributeName:"inputIconSize",isResponsive:!1,defaultValue:28,copyStyle:!0}),wB=(0,Eb.D$)({attributeName:"inputIconSpace",isResponsive:!1,defaultValue:38,copyStyle:!0}),zB=(0,Eb.D$)({attributeName:"passwordShowHideIconSize",isResponsive:!1,defaultValue:18,copyStyle:!0}),CB=(0,Eb.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,
4829 +defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function AB(t){const{attributes:e,setAttributes:i}=t,{placeholder:o,isRequired:n,name:s,helperText:r,label:b,iconColor:c,inputIconSize:d,inputIconSpace:u,showIcon:p,passwordShowHideToggle:m,passwordShowHideIconSize:h,passwordIconColor:g,errorMsg:f,formType:y,passwordType:T,inputWidth:H}=e;return(0,a.useEffect)(()=>{i({label:"password"===T?(0,L.__)("Password","ablocks"):(0,L.__)("Confirm Password","ablocks")})},[T]),(0,a.useEffect)(()=>{i({label:"password"===T?(0,L.__)("Password","ablocks"):(0,L.__)("Confirm Password","ablocks"),name:"confirm_password"!==s?"password":"confirm_password",passwordType:"confirm_password"===s?"confirm_password":"password"})},[]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{
4830 +className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Form Builder Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,I.jsx)(V,{title:(0,L.__)("Password","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Password Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:H,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:100,unitValue:H,unitOptions:[{value:"%",label:"%"}],isInline:!1,attributeDefaultValue:CB}),"login"!==y&&(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,label:(0,L.__)("Password Type","ablocks"),options:[{label:(0,L.__)("Password","ablocks"),value:"password"},{
4819 4831 label:(0,L.__)("Confirm Password","ablocks"),value:"confirm_password"}],attributeName:"passwordType",attributeValue:T,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Label Name","ablocks"),attributeName:"label",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:r,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Placeholder","ablocks"),attributeName:"placeholder",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Required","ablocks"),attributeValue:n,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),n&&(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:f,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:p,setAttributes:i,attributeName:"showIcon",isResponsive:!1
4820 -}),(0,I.jsx)(Ot,{label:(0,L.__)("Password Show & Hide Toggle","ablocks"),attributeValue:m,setAttributes:i,attributeName:"passwordShowHideToggle",isResponsive:!1})]})}),p&&(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Icon","ablocks"),children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"inputIconSize",attributeValue:d,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:tB}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Space","ablocks"),attributeName:"inputIconSpace",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:eB})]}),m&&(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Password Show & Hide Icon","ablocks"),children:[(0,I.jsx)(_t,{label:(0,
4821 -L.__)("Size","ablocks"),attributeName:"passwordShowHideIconSize",attributeValue:h,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:iB}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"passwordIconColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(Yd,{label:(0,L.__)("Password Show","ablocks"),attributes:e,setAttributes:i,attributePrefix:"passwordShow",legacySupport:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Password Hide","ablocks"),attributes:e,setAttributes:i,attributePrefix:"passwordHide",legacySupport:!0})]})]})]})})}(0,y.D$)("border",!0),(0,Ud.D$)("icon",{size:28,hasNoSelectorOrSource:!0}),(0,Ud.D$)("passwordShow",{
4832 +}),(0,I.jsx)(Ot,{label:(0,L.__)("Password Show & Hide Toggle","ablocks"),attributeValue:m,setAttributes:i,attributeName:"passwordShowHideToggle",isResponsive:!1})]})}),p&&(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Icon","ablocks"),children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"inputIconSize",attributeValue:d,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:jB}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Space","ablocks"),attributeName:"inputIconSpace",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:wB})]}),m&&(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Password Show & Hide Icon","ablocks"),children:[(0,I.jsx)(_t,{label:(0,
4833 +L.__)("Size","ablocks"),attributeName:"passwordShowHideIconSize",attributeValue:h,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:zB}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"passwordIconColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(Yd,{label:(0,L.__)("Password Show","ablocks"),attributes:e,setAttributes:i,attributePrefix:"passwordShow",legacySupport:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Password Hide","ablocks"),attributes:e,setAttributes:i,attributePrefix:"passwordHide",legacySupport:!0})]})]})]})})}(0,y.D$)("border",!0),(0,Ud.D$)("icon",{size:28,hasNoSelectorOrSource:!0}),(0,Ud.D$)("passwordShow",{
4822 4834 path:"M634 471L36 3.51A16 16 0 0 0 13.51 6l-10 12.49A16 16 0 0 0 6 41l598 467.49a16 16 0 0 0 22.49-2.49l10-12.49A16 16 0 0 0 634 471zM296.79 146.47l134.79 105.38C429.36 191.91 380.48 144 320 144a112.26 112.26 0 0 0-23.21 2.47zm46.42 219.07L208.42 260.16C210.65 320.09 259.53 368 320 368a113 113 0 0 0 23.21-2.46zM320 112c98.65 0 189.09 55 237.93 144a285.53 285.53 0 0 1-44 60.2l37.74 29.5a333.7 333.7 0 0 0 52.9-75.11 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64c-36.7 0-71.71 7-104.63 18.81l46.41 36.29c18.94-4.3 38.34-7.1 58.22-7.1zm0 288c-98.65 0-189.08-55-237.93-144a285.47 285.47 0 0 1 44.05-60.19l-37.74-29.5a333.6 333.6 0 0 0-52.89 75.1 32.35 32.35 0 0 0 0 29.19C89.72 376.41 197.08 448 320 448c36.7 0 71.71-7.05 104.63-18.81l-46.41-36.28C359.28 397.2 339.89 400 320 400z",viewBox:"0 0 640 512",className:"far fa-eye-slash",hasNoSelectorOrSource:!0}),(0,Ud.D$)("passwordHide",{
4823 -path:"M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z",viewBox:"0 0 576 512",className:"far fa-eye",hasNoSelectorOrSource:!0}),(0,wY.D$)("passwordType",!1,{value:"password"}),_r.Ay;const lB={UU:"ablocks/form-password",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},label:{type:"string",default:""},name:{type:"string",default:""},placeholder:{type:"string",default:"*******"},formType:{type:"string",default:""},inputType:{type:"string",default:""},isRequired:{type:"boolean",default:!0},nameChangeable:{type:"boolean",default:!0},isPasswordVisible:{type:"boolean",default:!1},showIcon:{
4835 +path:"M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z",viewBox:"0 0 576 512",className:"far fa-eye",hasNoSelectorOrSource:!0}),(0,bX.D$)("passwordType",!1,{value:"password"}),_r.Ay;const LB={UU:"ablocks/form-password",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},label:{type:"string",default:""},name:{type:"string",default:""},placeholder:{type:"string",default:"*******"},formType:{type:"string",default:""},inputType:{type:"string",default:""},isRequired:{type:"boolean",default:!0},nameChangeable:{type:"boolean",default:!0},isPasswordVisible:{type:"boolean",default:!1},showIcon:{
4824 4836 type:"boolean",default:!1},passwordShowHideToggle:{type:"boolean",default:!1},passwordIconColor:{type:"string",default:""},errorMsg:{type:"string",default:"This field is required"},helperText:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",
4825 4837 leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",
4826 4838 transitionDuration:""}},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z"},iconSvgViewBox:{type:"string",default:"0 0 496 512"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",
4827 4839 default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,
@@ -4839,34 +4851,34 @@
4839 4851 imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},
4840 4852 _zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,
4841 4853 rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",
4842 4854 maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,
4843 -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function nB(t){const{attributes:e,setAttributes:i}=t,{block_id:o,placeholder:l,isRequired:n,name:s,label:r,showIcon:b,passwordShowHideToggle:c,helperText:d,errorMsg:u,inputWidth:p}=e;(0,a.useEffect)(()=>{!function(t){const e=t?.querySelector(".ablocks-form-builder__input"),i=t?.querySelector(".ablocks-form-builder__input-toggle--show-password"),o=t?.querySelector(".ablocks-form-builder__input-toggle--hide-password"),a=t?.getAttribute("data-required");function l(t){(o||i)&&(t?(e.type="password",
4855 +yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function DB(t){const{attributes:e,setAttributes:i}=t,{block_id:o,placeholder:l,isRequired:n,name:s,label:r,showIcon:b,passwordShowHideToggle:c,helperText:d,errorMsg:u,inputWidth:p}=e;(0,a.useEffect)(()=>{!function(t){const e=t?.querySelector(".ablocks-form-builder__input"),i=t?.querySelector(".ablocks-form-builder__input-toggle--show-password"),o=t?.querySelector(".ablocks-form-builder__input-toggle--hide-password"),a=t?.getAttribute("data-required");function l(t){(o||i)&&(t?(e.type="password",
4844 4856 i?.classList.add("ablocks-form-builder__input-toggle--show-password--active"),o?.classList.remove("ablocks-form-builder__input-toggle--hide-password--active")):(e.type="text",i?.classList.remove("ablocks-form-builder__input-toggle--show-password--active"),o?.classList.add("ablocks-form-builder__input-toggle--hide-password--active")))}e&&"true"===a&&e?.addEventListener("focusout",()=>{""===e?.value.trim()&&t?.classList.add("error-msg")}),e?.addEventListener("input",()=>{""!==e.value.trim()&&t?.classList.remove("error-msg")}),i&&i.addEventListener("click",()=>l(!1)),o&&o.addEventListener("click",()=>l(!0)),l(!0)}((0,M.bu)(`.ablocks-block-${o}`))},[o,c]);const m=lt(),h="Tablet"===m,g="Mobile"===m,f=t=>(g?p?.valueMobile||p?.value:h&&p?.valueTablet||p?.value)===t?"ablocks-form-builder-toobar-button--active":"",y=t=>{const e=g?"Mobile":h?"Tablet":"Desktop",o={...p};"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,
4845 -I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsxs)(N.Toolbar,{children:[(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,L.__)("100%","ablocks"),onClick:()=>y(100),className:f(100)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,L.__)("75%","ablocks"),onClick:()=>y(75),className:f(75)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,L.__)("50%","ablocks"),onClick:()=>y(50),className:f(50)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,L.__)("33%","ablocks"),onClick:()=>y(33),className:f(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>y(25),className:f(25)})]})}),(0,I.jsxs)(sR,{blockId:o,name:lB.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,
4857 +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsxs)(N.Toolbar,{children:[(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,L.__)("100%","ablocks"),onClick:()=>y(100),className:f(100)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,L.__)("75%","ablocks"),onClick:()=>y(75),className:f(75)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,L.__)("50%","ablocks"),onClick:()=>y(50),className:f(50)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,L.__)("33%","ablocks"),onClick:()=>y(33),className:f(33)}),(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,L.__)("25%","ablocks"),onClick:()=>y(25),className:f(25)})]})}),(0,I.jsxs)(mR,{blockId:o,name:LB.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,
4846 4858 I.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:r}),""!==d&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:d}),b&&(0,I.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,I.jsx)(Fd,{attributePrefix:"icon",attributes:e})}),(0,I.jsx)("input",{className:`ablocks-form-builder__input ${b&&"ablocks-form-builder__input-show-icon"}`,placeholder:l,name:s,id:o,type:"password"}),c&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--show-password",children:(0,I.jsx)(Fd,{attributePrefix:"passwordShow",attributes:e})}),(0,I.jsx)("div",{className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--hide-password",children:(0,I.jsx)(Fd,{attributePrefix:"passwordHide",attributes:e})})]}),n&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:u
4847 -})]})]})}const sB=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i},rB=t=>{const{inputIconSize:e}=t,i={};return e&&(i["font-size"]=`${e}px`),{fill:(0,Hs.qD)(t?.iconColor),...i}},bB=t=>{const{inputIconSpace:e}=t,i={};return i["padding-left"]=`${e}px`,{...i}};(0,M.xV)(lB.UU,lB.$t[0])&&(0,o.registerBlockType)(lB.UU,{attributes:lB.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,name:s}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]),(0,a.useEffect)(()=>{o({name:"confirm_password"!==s?"password":"confirm_password"})},[s]);const r=new C(i,l)
4848 -;r.addClassStyles(`.ablocks-block--child-${n}`,sB(i),sB(i,"Tablet"),sB(i,"Mobile"),r.customDeviceMap(t=>sB(i,t))),e&&r.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},r.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"}))),r.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap",rB(i),rB(i),rB(i),r.customDeviceMap(t=>rB(i))),r.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-show-icon",bB(i),bB(i),bB(i),r.customDeviceMap(t=>bB(i))),r.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-toggle-password .ablocks-icon-wrap ",(t=>{const{passwordShowHideIconSize:e}=t,i={};return e&&(i["font-size"]=e+"px"),{fill:(0,Hs.qD)(t?.passwordIconColor),...i}})(i));const b=r.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:b}),e&&(0,I.jsx)(aB,{...t}),(0,I.jsx)(nB,{
4849 -...t})]})},save:function({attributes:t}){const{block_id:e,placeholder:i,isRequired:o,name:a,label:l,showIcon:n,passwordShowHideToggle:s,helperText:r,errorMsg:b}=t;return(0,I.jsxs)(dR,{blockId:e,name:lB.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":o},children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:l}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:r}),n&&(0,I.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,I.jsx)(Fd,{attributePrefix:"icon",attributes:t})}),(0,I.jsx)("input",{className:`ablocks-form-builder__input ${n&&"ablocks-form-builder__input-show-icon"}`,placeholder:i,name:a,id:e,type:"password"}),o&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:b}),s&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{
4850 -className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--show-password",children:(0,I.jsx)(Fd,{attributePrefix:"passwordShow",attributes:t})}),(0,I.jsx)("div",{className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--hide-password",children:(0,I.jsx)(Fd,{attributePrefix:"passwordHide",attributes:t})})]})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--password"})});var cB=i(99512);function dB(t){const{allowedTypes:e,attributeValue:i,attributeName:o,onSelectImageHandler:a,onRemoveImageHandler:l,deviceType:n=""}=t;let s;const r=(0,M.By)(n,t=>i[o+t]),b=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.MediaUpload,{allowedTypes:e,value:null,onSelect:t=>{a(t)},render:({open:t})=>(0,I.jsx)("div",{className:"ablocks-background-audio--upload__replace",children:(0,I.jsx)(X,{onClick:t,label:(0,L.__)("Replace Audio","ablocks"),isShowPrimaryLabel:!0})})}),(0,I.jsx)(X,{onClick:()=>l(),icon:(0,I.jsx)("span",{
4851 -className:"ablocks-icon ablocks-icon--delete"})})]});return s=r?(0,I.jsxs)("div",{className:"ablocks-audio-wrapper",children:[(0,I.jsxs)("audio",{controls:!0,className:"ablocks-audio",children:[(0,I.jsx)("source",{src:r}),(0,L.__)("Your browser does not support the audio element.","ablocks")]}),b]}):(0,I.jsx)(D.MediaUpload,{allowedTypes:e,value:o+n,onSelect:t=>{a(t)},render:({open:t})=>(0,I.jsxs)("div",{className:"ablocks-placeholder-audio-wrapper",children:[(0,I.jsx)("img",{className:"ablocks-placeholder-image",src:M.hq+"/assets/images/placeholder-image.svg",alt:""}),(0,I.jsx)("div",{className:"ablocks-background-audio--upload__replace",children:(0,I.jsx)(X,{onClick:t,label:(0,L.__)("Choose Audio…","ablocks"),isShowPrimaryLabel:!0})})]})}),s}const uB=[{label:(0,L.__)("Youtube","ablocks"),value:"youtube"},{label:(0,L.__)("Audio","ablocks"),value:"audio"},{label:(0,L.__)("Self hosted","ablocks"),value:"selfHosted"},{label:(0,L.__)("Vimeo","ablocks"),value:"vimeo"}];function pB(t){
4852 -const{attributes:e,setAttributes:i}=t,{videoSource:o,youtubeIconSize:a,youtubePlayPauseIconSize:n,youtubeUrl:s,youtubeProgressColor:r,vimeoUrl:b,videoStartTime:c,videoEndTime:d,youtubeUiColor:u,selfVideoUiColor:p,selfVideobgColor:m,vimeoUiColor:h,vimeobgColor:g,vimeoIconSize:f,selfHostedIconSize:y,selfHostedPlayIconSize:T,selfVideoProgressUiColor:H,vimeoProgressUiColor:M,vimeoPlayIconSize:x,autoplay:k,mute:v,loop:_}=e,R=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Video","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Source","ablocks"),options:uB,isResponsive:!1,attributeValue:o,attributeName:"videoSource",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Autoplay","ablocks"),isResponsive:!1,attributeValue:k,attributeName:"autoplay",setAttributes:i}),"youtube"===o&&(0,I.jsx)(Ot,{label:(0,
4853 -L.__)("Mute","ablocks"),isResponsive:!1,attributeValue:v,attributeName:"mute",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Loop","ablocks"),isResponsive:!1,attributeValue:_,attributeName:"loop",setAttributes:i}),"youtube"===o&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:s,attributeName:"youtubeUrl",setAttributes:i})}),"vimeo"===o&&(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:b,attributeName:"vimeoUrl",setAttributes:i}),"selfHosted"===o&&(0,I.jsx)(Ks,{allowedTypes:["video"],attributeValue:e,deviceType:R,onSelectImageHandler:t=>{i({videoUrl:t?.url})},onRemoveImageHandler:()=>{i({videoUrl:void 0})},attributeName:"videoUrl"}),"audio"===o&&(0,I.jsx)(dB,{allowedTypes:["audio"],attributeValue:e,attributeName:"audioUrl",onSelectImageHandler:t=>{i({audioUrl:t.url})},onRemoveImageHandler:()=>{i({audioUrl:""})},deviceType:""}),"youtube"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("label",{
4859 +})]})]})}const NB=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e});if(o?.width&&"string"==typeof o.width){const t=o.width.match(/^([\d.]+)(%|px|em|rem)?$/);if(t){const e=parseFloat(t[1])-1,o=t[2]||"%";i.width=`${e}${o}`}else i.width=o.width}else i.width=o.width;return i},IB=t=>{const{inputIconSize:e}=t,i={};return e&&(i["font-size"]=`${e}px`),{fill:(0,Hs.qD)(t?.iconColor),...i}},VB=t=>{const{inputIconSpace:e}=t,i={};return i["padding-left"]=`${e}px`,{...i}};(0,M.xV)(LB.UU,LB.$t[0])&&(0,o.registerBlockType)(LB.UU,{attributes:LB.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,name:s}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]),(0,a.useEffect)(()=>{o({name:"confirm_password"!==s?"password":"confirm_password"})},[s]);const r=new C(i,l)
4860 +;r.addClassStyles(`.ablocks-block--child-${n}`,NB(i),NB(i,"Tablet"),NB(i,"Mobile"),r.customDeviceMap(t=>NB(i,t))),e&&r.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"},r.customDeviceMap(t=>({border:"2px solid #007cba",padding:"0px 6px 0px"}))),r.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap",IB(i),IB(i),IB(i),r.customDeviceMap(t=>IB(i))),r.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-show-icon",VB(i),VB(i),VB(i),r.customDeviceMap(t=>VB(i))),r.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-toggle-password .ablocks-icon-wrap ",(t=>{const{passwordShowHideIconSize:e}=t,i={};return e&&(i["font-size"]=e+"px"),{fill:(0,Hs.qD)(t?.passwordIconColor),...i}})(i));const b=r.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:b}),e&&(0,I.jsx)(AB,{...t}),(0,I.jsx)(DB,{
4861 +...t})]})},save:function({attributes:t}){const{block_id:e,placeholder:i,isRequired:o,name:a,label:l,showIcon:n,passwordShowHideToggle:s,helperText:r,errorMsg:b}=t;return(0,I.jsxs)(yR,{blockId:e,name:LB.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":o},children:[(0,I.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:l}),""!==r&&(0,I.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:r}),n&&(0,I.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,I.jsx)(Fd,{attributePrefix:"icon",attributes:t})}),(0,I.jsx)("input",{className:`ablocks-form-builder__input ${n&&"ablocks-form-builder__input-show-icon"}`,placeholder:i,name:a,id:e,type:"password"}),o&&(0,I.jsx)("div",{className:"ablocks-block-error-msg",children:b}),s&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{
4862 +className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--show-password",children:(0,I.jsx)(Fd,{attributePrefix:"passwordShow",attributes:t})}),(0,I.jsx)("div",{className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--hide-password",children:(0,I.jsx)(Fd,{attributePrefix:"passwordHide",attributes:t})})]})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--password"})});var OB=i(99512);function YB(t){const{allowedTypes:e,attributeValue:i,attributeName:o,onSelectImageHandler:a,onRemoveImageHandler:l,deviceType:n=""}=t;let s;const r=(0,M.By)(n,t=>i[o+t]),b=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.MediaUpload,{allowedTypes:e,value:null,onSelect:t=>{a(t)},render:({open:t})=>(0,I.jsx)("div",{className:"ablocks-background-audio--upload__replace",children:(0,I.jsx)(X,{onClick:t,label:(0,L.__)("Replace Audio","ablocks"),isShowPrimaryLabel:!0})})}),(0,I.jsx)(X,{onClick:()=>l(),icon:(0,I.jsx)("span",{
4863 +className:"ablocks-icon ablocks-icon--delete"})})]});return s=r?(0,I.jsxs)("div",{className:"ablocks-audio-wrapper",children:[(0,I.jsxs)("audio",{controls:!0,className:"ablocks-audio",children:[(0,I.jsx)("source",{src:r}),(0,L.__)("Your browser does not support the audio element.","ablocks")]}),b]}):(0,I.jsx)(D.MediaUpload,{allowedTypes:e,value:o+n,onSelect:t=>{a(t)},render:({open:t})=>(0,I.jsxs)("div",{className:"ablocks-placeholder-audio-wrapper",children:[(0,I.jsx)("img",{className:"ablocks-placeholder-image",src:M.hq+"/assets/images/placeholder-image.svg",alt:""}),(0,I.jsx)("div",{className:"ablocks-background-audio--upload__replace",children:(0,I.jsx)(X,{onClick:t,label:(0,L.__)("Choose Audio…","ablocks"),isShowPrimaryLabel:!0})})]})}),s}const XB=[{label:(0,L.__)("Youtube","ablocks"),value:"youtube"},{label:(0,L.__)("Audio","ablocks"),value:"audio"},{label:(0,L.__)("Self hosted","ablocks"),value:"selfHosted"},{label:(0,L.__)("Vimeo","ablocks"),value:"vimeo"}];function BB(t){
4864 +const{attributes:e,setAttributes:i}=t,{videoSource:o,youtubeIconSize:a,youtubePlayPauseIconSize:n,youtubeUrl:s,youtubeProgressColor:r,vimeoUrl:b,videoStartTime:c,videoEndTime:d,youtubeUiColor:u,selfVideoUiColor:p,selfVideobgColor:m,vimeoUiColor:h,vimeobgColor:g,vimeoIconSize:f,selfHostedIconSize:y,selfHostedPlayIconSize:T,selfVideoProgressUiColor:H,vimeoProgressUiColor:M,vimeoPlayIconSize:x,autoplay:k,mute:v,loop:_}=e,R=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Video","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Source","ablocks"),options:XB,isResponsive:!1,attributeValue:o,attributeName:"videoSource",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Autoplay","ablocks"),isResponsive:!1,attributeValue:k,attributeName:"autoplay",setAttributes:i}),"youtube"===o&&(0,I.jsx)(Ot,{label:(0,
4865 +L.__)("Mute","ablocks"),isResponsive:!1,attributeValue:v,attributeName:"mute",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Loop","ablocks"),isResponsive:!1,attributeValue:_,attributeName:"loop",setAttributes:i}),"youtube"===o&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:s,attributeName:"youtubeUrl",setAttributes:i})}),"vimeo"===o&&(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:b,attributeName:"vimeoUrl",setAttributes:i}),"selfHosted"===o&&(0,I.jsx)(Ks,{allowedTypes:["video"],attributeValue:e,deviceType:R,onSelectImageHandler:t=>{i({videoUrl:t?.url})},onRemoveImageHandler:()=>{i({videoUrl:void 0})},attributeName:"videoUrl"}),"audio"===o&&(0,I.jsx)(YB,{allowedTypes:["audio"],attributeValue:e,attributeName:"audioUrl",onSelectImageHandler:t=>{i({audioUrl:t.url})},onRemoveImageHandler:()=>{i({audioUrl:""})},deviceType:""}),"youtube"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("label",{
4854 4866 children:(0,L.__)("Poster Image","ablocks")}),(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,onSelectImageHandler:t=>{i({posterImage:t.url})},onRemoveImageHandler:()=>{i({posterImage:void 0})},attributeName:"posterImage"})]}),"youtube"===o&&(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-video--times-wrapper",children:[(0,I.jsx)(Kl,{label:(0,L.__)("Start","ablocks"),placeholder:"55",attributeValue:c,attributeName:"videoStartTime",setAttributes:i}),(0,I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)("Specify a start time (in seconds)","ablocks")}),(0,I.jsx)(Kl,{label:(0,L.__)("End","ablocks"),placeholder:"65",attributeValue:d,attributeName:"videoEndTime",setAttributes:i}),(0,I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)("Specify a end time (in seconds)","ablocks")})]})})]}),style:(0,I.jsxs)(I.Fragment,{children:["youtube"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,
4855 -L.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"youtubePlayPauseIconSize",attributeValue:n,setAttributes:i,attributeDefaultValue:cB.mX}),(0,I.jsx)(Ws,{label:(0,L.__)("Playbutton Color","ablocks"),attributeName:"youtubeUiColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Progressbar Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"youtubeIconSize",attributeValue:a,setAttributes:i,attributeDefaultValue:cB.o4}),(0,I.jsx)(Ws,{label:(0,L.__)("Progressbar Background","ablocks"),attributeName:"playerbgColor",attributeValue:e?.playerbgColor,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Progressbar Color","ablocks"),attributeName:"youtubeProgressColor",attributeValue:r,setAttributes:i})]}),"selfHosted"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"selfHostedIconSize",attributeValue:y,
4856 -setAttributes:i,attributeDefaultValue:cB.oF}),(0,I.jsx)(Ws,{label:(0,L.__)("Playbutton Color","ablocks"),attributeName:"selfVideoUiColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Progressbar Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"selfHostedPlayIconSize",attributeValue:T,setAttributes:i,attributeDefaultValue:cB.IK}),(0,I.jsx)(Ws,{label:(0,L.__)("Progressbar Background","ablocks"),attributeName:"selfVideobgColor",attributeValue:m,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Progressbar Color","ablocks"),attributeName:"selfVideoProgressUiColor",attributeValue:H,setAttributes:i})]}),"vimeo"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"vimeoIconSize",attributeValue:f,setAttributes:i,attributeDefaultValue:cB.$w}),(0,I.jsx)(Ws,{label:(0,L.__)("Playbutton Color","ablocks"),attributeName:"vimeoUiColor",attributeValue:h,
4857 -setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Progressbar Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"vimeoPlayIconSize",attributeValue:x,setAttributes:i,attributeDefaultValue:cB.JA}),(0,I.jsx)(Ws,{label:(0,L.__)("ProgressBar Background","ablocks"),attributeName:"vimeobgColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("ProgressBar Color","ablocks"),attributeName:"vimeoProgressUiColor",attributeValue:M,setAttributes:i})]})]})})})})})})}pB.propTypes={},pB.defaultProps={};const mB="ablocks/player",hB=class{constructor(t){if(this.element=t,this.youtube=t.querySelector("#youtube"),this.selfHostedVideo=t.querySelector("#selfHostedVideo"),this.audio=t.querySelector("#audio"),this.vimeo=t.querySelector("#vimeo"),this.youtube){const t="true"===this.youtube.getAttribute("data-autoplay"),e="true"===this.youtube.getAttribute("data-mute"),i="true"===this.youtube.getAttribute("data-loop"),o=!!t||e;this.originalMuteState=e,
4867 +L.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"youtubePlayPauseIconSize",attributeValue:n,setAttributes:i,attributeDefaultValue:OB.mX}),(0,I.jsx)(Ws,{label:(0,L.__)("Playbutton Color","ablocks"),attributeName:"youtubeUiColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Progressbar Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"youtubeIconSize",attributeValue:a,setAttributes:i,attributeDefaultValue:OB.o4}),(0,I.jsx)(Ws,{label:(0,L.__)("Progressbar Background","ablocks"),attributeName:"playerbgColor",attributeValue:e?.playerbgColor,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Progressbar Color","ablocks"),attributeName:"youtubeProgressColor",attributeValue:r,setAttributes:i})]}),"selfHosted"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"selfHostedIconSize",attributeValue:y,
4868 +setAttributes:i,attributeDefaultValue:OB.oF}),(0,I.jsx)(Ws,{label:(0,L.__)("Playbutton Color","ablocks"),attributeName:"selfVideoUiColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Progressbar Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"selfHostedPlayIconSize",attributeValue:T,setAttributes:i,attributeDefaultValue:OB.IK}),(0,I.jsx)(Ws,{label:(0,L.__)("Progressbar Background","ablocks"),attributeName:"selfVideobgColor",attributeValue:m,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Progressbar Color","ablocks"),attributeName:"selfVideoProgressUiColor",attributeValue:H,setAttributes:i})]}),"vimeo"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"vimeoIconSize",attributeValue:f,setAttributes:i,attributeDefaultValue:OB.$w}),(0,I.jsx)(Ws,{label:(0,L.__)("Playbutton Color","ablocks"),attributeName:"vimeoUiColor",attributeValue:h,
4869 +setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Progressbar Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"vimeoPlayIconSize",attributeValue:x,setAttributes:i,attributeDefaultValue:OB.JA}),(0,I.jsx)(Ws,{label:(0,L.__)("ProgressBar Background","ablocks"),attributeName:"vimeobgColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("ProgressBar Color","ablocks"),attributeName:"vimeoProgressUiColor",attributeValue:M,setAttributes:i})]})]})})})})})})}BB.propTypes={},BB.defaultProps={};const EB="ablocks/player",FB=class{constructor(t){if(this.element=t,this.youtube=t.querySelector("#youtube"),this.selfHostedVideo=t.querySelector("#selfHostedVideo"),this.audio=t.querySelector("#audio"),this.vimeo=t.querySelector("#vimeo"),this.youtube){const t="true"===this.youtube.getAttribute("data-autoplay"),e="true"===this.youtube.getAttribute("data-mute"),i="true"===this.youtube.getAttribute("data-loop"),o=!!t||e;this.originalMuteState=e,
4858 4870 this.mainPlayer=new Plyr(this.youtube,{autoplay:t,muted:o,loop:{active:i}}),this.configureYouTube()}else if(this.selfHostedVideo)this.mainPlayer=new Plyr(this.selfHostedVideo);else if(this.vimeo){const t="true"===this.vimeo.getAttribute("data-autoplay"),e="true"===this.vimeo.getAttribute("data-mute"),i="true"===this.vimeo.getAttribute("data-loop"),o=!!t||e;this.originalMuteState=e,this.mainPlayer=new Plyr(this.vimeo,{autoplay:t,muted:o,loop:{active:i}})}else this.audio&&(this.mainPlayer=new Plyr(this.audio));if(this.mainPlayer){const e=t.querySelector(".plyr");e&&this.insertPlayButton(e),this.mainPlayer.on("playing",()=>{this.hidePlayButton(),!this.originalMuteState&&this.mainPlayer.muted&&(this.mainPlayer.muted=!1)}),this.mainPlayer.on("pause",()=>this.showPlayButton()),this.mainPlayer.on("ended",()=>this.showPlayButton()),this.mainPlayer.on("ready",()=>{this.element.querySelectorAll(".plyr__control").forEach(t=>{t.addEventListener("click",()=>{
4859 4871 !this.originalMuteState&&this.mainPlayer.muted&&(this.mainPlayer.muted=!1)})})})}}configureYouTube(){this.videoStartTime=this.parseTime(this.youtube.getAttribute("data-video-start-time")),this.videoEndTime=this.parseTime(this.youtube.getAttribute("data-video-end-time")),this.mainPlayer.on("ready",()=>{isNaN(this.videoStartTime)||(this.mainPlayer.currentTime=this.videoStartTime)}),this.mainPlayer.on("timeupdate",()=>{!isNaN(this.videoEndTime)&&this.mainPlayer.currentTime>=this.videoEndTime&&this.mainPlayer.pause()})}insertPlayButton(t){const e=document.createElement("div");e.className="ablocks-play-pause-button",t.appendChild(e),this.playButton=e,e.addEventListener("click",()=>{!this.originalMuteState&&this.mainPlayer.muted&&(this.mainPlayer.muted=!1),this.mainPlayer.togglePlay()})}hidePlayButton(){this.playButton?.classList.add("is-hidden")}showPlayButton(){this.playButton?.classList.remove("is-hidden")}parseTime(t){
4860 -return t?t.split(":").reverse().reduce((t,e,i)=>t+parseFloat(e)*60**i,0):NaN}destroy(){this.mainPlayer?.destroy()}},gB=({audioUrl:t,autoplay:e,mute:i,loop:o})=>(0,I.jsx)("div",{children:(0,I.jsx)("audio",{id:"audio",controls:!0,autoPlay:e,muted:i,loop:o,children:(0,I.jsx)("source",{src:t,type:"audio/mp3"})})}),fB={videoUrl:Y().string};function yB(t){const{videoUrl:e,videoStartTime:i,videoEndTime:o,autoplay:a,mute:l,loop:n}=t,s=((t,e)=>{const i=t||0,o=e||"";let a;return a=i&&o?`#t=${i},${o}`:i?`#t=${i}`:"",a})(i,o);return(0,I.jsx)("div",{className:"ablocks-block-selfhosted-container",children:(0,I.jsxs)("video",{id:"selfHostedVideo",playsInline:!0,controls:!0,autoPlay:a,muted:l,loop:n,children:[(0,I.jsx)("source",{src:e+s,type:"video/mp4"}),"Your browser does not support the video tag."]})})}yB.propTypes=fB,yB.defaultProps={videoUrl:""};const TB=({youtubeUrl:t,videoStartTime:e,videoEndTime:i,autoplay:o,mute:a,loop:l})=>{const n=function(t=""){
4861 -const e=t?.match(/(?:youtu\.be\/|youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return e?e[1]:null}(t);return(0,I.jsx)("div",{className:"ablocks-block-youtube-container",children:(0,I.jsx)("div",{id:"youtube","data-plyr-provider":"youtube","data-plyr-embed-id":n,"data-video-start-time":e||0,"data-video-end-time":i||"","data-autoplay":o,"data-mute":a,"data-loop":l})})},HB=({vimeoUrl:t,autoplay:e,mute:i,loop:o})=>{const a=function(t){const e=t?.match(/vimeo\.com\/(\d+)/);return e&&e[1]}(t);return(0,I.jsx)("div",{className:"ablocks-block-vimeo-container",children:(0,I.jsx)("div",{id:"vimeo","data-plyr-provider":"vimeo","data-plyr-embed-id":a,"data-autoplay":e,"data-mute":i,"data-loop":o})})};function MB(t){const{attributes:e}=t,{block_id:i,videoSource:o,videoUrl:n,audioUrl:s,vimeoUrl:r,youtubeUrl:b,videoStartTime:c,videoEndTime:d,autoplay:u,mute:p,loop:m}=e;let h;if("none"!==o)switch(o){case"youtube":h=(0,I.jsx)(TB,{youtubeUrl:e?.youtubeUrl,
4862 -videoStartTime:c,videoEndTime:d,autoplay:u,mute:p,loop:m},`${e.youtubeUrl}-${c}-${d}-${u}-${p}-${m}`);break;case"audio":h=(0,I.jsx)(gB,{audioUrl:s,autoplay:u,mute:p,loop:m},`${s}-${u}-${p}-${m}`);break;case"selfHosted":h=(0,I.jsx)(yB,{videoUrl:n,videoStartTime:c,videoEndTime:d,autoplay:u,mute:p,loop:m},`${n}-${c}-${d}-${u}-${p}-${m}`);break;case"vimeo":h=(0,I.jsx)(HB,{vimeoUrl:r,autoplay:u,mute:p,loop:m},`${r}-${u}-${p}-${m}`);break;default:h=null}return(0,a.useEffect)(()=>{let t;const e=(0,M.bu)(`.ablocks-block-${i}.ablocks-block--player`);return null!==e&&(t=new hB(e)),()=>{t?.destroy()}},[o,n,b,r,c,d,u,p,m]),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:mB,attributes:{...e,className:"ablocks-prevent-select"},children:h})})}MB.propTypes={},MB.defaultProps={};const xB=(t,e)=>{const i={};return t?.youtubeUiColor&&(i["--plyr-color-main"]=(0,Hs.qD)(t?.youtubeUiColor)),t?.youtubePlayPauseIconSize&&(i["--plyr-control-icon-size"]=`${t?.youtubePlayPauseIconSize}px`),i
4863 -},kB=t=>{const e={};return t?.youtubeProgressColor&&(e["--plyr-color-main"]=(0,Hs.qD)(t?.youtubeProgressColor)),t?.youtubeIconSize&&(e["--plyr-control-icon-size"]=`${t?.youtubeIconSize}px`),t?.playerbgColor&&(e["--plyr-video-controls-background"]=(0,Hs.qD)(t?.playerbgColor),e.padding="0"),e},vB=(t,e)=>{const i={};return t?.selfVideoProgressUiColor&&(i["--plyr-color-main"]=(0,Hs.qD)(t?.selfVideoProgressUiColor)),t?.selfHostedPlayIconSize&&(i["--plyr-control-icon-size"]=`${t?.selfHostedPlayIconSize}px`),t?.selfVideobgColor&&(i["--plyr-video-controls-background"]=(0,Hs.qD)(t?.selfVideobgColor),i.padding="0"),i},_B=(t,e)=>{const i={};return t?.selfVideoUiColor&&(i["--plyr-color-main"]=t?.selfVideoUiColor),t?.selfHostedIconSize&&(i["--plyr-control-icon-size"]=`${t?.selfHostedIconSize}px`),i},RB=(t,e)=>{const i={};return t?.vimeoProgressUiColor&&(i["--plyr-color-main"]=(0,Hs.qD)(t?.vimeoProgressUiColor)),t?.vimeoPlayIconSize&&(i["--plyr-control-icon-size"]=`${t?.vimeoPlayIconSize}px`),
4864 -t?.vimeobgColor&&(i["--plyr-video-controls-background"]=(0,Hs.qD)(t?.vimeobgColor),i.padding="0"),i},SB=(t,e)=>{const i={};return t?.vimeoUiColor&&(i["--plyr-color-main"]=(0,Hs.qD)(t?.vimeoUiColor)),t?.vimeoIconSize&&(i["--plyr-control-icon-size"]=`${t?.vimeoIconSize}px`),i},WB=(t,e)=>{const i={};return t?.posterImage&&(i["background-image"]=`url(${t.posterImage}) !important`),i["background-size"]="cover",i};function PB(t){const{attributes:e}=t,{block_id:i,videoSource:o,audioUrl:a,vimeoUrl:n,videoStartTime:s,videoEndTime:r,autoplay:b,mute:c,loop:d}=e;let u;if("none"!==o)switch(o){case"youtube":u=(0,I.jsx)(TB,{youtubeUrl:e?.youtubeUrl,videoStartTime:s,videoEndTime:r,autoplay:b,mute:c,loop:d},`${e.youtubeUrl}-${s}-${r}-${b}-${c}-${d}`);break;case"audio":u=(0,I.jsx)(gB,{audioUrl:a,autoplay:b,mute:c,loop:d},`${a}-${b}-${c}-${d}`);break;case"selfHosted":u=(0,I.jsx)(yB,{videoUrl:e?.videoUrl,videoStartTime:s,videoEndTime:r,autoplay:b,mute:c,loop:d},`${e?.videoUrl}-${s}-${r}-${b}-${c}-${d}`)
4865 -;break;case"vimeo":u=(0,I.jsx)(HB,{vimeoUrl:n,autoplay:b,mute:c,loop:d},`${n}-${b}-${c}-${d}`);break;default:u=null}return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:mB,attributes:e,children:u})})}PB.propTypes={},PB.defaultProps={},(0,M.xV)(mB)&&(0,o.registerBlockType)(mB,{attributes:cB.Ay,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--player"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-youtube-container > .plyr--video > .plyr__controls",kB(i),kB(i),kB(i),e(t=>kB(i))),
4866 -t.addClassStyles("{{WRAPPER}} .ablocks-block-youtube-container > .plyr--youtube > .plyr__control--overlaid",xB(i),xB(i),xB(i),e(t=>xB(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-selfhosted-container > .plyr--video > .plyr__controls",vB(i),vB(i),vB(i),e(t=>vB(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-selfhosted-container > .plyr--html5 > .plyr__control--overlaid",_B(i),_B(i),_B(i),e(t=>_B(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-vimeo-container > .plyr--video > .plyr__controls",RB(i),RB(i),RB(i),e(t=>RB(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-vimeo-container > .plyr--vimeo > .plyr__control--overlaid",SB(i),SB(i),SB(i),e(t=>SB(i))),t.addClassStyles("{{WRAPPER}} .plyr__poster",WB(i),WB(i),WB(i),e(t=>WB(i))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(pB,{...t}),(0,I.jsx)(MB,{...t})]})},save:PB});var UB=i(96931);function jB(t){
4867 -const{attributes:e,setAttributes:i}=t,{floatAlignment:o,floatMargin:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(V,{title:(0,L.__)("Academy Container Setting","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Container Width","ablocks"),attributeValue:e?.containerWidth,hasUnit:!0,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"}],attributeName:"containerWidth",setAttributes:i,isInline:!1,min:0,max:1e3,attributeDefaultValue:UB.O,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"floatAlignment",attributeValue:o,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("none","ablocks"),value:"none",icon:"wrap"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"arrow-right"}],isInline:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"floatMargin",attributeValue:a,
4868 -setAttributes:i})]})})})}jB.propTypes={};const wB={UU:"ablocks/academy-container",$t:["ablocks/academy-certificate"],uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},floatMargin:{type:"object",default:""},variationSelected:{type:"boolean",default:!1},floatAlignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},containerWidth:{type:"object",default:{value:290,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",
4872 +return t?t.split(":").reverse().reduce((t,e,i)=>t+parseFloat(e)*60**i,0):NaN}destroy(){this.mainPlayer?.destroy()}},qB=({audioUrl:t,autoplay:e,mute:i,loop:o})=>(0,I.jsx)("div",{children:(0,I.jsx)("audio",{id:"audio",controls:!0,autoPlay:e,muted:i,loop:o,children:(0,I.jsx)("source",{src:t,type:"audio/mp3"})})}),$B={videoUrl:Y().string};function GB(t){const{videoUrl:e,videoStartTime:i,videoEndTime:o,autoplay:a,mute:l,loop:n}=t,s=((t,e)=>{const i=t||0,o=e||"";let a;return a=i&&o?`#t=${i},${o}`:i?`#t=${i}`:"",a})(i,o);return(0,I.jsx)("div",{className:"ablocks-block-selfhosted-container",children:(0,I.jsxs)("video",{id:"selfHostedVideo",playsInline:!0,controls:!0,autoPlay:a,muted:l,loop:n,children:[(0,I.jsx)("source",{src:e+s,type:"video/mp4"}),"Your browser does not support the video tag."]})})}GB.propTypes=$B,GB.defaultProps={videoUrl:""};const ZB=({youtubeUrl:t,videoStartTime:e,videoEndTime:i,autoplay:o,mute:a,loop:l})=>{const n=function(t=""){
4873 +const e=t?.match(/(?:youtu\.be\/|youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return e?e[1]:null}(t);return(0,I.jsx)("div",{className:"ablocks-block-youtube-container",children:(0,I.jsx)("div",{id:"youtube","data-plyr-provider":"youtube","data-plyr-embed-id":n,"data-video-start-time":e||0,"data-video-end-time":i||"","data-autoplay":o,"data-mute":a,"data-loop":l})})},KB=({vimeoUrl:t,autoplay:e,mute:i,loop:o})=>{const a=function(t){const e=t?.match(/vimeo\.com\/(\d+)/);return e&&e[1]}(t);return(0,I.jsx)("div",{className:"ablocks-block-vimeo-container",children:(0,I.jsx)("div",{id:"vimeo","data-plyr-provider":"vimeo","data-plyr-embed-id":a,"data-autoplay":e,"data-mute":i,"data-loop":o})})};function JB(t){const{attributes:e}=t,{block_id:i,videoSource:o,videoUrl:n,audioUrl:s,vimeoUrl:r,youtubeUrl:b,videoStartTime:c,videoEndTime:d,autoplay:u,mute:p,loop:m}=e;let h;if("none"!==o)switch(o){case"youtube":h=(0,I.jsx)(ZB,{youtubeUrl:e?.youtubeUrl,
4874 +videoStartTime:c,videoEndTime:d,autoplay:u,mute:p,loop:m},`${e.youtubeUrl}-${c}-${d}-${u}-${p}-${m}`);break;case"audio":h=(0,I.jsx)(qB,{audioUrl:s,autoplay:u,mute:p,loop:m},`${s}-${u}-${p}-${m}`);break;case"selfHosted":h=(0,I.jsx)(GB,{videoUrl:n,videoStartTime:c,videoEndTime:d,autoplay:u,mute:p,loop:m},`${n}-${c}-${d}-${u}-${p}-${m}`);break;case"vimeo":h=(0,I.jsx)(KB,{vimeoUrl:r,autoplay:u,mute:p,loop:m},`${r}-${u}-${p}-${m}`);break;default:h=null}return(0,a.useEffect)(()=>{let t;const e=(0,M.bu)(`.ablocks-block-${i}.ablocks-block--player`);return null!==e&&(t=new FB(e)),()=>{t?.destroy()}},[o,n,b,r,c,d,u,p,m]),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:EB,attributes:{...e,className:"ablocks-prevent-select"},children:h})})}JB.propTypes={},JB.defaultProps={};const QB=(t,e)=>{const i={};return t?.youtubeUiColor&&(i["--plyr-color-main"]=(0,Hs.qD)(t?.youtubeUiColor)),t?.youtubePlayPauseIconSize&&(i["--plyr-control-icon-size"]=`${t?.youtubePlayPauseIconSize}px`),i
4875 +},tE=t=>{const e={};return t?.youtubeProgressColor&&(e["--plyr-color-main"]=(0,Hs.qD)(t?.youtubeProgressColor)),t?.youtubeIconSize&&(e["--plyr-control-icon-size"]=`${t?.youtubeIconSize}px`),t?.playerbgColor&&(e["--plyr-video-controls-background"]=(0,Hs.qD)(t?.playerbgColor),e.padding="0"),e},eE=(t,e)=>{const i={};return t?.selfVideoProgressUiColor&&(i["--plyr-color-main"]=(0,Hs.qD)(t?.selfVideoProgressUiColor)),t?.selfHostedPlayIconSize&&(i["--plyr-control-icon-size"]=`${t?.selfHostedPlayIconSize}px`),t?.selfVideobgColor&&(i["--plyr-video-controls-background"]=(0,Hs.qD)(t?.selfVideobgColor),i.padding="0"),i},iE=(t,e)=>{const i={};return t?.selfVideoUiColor&&(i["--plyr-color-main"]=t?.selfVideoUiColor),t?.selfHostedIconSize&&(i["--plyr-control-icon-size"]=`${t?.selfHostedIconSize}px`),i},oE=(t,e)=>{const i={};return t?.vimeoProgressUiColor&&(i["--plyr-color-main"]=(0,Hs.qD)(t?.vimeoProgressUiColor)),t?.vimeoPlayIconSize&&(i["--plyr-control-icon-size"]=`${t?.vimeoPlayIconSize}px`),
4876 +t?.vimeobgColor&&(i["--plyr-video-controls-background"]=(0,Hs.qD)(t?.vimeobgColor),i.padding="0"),i},aE=(t,e)=>{const i={};return t?.vimeoUiColor&&(i["--plyr-color-main"]=(0,Hs.qD)(t?.vimeoUiColor)),t?.vimeoIconSize&&(i["--plyr-control-icon-size"]=`${t?.vimeoIconSize}px`),i},lE=(t,e)=>{const i={};return t?.posterImage&&(i["background-image"]=`url(${t.posterImage}) !important`),i["background-size"]="cover",i};function nE(t){const{attributes:e}=t,{block_id:i,videoSource:o,audioUrl:a,vimeoUrl:n,videoStartTime:s,videoEndTime:r,autoplay:b,mute:c,loop:d}=e;let u;if("none"!==o)switch(o){case"youtube":u=(0,I.jsx)(ZB,{youtubeUrl:e?.youtubeUrl,videoStartTime:s,videoEndTime:r,autoplay:b,mute:c,loop:d},`${e.youtubeUrl}-${s}-${r}-${b}-${c}-${d}`);break;case"audio":u=(0,I.jsx)(qB,{audioUrl:a,autoplay:b,mute:c,loop:d},`${a}-${b}-${c}-${d}`);break;case"selfHosted":u=(0,I.jsx)(GB,{videoUrl:e?.videoUrl,videoStartTime:s,videoEndTime:r,autoplay:b,mute:c,loop:d},`${e?.videoUrl}-${s}-${r}-${b}-${c}-${d}`)
4877 +;break;case"vimeo":u=(0,I.jsx)(KB,{vimeoUrl:n,autoplay:b,mute:c,loop:d},`${n}-${b}-${c}-${d}`);break;default:u=null}return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:EB,attributes:e,children:u})})}nE.propTypes={},nE.defaultProps={},(0,M.xV)(EB)&&(0,o.registerBlockType)(EB,{attributes:OB.Ay,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--player"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-youtube-container > .plyr--video > .plyr__controls",tE(i),tE(i),tE(i),e(t=>tE(i))),
4878 +t.addClassStyles("{{WRAPPER}} .ablocks-block-youtube-container > .plyr--youtube > .plyr__control--overlaid",QB(i),QB(i),QB(i),e(t=>QB(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-selfhosted-container > .plyr--video > .plyr__controls",eE(i),eE(i),eE(i),e(t=>eE(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-selfhosted-container > .plyr--html5 > .plyr__control--overlaid",iE(i),iE(i),iE(i),e(t=>iE(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-vimeo-container > .plyr--video > .plyr__controls",oE(i),oE(i),oE(i),e(t=>oE(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-vimeo-container > .plyr--vimeo > .plyr__control--overlaid",aE(i),aE(i),aE(i),e(t=>aE(i))),t.addClassStyles("{{WRAPPER}} .plyr__poster",lE(i),lE(i),lE(i),e(t=>lE(i))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(BB,{...t}),(0,I.jsx)(JB,{...t})]})},save:nE});var sE=i(96931);function rE(t){
4879 +const{attributes:e,setAttributes:i}=t,{floatAlignment:o,floatMargin:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(V,{title:(0,L.__)("Academy Container Setting","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Container Width","ablocks"),attributeValue:e?.containerWidth,hasUnit:!0,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"}],attributeName:"containerWidth",setAttributes:i,isInline:!1,min:0,max:1e3,attributeDefaultValue:sE.O,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"floatAlignment",attributeValue:o,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("none","ablocks"),value:"none",icon:"wrap"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"arrow-right"}],isInline:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"floatMargin",attributeValue:a,
4880 +setAttributes:i})]})})})}rE.propTypes={};const bE={UU:"ablocks/academy-container",$t:["ablocks/academy-certificate"],uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},floatMargin:{type:"object",default:""},variationSelected:{type:"boolean",default:!1},floatAlignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},containerWidth:{type:"object",default:{value:290,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",
4869 4881 bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",
4870 4882 bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",
4871 4883 leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",
4872 4884 imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",
@@ -4872,10 +4884,10 @@
4872 4884 imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",
4873 4885 imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",
4874 4886 scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",
4875 4887 skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",
4876 -shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function zB(t){const{attributes:e,setAttributes:i,hasChildBlocks:o}=t,{block_id:l,pageSize:n,pageOrientation:s}=e;(0,a.useEffect)(()=>{s||i({pageOrientation:"l"})},[s,i])
4877 -;const r=o?void 0:()=>(0,I.jsx)(D.InnerBlocks.ButtonBlockAppender,{});return(0,I.jsx)(tP,{blockId:l,name:wB.UU,attributes:e,typography:[{fontFamily:e.search_typography?.fontFamily,weight:e.search_typography?.weight}],children:(0,I.jsx)("div",{className:"academy-inner-container",children:(0,I.jsx)(D.InnerBlocks,{allowedBlocks:["ablocks/academy-certificate-text","core/image","ablocks/academy-certificate-id","core/spacer","ablocks/academy-container"],templateLock:!1,renderAppender:r})})})}zB.propTypes={};const CB=[{name:"academy-default",title:(0,L.__)("1 column","ablocks"),description:(0,L.__)("Preset academy container with flex layout and default attributes.","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-1"}),attributes:{variationSelected:!0,blockVersion:2,containerWidth:{value:700,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"left",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,
4888 +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function cE(t){const{attributes:e,setAttributes:i,hasChildBlocks:o}=t,{block_id:l,pageSize:n,pageOrientation:s}=e;(0,a.useEffect)(()=>{s||i({pageOrientation:"l"})},[s,i])
4889 +;const r=o?void 0:()=>(0,I.jsx)(D.InnerBlocks.ButtonBlockAppender,{});return(0,I.jsx)(sP,{blockId:l,name:bE.UU,attributes:e,typography:[{fontFamily:e.search_typography?.fontFamily,weight:e.search_typography?.weight}],children:(0,I.jsx)("div",{className:"academy-inner-container",children:(0,I.jsx)(D.InnerBlocks,{allowedBlocks:["ablocks/academy-certificate-text","core/image","ablocks/academy-certificate-id","core/spacer","ablocks/academy-container"],templateLock:!1,renderAppender:r})})})}cE.propTypes={};const dE=[{name:"academy-default",title:(0,L.__)("1 column","ablocks"),description:(0,L.__)("Preset academy container with flex layout and default attributes.","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-1"}),attributes:{variationSelected:!0,blockVersion:2,containerWidth:{value:700,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"left",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,
4878 4890 isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"50",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},innerBlocks:[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:98,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]],scope:["block"],isDefault:!0},{name:"academy-default",title:(0,L.__)("2 column","ablocks"),description:(0,L.__)("Preset academy container with flex layout and default attributes.","ablocks"),icon:(0,
4879 4891 I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-2"}),attributes:{variationSelected:!0,blockVersion:2,containerWidth:{value:349,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"left",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"50",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},innerBlocks:[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:98,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",
4880 4892 unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:99,valueUnit:"%",valueTablet:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]]],["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:98,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"%",commonTablet:"",topTablet:"",rightTablet:"",
4881 4893 bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:99,valueUnit:"%",valueTablet:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]]]],scope:["block"],isDefault:!0},{name:"academy-three-columns",title:(0,L.__)("3 Columns","ablocks"),description:(0,L.__)("Preset academy container with three evenly sized inner containers.","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-3"}),attributes:{variationSelected:!0,blockVersion:2,containerWidth:{value:232,
@@ -4886,20 +4898,20 @@
4886 4898 valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"0",right:"0",bottom:"0",left:"50",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},innerBlocks:[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:98,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:99,valueUnit:"%",valueTablet:"",valueMobile:"",valueUnitTablet:"",
4887 4899 valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]]],["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:98,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:99,valueUnit:"%",valueTablet:"",
4888 4900 valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]]],["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:98,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:99,
4889 4901 valueUnit:"%",valueTablet:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]]],["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:98,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},[["ablocks/academy-container",{variationSelected:!0,
4890 -containerWidth:{value:99,valueUnit:"%",valueTablet:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]]]],scope:["block"]}],AB=({clientId:t,setAttributes:e,defaultVariation:i=CB[0]})=>{const{replaceInnerBlocks:a}=(0,r.useDispatch)("core/block-editor");return(0,I.jsx)("div",{className:"ablocks-academy-variation-picker",children:(0,I.jsx)(D.__experimentalBlockVariationPicker,{label:(0,L.__)("Choose float layout","ablocks"),instructions:"",variations:CB,onSelect:(l=i)=>{l.attributes&&e({...l.attributes,variationSelected:!0}),l.innerBlocks&&a(t,(0,o.createBlocksFromInnerBlocksTemplate)(l.innerBlocks))}})})},LB=(t,e="")=>{
4891 -const{containerWidth:i}=t,o={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:250,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})};return o.width&&(o.width=`${o.width} `),{...o,...(0,Zt.qD)(t?.floatAlignment,"float",e),...(0,c.qD)(t?.floatMargin,"margin",e)}};function DB(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:wB.UU,attributes:e,children:(0,I.jsx)("div",{className:"academy-inner-container",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}DB.propTypes={},((0,M.xV)(wB.UU,wB.$t[0],"academy_lms")||(0,M.xV)(wB.UU,wB.$t[0],"quizpress"))&&(0,o.registerBlockType)(wB.UU,{title:(0,L.__)("Certificate Container","ablocks"),attributes:wB.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/logo-shape.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,variationSelected:c}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l,o])
4892 -;const{hasChildBlocks:d}=(0,r.useSelect)(t=>{const e=t("core/block-editor");return{hasChildBlocks:e?.getBlockOrder(l).length>0}},[l]),u=(0,a.useMemo)(()=>{if(!c&&!d)return"";const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .academy-inner-container > div > div > .block-editor-block-list__block",LB(i),LB(i,"Tablet"),LB(i,"Mobile"),t.customDeviceMap(t=>LB(i,t))),(0,b.applyFilters)("ablocks.academy-container.inlineCSS",t.generateCSS(),i)},[i,l,c,d]);if(!c&&!d)return(0,I.jsx)(AB,{...t});const p=s()("ablocks-block--academy-container");return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(jB,{...t}),u&&(0,I.jsx)("style",{children:u}),(0,I.jsx)(zB,{...t,className:p})]})},save:DB});const NB=({type:t,attributes:e,setAttributes:i,academyTerms:o})=>{let a=(0,L.__)("Course Ids","ablocks"),l="course_ids",n=e?.course_ids||"",s=(0,L.__)("Course Categories","ablocks"),r="course_categories",b=e?.course_categories||"",c=(0,L.__)("Course Tags","ablocks"),d="course_tags",u=e?.course_tags||""
4893 -;"exclude"===t&&(a=(0,L.__)("Exclude Course Ids","ablocks"),l="course_exclude_ids",n=e?.course_exclude_ids||"",s=(0,L.__)("Exclude Course Categories","ablocks"),r="course_exclude_categories",b=e?.course_exclude_categories||"",c=(0,L.__)("Exclude Course Tags","ablocks"),d="course_exclude_tags",u=e?.course_exclude_tags||"");const p=o.categories||[],m=o.tags||[];return(0,I.jsxs)("div",{className:"ablocks-course-settings-include-exclude-options",children:[(0,I.jsx)(le,{label:a,attributeName:l,attributeValue:n,onChangeHandler:t=>i({[l]:t||void 0}),placeholder:(0,L.__)("Enter Course id's separated by comma","ablocks")}),(0,I.jsx)("i",{children:(0,L.__)("Enter Course id's separated by comma","ablocks")}),(0,I.jsx)(Ut,{isMulti:!0,options:p,label:s,attributeValue:b||[],attributeName:r,setAttributes:i}),(0,I.jsx)(Ut,{isMulti:!0,options:m,label:c,attributeValue:u||[],attributeName:d,setAttributes:i})]})},IB=[{label:(0,L.__)("2","ablocks"),value:2},{label:(0,L.__)("3","ablocks"),value:3},{
4894 -label:(0,L.__)("4","ablocks"),value:4},{label:(0,L.__)("6","ablocks"),value:6},{label:(0,L.__)("12","ablocks"),value:12}],VB=[{label:(0,L.__)("Beginner","ablocks"),value:"beginner"},{label:(0,L.__)("Intermediate","ablocks"),value:"intermediate"},{label:(0,L.__)("Expert","ablocks"),value:"experts"}],OB=[{label:(0,L.__)("Free","ablocks"),value:"free"},{label:(0,L.__)("Paid","ablocks"),value:"paid"}],YB=[{label:(0,L.__)("Date","ablocks"),value:"date"},{label:(0,L.__)("Product Title","ablocks"),value:"title"},{label:(0,L.__)("Modified Date","ablocks"),value:"modified"}],XB=[{label:(0,L.__)("Descending","ablocks"),value:"DESC"},{label:(0,L.__)("Ascending","ablocks"),value:"ASC"}];function BB(t){
4895 -const{attributes:e,setAttributes:i,academyTerms:o}=t,{course_columns:a,show_pagination:n,difficulty_levels:s="",price_types:r="",order_by:b,course_order:c,cat_typography:d,category_color:u,category_hover_color:p,title_typography:m,title_color:h,title_hover_color:g,author_typography:f,author_color:y,author_hover_color:T,rating_typography:H,rating_color:M,rating_hover_color:x,price_typography:k,price_color:v,price_hover_color:_,card_background:R,card_border:S,card_margin:W,card_hover_margin:P,card_padding:U,card_hover_padding:j,wish_icon_background:w,wish_icon_color:z,wish_icon_hover_color:C}=e,A={attributes:e,setAttributes:i,academyTerms:o},N=[{title:(0,L.__)("Include","ablocks"),name:"include",render:(0,I.jsx)(NB,{type:"include",...A})},{title:(0,L.__)("Exclude","ablocks"),name:"exclude",render:(0,I.jsx)(NB,{type:"exclude",...A})}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,
4896 -L.__)("Layout Options","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{options:IB,label:(0,L.__)("Course Columns","ablocks"),attributeValue:a,attributeName:"course_columns",setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Pagination","ablocks"),attributeValue:n,setAttributes:i,attributeName:"show_pagination"})]}),(0,I.jsxs)(V,{title:(0,L.__)("Course Query","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Courses Per Page","ablocks"),min:0,max:1e3,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"course_count",attributeValue:e,setAttributes:i,attributeObjectKey:"course_count"}),(0,I.jsx)(Ut,{isMulti:!0,options:VB,label:(0,L.__)("Difficulty Level","ablocks"),attributeValue:s,attributeName:"difficulty_levels",setAttributes:i}),(0,I.jsx)(Ut,{isMulti:!0,options:OB,label:(0,L.__)("Price Type","ablocks"),attributeValue:r,attributeName:"price_types",setAttributes:i}),(0,I.jsx)(Ut,{options:YB,label:(0,L.__)("Order By","ablocks"),attributeValue:b,
4897 -attributeName:"order_by",setAttributes:i}),(0,I.jsx)(Ut,{options:XB,label:(0,L.__)("Order","ablocks"),attributeValue:c,attributeName:"course_order",setAttributes:i}),(0,I.jsx)(Jl,{tabs:N})]}),(0,I.jsxs)(V,{title:(0,L.__)("Course Card","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Category","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"cat_typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"category_color",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"category_hover_color",attributeValue:p,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Title","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:m,setAttributes:i,isResponsive:!0,
4902 +containerWidth:{value:99,valueUnit:"%",valueTablet:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]]]],scope:["block"]}],uE=({clientId:t,setAttributes:e,defaultVariation:i=dE[0]})=>{const{replaceInnerBlocks:a}=(0,r.useDispatch)("core/block-editor");return(0,I.jsx)("div",{className:"ablocks-academy-variation-picker",children:(0,I.jsx)(D.__experimentalBlockVariationPicker,{label:(0,L.__)("Choose float layout","ablocks"),instructions:"",variations:dE,onSelect:(l=i)=>{l.attributes&&e({...l.attributes,variationSelected:!0}),l.innerBlocks&&a(t,(0,o.createBlocksFromInnerBlocksTemplate)(l.innerBlocks))}})})},pE=(t,e="")=>{
4903 +const{containerWidth:i}=t,o={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:250,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})};return o.width&&(o.width=`${o.width} `),{...o,...(0,Zt.qD)(t?.floatAlignment,"float",e),...(0,c.qD)(t?.floatMargin,"margin",e)}};function mE(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:bE.UU,attributes:e,children:(0,I.jsx)("div",{className:"academy-inner-container",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}mE.propTypes={},((0,M.xV)(bE.UU,bE.$t[0],"academy_lms")||(0,M.xV)(bE.UU,bE.$t[0],"quizpress"))&&(0,o.registerBlockType)(bE.UU,{title:(0,L.__)("Certificate Container","ablocks"),attributes:bE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/logo-shape.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,variationSelected:c}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l,o])
4904 +;const{hasChildBlocks:d}=(0,r.useSelect)(t=>{const e=t("core/block-editor");return{hasChildBlocks:e?.getBlockOrder(l).length>0}},[l]),u=(0,a.useMemo)(()=>{if(!c&&!d)return"";const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .academy-inner-container > div > div > .block-editor-block-list__block",pE(i),pE(i,"Tablet"),pE(i,"Mobile"),t.customDeviceMap(t=>pE(i,t))),(0,b.applyFilters)("ablocks.academy-container.inlineCSS",t.generateCSS(),i)},[i,l,c,d]);if(!c&&!d)return(0,I.jsx)(uE,{...t});const p=s()("ablocks-block--academy-container");return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(rE,{...t}),u&&(0,I.jsx)("style",{children:u}),(0,I.jsx)(cE,{...t,className:p})]})},save:mE});const hE=({type:t,attributes:e,setAttributes:i,academyTerms:o})=>{let a=(0,L.__)("Course Ids","ablocks"),l="course_ids",n=e?.course_ids||"",s=(0,L.__)("Course Categories","ablocks"),r="course_categories",b=e?.course_categories||"",c=(0,L.__)("Course Tags","ablocks"),d="course_tags",u=e?.course_tags||""
4905 +;"exclude"===t&&(a=(0,L.__)("Exclude Course Ids","ablocks"),l="course_exclude_ids",n=e?.course_exclude_ids||"",s=(0,L.__)("Exclude Course Categories","ablocks"),r="course_exclude_categories",b=e?.course_exclude_categories||"",c=(0,L.__)("Exclude Course Tags","ablocks"),d="course_exclude_tags",u=e?.course_exclude_tags||"");const p=o.categories||[],m=o.tags||[];return(0,I.jsxs)("div",{className:"ablocks-course-settings-include-exclude-options",children:[(0,I.jsx)(le,{label:a,attributeName:l,attributeValue:n,onChangeHandler:t=>i({[l]:t||void 0}),placeholder:(0,L.__)("Enter Course id's separated by comma","ablocks")}),(0,I.jsx)("i",{children:(0,L.__)("Enter Course id's separated by comma","ablocks")}),(0,I.jsx)(Ut,{isMulti:!0,options:p,label:s,attributeValue:b||[],attributeName:r,setAttributes:i}),(0,I.jsx)(Ut,{isMulti:!0,options:m,label:c,attributeValue:u||[],attributeName:d,setAttributes:i})]})},gE=[{label:(0,L.__)("2","ablocks"),value:2},{label:(0,L.__)("3","ablocks"),value:3},{
4906 +label:(0,L.__)("4","ablocks"),value:4},{label:(0,L.__)("6","ablocks"),value:6},{label:(0,L.__)("12","ablocks"),value:12}],fE=[{label:(0,L.__)("Beginner","ablocks"),value:"beginner"},{label:(0,L.__)("Intermediate","ablocks"),value:"intermediate"},{label:(0,L.__)("Expert","ablocks"),value:"experts"}],yE=[{label:(0,L.__)("Free","ablocks"),value:"free"},{label:(0,L.__)("Paid","ablocks"),value:"paid"}],TE=[{label:(0,L.__)("Date","ablocks"),value:"date"},{label:(0,L.__)("Product Title","ablocks"),value:"title"},{label:(0,L.__)("Modified Date","ablocks"),value:"modified"}],HE=[{label:(0,L.__)("Descending","ablocks"),value:"DESC"},{label:(0,L.__)("Ascending","ablocks"),value:"ASC"}];function ME(t){
4907 +const{attributes:e,setAttributes:i,academyTerms:o}=t,{course_columns:a,show_pagination:n,difficulty_levels:s="",price_types:r="",order_by:b,course_order:c,cat_typography:d,category_color:u,category_hover_color:p,title_typography:m,title_color:h,title_hover_color:g,author_typography:f,author_color:y,author_hover_color:T,rating_typography:H,rating_color:M,rating_hover_color:x,price_typography:k,price_color:v,price_hover_color:_,card_background:R,card_border:S,card_margin:W,card_hover_margin:P,card_padding:U,card_hover_padding:j,wish_icon_background:w,wish_icon_color:z,wish_icon_hover_color:C}=e,A={attributes:e,setAttributes:i,academyTerms:o},N=[{title:(0,L.__)("Include","ablocks"),name:"include",render:(0,I.jsx)(hE,{type:"include",...A})},{title:(0,L.__)("Exclude","ablocks"),name:"exclude",render:(0,I.jsx)(hE,{type:"exclude",...A})}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,
4908 +L.__)("Layout Options","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{options:gE,label:(0,L.__)("Course Columns","ablocks"),attributeValue:a,attributeName:"course_columns",setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Pagination","ablocks"),attributeValue:n,setAttributes:i,attributeName:"show_pagination"})]}),(0,I.jsxs)(V,{title:(0,L.__)("Course Query","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Courses Per Page","ablocks"),min:0,max:1e3,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"course_count",attributeValue:e,setAttributes:i,attributeObjectKey:"course_count"}),(0,I.jsx)(Ut,{isMulti:!0,options:fE,label:(0,L.__)("Difficulty Level","ablocks"),attributeValue:s,attributeName:"difficulty_levels",setAttributes:i}),(0,I.jsx)(Ut,{isMulti:!0,options:yE,label:(0,L.__)("Price Type","ablocks"),attributeValue:r,attributeName:"price_types",setAttributes:i}),(0,I.jsx)(Ut,{options:TE,label:(0,L.__)("Order By","ablocks"),attributeValue:b,
4909 +attributeName:"order_by",setAttributes:i}),(0,I.jsx)(Ut,{options:HE,label:(0,L.__)("Order","ablocks"),attributeValue:c,attributeName:"course_order",setAttributes:i}),(0,I.jsx)(Jl,{tabs:N})]}),(0,I.jsxs)(V,{title:(0,L.__)("Course Card","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Category","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"cat_typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"category_color",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"category_hover_color",attributeValue:p,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Title","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:m,setAttributes:i,isResponsive:!0,
4898 4910 attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Author","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"author_typography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"author_color",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"author_hover_color",attributeValue:T,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Rating","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"rating_typography",attributeValue:H,
4899 4911 setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"rating_color",attributeValue:M,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"rating_hover_color",attributeValue:x,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Price","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"price_typography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"price_color",attributeValue:v,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"price_hover_color",attributeValue:_,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Margin Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,
4900 4912 L.__)("Margin","ablocks"),isResponsive:!1,attributeName:"card_margin",attributeValue:W,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"card_padding",attributeValue:U,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!1,attributeName:"card_hover_margin",attributeValue:P,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"card_hover_padding",attributeValue:j,setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Course Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(nr,{isResponsive:!0,attributeName:"card_background",attributeValue:R,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"card_border",attributeValue:S,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Wishlist Style","ablocks"),initialOpen:!1,children:[(0,
4901 -I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"wish_icon_color",attributeValue:z,setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),isGradient:!1,attributeName:"wish_icon_hover_color",attributeValue:C,setAttributes:i})}),(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{isResponsive:!0,attributeName:"wish_icon_background",attributeValue:w,setAttributes:i})]})]})})})}BB.propTypes={};const EB={UU:"ablocks/academy-courses",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},course_count:{type:"number",default:3},course_columns:{type:"number",default:3},show_pagination:{type:"boolean",default:!0},difficulty_levels:{type:"array",default:[]},price_types:{type:"array",default:[]},order_by:{type:"string",default:"date"},course_order:{type:"string",default:"DESC"},
4913 +I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"wish_icon_color",attributeValue:z,setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),isGradient:!1,attributeName:"wish_icon_hover_color",attributeValue:C,setAttributes:i})}),(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{isResponsive:!0,attributeName:"wish_icon_background",attributeValue:w,setAttributes:i})]})]})})})}ME.propTypes={};const xE={UU:"ablocks/academy-courses",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},course_count:{type:"number",default:3},course_columns:{type:"number",default:3},show_pagination:{type:"boolean",default:!0},difficulty_levels:{type:"array",default:[]},price_types:{type:"array",default:[]},order_by:{type:"string",default:"date"},course_order:{type:"string",default:"DESC"},
4902 4914 course_ids:{type:"array",default:[]},course_categories:{type:"array",default:[]},course_tags:{type:"array",default:[]},course_exclude_ids:{type:"array",default:[]},course_exclude_categories:{type:"array",default:[]},course_exclude_tags:{type:"array",default:[]},category_color:{type:"string",default:"#333"},category_hover_color:{type:"string",default:"#333"},title_color:{type:"string",default:"#000"},title_hover_color:{type:"string",default:"#000"},author_color:{type:"string",default:"#000"},author_hover_color:{type:"string",default:"#000"},rating_color:{type:"string",default:"#5a3d00"},rating_hover_color:{type:"string",default:"#5a3d00"},price_color:{type:"string",default:"#1a1a1a"},price_hover_color:{type:"string",default:"#1a1a1a"},wish_icon_color:{type:"string",default:"#999"},wish_icon_hover_color:{type:"string",default:"#999"},cat_typographyGlobal:{type:"string",default:""},cat_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",
4903 4915 fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},title_typographyGlobal:{type:"string",default:""},title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",
4904 4916 letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},author_typographyGlobal:{type:"string",default:""},author_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},rating_typographyGlobal:{type:"string",default:""},rating_typography:{type:"object",default:{fontFamily:"",weight:"",
4905 4917 transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},price_typographyGlobal:{type:"string",default:""},price_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",
@@ -4917,11 +4929,11 @@
4917 4929 imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},
4918 4930 _zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,
4919 4931 rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",
4920 4932 maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,
4921 -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function FB(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:EB.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],
4922 -children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-courses",httpMethod:"POST",attributes:e})})})})}FB.propTypes={};const qB=(t,e="")=>({...(0,d.qD)(t?.card_background,"background",e),...(0,y.qD)(t?.card_border,e),...(0,c.qD)(t?.card_margin,"margin",e),...(0,c.qD)(t?.card_padding,"padding",e)}),$B=(t,e="")=>({...(0,d.a9)(t?.card_background,"background",e),...(0,y.a9)(t?.card_border,e),...(0,c.qD)(t?.card_hover_margin,"margin",e),...(0,c.qD)(t?.card_hover_padding,"padding",e)}),GB=(t,e="")=>({color:(0,Hs.qD)(t?.wish_icon_color),...(0,d.qD)(t?.wish_icon_background,"background",e)}),ZB=(t,e="")=>({color:(0,Hs.qD)(t?.wish_icon_hover_color),...(0,d.a9)(t?.wish_icon_background,"background",e)}),KB=(t,e="")=>{const i=(0,M.Zy)(t.cat_typography,{weight:"400"}),o=t.cat_typographyGlobal?t.cat_typographyGlobal:"";return{color:(0,Hs.qD)(t?.category_color),...(0,U.qD)(i,e,o)}},JB=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"
4923 -}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.title_color),...(0,U.qD)(i,e,o)}},QB=(t,e="")=>{const i=(0,M.Zy)(t.author_typography,{weight:"400"}),o=t.author_typographyGlobal?t.author_typographyGlobal:"";return{color:(0,Hs.qD)(t?.author_color),...(0,U.qD)(i,e,o)}},tE=(t,e="")=>{const i=(0,M.Zy)(t.rating_typography,{weight:"400"}),o=t.rating_typographyGlobal?t.rating_typographyGlobal:"";return{color:(0,Hs.qD)(t?.rating_color),...(0,U.qD)(i,e,o)}},eE=(t,e="")=>{const i=(0,M.Zy)(t.price_typography,{weight:"400"}),o=t.price_typographyGlobal?t.price_typographyGlobal:"";return{color:(0,Hs.qD)(t?.price_color),...(0,U.qD)(i,e,o)}};function iE(t){
4933 +yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function kE(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:xE.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],
4934 +children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-courses",httpMethod:"POST",attributes:e})})})})}kE.propTypes={};const vE=(t,e="")=>({...(0,d.qD)(t?.card_background,"background",e),...(0,y.qD)(t?.card_border,e),...(0,c.qD)(t?.card_margin,"margin",e),...(0,c.qD)(t?.card_padding,"padding",e)}),_E=(t,e="")=>({...(0,d.a9)(t?.card_background,"background",e),...(0,y.a9)(t?.card_border,e),...(0,c.qD)(t?.card_hover_margin,"margin",e),...(0,c.qD)(t?.card_hover_padding,"padding",e)}),RE=(t,e="")=>({color:(0,Hs.qD)(t?.wish_icon_color),...(0,d.qD)(t?.wish_icon_background,"background",e)}),SE=(t,e="")=>({color:(0,Hs.qD)(t?.wish_icon_hover_color),...(0,d.a9)(t?.wish_icon_background,"background",e)}),WE=(t,e="")=>{const i=(0,M.Zy)(t.cat_typography,{weight:"400"}),o=t.cat_typographyGlobal?t.cat_typographyGlobal:"";return{color:(0,Hs.qD)(t?.category_color),...(0,U.qD)(i,e,o)}},PE=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"
4935 +}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.title_color),...(0,U.qD)(i,e,o)}},UE=(t,e="")=>{const i=(0,M.Zy)(t.author_typography,{weight:"400"}),o=t.author_typographyGlobal?t.author_typographyGlobal:"";return{color:(0,Hs.qD)(t?.author_color),...(0,U.qD)(i,e,o)}},jE=(t,e="")=>{const i=(0,M.Zy)(t.rating_typography,{weight:"400"}),o=t.rating_typographyGlobal?t.rating_typographyGlobal:"";return{color:(0,Hs.qD)(t?.rating_color),...(0,U.qD)(i,e,o)}},wE=(t,e="")=>{const i=(0,M.Zy)(t.price_typography,{weight:"400"}),o=t.price_typographyGlobal?t.price_typographyGlobal:"";return{color:(0,Hs.qD)(t?.price_color),...(0,U.qD)(i,e,o)}};function zE(t){
4924 4936 const{attributes:e,setAttributes:i}=t,{form_title:o,title_color:a,title_typography:n,title_hover_color:s,username_label:r,username_placeholder:b,password_label:c,password_placeholder:d,remember_label:u,login_button_label:p,reset_password_label:m,student_register_url:h,login_redirect_url:g,logout_redirect_url:f,show_logged_in_message:y,login_btn_color:T,login_btn_bg_color:H,login_btn_typography:M,input_field_label_color:x,input_field_label_typography:k,input_field_label_hover_color:v,form_bg_color:_,form_footer_title_typography:R,form_footer_title_color:S,input_field_bg_color:W,inputFieldColor:P,input_field_border:U,input_field_padding:j,form_padding:w,form_border:z,login_btn_hover_color:C,login_btn_bg_hover_color:A}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Form Settings","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,
4925 4937 I.jsx)(Kl,{label:(0,L.__)("Form Title","ablocks"),attributeValue:o,setAttributes:i,attributeName:"form_title"}),(0,I.jsx)(Kl,{label:(0,L.__)("Username Label","ablocks"),attributeValue:r,setAttributes:i,attributeName:"username_label"}),(0,I.jsx)(Kl,{label:(0,L.__)("Username Placeholder","ablocks"),attributeValue:b,setAttributes:i,attributeName:"username_placeholder"}),(0,I.jsx)(Kl,{label:(0,L.__)("Password Label","ablocks"),attributeValue:c,setAttributes:i,attributeName:"password_label"}),(0,I.jsx)(Kl,{label:(0,L.__)("Password Placeholder","ablocks"),attributeValue:d,setAttributes:i,attributeName:"password_placeholder"}),(0,I.jsx)(Kl,{label:(0,L.__)("Remember Label","ablocks"),attributeValue:u,setAttributes:i,attributeName:"remember_label"}),(0,I.jsx)(Kl,{label:(0,L.__)("Login Button Label","ablocks"),attributeValue:p,setAttributes:i,attributeName:"login_button_label"}),(0,I.jsx)(Kl,{label:(0,L.__)("Reset Password Label","ablocks"),attributeValue:m,setAttributes:i,
4926 4938 attributeName:"reset_password_label"}),(0,I.jsx)(Kl,{label:(0,L.__)("Student Register Url","ablocks"),attributeValue:h,setAttributes:i,attributeName:"student_register_url"}),(0,I.jsx)(Kl,{label:(0,L.__)("Login Redirect Url","ablocks"),attributeValue:g,setAttributes:i,attributeName:"login_redirect_url"}),(0,I.jsx)(Kl,{label:(0,L.__)("Logout Redirect Url","ablocks"),attributeValue:f,setAttributes:i,attributeName:"logout_redirect_url"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Logged in Message","ablocks"),attributeValue:y,setAttributes:i,attributeName:"show_logged_in_message"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"form_bg_color",attributeValue:_,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),
4927 4939 isResponsive:!1,attributeName:"form_padding",attributeValue:w,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_border",attributeValue:z,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Form Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color",attributeValue:s,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,
@@ -4927,14 +4939,14 @@
4927 4939 isResponsive:!1,attributeName:"form_padding",attributeValue:w,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_border",attributeValue:z,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Form Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color",attributeValue:s,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,
4928 4940 L.__)("Input Field Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Input Label","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"input_field_label_typography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"input_field_label_color",attributeValue:x,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"input_field_label_hover_color",attributeValue:v,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Input Field","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"inputFieldColor",attributeValue:P,
4929 4941 setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"input_field_bg_color",attributeValue:W,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"input_field_padding",attributeValue:j,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"input_field_border",attributeValue:U,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"login_btn_typography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,
4930 4942 L.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_color",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_color",attributeValue:H,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_hover_color",attributeValue:C,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_hover_color",attributeValue:A,setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Form Footer Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"form_footer_title_typography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"form_footer_title_color",attributeValue:S,setAttributes:i})]})]})})})}(0,
4931 -M.xV)(EB.UU,"","academy_lms")&&(0,o.registerBlockType)(EB.UU,{title:(0,L.__)("Courses","ablocks"),attributes:EB.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,category_color:s,category_hover_color:r,title_color:c,title_hover_color:d,author_color:u,author_hover_color:p,rating_color:m,rating_hover_color:h,price_color:g,price_hover_color:f}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const[y,T]=(0,a.useState)({});(0,a.useEffect)(()=>{if(y?.categories&&y?.tags)return!1;jQuery.post(window.ajaxurl,{action:"ablocks/get_academy_terms",security:window.ABlocksGlobal.ablocks_nonce},(t,e)=>{if("success"===e){const{categories:e=[],tags:i=[]}=t?.data||{};T({categories:e,tags:i})}})},[]);const H=(0,a.useMemo)(()=>{let t=null
4932 -;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__meta--categroy a",KB(i),KB(i,"Tablet"),KB(i,"Mobile"),e(t=>KB(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__meta--categroy:hover a",(t=>({color:(0,Hs.qD)(t?.category_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__title, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__title a",JB(i),JB(i,"Tablet"),JB(i,"Mobile"),e(t=>JB(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__title:hover, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__title:hover a",(t=>({
4933 -color:(0,Hs.qD)(t?.title_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author .author, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author .author a",QB(i),QB(i,"Tablet"),QB(i,"Mobile"),e(t=>QB(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author:hover, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author:hover .author, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author:hover .author a",(t=>({color:(0,Hs.qD)(t?.author_hover_color)}))(i)),
4934 -t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating .academy-group-star, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating .academy-group-star .academy-icon::before, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating .academy-course__rating-count",tE(i,"Tablet"),tE(i,"Tablet"),tE(i,"Mobile"),e(t=>tE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating:hover,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating:hover .academy-group-star, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating:hover .academy-group-star .academy-icon::before, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating:hover .academy-course__rating-count",(t=>({color:(0,
4935 -Hs.qD)(t?.rating_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-row .academy-course,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course",qB(i),qB(i,"Tablet"),qB(i,"Tablet"),e(t=>qB(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-row .academy-course:hover,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course:hover,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course:hover,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course:hover",$B(i),$B(i,"Tablet"),$B(i,"Tablet"),e(t=>$B(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__price",eE(i),eE(i,"Tablet"),eE(i,"Mobile"),e(t=>eE(i,t))),
4936 -t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__price:hover",(t=>({color:(0,Hs.qD)(t?.price_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-courses .academy-course__header .academy-course-header-meta .academy-course__wishlist",GB(i),GB(i,"Tablet"),GB(i,"Mobile"),e(t=>GB(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses .academy-course__header .academy-course-header-meta .academy-course__wishlist:hover",ZB(i),ZB(i,"Tablet"),ZB(i,"Mobile"),e(t=>ZB(i,t))),(0,b.applyFilters)("ablocks.academy-courses.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:H}),e&&(0,I.jsx)(BB,{academyTerms:y,...t}),(0,I.jsx)(FB,{...t})]})},save:()=>null}),iE.propTypes={};const oE={UU:"ablocks/academy-login-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},form_title:{type:"string",default:"Log In into your Account"},username_label:{type:"string",
4943 +M.xV)(xE.UU,"","academy_lms")&&(0,o.registerBlockType)(xE.UU,{title:(0,L.__)("Courses","ablocks"),attributes:xE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,category_color:s,category_hover_color:r,title_color:c,title_hover_color:d,author_color:u,author_hover_color:p,rating_color:m,rating_hover_color:h,price_color:g,price_hover_color:f}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const[y,T]=(0,a.useState)({});(0,a.useEffect)(()=>{if(y?.categories&&y?.tags)return!1;jQuery.post(window.ajaxurl,{action:"ablocks/get_academy_terms",security:window.ABlocksGlobal.ablocks_nonce},(t,e)=>{if("success"===e){const{categories:e=[],tags:i=[]}=t?.data||{};T({categories:e,tags:i})}})},[]);const H=(0,a.useMemo)(()=>{let t=null
4944 +;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__meta--categroy a",WE(i),WE(i,"Tablet"),WE(i,"Mobile"),e(t=>WE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__meta--categroy:hover a",(t=>({color:(0,Hs.qD)(t?.category_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__title, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__title a",PE(i),PE(i,"Tablet"),PE(i,"Mobile"),e(t=>PE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__title:hover, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__title:hover a",(t=>({
4945 +color:(0,Hs.qD)(t?.title_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author .author, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author .author a",UE(i),UE(i,"Tablet"),UE(i,"Mobile"),e(t=>UE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author:hover, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author:hover .author, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__author:hover .author a",(t=>({color:(0,Hs.qD)(t?.author_hover_color)}))(i)),
4946 +t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating .academy-group-star, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating .academy-group-star .academy-icon::before, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating .academy-course__rating-count",jE(i,"Tablet"),jE(i,"Tablet"),jE(i,"Mobile"),e(t=>jE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating:hover,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating:hover .academy-group-star, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating:hover .academy-group-star .academy-icon::before, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__rating:hover .academy-course__rating-count",(t=>({color:(0,
4947 +Hs.qD)(t?.rating_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-row .academy-course,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course, \n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course",vE(i),vE(i,"Tablet"),vE(i,"Tablet"),e(t=>vE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-row .academy-course:hover,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course:hover,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course:hover,\n\t\t\t{{WRAPPER}} .academy-courses--grid .academy-row .academy-course:hover",_E(i),_E(i,"Tablet"),_E(i,"Tablet"),e(t=>_E(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__price",wE(i),wE(i,"Tablet"),wE(i,"Mobile"),e(t=>wE(i,t))),
4948 +t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__price:hover",(t=>({color:(0,Hs.qD)(t?.price_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-courses .academy-course__header .academy-course-header-meta .academy-course__wishlist",RE(i),RE(i,"Tablet"),RE(i,"Mobile"),e(t=>RE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-courses .academy-course__header .academy-course-header-meta .academy-course__wishlist:hover",SE(i),SE(i,"Tablet"),SE(i,"Mobile"),e(t=>SE(i,t))),(0,b.applyFilters)("ablocks.academy-courses.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:H}),e&&(0,I.jsx)(ME,{academyTerms:y,...t}),(0,I.jsx)(kE,{...t})]})},save:()=>null}),zE.propTypes={};const CE={UU:"ablocks/academy-login-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},form_title:{type:"string",default:"Log In into your Account"},username_label:{type:"string",
4937 4949 default:"Username or Email Address"},username_placeholder:{type:"string",default:"Username or Email Address"},password_label:{type:"string",default:"Password"},password_placeholder:{type:"string",default:"Password"},remember_label:{type:"string",default:"Remember me"},login_button_label:{type:"string",default:"Log in"},reset_password_label:{type:"string",default:"Reset password"},show_logged_in_message:{type:"boolean",default:!0},student_register_url:{type:"string",default:""},login_redirect_url:{type:"string",default:""},logout_redirect_url:{type:"string",default:""},login_btn_color:{type:"string",default:"#fff"},login_btn_bg_color:{type:"string",default:"#7B68EE"},login_btn_bg_hover_color:{type:"string",default:"#6F5DD6"},login_btn_hover_color:{type:"string",default:"#fff"},title_color:{type:"string",default:"#000"},title_hover_color:{type:"string",default:"#000"},input_field_label_color:{type:"string",default:"#333"},input_field_label_hover_color:{type:"string",default:"#333"},
4938 4950 form_footer_title_color:{type:"string",default:"#000"},input_field_bg_color:{type:"string",default:"#fff"},inputFieldColor:{type:"string",default:"#333"},login_btn_typographyGlobal:{type:"string",default:""},login_btn_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},form_bg_color:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",
4939 4951 imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",
4940 4952 imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},title_typographyGlobal:{type:"string",default:""},title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",
@@ -4951,19 +4963,19 @@
4951 4963 imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{
4952 4964 type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",
4953 4965 rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",
4954 4966 scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,
4955 -startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function aE(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:oE.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-login-form",httpMethod:"POST",attributes:e})})})})}
4956 -aE.propTypes={};const lE=(t,e="")=>({...(0,d.qD)(t?.form_bg_color,"background",e),...(0,y.qD)(t?.form_border,e),...(0,c.qD)(t?.form_padding,"padding",e)}),nE=(t,e="")=>({color:(0,Hs.qD)(t?.inputFieldColor),background:(0,Hs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.input_field_border,e),...(0,c.qD)(t?.input_field_padding,"padding",e)}),sE=t=>({color:(0,Hs.qD)(t?.inputFieldColor)}),rE=(t,e="")=>({...(0,d.a9)(t?.form_bg_color,"background",e),...(0,y.a9)(t?.form_border,e)}),bE=t=>({color:(0,Hs.qD)(t?.login_btn_hover_color),background:(0,Hs.qD)(t?.login_btn_bg_hover_color)}),cE=(t,e="")=>{const i=(0,M.Zy)(t.login_btn_typography,{weight:"400"}),o=t.login_btn_typographyGlobal?t.login_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.login_btn_color),background:(0,Hs.qD)(t?.login_btn_bg_color),...(0,U.qD)(i,e,o)}},dE=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.title_color),...(0,U.qD)(i,e,o)}
4957 -},uE=(t,e="")=>{const i=(0,M.Zy)(t.form_footer_title_typography,{weight:"400"}),o=t.form_footer_title_typographyGlobal?t.form_footer_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.form_footer_title_color),...(0,U.qD)(i,e,o)}},pE=(t,e="")=>{const i=(0,M.Zy)(t.input_field_label_typography,{weight:"400"}),o=t.input_field_label_typographyGlobal?t.input_field_label_typographyGlobal:"";return{color:(0,Hs.qD)(t?.input_field_label_color),...(0,U.qD)(i,e,o)}},mE=t=>({color:(0,Hs.qD)(t?.input_field_label_hover_color)});function hE(t){const{attributes:e,setAttributes:i}=t,{input_label_typhography:o,input_label_color:a,form_button_typhography:n,form_button_background:s,form_button_color:r,input_field_color:b,input_field_bg_color:c,form_field_border:d,form_button_padding:u,form_button_border:p,input_field_placeholder_color:m,form_background:h,form_padding:g,form_border:f,input_label_hover_color:y,form_button_hover_background:T,form_button_hover_color:H}=e;return(0,I.jsx)(l().Fragment,{
4967 +startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function AE(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:CE.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-login-form",httpMethod:"POST",attributes:e})})})})}
4968 +AE.propTypes={};const LE=(t,e="")=>({...(0,d.qD)(t?.form_bg_color,"background",e),...(0,y.qD)(t?.form_border,e),...(0,c.qD)(t?.form_padding,"padding",e)}),DE=(t,e="")=>({color:(0,Hs.qD)(t?.inputFieldColor),background:(0,Hs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.input_field_border,e),...(0,c.qD)(t?.input_field_padding,"padding",e)}),NE=t=>({color:(0,Hs.qD)(t?.inputFieldColor)}),IE=(t,e="")=>({...(0,d.a9)(t?.form_bg_color,"background",e),...(0,y.a9)(t?.form_border,e)}),VE=t=>({color:(0,Hs.qD)(t?.login_btn_hover_color),background:(0,Hs.qD)(t?.login_btn_bg_hover_color)}),OE=(t,e="")=>{const i=(0,M.Zy)(t.login_btn_typography,{weight:"400"}),o=t.login_btn_typographyGlobal?t.login_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.login_btn_color),background:(0,Hs.qD)(t?.login_btn_bg_color),...(0,U.qD)(i,e,o)}},YE=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.title_color),...(0,U.qD)(i,e,o)}
4969 +},XE=(t,e="")=>{const i=(0,M.Zy)(t.form_footer_title_typography,{weight:"400"}),o=t.form_footer_title_typographyGlobal?t.form_footer_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.form_footer_title_color),...(0,U.qD)(i,e,o)}},BE=(t,e="")=>{const i=(0,M.Zy)(t.input_field_label_typography,{weight:"400"}),o=t.input_field_label_typographyGlobal?t.input_field_label_typographyGlobal:"";return{color:(0,Hs.qD)(t?.input_field_label_color),...(0,U.qD)(i,e,o)}},EE=t=>({color:(0,Hs.qD)(t?.input_field_label_hover_color)});function FE(t){const{attributes:e,setAttributes:i}=t,{input_label_typhography:o,input_label_color:a,form_button_typhography:n,form_button_background:s,form_button_color:r,input_field_color:b,input_field_bg_color:c,form_field_border:d,form_button_padding:u,form_button_border:p,input_field_placeholder_color:m,form_background:h,form_padding:g,form_border:f,input_label_hover_color:y,form_button_hover_background:T,form_button_hover_color:H}=e;return(0,I.jsx)(l().Fragment,{
4958 4970 children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Form Input Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(at,{label:(0,L.__)("Input Field Label","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"input_label_typhography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"input_label_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"input_label_hover_color",attributeValue:y,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Input Field","ablocks"),isHeader:!0,isResponsive:!1}),(0,
4959 4971 I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"input_field_color",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"input_field_bg_color",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Placeholder Color","ablocks"),isGradient:!1,attributeName:"input_field_placeholder_color",attributeValue:m,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_field_border",attributeValue:d,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Form Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(nr,{label:(0,L.__)("Background Color","ablocks"),isResponsive:!0,attributeName:"form_background",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,
4960 4972 attributeName:"form_padding",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_border",attributeValue:f,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Form Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"form_button_typhography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"form_button_color",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!0,attributeName:"form_button_background",attributeValue:s,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
4961 -isGradient:!1,attributeName:"form_button_hover_color",attributeValue:H,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!0,attributeName:"form_button_hover_background",attributeValue:T,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_button_padding",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_button_border",attributeValue:p,setAttributes:i})]})]})})})}(0,M.xV)(oE.UU,"","academy_lms")&&(0,o.registerBlockType)(oE.UU,{title:(0,L.__)("Login Form","ablocks"),attributes:oE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){
4962 -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,input_field_label_color:s}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const r=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button",cE(i),cE(i,"Tablet"),cE(i,"Mobile"),e(t=>cE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button:hover",bE(i),bE(i),bE(i),e(t=>bE(i))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-info,\n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-info a",uE(i),uE(i,"Tablet"),uE(i,"Mobile"),e(t=>uE(i,t))),
4963 -t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-heading ",dE(i),dE(i,"Tablet"),dE(i,"Mobile"),e(t=>dE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-heading:hover",(t=>({color:(0,Hs.qD)(t?.title_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group label, \n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group .academy-form-group__forgetmenot label, \n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group .academy-form-group__inner a",pE(i),pE(i,"Tablet"),pE(i,"Mobile"),e(t=>pE(i,t))),
4964 -t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group label:hover, \n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group .academy-form-group__forgetmenot label:hover, \n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group .academy-form-group__inner a:hover",mE(i),mE(i),mE(i),e(t=>mE(i))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper",lE(i),lE(i,"Tablet"),lE(i,"Tablet"),e(t=>lE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input",nE(i),nE(i,"Tablet"),nE(i,"Tablet"),e(t=>nE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input::placeholder",sE(i),sE(i),sE(i),e(t=>sE(i))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper:hover",rE(i),rE(i,"Tablet"),rE(i,"Tablet"),e(t=>rE(i,t))),(0,
4965 -b.applyFilters)("ablocks.academy-login-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(iE,{...t}),(0,I.jsx)(aE,{...t})]})},save:()=>null}),hE.propTypes={};const gE={UU:"ablocks/academy-student-registration-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},input_label_color:{type:"string",default:"#000"},input_label_hover_color:{type:"string",default:"#000"},input_field_color:{type:"string",default:"#333"},input_field_placeholder_color:{type:"string",default:"#333"},input_field_bg_color:{type:"string",default:"#fff"},form_button_color:{type:"string",default:"#fff"},form_button_background:{type:"string",default:"#7B68EE"},form_button_hover_color:{type:"string",default:"#fff"},form_button_hover_background:{type:"string",default:"#6F5DD6"},input_label_typhographyGlobal:{type:"string",default:""},input_label_typhography:{type:"object",default:{fontFamily:"",
4973 +isGradient:!1,attributeName:"form_button_hover_color",attributeValue:H,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!0,attributeName:"form_button_hover_background",attributeValue:T,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_button_padding",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_button_border",attributeValue:p,setAttributes:i})]})]})})})}(0,M.xV)(CE.UU,"","academy_lms")&&(0,o.registerBlockType)(CE.UU,{title:(0,L.__)("Login Form","ablocks"),attributes:CE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){
4974 +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,input_field_label_color:s}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const r=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button",OE(i),OE(i,"Tablet"),OE(i,"Mobile"),e(t=>OE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button:hover",VE(i),VE(i),VE(i),e(t=>VE(i))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-info,\n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-info a",XE(i),XE(i,"Tablet"),XE(i,"Mobile"),e(t=>XE(i,t))),
4975 +t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-heading ",YE(i),YE(i,"Tablet"),YE(i,"Mobile"),e(t=>YE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-heading:hover",(t=>({color:(0,Hs.qD)(t?.title_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group label, \n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group .academy-form-group__forgetmenot label, \n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group .academy-form-group__inner a",BE(i),BE(i,"Tablet"),BE(i,"Mobile"),e(t=>BE(i,t))),
4976 +t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group label:hover, \n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group .academy-form-group__forgetmenot label:hover, \n\t\t\t{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group .academy-form-group__inner a:hover",EE(i),EE(i),EE(i),e(t=>EE(i))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper",LE(i),LE(i,"Tablet"),LE(i,"Tablet"),e(t=>LE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input",DE(i),DE(i,"Tablet"),DE(i,"Tablet"),e(t=>DE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input::placeholder",NE(i),NE(i),NE(i),e(t=>NE(i))),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper:hover",IE(i),IE(i,"Tablet"),IE(i,"Tablet"),e(t=>IE(i,t))),(0,
4977 +b.applyFilters)("ablocks.academy-login-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(zE,{...t}),(0,I.jsx)(AE,{...t})]})},save:()=>null}),FE.propTypes={};const qE={UU:"ablocks/academy-student-registration-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},input_label_color:{type:"string",default:"#000"},input_label_hover_color:{type:"string",default:"#000"},input_field_color:{type:"string",default:"#333"},input_field_placeholder_color:{type:"string",default:"#333"},input_field_bg_color:{type:"string",default:"#fff"},form_button_color:{type:"string",default:"#fff"},form_button_background:{type:"string",default:"#7B68EE"},form_button_hover_color:{type:"string",default:"#fff"},form_button_hover_background:{type:"string",default:"#6F5DD6"},input_label_typhographyGlobal:{type:"string",default:""},input_label_typhography:{type:"object",default:{fontFamily:"",
4966 4978 weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},form_button_typhographyGlobal:{type:"string",default:""},form_button_typhography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",
4967 4979 lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},form_field_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",
4968 4980 bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",
4969 4981 unitRadiusHMobile:"",transitionDuration:""}},form_button_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,
@@ -4980,14 +4992,14 @@
4980 4992 imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",
4981 4993 rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",
4982 4994 offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",
4983 4995 xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},
4984 -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function fE(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:gE.UU,attributes:e,typography:[{fontFamily:e.input_label_typhography?.fontFamily,weight:e.input_label_typhography?.weight},{fontFamily:e.form_button_typhography?.fontFamily,weight:e.form_button_typhography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-student-registration-form",httpMethod:"POST",attributes:e})})})})}fE.propTypes={};const yE=(t,e="")=>{const i=(0,M.Zy)(t.form_button_typhography,{weight:"400"}),o=t.form_button_typhographyGlobal?t.form_button_typhographyGlobal:"";return{color:(0,Hs.qD)(t?.form_button_color),background:(0,Hs.qD)(t?.form_button_background),...(0,U.qD)(i,e,o),...(0,y.qD)(t?.form_button_border,e)}},TE=(t,e="")=>({color:(0,Hs.qD)(t?.form_button_hover_color),
4985 -background:(0,Hs.qD)(t?.form_button_hover_background),...(0,y.a9)(t?.form_button_border,e)}),HE=t=>({color:(0,Hs.qD)(t?.input_field_placeholder_color)}),ME=(t,e="")=>({color:(0,Hs.qD)(t?.input_field_color),background:(0,Hs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.form_field_border,e)}),xE=(t,e="")=>({...(0,y.a9)(t?.form_field_border,e)}),kE=(t,e="")=>({...(0,d.qD)(t?.form_background,"background",e),...(0,c.qD)(t?.form_padding,"padding",e),...(0,y.qD)(t?.form_border,e)}),vE=(t,e="")=>({...(0,d.a9)(t?.form_background,"background",e),...(0,y.a9)(t?.form_border,e)}),_E=(t,e="")=>{const i=(0,M.Zy)(t.input_label_typhography,{weight:"400"}),o=t.input_label_typhographyGlobal?t.input_label_typhographyGlobal:"";return{color:(0,Hs.qD)(t?.input_label_color),...(0,U.qD)(i,e,o)}},RE=t=>({color:(0,Hs.qD)(t?.input_label_hover_color)});function SE(t){
4996 +_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function $E(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:qE.UU,attributes:e,typography:[{fontFamily:e.input_label_typhography?.fontFamily,weight:e.input_label_typhography?.weight},{fontFamily:e.form_button_typhography?.fontFamily,weight:e.form_button_typhography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-student-registration-form",httpMethod:"POST",attributes:e})})})})}$E.propTypes={};const GE=(t,e="")=>{const i=(0,M.Zy)(t.form_button_typhography,{weight:"400"}),o=t.form_button_typhographyGlobal?t.form_button_typhographyGlobal:"";return{color:(0,Hs.qD)(t?.form_button_color),background:(0,Hs.qD)(t?.form_button_background),...(0,U.qD)(i,e,o),...(0,y.qD)(t?.form_button_border,e)}},ZE=(t,e="")=>({color:(0,Hs.qD)(t?.form_button_hover_color),
4997 +background:(0,Hs.qD)(t?.form_button_hover_background),...(0,y.a9)(t?.form_button_border,e)}),KE=t=>({color:(0,Hs.qD)(t?.input_field_placeholder_color)}),JE=(t,e="")=>({color:(0,Hs.qD)(t?.input_field_color),background:(0,Hs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.form_field_border,e)}),QE=(t,e="")=>({...(0,y.a9)(t?.form_field_border,e)}),tF=(t,e="")=>({...(0,d.qD)(t?.form_background,"background",e),...(0,c.qD)(t?.form_padding,"padding",e),...(0,y.qD)(t?.form_border,e)}),eF=(t,e="")=>({...(0,d.a9)(t?.form_background,"background",e),...(0,y.a9)(t?.form_border,e)}),iF=(t,e="")=>{const i=(0,M.Zy)(t.input_label_typhography,{weight:"400"}),o=t.input_label_typhographyGlobal?t.input_label_typhographyGlobal:"";return{color:(0,Hs.qD)(t?.input_label_color),...(0,U.qD)(i,e,o)}},oF=t=>({color:(0,Hs.qD)(t?.input_label_hover_color)});function aF(t){
4986 4998 const{attributes:e,setAttributes:i}=t,{placeholder:o,search_background_color:a,search_box_color:n,search_typography:s,search_placeholder_color:r,search_icon_color:b,search_border:c}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Search Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Placeholder","ablocks"),attributeValue:o,attributeName:"placeholder",setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"search_typography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!0,attributeName:"search_box_color",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Placeholder Color","ablocks"),isResponsive:!0,
4987 -attributeName:"search_placeholder_color",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),isResponsive:!0,attributeName:"search_icon_color",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!0,attributeName:"search_background_color",attributeValue:a,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border option","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"search_border",attributeValue:c,setAttributes:i})]})})})})})})}(0,M.xV)(gE.UU,"","academy_lms")&&(0,o.registerBlockType)(gE.UU,{title:(0,L.__)("Student Registration Form","ablocks"),attributes:gE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
4988 -;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group label",_E(i),_E(i,"Tablet"),_E(i,"Mobile"),e(t=>_E(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group label:hover",RE(i),RE(i),RE(i),e(t=>RE(i))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input",ME(i),ME(i,"Tablet"),ME(i,"Mobile"),e(t=>ME(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input:hover",xE(i),xE(i,"Tablet"),xE(i,"Mobile"),e(t=>xE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input::placeholder",HE(i),HE(i),HE(i),e(t=>HE(i))),
4989 -t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group button",yE(i),yE(i,"Tablet"),yE(i,"Mobile"),e(t=>yE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group button:hover",TE(i),TE(i,"Tablet"),TE(i,"Mobile"),e(t=>TE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form",kE(i),kE(i,"Tablet"),kE(i,"Mobile"),e(t=>kE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form:hover",vE(i),vE(i,"Tablet"),vE(i,"Mobile"),e(t=>vE(i,t))),(0,b.applyFilters)("ablocks.academy-student-registration-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(hE,{...t}),(0,I.jsx)(fE,{...t})]})},save:()=>null}),SE.propTypes={};const WE={UU:"ablocks/academy-course-search",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},placeholder:{type:"string",default:"Search Course"},search_box_color:{type:"string",default:"#000000"},
4999 +attributeName:"search_placeholder_color",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),isResponsive:!0,attributeName:"search_icon_color",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!0,attributeName:"search_background_color",attributeValue:a,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border option","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"search_border",attributeValue:c,setAttributes:i})]})})})})})})}(0,M.xV)(qE.UU,"","academy_lms")&&(0,o.registerBlockType)(qE.UU,{title:(0,L.__)("Student Registration Form","ablocks"),attributes:qE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5000 +;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group label",iF(i),iF(i,"Tablet"),iF(i,"Mobile"),e(t=>iF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group label:hover",oF(i),oF(i),oF(i),e(t=>oF(i))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input",JE(i),JE(i,"Tablet"),JE(i,"Mobile"),e(t=>JE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input:hover",QE(i),QE(i,"Tablet"),QE(i,"Mobile"),e(t=>QE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input::placeholder",KE(i),KE(i),KE(i),e(t=>KE(i))),
5001 +t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group button",GE(i),GE(i,"Tablet"),GE(i,"Mobile"),e(t=>GE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group button:hover",ZE(i),ZE(i,"Tablet"),ZE(i,"Mobile"),e(t=>ZE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form",tF(i),tF(i,"Tablet"),tF(i,"Mobile"),e(t=>tF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form:hover",eF(i),eF(i,"Tablet"),eF(i,"Mobile"),e(t=>eF(i,t))),(0,b.applyFilters)("ablocks.academy-student-registration-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(FE,{...t}),(0,I.jsx)($E,{...t})]})},save:()=>null}),aF.propTypes={};const lF={UU:"ablocks/academy-course-search",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},placeholder:{type:"string",default:"Search Course"},search_box_color:{type:"string",default:"#000000"},
4990 5002 search_placeholder_color:{type:"string",default:"#444"},search_icon_color:{type:"string",default:"#333"},search_background_color:{type:"string",default:"#fff"},search_typographyGlobal:{type:"string",default:""},search_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},search_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,
4991 5003 isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",
4992 5004 leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,
4993 5005 common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,
@@ -4996,16 +5008,16 @@
4996 5008 imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",
4997 5009 imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",
4998 5010 offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",
4999 5011 scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{
5000 -animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function PE(t){
5001 -const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:WE.UU,attributes:e,typography:[{fontFamily:e.search_typography?.fontFamily,weight:e.search_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-course-search",httpMethod:"POST",attributes:e})})})})}PE.propTypes={};const UE=(t,e="")=>{const i=(0,M.Zy)(t.search_typography,{weight:"400"}),o=t.search_typographyGlobal?t.search_typographyGlobal:"";return{color:(0,Hs.qD)(t?.search_box_color),background:(0,Hs.qD)(t?.search_background_color),...(0,U.qD)(i,e,o),...(0,y.qD)(t?.search_border,e)}},jE=(t,e="")=>({...(0,y.a9)(t?.search_border,e)}),wE=t=>({color:(0,Hs.qD)(t?.search_placeholder_color)}),zE=t=>({color:(0,Hs.qD)(t?.search_icon_color)});function CE(t){
5012 +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function nF(t){
5013 +const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:lF.UU,attributes:e,typography:[{fontFamily:e.search_typography?.fontFamily,weight:e.search_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-course-search",httpMethod:"POST",attributes:e})})})})}nF.propTypes={};const sF=(t,e="")=>{const i=(0,M.Zy)(t.search_typography,{weight:"400"}),o=t.search_typographyGlobal?t.search_typographyGlobal:"";return{color:(0,Hs.qD)(t?.search_box_color),background:(0,Hs.qD)(t?.search_background_color),...(0,U.qD)(i,e,o),...(0,y.qD)(t?.search_border,e)}},rF=(t,e="")=>({...(0,y.a9)(t?.search_border,e)}),bF=t=>({color:(0,Hs.qD)(t?.search_placeholder_color)}),cF=t=>({color:(0,Hs.qD)(t?.search_icon_color)});function dF(t){
5002 5014 const{attributes:e,setAttributes:i}=t,{input_label_typhography:o,input_label_color:a,form_button_typhography:n,form_button_background:s,form_button_color:r,input_field_color:b,input_field_bg_color:c,form_field_border:d,form_button_padding:u,form_button_border:p,input_field_placeholder_color:m,form_background:h,form_padding:g,form_border:f,form_button_hover_color:y,form_button_hover_background:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Form Input Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(at,{label:(0,L.__)("Input Field Label","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"input_label_typhography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"input_label_color",attributeValue:a,setAttributes:i}),(0,
5003 5015 I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Input Field","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"input_field_color",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"input_field_bg_color",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Placeholder Color","ablocks"),isGradient:!1,attributeName:"input_field_placeholder_color",attributeValue:m,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_field_border",attributeValue:d,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Form Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(nr,{label:(0,L.__)("Background Color","ablocks"),isResponsive:!0,attributeName:"form_background",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),
5004 5016 isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_padding",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_border",attributeValue:f,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Form Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"form_button_typhography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"form_button_color",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"form_button_background",attributeValue:s,setAttributes:i})]
5005 -}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"form_button_hover_color",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"form_button_hover_background",attributeValue:T,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_button_padding",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_button_border",attributeValue:p,setAttributes:i})]})]})})})}(0,M.xV)(WE.UU,"","academy_lms")&&(0,o.registerBlockType)(WE.UU,{title:(0,L.__)("Course Searchbar","ablocks"),attributes:WE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),
5006 -edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input",UE(i),UE(i,"Tablet"),UE(i,"Mobile"),e(t=>UE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input:hover",jE(i),jE(i,"Tablet"),jE(i,"Mobile"),e(t=>jE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input::placeholder",wE(i),wE(i),wE(i),e(t=>wE(i))),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-icon span",zE(i),zE(i),zE(i),e(t=>zE(i))),(0,
5007 -b.applyFilters)("ablocks.academy-course-search.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(SE,{...t}),(0,I.jsx)(PE,{...t})]})},save:()=>null}),CE.propTypes={};const AE={UU:"ablocks/academy-instructor-registration-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},input_label_color:{type:"string",default:"#333"},input_field_color:{type:"string",default:"#333"},input_field_placeholder_color:{type:"string",default:"#333"},input_field_bg_color:{type:"string",default:"#fff"},form_button_color:{type:"string",default:"#fff"},form_button_hover_color:{type:"string",default:"#fff"},form_button_background:{type:"string",default:"#7B68EE"},form_button_hover_background:{type:"string",default:"#6F5DD6"},input_label_typhographyGlobal:{type:"string",default:""},input_label_typhography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",
5017 +}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"form_button_hover_color",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"form_button_hover_background",attributeValue:T,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_button_padding",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_button_border",attributeValue:p,setAttributes:i})]})]})})})}(0,M.xV)(lF.UU,"","academy_lms")&&(0,o.registerBlockType)(lF.UU,{title:(0,L.__)("Course Searchbar","ablocks"),attributes:lF.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),
5018 +edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input",sF(i),sF(i,"Tablet"),sF(i,"Mobile"),e(t=>sF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input:hover",rF(i),rF(i,"Tablet"),rF(i,"Mobile"),e(t=>rF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input::placeholder",bF(i),bF(i),bF(i),e(t=>bF(i))),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-icon span",cF(i),cF(i),cF(i),e(t=>cF(i))),(0,
5019 +b.applyFilters)("ablocks.academy-course-search.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(aF,{...t}),(0,I.jsx)(nF,{...t})]})},save:()=>null}),dF.propTypes={};const uF={UU:"ablocks/academy-instructor-registration-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},input_label_color:{type:"string",default:"#333"},input_field_color:{type:"string",default:"#333"},input_field_placeholder_color:{type:"string",default:"#333"},input_field_bg_color:{type:"string",default:"#fff"},form_button_color:{type:"string",default:"#fff"},form_button_hover_color:{type:"string",default:"#fff"},form_button_background:{type:"string",default:"#7B68EE"},form_button_hover_background:{type:"string",default:"#6F5DD6"},input_label_typhographyGlobal:{type:"string",default:""},input_label_typhography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",
5008 5020 fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},form_button_typhographyGlobal:{type:"string",default:""},form_button_typhography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",
5009 5021 letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},form_field_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",
5010 5022 rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},form_button_border:{
5011 5023 type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",
@@ -5022,13 +5034,13 @@
5022 5034 imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",
5023 5035 offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",
5024 5036 offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",
5025 5037 yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},
5026 -_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function LE(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:AE.UU,attributes:e,typography:[{fontFamily:e.input_label_typhography?.fontFamily,weight:e.input_label_typhography?.weight},{fontFamily:e.form_button_typhography?.fontFamily,weight:e.form_button_typhography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-instructor-registration-form",httpMethod:"POST",attributes:e})})})})}LE.propTypes={};const DE=(t,e="")=>{const i=(0,M.Zy)(t.form_button_typhography,{weight:"400"}),o=t.form_button_typhographyGlobal?t.form_button_typhographyGlobal:"";return{color:(0,Hs.qD)(t?.form_button_color),background:(0,Hs.qD)(t?.form_button_background),...(0,U.qD)(i,e,o),...(0,y.qD)(t?.form_button_border,e)}},NE=(t,e="")=>({color:(0,Hs.qD)(t?.form_button_hover_color),background:(0,Hs.qD)(t?.form_button_hover_background),...(0,
5027 -y.a9)(t?.form_button_border,e)}),IE=t=>({color:(0,Hs.qD)(t?.input_field_placeholder_color)}),VE=(t,e="")=>({color:(0,Hs.qD)(t?.input_field_color),background:(0,Hs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.form_field_border,e)}),OE=(t,e="")=>({...(0,y.a9)(t?.form_field_border,e)}),YE=(t,e="")=>({...(0,d.qD)(t?.form_background,"background",e),...(0,c.qD)(t?.form_padding,"padding",e),...(0,y.qD)(t?.form_border,e)}),XE=(t,e="")=>({...(0,d.a9)(t?.form_background,"background",e),...(0,y.a9)(t?.form_border,e)}),BE=(t,e="")=>{const i=(0,M.Zy)(t.input_label_typhography,{weight:"400"}),o=t.input_label_typhographyGlobal?t.input_label_typhographyGlobal:"";return{color:(0,Hs.qD)(t?.input_label_color),...(0,U.qD)(i,e,o)}};function EE(t){const{attributes:e,setAttributes:i}=t,{src:o,width:a,height:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{title:(0,L.__)("PDF Options","ablocks"),initialOpen:!0,
5028 -children:[(0,I.jsx)(Kl,{label:(0,L.__)("Source","ablocks"),attributeValue:o,attributeName:"src",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Width","ablocks"),attributeValue:a,attributeName:"width",setAttributes:i,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Height","ablocks"),attributeValue:n,attributeName:"height",setAttributes:i,disableDynamicContent:!0})]})})})})}(0,M.xV)(AE.UU,"","academy_lms")&&(0,o.registerBlockType)(AE.UU,{title:(0,L.__)("Instructor Registration Form","ablocks"),attributes:AE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{input_label_color:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
5029 -null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group label",BE(i),BE(i,"Tablet"),BE(i,"Mobile"),e(t=>BE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input",VE(i),VE(i,"Tablet"),VE(i,"Mobile"),e(t=>VE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input:hover",OE(i),OE(i,"Tablet"),OE(i,"Mobile"),e(t=>OE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input::placeholder",IE(i),IE(i),IE(i),e(t=>IE(i))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button",DE(i),DE(i,"Tablet"),DE(i,"Mobile"),e(t=>DE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button:hover",NE(i),NE(i,"Tablet"),NE(i,"Mobile"),e(t=>NE(i,t))),
5030 -t.addClassStyles("{{WRAPPER}} .academy-reg-form",YE(i),YE(i,"Tablet"),YE(i,"Mobile"),e(t=>YE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form:hover",XE(i),XE(i,"Tablet"),XE(i,"Mobile"),e(t=>XE(i,t))),(0,b.applyFilters)("ablocks.academy-instructor-registration-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(CE,{...t}),(0,I.jsx)(LE,{...t})]})},save:()=>null}),EE.propTypes={};const FE={UU:"ablocks/academy-pdf",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},src:{type:"string",default:"http://example.com/example.pdf"},width:{type:"string",default:"100%"},height:{type:"string",default:"500px"},cat_typographyGlobal:{type:"string",default:""},cat_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",
5038 +_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function pF(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:uF.UU,attributes:e,typography:[{fontFamily:e.input_label_typhography?.fontFamily,weight:e.input_label_typhography?.weight},{fontFamily:e.form_button_typhography?.fontFamily,weight:e.form_button_typhography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-instructor-registration-form",httpMethod:"POST",attributes:e})})})})}pF.propTypes={};const mF=(t,e="")=>{const i=(0,M.Zy)(t.form_button_typhography,{weight:"400"}),o=t.form_button_typhographyGlobal?t.form_button_typhographyGlobal:"";return{color:(0,Hs.qD)(t?.form_button_color),background:(0,Hs.qD)(t?.form_button_background),...(0,U.qD)(i,e,o),...(0,y.qD)(t?.form_button_border,e)}},hF=(t,e="")=>({color:(0,Hs.qD)(t?.form_button_hover_color),background:(0,Hs.qD)(t?.form_button_hover_background),...(0,
5039 +y.a9)(t?.form_button_border,e)}),gF=t=>({color:(0,Hs.qD)(t?.input_field_placeholder_color)}),fF=(t,e="")=>({color:(0,Hs.qD)(t?.input_field_color),background:(0,Hs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.form_field_border,e)}),yF=(t,e="")=>({...(0,y.a9)(t?.form_field_border,e)}),TF=(t,e="")=>({...(0,d.qD)(t?.form_background,"background",e),...(0,c.qD)(t?.form_padding,"padding",e),...(0,y.qD)(t?.form_border,e)}),HF=(t,e="")=>({...(0,d.a9)(t?.form_background,"background",e),...(0,y.a9)(t?.form_border,e)}),MF=(t,e="")=>{const i=(0,M.Zy)(t.input_label_typhography,{weight:"400"}),o=t.input_label_typhographyGlobal?t.input_label_typhographyGlobal:"";return{color:(0,Hs.qD)(t?.input_label_color),...(0,U.qD)(i,e,o)}};function xF(t){const{attributes:e,setAttributes:i}=t,{src:o,width:a,height:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{title:(0,L.__)("PDF Options","ablocks"),initialOpen:!0,
5040 +children:[(0,I.jsx)(Kl,{label:(0,L.__)("Source","ablocks"),attributeValue:o,attributeName:"src",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Width","ablocks"),attributeValue:a,attributeName:"width",setAttributes:i,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("Height","ablocks"),attributeValue:n,attributeName:"height",setAttributes:i,disableDynamicContent:!0})]})})})})}(0,M.xV)(uF.UU,"","academy_lms")&&(0,o.registerBlockType)(uF.UU,{title:(0,L.__)("Instructor Registration Form","ablocks"),attributes:uF.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{input_label_color:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
5041 +null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group label",MF(i),MF(i,"Tablet"),MF(i,"Mobile"),e(t=>MF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input",fF(i),fF(i,"Tablet"),fF(i,"Mobile"),e(t=>fF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input:hover",yF(i),yF(i,"Tablet"),yF(i,"Mobile"),e(t=>yF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input::placeholder",gF(i),gF(i),gF(i),e(t=>gF(i))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button",mF(i),mF(i,"Tablet"),mF(i,"Mobile"),e(t=>mF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button:hover",hF(i),hF(i,"Tablet"),hF(i,"Mobile"),e(t=>hF(i,t))),
5042 +t.addClassStyles("{{WRAPPER}} .academy-reg-form",TF(i),TF(i,"Tablet"),TF(i,"Mobile"),e(t=>TF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-reg-form:hover",HF(i),HF(i,"Tablet"),HF(i,"Mobile"),e(t=>HF(i,t))),(0,b.applyFilters)("ablocks.academy-instructor-registration-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(dF,{...t}),(0,I.jsx)(pF,{...t})]})},save:()=>null}),xF.propTypes={};const kF={UU:"ablocks/academy-pdf",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},src:{type:"string",default:"http://example.com/example.pdf"},width:{type:"string",default:"100%"},height:{type:"string",default:"500px"},cat_typographyGlobal:{type:"string",default:""},cat_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",
5031 5043 wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},title_typographyGlobal:{type:"string",default:""},title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",
5032 5044 wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",
5033 5045 borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",
5034 5046 leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",
@@ -5036,16 +5048,16 @@
5036 5048 imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",
5037 5049 zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",
5038 5050 rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",
5039 5051 maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,
5040 -easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function qE(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:FE.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-pdf",httpMethod:"POST",attributes:e})})})})}function $E(t){
5052 +easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function vF(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:kF.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-pdf",httpMethod:"POST",attributes:e})})})})}function _F(t){
5041 5053 const{attributes:e,setAttributes:i}=t,{form_title:o,username_label:a,reset_button_label:n,login_button_label:s,show_logged_in_message:r,form_background_color:b,form_padding:c,form_border:d,label_typography:u,label_color:p,input_field_color:m,input_field_typography:h,input_border:g,input_padding:f,button_color:y,button_typography:T,button_background_color:H,button_padding:M,button_border:x,form_title_typography:k,form_title_color:v,form_footer_title_typography:_,form_footer_title_color:R,form_background_hover_color:S,button_background_hover_color:W,button_hover_color:P}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Form Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Form Title","ablocks"),attributeName:"form_title",attributeValue:o,setAttributes:i,isInline:!1}),(0,I.jsx)(Kl,{label:(0,
5042 5054 L.__)("Username Label","ablocks"),attributeName:"username_label",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("Reset Button Label","ablocks"),attributeName:"reset_button_label",attributeValue:n,setAttributes:i,isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("Login Label","ablocks"),attributeName:"login_button_label",attributeValue:s,setAttributes:i,isInline:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Logged in message","ablocks"),attributeValue:r,setAttributes:i,attributeName:"show_logged_in_message"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"form_background_color",attributeValue:b,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"form_background_hover_color",attributeValue:S,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,
5043 5055 L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_padding",attributeValue:c,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"form_border",attributeValue:d,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Form Header & Footer","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Form Header Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"form_title_typography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"form_title_color",attributeValue:v,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Form Footer Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),
5044 5056 attributeName:"form_footer_title_typography",attributeValue:_,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"form_footer_title_color",attributeValue:R,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Input Field Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Label Option","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"label_typography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"label_color",attributeValue:p,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Input Field Option","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"input_field_typography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,
5045 5057 L.__)("Color","ablocks"),isGradient:!1,attributeName:"input_field_color",attributeValue:m,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"input_padding",attributeValue:f,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"input_border",attributeValue:g,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"button_typography",attributeValue:T,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"button_color",
5046 -attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"button_background_color",attributeValue:H,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"button_hover_color",attributeValue:P,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"button_background_hover_color",attributeValue:W,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"button_padding",attributeValue:M,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"button_border",attributeValue:x,setAttributes:i})]})]})})})}qE.propTypes={},(0,M.xV)(FE.UU,"","academy_lms")&&(0,
5047 -o.registerBlockType)(FE.UU,{title:(0,L.__)("PDF","ablocks"),attributes:FE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(0,b.applyFilters)("ablocks.academy-pdf.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(EE,{...t}),(0,I.jsx)(qE,{...t})]})},save:()=>null}),$E.propTypes={};const GE={UU:"ablocks/academy-password-reset-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},form_title:{type:"string",default:"RESET YOUR PASSWORD"},username_label:{type:"string",
5058 +attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"button_background_color",attributeValue:H,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"button_hover_color",attributeValue:P,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"button_background_hover_color",attributeValue:W,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"button_padding",attributeValue:M,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"button_border",attributeValue:x,setAttributes:i})]})]})})})}vF.propTypes={},(0,M.xV)(kF.UU,"","academy_lms")&&(0,
5059 +o.registerBlockType)(kF.UU,{title:(0,L.__)("PDF","ablocks"),attributes:kF.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(0,b.applyFilters)("ablocks.academy-pdf.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(xF,{...t}),(0,I.jsx)(vF,{...t})]})},save:()=>null}),_F.propTypes={};const RF={UU:"ablocks/academy-password-reset-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},form_title:{type:"string",default:"RESET YOUR PASSWORD"},username_label:{type:"string",
5048 5060 default:"Username or Email Address"},reset_button_label:{type:"string",default:"Get New Password"},login_button_label:{type:"string",default:"Back To Login"},show_logged_in_message:{type:"boolean",default:!0},form_background_color:{type:"string",default:"#fff"},form_background_hover_color:{type:"string",default:"#fff"},label_color:{type:"string",default:"#000"},input_field_color:{type:"string",default:"#333"},button_color:{type:"string",default:"#fff"},button_hover_color:{type:"string",default:"#fff"},button_background_color:{type:"string",default:"#7B68EE"},button_background_hover_color:{type:"string",default:"#6F5DD6"},form_title_color:{type:"string",default:"#333"},form_footer_title_color:{type:"string",default:"#333"},label_typographyGlobal:{type:"string",default:""},label_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",
5049 5061 wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},input_field_typographyGlobal:{type:"string",default:""},input_field_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",
5050 5062 wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},button_typographyGlobal:{type:"string",default:""},button_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},form_title_typographyGlobal:{type:"string",default:""},form_title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",
5051 5063 letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},form_footer_title_typographyGlobal:{type:"string",default:""},form_footer_title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",
@@ -5066,17 +5078,17 @@
5066 5078 imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",
5067 5079 imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",
5068 5080 offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",
5069 5081 scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{
5070 -animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function ZE(t){
5071 -const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:GE.UU,attributes:e,typography:[{fontFamily:e.label_typography?.fontFamily,weight:e.label_typography?.weight},{fontFamily:e.input_field_typography?.fontFamily,weight:e.input_field_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-password-reset-form",httpMethod:"POST",attributes:e})})})})}ZE.propTypes={};const KE=(t,e="")=>({background:(0,Hs.qD)(t?.form_background_color),...(0,y.qD)(t?.form_border,e),...(0,c.qD)(t?.form_padding,"padding",e)}),JE=(t,e="")=>({background:(0,Hs.qD)(t?.form_background_hover_color),...(0,y.a9)(t?.form_border,e)}),QE=(t,e="")=>{const i=(0,M.Zy)(t.label_typography,{weight:"400"
5072 -}),o=t.label_typographyGlobal?t.label_typographyGlobal:"";return{color:(0,Hs.qD)(t?.label_color),...(0,U.qD)(i,e,o)}},tF=(t,e="")=>{const i=(0,M.Zy)(t.input_field_typography,{weight:"400"}),o=t.input_field_typographyGlobal?t.input_field_typographyGlobal:"";return{color:(0,Hs.qD)(t?.input_field_color),...(0,U.qD)(i,e,o),...(0,c.qD)(t?.input_padding,"padding",e),...(0,y.qD)(t?.input_border,e)}},eF=(t,e="")=>({...(0,y.a9)(t?.input_border,e)}),iF=(t,e="")=>{const i=(0,M.Zy)(t.button_typography,{weight:"400"}),o=t.button_typographyGlobal?t.button_typographyGlobal:"";return{color:(0,Hs.qD)(t?.button_color),background:(0,Hs.qD)(t?.button_background_color),...(0,U.qD)(i,e,o),...(0,c.qD)(t?.button_padding,"padding",e),...(0,y.qD)(t?.button_border,e)}},oF=(t,e="")=>({color:(0,Hs.qD)(t?.button_hover_color),background:(0,Hs.qD)(t?.button_background_hover_color),...(0,y.a9)(t?.button_border,e)}),aF=(t,e="")=>{const i=(0,M.Zy)(t.form_title_typography,{weight:"400"
5073 -}),o=t.form_title_typographyGlobal?t.form_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.form_title_color),...(0,U.qD)(i,e,o)}},lF=(t,e="")=>{const i=(0,M.Zy)(t.form_footer_title_typography,{weight:"400"}),o=t.form_footer_title_typographyGlobal?t.form_footer_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.form_footer_title_color),...(0,U.qD)(i,e,o)}};(0,M.xV)(GE.UU,"","academy_lms")&&(0,o.registerBlockType)(GE.UU,{title:(0,L.__)("Password Reset","ablocks"),attributes:GE.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return""
5074 -;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper",KE(i),KE(i,"Tablet"),KE(i,"Mobile"),e(t=>KE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper:hover",JE(i),JE(i,"Tablet"),JE(i,"Mobile"),e(t=>JE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group label",QE(i),QE(i,"Tablet"),QE(i,"Mobile"),e(t=>QE(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input",tF(i),tF(i,"Tablet"),tF(i,"Mobile"),e(t=>tF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input:hover",eF(i),eF(i,"Tablet"),eF(i,"Mobile"),e(t=>eF(i,t))),
5075 -t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group button",iF(i),iF(i,"Tablet"),iF(i,"Mobile"),e(t=>iF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group button:hover",oF(i),oF(i,"Tablet"),oF(i,"Mobile"),e(t=>oF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper h2.academy-password-reset-form-heading",aF(i),aF(i,"Tablet"),aF(i,"Mobile"),e(t=>aF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form-info a",lF(i),lF(i,"Tablet"),lF(i,"Mobile"),e(t=>lF(i,t))),(0,b.applyFilters)("ablocks.academy-password-reset-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)($E,{...t}),(0,I.jsx)(ZE,{...t})]})},save:()=>null});var nF=i(53036);function sF(t){
5076 -const{attributes:e,setAttributes:i}=t,o=lt(),{imageWidth:a,imageHeight:n,alignment:s,imageOpacityH:r,imageOpacity:b,boxShadow:c,border:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("General","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Image Dimensions","ablocks"),isHeader:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"imageWidth",attributeObjectKey:"value",attributeValue:a,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(a["valueUnit"+o]??"%")?100:1600,attributeDefaultValue:nF.C$,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"imageHeight",
5077 -attributeObjectKey:"value",attributeValue:n,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vh",label:"vh"}],min:0,max:["vh","%"].includes(n["valueUnit"+o]??"%")?100:1600,attributeDefaultValue:nF.FN,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacity",attributeValue:b,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Opacity Hover","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacityH",attributeValue:r,setAttributes:i})})}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),
5078 -isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:c,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:d,setAttributes:i})]})})})})})})}sF.propTypes={};const rF={UU:"ablocks/academy-course-media",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},imageOpacityH:{type:"number",default:1},imageOpacity:{type:"number",default:1},imageWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},imageHeight:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",
5082 +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function SF(t){
5083 +const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:RF.UU,attributes:e,typography:[{fontFamily:e.label_typography?.fontFamily,weight:e.label_typography?.weight},{fontFamily:e.input_field_typography?.fontFamily,weight:e.input_field_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-password-reset-form",httpMethod:"POST",attributes:e})})})})}SF.propTypes={};const WF=(t,e="")=>({background:(0,Hs.qD)(t?.form_background_color),...(0,y.qD)(t?.form_border,e),...(0,c.qD)(t?.form_padding,"padding",e)}),PF=(t,e="")=>({background:(0,Hs.qD)(t?.form_background_hover_color),...(0,y.a9)(t?.form_border,e)}),UF=(t,e="")=>{const i=(0,M.Zy)(t.label_typography,{weight:"400"
5084 +}),o=t.label_typographyGlobal?t.label_typographyGlobal:"";return{color:(0,Hs.qD)(t?.label_color),...(0,U.qD)(i,e,o)}},jF=(t,e="")=>{const i=(0,M.Zy)(t.input_field_typography,{weight:"400"}),o=t.input_field_typographyGlobal?t.input_field_typographyGlobal:"";return{color:(0,Hs.qD)(t?.input_field_color),...(0,U.qD)(i,e,o),...(0,c.qD)(t?.input_padding,"padding",e),...(0,y.qD)(t?.input_border,e)}},wF=(t,e="")=>({...(0,y.a9)(t?.input_border,e)}),zF=(t,e="")=>{const i=(0,M.Zy)(t.button_typography,{weight:"400"}),o=t.button_typographyGlobal?t.button_typographyGlobal:"";return{color:(0,Hs.qD)(t?.button_color),background:(0,Hs.qD)(t?.button_background_color),...(0,U.qD)(i,e,o),...(0,c.qD)(t?.button_padding,"padding",e),...(0,y.qD)(t?.button_border,e)}},CF=(t,e="")=>({color:(0,Hs.qD)(t?.button_hover_color),background:(0,Hs.qD)(t?.button_background_hover_color),...(0,y.a9)(t?.button_border,e)}),AF=(t,e="")=>{const i=(0,M.Zy)(t.form_title_typography,{weight:"400"
5085 +}),o=t.form_title_typographyGlobal?t.form_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.form_title_color),...(0,U.qD)(i,e,o)}},LF=(t,e="")=>{const i=(0,M.Zy)(t.form_footer_title_typography,{weight:"400"}),o=t.form_footer_title_typographyGlobal?t.form_footer_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.form_footer_title_color),...(0,U.qD)(i,e,o)}};(0,M.xV)(RF.UU,"","academy_lms")&&(0,o.registerBlockType)(RF.UU,{title:(0,L.__)("Password Reset","ablocks"),attributes:RF.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return""
5086 +;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper",WF(i),WF(i,"Tablet"),WF(i,"Mobile"),e(t=>WF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper:hover",PF(i),PF(i,"Tablet"),PF(i,"Mobile"),e(t=>PF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group label",UF(i),UF(i,"Tablet"),UF(i,"Mobile"),e(t=>UF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input",jF(i),jF(i,"Tablet"),jF(i,"Mobile"),e(t=>jF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input:hover",wF(i),wF(i,"Tablet"),wF(i,"Mobile"),e(t=>wF(i,t))),
5087 +t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group button",zF(i),zF(i,"Tablet"),zF(i,"Mobile"),e(t=>zF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group button:hover",CF(i),CF(i,"Tablet"),CF(i,"Mobile"),e(t=>CF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper h2.academy-password-reset-form-heading",AF(i),AF(i,"Tablet"),AF(i,"Mobile"),e(t=>AF(i,t))),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form-info a",LF(i),LF(i,"Tablet"),LF(i,"Mobile"),e(t=>LF(i,t))),(0,b.applyFilters)("ablocks.academy-password-reset-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(_F,{...t}),(0,I.jsx)(SF,{...t})]})},save:()=>null});var DF=i(53036);function NF(t){
5088 +const{attributes:e,setAttributes:i}=t,o=lt(),{imageWidth:a,imageHeight:n,alignment:s,imageOpacityH:r,imageOpacity:b,boxShadow:c,border:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("General","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Image Dimensions","ablocks"),isHeader:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"imageWidth",attributeObjectKey:"value",attributeValue:a,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(a["valueUnit"+o]??"%")?100:1600,attributeDefaultValue:DF.C$,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"imageHeight",
5089 +attributeObjectKey:"value",attributeValue:n,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vh",label:"vh"}],min:0,max:["vh","%"].includes(n["valueUnit"+o]??"%")?100:1600,attributeDefaultValue:DF.FN,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacity",attributeValue:b,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Opacity Hover","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacityH",attributeValue:r,setAttributes:i})})}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),
5090 +isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:c,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:d,setAttributes:i})]})})})})})})}NF.propTypes={};const IF={UU:"ablocks/academy-course-media",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},imageOpacityH:{type:"number",default:1},imageOpacity:{type:"number",default:1},imageWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},imageHeight:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",
5079 5091 presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",
5080 5092 unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",
5081 5093 bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",
5082 5094 bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",
@@ -5085,50 +5097,50 @@
5085 5097 imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",
5086 5098 rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",
5087 5099 offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",
5088 5100 xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},
5089 -_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function bF(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:rF.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-course-media",httpMethod:"POST",attributes:e})})})})}bF.propTypes={};const cF=(t,e="")=>{const i={};i.opacity=t?.imageOpacity??1;const o=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,
5090 -unitDefaultValue:"%",property:"height",device:e})}},dF=(t,e="")=>{const{alignment:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o.width="100%",o["justify-content"]=i["value"+e]),{...o}};(0,M.xV)(rF.UU,"","academy_lms")&&(0,o.registerBlockType)(rF.UU,{title:(0,L.__)("Course Media","ablocks"),attributes:rF.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-default-featured-image,\n\t\t\t{{WRAPPER}} .plyr--video",cF(i),cF(i,"Tablet"),cF(i,"Mobile"),e(t=>cF(i,t))),
5091 -t.addClassStyles("{{WRAPPER}}.ablocks-block--academy-course-media:not(.ablocks-block-container),\n\t\t\t{{WRAPPER}}.ablocks-block--academy-course-media .ablocks-block-container ",dF(i),dF(i,"Tablet"),dF(i,"Mobile"),e(t=>dF(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(sF,{...t}),(0,I.jsx)(bF,{...t})]})},save:()=>null});var uF=i(41607);const pF=({offset:t,onChange:e})=>(0,I.jsx)(As,{label:(0,L.__)("Offset","ablocks"),attributeValue:t,onChangeHandler:t=>{isNaN(t)||t<0||t>100||e(t)}});function mF(t){const{attributes:e,setAttributes:i,clientId:o}=t,{tagName:l="div",query:n}=e,{postType:s,perPage:b,order:c,orderBy:d,offset:u}=n,{postTypesSelectOptions:p}=(()=>{const t=(0,r.useSelect)(t=>{const{getPostTypes:e,getPostType:i}=t(zl.store),o=e({per_page:-1})||[],a=["attachment"];return o.filter(({viewable:t,slug:e})=>t&&!a.includes(e)).map(({slug:t})=>i(t))},[]),e=(0,Yt.useMemo)(()=>(t||[]).map(({labels:t,slug:e})=>({
5101 +_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function VF(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:IF.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-course-media",httpMethod:"POST",attributes:e})})})})}VF.propTypes={};const OF=(t,e="")=>{const i={};i.opacity=t?.imageOpacity??1;const o=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,
5102 +unitDefaultValue:"%",property:"height",device:e})}},YF=(t,e="")=>{const{alignment:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o.width="100%",o["justify-content"]=i["value"+e]),{...o}};(0,M.xV)(IF.UU,"","academy_lms")&&(0,o.registerBlockType)(IF.UU,{title:(0,L.__)("Course Media","ablocks"),attributes:IF.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-default-featured-image,\n\t\t\t{{WRAPPER}} .plyr--video",OF(i),OF(i,"Tablet"),OF(i,"Mobile"),e(t=>OF(i,t))),
5103 +t.addClassStyles("{{WRAPPER}}.ablocks-block--academy-course-media:not(.ablocks-block-container),\n\t\t\t{{WRAPPER}}.ablocks-block--academy-course-media .ablocks-block-container ",YF(i),YF(i,"Tablet"),YF(i,"Mobile"),e(t=>YF(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(NF,{...t}),(0,I.jsx)(VF,{...t})]})},save:()=>null});var XF=i(41607);const BF=({offset:t,onChange:e})=>(0,I.jsx)(As,{label:(0,L.__)("Offset","ablocks"),attributeValue:t,onChangeHandler:t=>{isNaN(t)||t<0||t>100||e(t)}});function EF(t){const{attributes:e,setAttributes:i,clientId:o}=t,{tagName:l="div",query:n}=e,{postType:s,perPage:b,order:c,orderBy:d,offset:u}=n,{postTypesSelectOptions:p}=(()=>{const t=(0,r.useSelect)(t=>{const{getPostTypes:e,getPostType:i}=t(zl.store),o=e({per_page:-1})||[],a=["attachment"];return o.filter(({viewable:t,slug:e})=>t&&!a.includes(e)).map(({slug:t})=>i(t))},[]),e=(0,Yt.useMemo)(()=>(t||[]).map(({labels:t,slug:e})=>({
5092 5104 label:t?.singular_name||e,value:e})),[t]);return{postTypesSelectOptions:e}})(),m=(t=>{const e=(0,r.useSelect)(e=>{const{getTaxonomies:i,getPostType:o}=e(zl.store);return o(t)?.taxonomies?.length>0?i({type:t,per_page:-1}):[]},[t]);return(0,Yt.useMemo)(()=>e?.filter(({visibility:t})=>!!t?.publicly_queryable),[e])})(s),[h,g]=(0,a.useState)({}),[f,y]=(0,a.useState)({}),[T,H]=(0,a.useState)({}),x=m?.length>0,k=t=>{f[t]||(g(e=>({...e,[t]:!0})),(0,M.In)({action:"ablocks/get_taxonomy_term_data",taxonomy:t}).then(e=>{if(e?.data?.success){const i=e?.data?.data||[];y(e=>({...e,[t]:i}))}}).finally(()=>{g(e=>({...e,[t]:!1}))}))};(0,a.useEffect)(()=>{x&&m.forEach(t=>k(t.slug))},[m,x]);const v={main:(0,L.__)("The <main> element should be used for the primary content of your document only.","ablocks"),section:(0,L.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element.","ablocks"),aside:(0,
5093 5105 L.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.","ablocks")};function _(t,e){if(!t)return null;if(t.name===e)return t;if(t.innerBlocks?.length)for(const i of t.innerBlocks){const t=_(i,e);if(t)return t}return null}const R=(0,r.useSelect)(t=>{const{getBlock:e}=t("core/block-editor"),i=e(o);return i?_(i,"ablocks/loop-filter"):null},[o]),S=R?.clientId,{updateBlockAttributes:W}=(0,r.useDispatch)("core/block-editor"),P=(0,a.useRef)(s);(0,a.useEffect)(()=>{if(!S||!s)return;const t=P.current;s!==t&&W(S,{taxonomy_term_items:[]}),P.current=s},[s,S]);const{inherit:U}=n;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Loop Builder","ablocks"),initialOpen:!0,children:(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!1,label:(0,L.__)("Query Type","ablocks"),options:[{value:!0,label:(0,
5094 5106 L.__)("Inherit","ablocks")},{value:!1,label:(0,L.__)("Custom","ablocks")}],attributeName:"inherit",attributeValue:n?.inherit,setAttributes:t=>{i({query:{...n,...t}})}})}),!n?.inherit&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(V,{title:(0,L.__)("Query","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Post Types","ablocks"),isResponsive:!1,options:p,attributeValue:s,onChangeHandler:t=>{i({query:{...n,postType:t}})}}),(0,I.jsx)(Ut,{label:(0,L.__)("Order By","ablocks"),options:[{label:(0,L.__)("Newest to oldest","ablocks"),value:"date/desc"},{label:(0,L.__)("Oldest to newest","ablocks"),value:"date/asc"},{label:(0,L.__)("A → Z","ablocks"),value:"title/asc"},{label:(0,L.__)("Z → A","ablocks"),value:"title/desc"}],attributeValue:`${d}/${c}`,onChangeHandler:t=>{const[e,o]=t.split("/");i({query:{...n,orderBy:e,order:o}})}}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Display","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(As,{label:(0,
5095 -L.__)("Posts Per Page","ablocks"),attributeValue:b,onChangeHandler:t=>{i({query:{...n,perPage:t}})}}),(0,I.jsx)(pF,{offset:u,onChange:t=>{i({query:{...n,offset:t}})}})]}),x&&(0,I.jsx)(V,{title:(0,L.__)("Taxonomy Filter","ablocks"),initialOpen:!0,children:x&&m.map((t,e)=>{const o=t.slug;return(0,I.jsxs)("div",{className:"ablcks-taxonomies-select",children:[(0,I.jsx)("label",{className:"ablocks-taxonomies-label",children:t?.labels?.name}),(0,I.jsx)(Rl,{...Sl(),className:"ablocks-terms-select",classNamePrefix:"select",isLoading:h[o],isClearable:!0,isMulti:!0,options:f[o]||[],value:f[o]?f[o].filter(t=>(n?.taxQuery?.[o]||[]).includes(t.value)):null,onChange:t=>((t,e)=>{(t=>{const e=(n||{}).taxQuery??{},o=t.taxQuery?{...e,...t.taxQuery}:e;i({query:{...n,...t,taxQuery:o}})})({taxQuery:{[t]:e.map(t=>t.value)}}),H(i=>({...i,[t]:e}))})(o,t),onMenuOpen:()=>k(o),placeholder:(0,L.__)("Select terms…","ablocks"),closeMenuOnSelect:!1})]},e)})})]})]})}),(0,I.jsx)(D.InspectorControls,{group:"advanced",
5096 -children:(0,I.jsx)(N.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,L.__)("HTML element","ablocks"),options:[{label:(0,L.__)("Default (<div>)","ablocks"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:l,onChange:t=>i({tagName:t}),help:v[l]})})]})}const hF="ablocks/loop-builder",gF=[{name:"normal-loo",title:(0,L.__)("Normal Loop","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/loop-builder/normal-loop.svg",alt:(0,L.__)("Normal Loop","ablocks")}),attributes:{},innerBlocks:[["ablocks/loop-template",{},[["ablocks/featured-image",{imgUrl:"ablocks_dc:image|featured-image:ablocks_dc"}],["ablocks/heading",{heading:"ablocks_dc:current|page|180|post-title|||:ablocks_dc"}],["ablocks/paragraph",{paragraph:"ablocks_dc:current|page|183|post-date||||post_modified|F j, Y:ablocks_dc"}],["ablocks/paragraph",{paragraph:"ablocks_dc:current|page|183|post-excerpt||||:ablocks_dc"}],["ablocks/button",{
5097 -text:"Read More",link:{href:"ablocks_dc:link|post-url:ablocks_dc"}}]]],["core/query-pagination"]],scope:["block"]},{name:"filterable-loop",title:(0,L.__)("Filterable Loop","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/loop-builder/filterable-loop.svg",alt:(0,L.__)("Filterable Loop","ablocks")}),attributes:{},innerBlocks:[["ablocks/loop-filter"],["ablocks/loop-template",{},[["ablocks/featured-image",{imgUrl:"ablocks_dc:image|featured-image:ablocks_dc"}],["ablocks/heading",{heading:"ablocks_dc:current|page|180|post-title|||:ablocks_dc"}],["ablocks/paragraph",{paragraph:"ablocks_dc:current|page|183|post-date||||post_modified|F j, Y:ablocks_dc"}],["ablocks/paragraph",{paragraph:"ablocks_dc:current|page|183|post-excerpt||||:ablocks_dc"}],["ablocks/button",{text:"Read More",link:{href:"ablocks_dc:link|post-url:ablocks_dc"}}]]],["ablocks/loop-load-more"]],scope:["block"]}];function fF({attributes:t,setAttributes:e}){
5098 -const{queryId:i,query:o,tagName:l="div",query:{inherit:n}={},selectedVariation:s}=t,{__unstableMarkNextChangeAsNotPersistent:b}=(0,r.useDispatch)(D.store),c=(0,sH.useInstanceId)(fF),d=(0,D.useBlockProps)(),{postsPerPage:u}=(0,r.useSelect)(t=>{const{getSettings:e}=t(D.store),{getEntityRecord:i,getEntityRecordEdits:o,canUser:a}=t(zl.store),l=a("read",{kind:"root",name:"site"})?+i("root","site")?.posts_per_page:+e().postsPerPage;return{postsPerPage:+o("root","site")?.posts_per_page||l||3}},[]);(0,a.useEffect)(()=>{const t={};(n&&o.perPage!==u||!o.perPage&&u)&&(t.perPage=u),Object.keys(t).length&&(b(),p(t))},[u,n]),(0,a.useEffect)(()=>{Number.isFinite(i)||(b(),e({queryId:c}))},[i,c]);const p=t=>e({query:{...o,...t}}),m=gF.find(e=>e.name===t.selectedVariation),h=(0,D.useInnerBlocksProps)(d,{template:m?m.innerBlocks:[],templateLock:!1});return(0,I.jsxs)(l,{...d,children:[!s&&(0,I.jsxs)("div",{className:"ablocks-query-loop-selector",children:[(0,I.jsx)("h3",{
5099 -className:"ablocks-query-loop-selector-title",children:(0,L.__)("Choose a template or start from blank","ablocks")}),(0,I.jsx)("div",{className:"ablocks-query-loop-variations",children:gF.map(t=>(0,I.jsxs)("div",{className:"ablocks-query-loop-option",onClick:()=>e({selectedVariation:t.name}),role:"button",tabIndex:0,children:[(0,I.jsx)("div",{className:"ablocks-query-loop-option-icon",children:t.icon}),(0,I.jsx)("span",{className:"ablocks-query-loop-option-title",children:t.title})]},t.name))})]}),s&&(0,I.jsx)("div",{...h})]})}function yF(t){const{attributes:e,setAttributes:i}=t,{block_id:o}=e;return(0,I.jsx)(React.Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:hF,attributes:e,children:(0,I.jsx)(fF,{attributes:e,setAttributes:i})})})}(0,o.registerBlockType)(hF,{attributes:uF.A,icon:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,I.jsx)("path",{d:"M16 15L24 15 20 20zM8 9L0 9 4 4z"}),(0,I.jsx)("path",{
5100 -d:"M21 6c0-1.654-1.346-3-3-3H7.161l1.6 2H18c.551 0 1 .448 1 1v10h2V6zM3 18c0 1.654 1.346 3 3 3h10.839l-1.6-2H6c-.551 0-1-.448-1-1V8H3V18z"})]}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(mF,{...t}),(0,I.jsx)(yF,{...t})]})},save:function(t){const{attributes:e}=t,{tagName:i="div"}=e,o=D.useBlockProps.save(),a=D.useInnerBlocksProps.save(o),{block_id:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:n,name:hF,attributes:e,children:(0,I.jsx)(i,{...a})})})}});var TF=i(62882);function HF(t){const{attributes:e,setAttributes:i,clientId:o}=t,{templateGridColumns:a,gridStyle:l,itemGap:n,padding:s}=e;return(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,
5101 -I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Access Loop Builder Settings","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("This is a child block. Click below to manage the full loop builder.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Grid","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Columns","ablocks"),min:1,max:4,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"templateGridColumns",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:TF.E4}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemGap",attributeValue:n,attributeDefaultValue:TF.Qk,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,
5102 -L.__)("Template Styles","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"bgColor",attributeValue:e?.bgColor,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:s,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i})]})]})})}const MF="ablocks/loop-template";function xF(t){var e,i,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(i=xF(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}const kF=function(){for(var t,e,i=0,o="",a=arguments.length;i<a;i++)(t=arguments[i])&&(e=xF(t))&&(o&&(o+=" "),o+=e);return o},vF=(0,I.jsx)(zc.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)(zc.Path,{
5103 -d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})}),_F=(0,I.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I.jsx)(zc.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),RF=[["ablocks/heading"],["ablocks/paragraph"],["ablocks/image"]];function SF({classList:t}){const e=(0,D.useInnerBlocksProps)({className:kF("ablocks-loop-template-item",t)},{template:RF,__unstableDisableLayoutClassNames:!0});return(0,I.jsx)("div",{...e})}const WF=(0,Yt.memo)(function({blocks:t,blockContextId:e,classList:i,isHidden:o,setActiveBlockContextId:a}){const l=(0,D.__experimentalUseBlockPreview)({blocks:t,props:{className:kF("ablocks-loop-template-item",i)}
5104 -}),n=()=>{a(e)},s={display:o?"none":void 0};return(0,I.jsx)("div",{...l,tabIndex:0,role:"button",onClick:n,onKeyPress:n,style:s})});function PF({setAttributes:t,clientId:e,context:{query:{perPage:i,offset:o=0,postType:a,order:l,orderBy:n,author:s,search:b,exclude:c,sticky:d,inherit:u,taxQuery:p,parents:m,pages:h,format:g,...f}={},templateSlug:y,previewPostType:T},attributes:{layout:H},__unstableLayoutClassNames:M}){const{type:x,columnCount:k=3}=H||{},[v,_]=(0,Yt.useState)(),{posts:R,blocks:S}=(0,r.useSelect)(t=>{const{getEntityRecords:r,getTaxonomies:h}=t(zl.store),{getBlocks:H}=t(D.store),M=u&&y?.startsWith("category-")&&r("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:y.replace("category-","")}),x=u&&y?.startsWith("tag-")&&r("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:y.replace("tag-","")}),k={offset:o||0,order:l,orderby:n};if(p&&!u){const t=h({type:a,per_page:-1,context:"view"}),e=Object.entries(p).reduce((e,[i,o])=>{
5105 -const a=t?.find(({slug:t})=>t===i);return a?.rest_base&&(e[a?.rest_base]=o),e},{});Object.keys(e).length&&Object.assign(k,e)}i&&(k.per_page=i),s&&(k.author=s),b&&(k.search=b),c?.length&&(k.exclude=c),m?.length&&(k.parent=m),g?.length&&(k.format=g),d&&"ignore"!==d&&(k.sticky="only"===d),"ignore"===d&&(delete k.sticky,k.ignore_sticky=!0);let v=a;return u&&(y?.startsWith("archive-")?(k.postType=y.replace("archive-",""),v=k.postType):M?k.categories=M[0]?.id:x?k.tags=x[0]?.id:y?.startsWith("taxonomy-post_format")&&(k.format=y.replace("taxonomy-post_format-post-format-",""))),{posts:r("postType",T||v,{...k,...f}),blocks:H(e)}},[i,o,l,n,e,s,b,a,c,d,u,y,p,m,g,f,T]),W=(0,Yt.useMemo)(()=>R?.map(t=>({postType:t.type,postId:t.id,classList:t.class_list??""})),[R]),P=(0,D.useBlockProps)({className:kF(M,{[`columns-${k}`]:"grid"===x&&k})});if(!R)return(0,I.jsx)("div",{...P,children:(0,I.jsx)(N.Spinner,{})});if(!R.length)return(0,I.jsx)("div",{...P,children:(0,L.__)("No results found.","ablocks")})
5106 -;const U=e=>t({layout:{...H,...e}}),j=[{icon:vF,title:(0,L._x)("List view","Post template block display setting","ablocks"),onClick:()=>U({type:"default"}),isActive:"default"===x||"constrained"===x},{icon:_F,title:(0,L._x)("Grid view","Post template block display setting","ablocks"),onClick:()=>U({type:"grid",columnCount:k}),isActive:"grid"===x}];return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarGroup,{controls:j})}),(0,I.jsx)("div",{...P,children:W&&W.map(t=>(0,I.jsxs)(D.BlockContextProvider,{value:t,children:[t.postId===(v||W[0]?.postId)?(0,I.jsx)(SF,{classList:t.classList}):null,(0,I.jsx)(WF,{blocks:S,blockContextId:t.postId,classList:t.classList,setActiveBlockContextId:_,isHidden:t.postId===(v||W[0]?.postId)})]},t.postId))})]})}function UF(t){const{attributes:e,clientId:i,context:o,setAttributes:a,__unstableLayoutClassNames:l}=t,{block_id:n}=e;return(0,I.jsx)("div",{
5107 -className:"ablocks-loop-template-child ablocks-loop-template-child__editor",children:(0,I.jsx)(sR,{blockId:n,name:MF,attributes:e,children:(0,I.jsx)(PF,{clientId:i,context:o,setAttributes:a,attributes:e,__unstableLayoutClassNames:l})})})}UF.propTypes={};const jF=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"gap",unitDefaultValue:"px",device:e})};let o={};return"grid"===t.gridStyle&&(i.display="grid",o={...(0,Eb.qD)({attributeValue:t.templateGridColumns,attributeObjectKey:"value",isResponsive:!0,property:"grid-template-columns",defaultValue:2,defaultValueTablet:2,defaultValueMobile:1,hasUnit:!0,unitDefaultValue:"",device:e})},i["grid-template-columns"]=`repeat(${o["grid-template-columns"]}, 1fr)`),i},wF=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.bgColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}
5108 -},zF=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function CF(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:MF,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}CF.propTypes={},CF.defaultProps={};const AF=(0,I.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I.jsx)(zc.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});(0,o.registerBlockType)(MF,{attributes:TF.Ay,icon:AF,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]),(0,a.useEffect)(()=>{if(""!==i.gridColumns&&2!==Number(i.gridColumns)){const t={value:"",valueTablet:2,valueMobile:1};t.value=Number(i.gridColumns),o({templateGridColumns:t
5109 -}),o({gridColumns:""})}},[]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .wp-block-ablocks-loop-template ",jF(i),jF(i,"Tablet"),jF(i,"Mobile"),t.customDeviceMap(t=>jF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-template-item",wF(i),wF(i,"Tablet"),wF(i,"Mobile"),t.customDeviceMap(t=>wF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-template-item:hover",zF(i),zF(i,"Tablet"),zF(i,"Mobile"),t.customDeviceMap(t=>zF(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(HF,{...t}),(0,I.jsx)(UF,{...t})]})},save:CF});var LF=i(5230);function DF(t){const{attributes:e,setAttributes:i,clientId:o}=t,{taxonomy:l,taxonomy_term_items:n,buttonAlignment:s,filterBtnAlignment:b,rowAlignBtn:c}=e,[d,u]=(0,a.useState)([]),[p,m]=(0,a.useState)(null),[h,g]=(0,a.useState)([]),[f,y]=(0,a.useState)([]),[T,H]=(0,a.useState)(!1),x=(0,r.useSelect)(t=>{
5107 +L.__)("Posts Per Page","ablocks"),attributeValue:b,onChangeHandler:t=>{i({query:{...n,perPage:t}})}}),(0,I.jsx)(BF,{offset:u,onChange:t=>{i({query:{...n,offset:t}})}})]}),x&&(0,I.jsx)(V,{title:(0,L.__)("Taxonomy Filter","ablocks"),initialOpen:!0,children:x&&m.map((t,e)=>{const o=t.slug;return(0,I.jsxs)("div",{className:"ablcks-taxonomies-select",children:[(0,I.jsx)("label",{className:"ablocks-taxonomies-label",children:t?.labels?.name}),(0,I.jsx)(Rl,{...Sl(),className:"ablocks-terms-select",classNamePrefix:"select",isLoading:h[o],isClearable:!0,isMulti:!0,options:f[o]||[],value:f[o]?f[o].filter(t=>(n?.taxQuery?.[o]||[]).includes(t.value)):null,onChange:t=>((t,e)=>{(t=>{const e=(n||{}).taxQuery??{},o=t.taxQuery?{...e,...t.taxQuery}:e;i({query:{...n,...t,taxQuery:o}})})({taxQuery:{[t]:e.map(t=>t.value)}}),H(i=>({...i,[t]:e}))})(o,t),onMenuOpen:()=>k(o),placeholder:(0,L.__)("Select terms…","ablocks"),closeMenuOnSelect:!1})]},e)})})]})]})}),(0,I.jsx)(D.InspectorControls,{group:"advanced",
5108 +children:(0,I.jsx)(N.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,L.__)("HTML element","ablocks"),options:[{label:(0,L.__)("Default (<div>)","ablocks"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:l,onChange:t=>i({tagName:t}),help:v[l]})})]})}const FF="ablocks/loop-builder",qF=[{name:"normal-loo",title:(0,L.__)("Normal Loop","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/loop-builder/normal-loop.svg",alt:(0,L.__)("Normal Loop","ablocks")}),attributes:{},innerBlocks:[["ablocks/loop-template",{},[["ablocks/featured-image",{imgUrl:"ablocks_dc:image|featured-image:ablocks_dc"}],["ablocks/heading",{heading:"ablocks_dc:current|page|180|post-title|||:ablocks_dc"}],["ablocks/paragraph",{paragraph:"ablocks_dc:current|page|183|post-date||||post_modified|F j, Y:ablocks_dc"}],["ablocks/paragraph",{paragraph:"ablocks_dc:current|page|183|post-excerpt||||:ablocks_dc"}],["ablocks/button",{
5109 +text:"Read More",link:{href:"ablocks_dc:link|post-url:ablocks_dc"}}]]],["core/query-pagination"]],scope:["block"]},{name:"filterable-loop",title:(0,L.__)("Filterable Loop","ablocks"),icon:(0,I.jsx)("img",{src:M.hq+"assets/images/loop-builder/filterable-loop.svg",alt:(0,L.__)("Filterable Loop","ablocks")}),attributes:{},innerBlocks:[["ablocks/loop-filter"],["ablocks/loop-template",{},[["ablocks/featured-image",{imgUrl:"ablocks_dc:image|featured-image:ablocks_dc"}],["ablocks/heading",{heading:"ablocks_dc:current|page|180|post-title|||:ablocks_dc"}],["ablocks/paragraph",{paragraph:"ablocks_dc:current|page|183|post-date||||post_modified|F j, Y:ablocks_dc"}],["ablocks/paragraph",{paragraph:"ablocks_dc:current|page|183|post-excerpt||||:ablocks_dc"}],["ablocks/button",{text:"Read More",link:{href:"ablocks_dc:link|post-url:ablocks_dc"}}]]],["ablocks/loop-load-more"]],scope:["block"]}];function $F({attributes:t,setAttributes:e}){
5110 +const{queryId:i,query:o,tagName:l="div",query:{inherit:n}={},selectedVariation:s}=t,{__unstableMarkNextChangeAsNotPersistent:b}=(0,r.useDispatch)(D.store),c=(0,sH.useInstanceId)($F),d=(0,D.useBlockProps)(),{postsPerPage:u}=(0,r.useSelect)(t=>{const{getSettings:e}=t(D.store),{getEntityRecord:i,getEntityRecordEdits:o,canUser:a}=t(zl.store),l=a("read",{kind:"root",name:"site"})?+i("root","site")?.posts_per_page:+e().postsPerPage;return{postsPerPage:+o("root","site")?.posts_per_page||l||3}},[]);(0,a.useEffect)(()=>{const t={};(n&&o.perPage!==u||!o.perPage&&u)&&(t.perPage=u),Object.keys(t).length&&(b(),p(t))},[u,n]),(0,a.useEffect)(()=>{Number.isFinite(i)||(b(),e({queryId:c}))},[i,c]);const p=t=>e({query:{...o,...t}}),m=qF.find(e=>e.name===t.selectedVariation),h=(0,D.useInnerBlocksProps)(d,{template:m?m.innerBlocks:[],templateLock:!1});return(0,I.jsxs)(l,{...d,children:[!s&&(0,I.jsxs)("div",{className:"ablocks-query-loop-selector",children:[(0,I.jsx)("h3",{
5111 +className:"ablocks-query-loop-selector-title",children:(0,L.__)("Choose a template or start from blank","ablocks")}),(0,I.jsx)("div",{className:"ablocks-query-loop-variations",children:qF.map(t=>(0,I.jsxs)("div",{className:"ablocks-query-loop-option",onClick:()=>e({selectedVariation:t.name}),role:"button",tabIndex:0,children:[(0,I.jsx)("div",{className:"ablocks-query-loop-option-icon",children:t.icon}),(0,I.jsx)("span",{className:"ablocks-query-loop-option-title",children:t.title})]},t.name))})]}),s&&(0,I.jsx)("div",{...h})]})}function GF(t){const{attributes:e,setAttributes:i}=t,{block_id:o}=e;return(0,I.jsx)(React.Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:FF,attributes:e,children:(0,I.jsx)($F,{attributes:e,setAttributes:i})})})}(0,o.registerBlockType)(FF,{attributes:XF.A,icon:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,I.jsx)("path",{d:"M16 15L24 15 20 20zM8 9L0 9 4 4z"}),(0,I.jsx)("path",{
5112 +d:"M21 6c0-1.654-1.346-3-3-3H7.161l1.6 2H18c.551 0 1 .448 1 1v10h2V6zM3 18c0 1.654 1.346 3 3 3h10.839l-1.6-2H6c-.551 0-1-.448-1-1V8H3V18z"})]}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(EF,{...t}),(0,I.jsx)(GF,{...t})]})},save:function(t){const{attributes:e}=t,{tagName:i="div"}=e,o=D.useBlockProps.save(),a=D.useInnerBlocksProps.save(o),{block_id:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:n,name:FF,attributes:e,children:(0,I.jsx)(i,{...a})})})}});var ZF=i(62882);function KF(t){const{attributes:e,setAttributes:i,clientId:o}=t,{templateGridColumns:a,gridStyle:l,itemGap:n,padding:s}=e;return(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,
5113 +I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Access Loop Builder Settings","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("This is a child block. Click below to manage the full loop builder.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Grid","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Columns","ablocks"),min:1,max:4,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"templateGridColumns",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:ZF.E4}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemGap",attributeValue:n,attributeDefaultValue:ZF.Qk,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,
5114 +L.__)("Template Styles","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"bgColor",attributeValue:e?.bgColor,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:s,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i})]})]})})}const JF="ablocks/loop-template";function QF(t){var e,i,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(i=QF(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}const tq=function(){for(var t,e,i=0,o="",a=arguments.length;i<a;i++)(t=arguments[i])&&(e=QF(t))&&(o&&(o+=" "),o+=e);return o},eq=(0,I.jsx)(zc.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)(zc.Path,{
5115 +d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})}),iq=(0,I.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I.jsx)(zc.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),oq=[["ablocks/heading"],["ablocks/paragraph"],["ablocks/image"]];function aq({classList:t}){const e=(0,D.useInnerBlocksProps)({className:tq("ablocks-loop-template-item",t)},{template:oq,__unstableDisableLayoutClassNames:!0});return(0,I.jsx)("div",{...e})}const lq=(0,Yt.memo)(function({blocks:t,blockContextId:e,classList:i,isHidden:o,setActiveBlockContextId:a}){const l=(0,D.__experimentalUseBlockPreview)({blocks:t,props:{className:tq("ablocks-loop-template-item",i)}
5116 +}),n=()=>{a(e)},s={display:o?"none":void 0};return(0,I.jsx)("div",{...l,tabIndex:0,role:"button",onClick:n,onKeyPress:n,style:s})});function nq({setAttributes:t,clientId:e,context:{query:{perPage:i,offset:o=0,postType:a,order:l,orderBy:n,author:s,search:b,exclude:c,sticky:d,inherit:u,taxQuery:p,parents:m,pages:h,format:g,...f}={},templateSlug:y,previewPostType:T},attributes:{layout:H},__unstableLayoutClassNames:M}){const{type:x,columnCount:k=3}=H||{},[v,_]=(0,Yt.useState)(),{posts:R,blocks:S}=(0,r.useSelect)(t=>{const{getEntityRecords:r,getTaxonomies:h}=t(zl.store),{getBlocks:H}=t(D.store),M=u&&y?.startsWith("category-")&&r("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:y.replace("category-","")}),x=u&&y?.startsWith("tag-")&&r("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:y.replace("tag-","")}),k={offset:o||0,order:l,orderby:n};if(p&&!u){const t=h({type:a,per_page:-1,context:"view"}),e=Object.entries(p).reduce((e,[i,o])=>{
5117 +const a=t?.find(({slug:t})=>t===i);return a?.rest_base&&(e[a?.rest_base]=o),e},{});Object.keys(e).length&&Object.assign(k,e)}i&&(k.per_page=i),s&&(k.author=s),b&&(k.search=b),c?.length&&(k.exclude=c),m?.length&&(k.parent=m),g?.length&&(k.format=g),d&&"ignore"!==d&&(k.sticky="only"===d),"ignore"===d&&(delete k.sticky,k.ignore_sticky=!0);let v=a;return u&&(y?.startsWith("archive-")?(k.postType=y.replace("archive-",""),v=k.postType):M?k.categories=M[0]?.id:x?k.tags=x[0]?.id:y?.startsWith("taxonomy-post_format")&&(k.format=y.replace("taxonomy-post_format-post-format-",""))),{posts:r("postType",T||v,{...k,...f}),blocks:H(e)}},[i,o,l,n,e,s,b,a,c,d,u,y,p,m,g,f,T]),W=(0,Yt.useMemo)(()=>R?.map(t=>({postType:t.type,postId:t.id,classList:t.class_list??""})),[R]),P=(0,D.useBlockProps)({className:tq(M,{[`columns-${k}`]:"grid"===x&&k})});if(!R)return(0,I.jsx)("div",{...P,children:(0,I.jsx)(N.Spinner,{})});if(!R.length)return(0,I.jsx)("div",{...P,children:(0,L.__)("No results found.","ablocks")})
5118 +;const U=e=>t({layout:{...H,...e}}),j=[{icon:eq,title:(0,L._x)("List view","Post template block display setting","ablocks"),onClick:()=>U({type:"default"}),isActive:"default"===x||"constrained"===x},{icon:iq,title:(0,L._x)("Grid view","Post template block display setting","ablocks"),onClick:()=>U({type:"grid",columnCount:k}),isActive:"grid"===x}];return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarGroup,{controls:j})}),(0,I.jsx)("div",{...P,children:W&&W.map(t=>(0,I.jsxs)(D.BlockContextProvider,{value:t,children:[t.postId===(v||W[0]?.postId)?(0,I.jsx)(aq,{classList:t.classList}):null,(0,I.jsx)(lq,{blocks:S,blockContextId:t.postId,classList:t.classList,setActiveBlockContextId:_,isHidden:t.postId===(v||W[0]?.postId)})]},t.postId))})]})}function sq(t){const{attributes:e,clientId:i,context:o,setAttributes:a,__unstableLayoutClassNames:l}=t,{block_id:n}=e;return(0,I.jsx)("div",{
5119 +className:"ablocks-loop-template-child ablocks-loop-template-child__editor",children:(0,I.jsx)(mR,{blockId:n,name:JF,attributes:e,children:(0,I.jsx)(nq,{clientId:i,context:o,setAttributes:a,attributes:e,__unstableLayoutClassNames:l})})})}sq.propTypes={};const rq=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"gap",unitDefaultValue:"px",device:e})};let o={};return"grid"===t.gridStyle&&(i.display="grid",o={...(0,Eb.qD)({attributeValue:t.templateGridColumns,attributeObjectKey:"value",isResponsive:!0,property:"grid-template-columns",defaultValue:2,defaultValueTablet:2,defaultValueMobile:1,hasUnit:!0,unitDefaultValue:"",device:e})},i["grid-template-columns"]=`repeat(${o["grid-template-columns"]}, 1fr)`),i},bq=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.bgColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}
5120 +},cq=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function dq(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(yR,{blockId:i,name:JF,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}dq.propTypes={},dq.defaultProps={};const uq=(0,I.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I.jsx)(zc.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});(0,o.registerBlockType)(JF,{attributes:ZF.Ay,icon:uq,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]),(0,a.useEffect)(()=>{if(""!==i.gridColumns&&2!==Number(i.gridColumns)){const t={value:"",valueTablet:2,valueMobile:1};t.value=Number(i.gridColumns),o({templateGridColumns:t
5121 +}),o({gridColumns:""})}},[]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .wp-block-ablocks-loop-template ",rq(i),rq(i,"Tablet"),rq(i,"Mobile"),t.customDeviceMap(t=>rq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-template-item",bq(i),bq(i,"Tablet"),bq(i,"Mobile"),t.customDeviceMap(t=>bq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-template-item:hover",cq(i),cq(i,"Tablet"),cq(i,"Mobile"),t.customDeviceMap(t=>cq(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(KF,{...t}),(0,I.jsx)(sq,{...t})]})},save:dq});var pq=i(5230);function mq(t){const{attributes:e,setAttributes:i,clientId:o}=t,{taxonomy:l,taxonomy_term_items:n,buttonAlignment:s,filterBtnAlignment:b,rowAlignBtn:c}=e,[d,u]=(0,a.useState)([]),[p,m]=(0,a.useState)(null),[h,g]=(0,a.useState)([]),[f,y]=(0,a.useState)([]),[T,H]=(0,a.useState)(!1),x=(0,r.useSelect)(t=>{
5110 5122 const{getBlock:e,getBlockParents:i}=t("core/block-editor"),a=i(o);if(!a.length)return null;for(const t of a){const i=e(t);if("ablocks/loop-builder"===i?.name)return i.attributes}return null},[o]);return(0,a.useEffect)(()=>{x?.query?.postType&&(0,M.In)({action:"ablocks/get_taxonomies_data",post_type:x.query.postType}).then(t=>{t.data?.success&&u(t.data.data)})},[x?.query?.postType]),(0,a.useEffect)(()=>{if(l&&d.length){const t=d.find(t=>t.value===l);m(t)}},[l,d]),(0,a.useEffect)(()=>{x?.query?.postType&&l&&(0,M.In)({action:"ablocks/get_taxonomy_term_data",taxonomy:l}).then(t=>{if(t?.data?.success){const e=t?.data?.data||[],i=[{label:(0,L.__)("All","ablocks"),value:"*"},...e];if(g(i),Array.isArray(n)&&n.length>0){const t=n.map(t=>i.find(e=>e.value===t.value)||t);y(t)}}})},[l,x?.query?.postType]),(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,
5111 5123 I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Access Loop Builder Settings","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("This is a child block. Click below to manage the full loop builder.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Taxonomies","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"components-base-control",children:[(0,I.jsx)("label",{className:"components-base-control__label",children:(0,L.__)("Select Taxonomy","ablocks")}),(0,I.jsx)(Rl,{...Sl(),className:"ablocks-taxonomy-select",classNamePrefix:"select",isLoading:T,isClearable:!0,options:d,value:p,onChange:t=>{const e=t?.value||"";m(t),y([]),i({taxonomy:e,taxonomy_term_items:[]})},placeholder:(0,L.__)("Select a taxonomy…","ablocks")})]}),p&&(0,I.jsxs)("div",{className:"components-base-control",
5112 5124 children:[(0,I.jsx)("label",{className:"components-base-control__label",children:(0,L.__)("Select Terms","ablocks")}),(0,I.jsx)(Rl,{...Sl(),className:"ablocks-terms-select",classNamePrefix:"select",isLoading:T,isClearable:!0,isMulti:!0,options:h,value:f,onChange:t=>{const e=t||[];y(e),i({taxonomy_term_items:e})},placeholder:(0,L.__)("Select terms…","ablocks"),closeMenuOnSelect:!1})]}),(0,I.jsx)(Wb,{allowDeselect:!0,isResponsive:!1,label:(0,L.__)("Button Alignment","ablocks"),options:[{value:"row",label:(0,L.__)("Row","ablocks")},{value:"column",label:(0,L.__)("Column","ablocks")},{value:"row-reverse",label:(0,L.__)("Reverse","ablocks")}],attributeName:"buttonAlignment",attributeValue:s,setAttributes:i}),"column"!=s&&(0,I.jsx)(Jt,{label:(0,L.__)("Row Alignment","ablocks"),options:[{label:(0,L.__)("Left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"flex-end",icon:"right"}],
5113 -attributeName:"rowAlignBtn",attributeValue:c,setAttributes:i,isInline:!1}),"column"===s&&(0,I.jsx)(Jt,{label:(0,L.__)("Button Alignment","ablocks"),options:[{label:(0,L.__)("Left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"flex-end",icon:"right"}],attributeName:"filterBtnAlignment",attributeValue:b,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Button Gap","ablocks"),attributeName:"FilterBtnGap",attributeObjectKey:"value",attributeValue:e?.FilterBtnGap,setAttributes:i,hasUnit:!0,step:1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:LF.f})]})}),(0,I.jsx)(V,{title:(0,L.__)("Filter","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,
5125 +attributeName:"rowAlignBtn",attributeValue:c,setAttributes:i,isInline:!1}),"column"===s&&(0,I.jsx)(Jt,{label:(0,L.__)("Button Alignment","ablocks"),options:[{label:(0,L.__)("Left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"flex-end",icon:"right"}],attributeName:"filterBtnAlignment",attributeValue:b,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Button Gap","ablocks"),attributeName:"FilterBtnGap",attributeObjectKey:"value",attributeValue:e?.FilterBtnGap,setAttributes:i,hasUnit:!0,step:1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:pq.f})]})}),(0,I.jsx)(V,{title:(0,L.__)("Filter","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,
5114 5126 I.jsx)(Us,{attributeName:"filterBtnBorder",attributeValue:e?.filterBtnBorder,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"filterButtonPadding",attributeValue:e?.filterButtonPadding,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"filterButtonMargin",attributeValue:e?.filterButtonMargin,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"filterBtnTextColor",attributeValue:e?.filterBtnTextColor,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"filterBtnBgColor",attributeValue:e?.filterBtnBgColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:e?.typography,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Active Style Filter","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{
5115 -content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activeBtnBorder",attributeValue:e?.activeBtnBorder||0,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"activeBtnTextColor",attributeValue:e?.activeBtnTextColor,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"activeBtnBgColor",attributeValue:e?.activeBtnBgColor,setAttributes:i})]})})})]})]})}DF.propTypes={},DF.defaultProps={};const NF="ablocks/loop-filter";function IF(t){const{attributes:e}=t,{block_id:i,taxonomy_term_items:o}=e,[n,s]=(0,a.useState)("*");return(0,a.useEffect)(()=>{if(o?.length){const t=o.find(t=>"*"===t.value);s(t?"*":o[0]?.value)}},[o]),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:i,name:NF,attributes:e,children:o.length>0?o.map((t,e)=>{const o=n===t.value;return(0,I.jsx)("span",{
5116 -className:"ablocks-loop-term-filter"+(o?" ablocks-loop-term-filter--active":""),"data-term":t.value,onClick:()=>(t=>{s(t.value)})(t),children:t.label},`${i}-term-${e}`)}):(0,I.jsx)("p",{children:(0,L.__)("No Filter Selected","ablocks")})})})}IF.propTypes={},IF.defaultProps={};const VF=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.FilterBtnGap,attributeObjectKey:"value",hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e})};return i.display="flex",i.width="100%",i["flex-wrap"]="wrap",t.buttonAlignment&&(i["flex-direction"]=t.buttonAlignment),t.filterBtnAlignment["value"+e]&&(i["align-items"]=t.filterBtnAlignment["value"+e]),t.rowAlignBtn["value"+e]&&(i["justify-content"]=t.rowAlignBtn["value"+e]),i},OF=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a=(0,M.Zy)(t.filterBtnBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t?.filterButtonMargin,{unit:"px"}),n=(0,M.Zy)(t?.filterButtonPadding,{unit:"px"})
5117 -;return{color:(0,Hs.qD)(t?.filterBtnTextColor),background:(0,Hs.qD)(t?.filterBtnBgColor),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"margin",e),...(0,c.qD)(n,"padding",e)}},YF=(t,e="")=>{const i=(0,M.Zy)(t.filterBtnBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},XF=(t,e="")=>{const i=(0,M.Zy)(t.activeBtnBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.activeBtnTextColor),background:(0,Hs.qD)(t?.activeBtnBgColor),...(0,y.qD)(i,e)}},BF=(t,e="")=>{const i=(0,M.Zy)(t.activeBtnBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};(0,o.registerBlockType)(NF,{attributes:LF.A,icon:AF,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",VF(i),VF(i,"Tablet"),VF(i,"Mobile"),t.customDeviceMap(t=>VF(i,t))),
5118 -t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter",OF(i),OF(i,"Tablet"),OF(i,"Mobile"),t.customDeviceMap(t=>OF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter:hover",YF(i),YF(i,"Tablet"),YF(i,"Mobile"),t.customDeviceMap(t=>YF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter--active",XF(i),XF(i,"Tablet"),XF(i,"Mobile"),t.customDeviceMap(t=>XF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter--active:hover",BF(i),BF(i,"Tablet"),BF(i,"Mobile"),t.customDeviceMap(t=>BF(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(DF,{...t}),(0,I.jsx)(IF,{...t})]})},save:()=>null});var EF=i(4788);function FF(t){const{attributes:e,setAttributes:i}=t,{loadMoreButton:o,loadMoreButtonText:a,loadMoreButtonBackground:n,loadMoreButtonTextColor:s,loadMoreButtonTextColorH:r,loadMoreButtonBackgroundH:b,moreButtonAlignment:c,noMoreItemsText:d,loadMoreButtonGap:u}=e;return(0,I.jsx)(l().Fragment,{
5127 +content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activeBtnBorder",attributeValue:e?.activeBtnBorder||0,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"activeBtnTextColor",attributeValue:e?.activeBtnTextColor,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"activeBtnBgColor",attributeValue:e?.activeBtnBgColor,setAttributes:i})]})})})]})]})}mq.propTypes={},mq.defaultProps={};const hq="ablocks/loop-filter";function gq(t){const{attributes:e}=t,{block_id:i,taxonomy_term_items:o}=e,[n,s]=(0,a.useState)("*");return(0,a.useEffect)(()=>{if(o?.length){const t=o.find(t=>"*"===t.value);s(t?"*":o[0]?.value)}},[o]),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(mR,{blockId:i,name:hq,attributes:e,children:o.length>0?o.map((t,e)=>{const o=n===t.value;return(0,I.jsx)("span",{
5128 +className:"ablocks-loop-term-filter"+(o?" ablocks-loop-term-filter--active":""),"data-term":t.value,onClick:()=>(t=>{s(t.value)})(t),children:t.label},`${i}-term-${e}`)}):(0,I.jsx)("p",{children:(0,L.__)("No Filter Selected","ablocks")})})})}gq.propTypes={},gq.defaultProps={};const fq=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.FilterBtnGap,attributeObjectKey:"value",hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e})};return i.display="flex",i.width="100%",i["flex-wrap"]="wrap",t.buttonAlignment&&(i["flex-direction"]=t.buttonAlignment),t.filterBtnAlignment["value"+e]&&(i["align-items"]=t.filterBtnAlignment["value"+e]),t.rowAlignBtn["value"+e]&&(i["justify-content"]=t.rowAlignBtn["value"+e]),i},yq=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a=(0,M.Zy)(t.filterBtnBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t?.filterButtonMargin,{unit:"px"}),n=(0,M.Zy)(t?.filterButtonPadding,{unit:"px"})
5129 +;return{color:(0,Hs.qD)(t?.filterBtnTextColor),background:(0,Hs.qD)(t?.filterBtnBgColor),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"margin",e),...(0,c.qD)(n,"padding",e)}},Tq=(t,e="")=>{const i=(0,M.Zy)(t.filterBtnBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},Hq=(t,e="")=>{const i=(0,M.Zy)(t.activeBtnBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.activeBtnTextColor),background:(0,Hs.qD)(t?.activeBtnBgColor),...(0,y.qD)(i,e)}},Mq=(t,e="")=>{const i=(0,M.Zy)(t.activeBtnBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};(0,o.registerBlockType)(hq,{attributes:pq.A,icon:uq,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",fq(i),fq(i,"Tablet"),fq(i,"Mobile"),t.customDeviceMap(t=>fq(i,t))),
5130 +t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter",yq(i),yq(i,"Tablet"),yq(i,"Mobile"),t.customDeviceMap(t=>yq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter:hover",Tq(i),Tq(i,"Tablet"),Tq(i,"Mobile"),t.customDeviceMap(t=>Tq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter--active",Hq(i),Hq(i,"Tablet"),Hq(i,"Mobile"),t.customDeviceMap(t=>Hq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter--active:hover",Mq(i),Mq(i,"Tablet"),Mq(i,"Mobile"),t.customDeviceMap(t=>Mq(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(mq,{...t}),(0,I.jsx)(gq,{...t})]})},save:()=>null});var xq=i(4788);function kq(t){const{attributes:e,setAttributes:i}=t,{loadMoreButton:o,loadMoreButtonText:a,loadMoreButtonBackground:n,loadMoreButtonTextColor:s,loadMoreButtonTextColorH:r,loadMoreButtonBackgroundH:b,moreButtonAlignment:c,noMoreItemsText:d,loadMoreButtonGap:u}=e;return(0,I.jsx)(l().Fragment,{
5119 5131 children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Access Loop Builder Settings","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("This is a child block. Click below to manage the full loop builder.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Load More Button","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"moreButtonAlignment",attributeValue:c,isResponsive:!1,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",
5120 -icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"loadMoreButtonText",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("No More Items Label","ablocks"),attributeName:"noMoreItemsText",attributeValue:d,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,max:200,unitValue:u,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"loadMoreButtonGap",attributeValue:u,attributeDefaultValue:EF.i,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"moreButtonTypography",attributeValue:e?.moreButtonTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
5132 +icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"loadMoreButtonText",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("No More Items Label","ablocks"),attributeName:"noMoreItemsText",attributeValue:d,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,max:200,unitValue:u,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"loadMoreButtonGap",attributeValue:u,attributeDefaultValue:xq.i,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"moreButtonTypography",attributeValue:e?.moreButtonTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
5121 5133 attributeName:"loadMoreButtonTextColor",attributeValue:s||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackground",attributeValue:n||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"loadMoreButtonTextColorH",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackgroundH",attributeValue:b,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.loadMoreButtonTransition||0,attributeName:"loadMoreButtonTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"moreButtonBorder",attributeValue:e?.moreButtonBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,
5122 -I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"moreButtonPadding",attributeValue:e?.moreButtonPadding,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"moreButtonboxShadow",attributeValue:e?.moreButtonboxShadow,setAttributes:i})]})})})})]})})}FF.propTypes={},FF.defaultProps={};const qF="ablocks/loop-load-more";function $F(t){const{attributes:e,setAttributes:i,context:o}=t,{block_id:a,loadMoreButtonText:n,noMoreItemsText:s}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:a,name:qF,attributes:e,blockProps:{"data-no-item-text":s,"data-more-button-text":n},children:(0,I.jsx)($c,{tagName:"span",identifier:"loadMoreButtonText",value:e.loadMoreButtonText,withoutInteractiveFormatting:!0,placeholder:e.loadMoreButtonText,className:"ablocks-loop-load-more__text",onChange:t=>i({loadMoreButtonText:t}),context:o})})})}
5123 -$F.propTypes={},$F.defaultProps={};const GF=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.loadMoreButtonGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:"",property:"margin-top",unitDefaultValue:"px",device:e})};return t?.moreButtonAlignment&&(i["justify-content"]=t?.moreButtonAlignment),i},ZF=(t,e="")=>{const i=(0,M.Zy)(t?.moreButtonPadding,{unit:"px"}),o=(0,M.Zy)(t.moreButtonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.moreButtonTypography,{weight:"400"}),l=t.moreButtonTypographyGlobal?t.moreButtonTypographyGlobal:"";return{color:(0,Hs.qD)(t?.loadMoreButtonTextColor),background:(0,Hs.qD)(t?.loadMoreButtonBackground),...(0,y.qD)(o,e),...(0,H.qD)(t?.moreButtonboxShadow,e),...(0,c.qD)(i,"padding",e),...(0,U.qD)(a,e,l)}},KF=(t,e="")=>{const i={};t.loadMoreButtonTransition&&(i["transition-duration"]=`${t.loadMoreButtonTransition}s`);const o=(0,M.Zy)(t.moreButtonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,
5124 -Hs.qD)(t?.loadMoreButtonTextColorH),background:(0,Hs.qD)(t?.loadMoreButtonBackgroundH),...i,...(0,y.a9)(o,e),...(0,H.a9)(t?.moreButtonboxShadow,e)}};(0,o.registerBlockType)(qF,{attributes:EF.A,icon:AF,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",GF(i),GF(i,"Tablet"),GF(i,"Mobile"),t.customDeviceMap(t=>GF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-load-more__text",ZF(i),ZF(i,"Tablet"),ZF(i,"Mobile"),t.customDeviceMap(t=>ZF(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-load-more__text:hover",KF(i),KF(i,"Tablet"),KF(i,"Mobile"),t.customDeviceMap(t=>KF(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(FF,{...t}),(0,I.jsx)($F,{...t})]})},save:()=>null});const JF=(0,Eb.D$)({attributeName:"barHeightSize",attributeObjectKey:"value",
5125 -isResponsive:!0,defaultValue:40,defaultValueTablet:30,defaultValueMobile:30,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),QF=((0,Zt.D$)("alignment",!0,{value:"center",valueTablet:"",valueMobile:""}),(0,wY.D$)("layout",!1,{value:"bar"}),(0,U.D$)("contentTypography",!0),(0,fc.D$)("contentTextShadow"),(0,Mc.D$)("contentTextStroke",!0),(0,y.D$)("barBorder",!0),_r.Ay,[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]),tq=[{value:"bar",label:(0,L.__)("Bar","ablocks")},{value:"circle",label:(0,L.__)("Circle","ablocks")}],eq=[{value:"left",label:(0,L.__)("Left","ablocks")},{value:"right",label:(0,L.__)("Right","ablocks")}],iq=[{value:"entire_page",label:(0,L.__)("Entire Page","ablocks")},{value:"selector",label:(0,L.__)("Selector","ablocks")}];function oq(t){
5126 -const{attributes:e,setAttributes:i}=t,{layout:o,isShowPercentage:a,direction:n,progressRelative:s,progressRelativeSelector:r,barProgressColor:b,barBackgroundColor:c,barHeightSize:d,circleProgressColor:u,circleBackgroundColor:p,circleSize:m,circleStrokeSize:h,alignment:g,contentTypography:f,contentColor:y,contentTextShadow:T,contentTextStroke:H}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-progress-tracker-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Progress Tracker","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["circle"===o&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:g,setAttributes:i,options:QF,isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(Wb,{label:(0,L.__)("Layout","ablocks"),setAttributes:i,attributeName:"layout",attributeValue:o,options:tq,onChangeHandler:t=>{
5127 -"circle"===t&&i({mediaPosition:"top"}),i({layout:t})},isResponsive:!1,allowDeselect:!1}),"circle"===o&&(0,I.jsx)("em",{children:"Note : Change content color to see the Circle percentage"}),(0,I.jsx)(Ut,{label:(0,L.__)("Direction","ablocks"),options:eq,isSearch:!0,attributeName:"direction",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Progress relative to","ablocks"),options:iq,isSearch:!1,attributeName:"progressRelative",attributeValue:s,setAttributes:i,isInline:!1}),"circle"===o&&"selector"===s&&(0,I.jsx)("em",{children:"Note : This setting only work in frontend"}),"selector"===s&&(0,I.jsx)(Kl,{label:(0,L.__)("Selector","ablocks"),isInline:!1,placeholder:(0,L.__)("#id","ablocks"),attributeName:"progressRelativeSelector",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Percentage","ablocks"),attributeName:"isShowPercentage",attributeValue:a,setAttributes:i,isResponsive:!1,allowDeselect:!1})]}),style:(0,I.jsxs)(l().Fragment,{
5128 -children:["bar"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Progress Color","ablocks"),attributeName:"barProgressColor",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"barBackgroundColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"barHeightSize",attributeValue:d,setAttributes:i,hasUnit:!0,min:10,max:100,step:1,isInline:!1,unitOptions:[{value:"px",label:"px"}],attributeDefaultValue:JF}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"barBorder",attributeValue:e?.barBorder,setAttributes:i})]}),"circle"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Progress Color","ablocks"),attributeName:"circleProgressColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"circleBackgroundColor",attributeValue:p,
5134 +I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"moreButtonPadding",attributeValue:e?.moreButtonPadding,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"moreButtonboxShadow",attributeValue:e?.moreButtonboxShadow,setAttributes:i})]})})})})]})})}kq.propTypes={},kq.defaultProps={};const vq="ablocks/loop-load-more";function _q(t){const{attributes:e,setAttributes:i,context:o}=t,{block_id:a,loadMoreButtonText:n,noMoreItemsText:s}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(mR,{blockId:a,name:vq,attributes:e,blockProps:{"data-no-item-text":s,"data-more-button-text":n},children:(0,I.jsx)($c,{tagName:"span",identifier:"loadMoreButtonText",value:e.loadMoreButtonText,withoutInteractiveFormatting:!0,placeholder:e.loadMoreButtonText,className:"ablocks-loop-load-more__text",onChange:t=>i({loadMoreButtonText:t}),context:o})})})}
5135 +_q.propTypes={},_q.defaultProps={};const Rq=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.loadMoreButtonGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:"",property:"margin-top",unitDefaultValue:"px",device:e})};return t?.moreButtonAlignment&&(i["justify-content"]=t?.moreButtonAlignment),i},Sq=(t,e="")=>{const i=(0,M.Zy)(t?.moreButtonPadding,{unit:"px"}),o=(0,M.Zy)(t.moreButtonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.moreButtonTypography,{weight:"400"}),l=t.moreButtonTypographyGlobal?t.moreButtonTypographyGlobal:"";return{color:(0,Hs.qD)(t?.loadMoreButtonTextColor),background:(0,Hs.qD)(t?.loadMoreButtonBackground),...(0,y.qD)(o,e),...(0,H.qD)(t?.moreButtonboxShadow,e),...(0,c.qD)(i,"padding",e),...(0,U.qD)(a,e,l)}},Wq=(t,e="")=>{const i={};t.loadMoreButtonTransition&&(i["transition-duration"]=`${t.loadMoreButtonTransition}s`);const o=(0,M.Zy)(t.moreButtonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,
5136 +Hs.qD)(t?.loadMoreButtonTextColorH),background:(0,Hs.qD)(t?.loadMoreButtonBackgroundH),...i,...(0,y.a9)(o,e),...(0,H.a9)(t?.moreButtonboxShadow,e)}};(0,o.registerBlockType)(vq,{attributes:xq.A,icon:uq,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",Rq(i),Rq(i,"Tablet"),Rq(i,"Mobile"),t.customDeviceMap(t=>Rq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-load-more__text",Sq(i),Sq(i,"Tablet"),Sq(i,"Mobile"),t.customDeviceMap(t=>Sq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-loop-load-more__text:hover",Wq(i),Wq(i,"Tablet"),Wq(i,"Mobile"),t.customDeviceMap(t=>Wq(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(kq,{...t}),(0,I.jsx)(_q,{...t})]})},save:()=>null});const Pq=(0,Eb.D$)({attributeName:"barHeightSize",attributeObjectKey:"value",
5137 +isResponsive:!0,defaultValue:40,defaultValueTablet:30,defaultValueMobile:30,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),Uq=((0,Zt.D$)("alignment",!0,{value:"center",valueTablet:"",valueMobile:""}),(0,bX.D$)("layout",!1,{value:"bar"}),(0,U.D$)("contentTypography",!0),(0,fc.D$)("contentTextShadow"),(0,Mc.D$)("contentTextStroke",!0),(0,y.D$)("barBorder",!0),_r.Ay,[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]),jq=[{value:"bar",label:(0,L.__)("Bar","ablocks")},{value:"circle",label:(0,L.__)("Circle","ablocks")}],wq=[{value:"left",label:(0,L.__)("Left","ablocks")},{value:"right",label:(0,L.__)("Right","ablocks")}],zq=[{value:"entire_page",label:(0,L.__)("Entire Page","ablocks")},{value:"selector",label:(0,L.__)("Selector","ablocks")}];function Cq(t){
5138 +const{attributes:e,setAttributes:i}=t,{layout:o,isShowPercentage:a,direction:n,progressRelative:s,progressRelativeSelector:r,barProgressColor:b,barBackgroundColor:c,barHeightSize:d,circleProgressColor:u,circleBackgroundColor:p,circleSize:m,circleStrokeSize:h,alignment:g,contentTypography:f,contentColor:y,contentTextShadow:T,contentTextStroke:H}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-progress-tracker-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Progress Tracker","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["circle"===o&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:g,setAttributes:i,options:Uq,isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(Wb,{label:(0,L.__)("Layout","ablocks"),setAttributes:i,attributeName:"layout",attributeValue:o,options:jq,onChangeHandler:t=>{
5139 +"circle"===t&&i({mediaPosition:"top"}),i({layout:t})},isResponsive:!1,allowDeselect:!1}),"circle"===o&&(0,I.jsx)("em",{children:"Note : Change content color to see the Circle percentage"}),(0,I.jsx)(Ut,{label:(0,L.__)("Direction","ablocks"),options:wq,isSearch:!0,attributeName:"direction",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Progress relative to","ablocks"),options:zq,isSearch:!1,attributeName:"progressRelative",attributeValue:s,setAttributes:i,isInline:!1}),"circle"===o&&"selector"===s&&(0,I.jsx)("em",{children:"Note : This setting only work in frontend"}),"selector"===s&&(0,I.jsx)(Kl,{label:(0,L.__)("Selector","ablocks"),isInline:!1,placeholder:(0,L.__)("#id","ablocks"),attributeName:"progressRelativeSelector",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Percentage","ablocks"),attributeName:"isShowPercentage",attributeValue:a,setAttributes:i,isResponsive:!1,allowDeselect:!1})]}),style:(0,I.jsxs)(l().Fragment,{
5140 +children:["bar"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Progress Color","ablocks"),attributeName:"barProgressColor",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"barBackgroundColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"barHeightSize",attributeValue:d,setAttributes:i,hasUnit:!0,min:10,max:100,step:1,isInline:!1,unitOptions:[{value:"px",label:"px"}],attributeDefaultValue:Pq}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"barBorder",attributeValue:e?.barBorder,setAttributes:i})]}),"circle"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Progress Color","ablocks"),attributeName:"circleProgressColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"circleBackgroundColor",attributeValue:p,
5129 5141 setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Circle size","ablocks"),attributeName:"circleSize",attributeValue:m,setAttributes:i,min:50,max:500,step:1,isInline:!1,isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Stroke size","ablocks"),attributeName:"circleStrokeSize",attributeValue:h,setAttributes:i,min:5,max:150,step:1,isInline:!1,isResponsive:!1})]})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Content","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"contentColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"contentTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"contentTextShadow",attributeValue:T,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"contentTextStroke",attributeValue:H,setAttributes:i,isResponsive:!0})]})]})})})}
5130 -oq.propTypes={},oq.defaultProps={};const aq={UU:"ablocks/progress-tracker",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:""},progressValue:{type:"number",default:100},maxValue:{type:"number",default:100},barColor:{type:"string",default:"black"},trackColor:{type:"string",default:"#e0e0e0"},mediaPosition:{type:"string",default:"top"},isShowPercentage:{type:"boolean",default:!0},direction:{type:"string",default:"left"},progressRelative:{type:"string",default:"entire_page"},progressRelativeSelector:{type:"string",default:""},barProgressColor:{type:"string",default:"#000000"},barBackgroundColor:{type:"string",default:"#DDDDDF"},circleProgressColor:{type:"string",default:"#000000"},circleBackgroundColor:{type:"string",default:"#dadada"},circleSize:{type:"number",default:110},circleStrokeSize:{type:"number",default:10},contentColor:{type:"string",default:"#ffffff"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},contentTypographyGlobal:{
5142 +Cq.propTypes={},Cq.defaultProps={};const Aq={UU:"ablocks/progress-tracker",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:""},progressValue:{type:"number",default:100},maxValue:{type:"number",default:100},barColor:{type:"string",default:"black"},trackColor:{type:"string",default:"#e0e0e0"},mediaPosition:{type:"string",default:"top"},isShowPercentage:{type:"boolean",default:!0},direction:{type:"string",default:"left"},progressRelative:{type:"string",default:"entire_page"},progressRelativeSelector:{type:"string",default:""},barProgressColor:{type:"string",default:"#000000"},barBackgroundColor:{type:"string",default:"#DDDDDF"},circleProgressColor:{type:"string",default:"#000000"},circleBackgroundColor:{type:"string",default:"#dadada"},circleSize:{type:"number",default:110},circleStrokeSize:{type:"number",default:10},contentColor:{type:"string",default:"#ffffff"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},contentTypographyGlobal:{
5131 5143 type:"string",default:""},contentTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},contentTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},barBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",
5132 5144 borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",
5133 5145 leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},layout:{type:"string",default:"bar"},barHeightSize:{type:"object",default:{value:40,valueTablet:30,valueMobile:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",
5134 5146 commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",
@@ -5138,13 +5150,13 @@
5138 5150 imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",
5139 5151 rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",
5140 5152 offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",
5141 5153 xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{
5142 -type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},lq=({barColor:t,trackColor:e,isShowPercentage:i,circleSize:o})=>{const a=o/2,l=2*Math.PI*a;return(0,I.jsx)("div",{className:"ablocks-block-progress-circle",children:(0,I.jsxs)("div",{className:"ablocks-block-progress-circle__wrapper",children:[(0,I.jsxs)("svg",{className:"ablocks-block-progress-circle__svg",width:o,height:o,style:{rotate:"-90deg"},children:[(0,I.jsx)("circle",{className:"ablocks-block-progress-circle__svg-track",cx:o/2,cy:o/2,r:a,stroke:e,strokeWidth:"10",fill:"none",strokeDasharray:l}),(0,I.jsx)("circle",{className:"ablocks-block-progress-circle__svg-bar",cx:o/2,cy:o/2,r:a,stroke:t,strokeWidth:"10",fill:"none",strokeDasharray:l,strokeDashoffset:l})]}),i&&(0,I.jsx)("div",{className:"ablocks-block-progress__text",children:"0%"})]})})},nq=({attributes:t})=>{
5143 -const{direction:e,isShowPercentage:i,layout:o,circleSize:a,circleBackgroundColor:l,circleProgressColor:n}=t,s="right"===e?"ablocks-block-progress-bar-right":"ablocks-block-progress-bar-left";return(0,I.jsxs)(I.Fragment,{children:["circle"===o&&(0,I.jsx)(lq,{barColor:n,trackColor:l,isShowPercentage:i,circleSize:a}),"bar"===o&&(0,I.jsx)("div",{className:`ablocks-block-progress-bar-track ${s}`,children:(0,I.jsx)("div",{className:"ablocks-block-progress-bar",style:{width:"20%"},children:i&&(0,I.jsx)("span",{className:"ablocks-block-progress__text",children:" "})})})]})};function sq(t){const{attributes:e}=t,{block_id:i,layout:o,progressRelative:n,progressRelativeSelector:s,_position:r,direction:b}=e,{positionType:c}=r;(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${i}`);t&&function(t,e=!1){
5154 +type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},Lq=({barColor:t,trackColor:e,isShowPercentage:i,circleSize:o})=>{const a=o/2,l=2*Math.PI*a;return(0,I.jsx)("div",{className:"ablocks-block-progress-circle",children:(0,I.jsxs)("div",{className:"ablocks-block-progress-circle__wrapper",children:[(0,I.jsxs)("svg",{className:"ablocks-block-progress-circle__svg",width:o,height:o,style:{rotate:"-90deg"},children:[(0,I.jsx)("circle",{className:"ablocks-block-progress-circle__svg-track",cx:o/2,cy:o/2,r:a,stroke:e,strokeWidth:"10",fill:"none",strokeDasharray:l}),(0,I.jsx)("circle",{className:"ablocks-block-progress-circle__svg-bar",cx:o/2,cy:o/2,r:a,stroke:t,strokeWidth:"10",fill:"none",strokeDasharray:l,strokeDashoffset:l})]}),i&&(0,I.jsx)("div",{className:"ablocks-block-progress__text",children:"0%"})]})})},Dq=({attributes:t})=>{
5155 +const{direction:e,isShowPercentage:i,layout:o,circleSize:a,circleBackgroundColor:l,circleProgressColor:n}=t,s="right"===e?"ablocks-block-progress-bar-right":"ablocks-block-progress-bar-left";return(0,I.jsxs)(I.Fragment,{children:["circle"===o&&(0,I.jsx)(Lq,{barColor:n,trackColor:l,isShowPercentage:i,circleSize:a}),"bar"===o&&(0,I.jsx)("div",{className:`ablocks-block-progress-bar-track ${s}`,children:(0,I.jsx)("div",{className:"ablocks-block-progress-bar",style:{width:"20%"},children:i&&(0,I.jsx)("span",{className:"ablocks-block-progress__text",children:" "})})})]})};function Nq(t){const{attributes:e}=t,{block_id:i,layout:o,progressRelative:n,progressRelativeSelector:s,_position:r,direction:b}=e,{positionType:c}=r;(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${i}`);t&&function(t,e=!1){
5144 5156 const i=t?.querySelector(".ablocks-block-progress-bar"),o=t?.querySelector(".ablocks-block-progress-circle"),a=t?.getAttribute("data-layout"),l=t?.getAttribute("data-direction"),n=t?.getAttribute("data-progress-relative"),s=t?.getAttribute("data-progress-relative-selector"),r=t?.querySelector(".ablocks-block-progress__text"),b=o?.querySelector(".ablocks-block-progress-circle__svg-bar"),c=e?window:document.querySelector('[name="editor-canvas"]')?.contentWindow;if(!c)return;const d=t=>{const e=Math.min(Math.max(Math.floor(t),0),100);"bar"===a?(t=>{i&&(i.style.width=`${t}%`),r&&(r.textContent=`${Math.round(t)}%`)})(e):"circle"===a&&(t=>{if(r&&(r.textContent=`${Math.round(t)}%`),b){const e=parseFloat(b.getAttribute("r")||0);if(!e)return;const i=2*Math.PI*e,o=i-t/100*i;b.style.strokeDashoffset="left"===l?`-${o}`:o}})(e)},u=()=>{const t=c.scrollY||0,e=c.innerHeight||0,i=(c.document.documentElement.scrollHeight||0)-e;d(i>0?t/i*100:20)},p=()=>{if(!s)return
5145 -;const e=t?.ownerDocument?.querySelector(s);if(!e)return;const i=e.getBoundingClientRect().top,o=e.offsetHeight,a=c.innerHeight;if(0!==o)if(i<a&&i+o>0){const t=Math.min(a-i,o),e=Math.max(0,Math.min(100,t/o*100));d(t>=o?100:e)}else d(0);else d(0)};"entire_page"===n?c.addEventListener("scroll",u):"selector"===n&&s&&c.addEventListener("scroll",p),u(),s&&p()}(t)},[i,o,b]);const d="bar"===o&&"fixed"===c?"ablocks-block-progress--fixed":"absolute"===c?"ablocks-block-progress--absolute":"";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:aq.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],blockProps:{"data-layout":o,"data-direction":e.direction,"data-progress-relative":n,"data-progress-relative-selector":s},className:d,children:(0,I.jsx)(nq,{attributes:e})})})}sq.propTypes={};const rq=(t,e="")=>{let i;switch(t?.alignment?.["value"+e]||"center"){case"left":default:i="flex-start";break;case"center":i="center";break;case"right":
5146 -i="flex-end"}return{display:"flex","justify-content":i}},bq=(t,e="")=>{const{barHeightSize:i}=t,o=(0,M.Zy)(t.barBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.barBackgroundColor),...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:40,unitDefaultValue:"px",property:"height",device:e}),...(0,y.qD)(o,e)}},cq=(t,e="")=>{const i=(0,M.Zy)(t?.barBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},dq=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o=t.contentTypographyGlobal?t.contentTypographyGlobal:"";return{color:(0,Hs.qD)(t?.contentColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.contentTextStroke,e),...(0,fc.qD)(t?.contentTextShadow)}},uq={UU:"ablocks/progress-tracker",uK:{block_id:{type:"string"},progressValue:{type:"number",default:100},maxValue:{type:"number",default:100},barColor:{type:"string",default:"black"},trackColor:{type:"string",default:"#e0e0e0"},mediaPosition:{type:"string",default:"top"},
5157 +;const e=t?.ownerDocument?.querySelector(s);if(!e)return;const i=e.getBoundingClientRect().top,o=e.offsetHeight,a=c.innerHeight;if(0!==o)if(i<a&&i+o>0){const t=Math.min(a-i,o),e=Math.max(0,Math.min(100,t/o*100));d(t>=o?100:e)}else d(0);else d(0)};"entire_page"===n?c.addEventListener("scroll",u):"selector"===n&&s&&c.addEventListener("scroll",p),u(),s&&p()}(t)},[i,o,b]);const d="bar"===o&&"fixed"===c?"ablocks-block-progress--fixed":"absolute"===c?"ablocks-block-progress--absolute":"";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:Aq.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],blockProps:{"data-layout":o,"data-direction":e.direction,"data-progress-relative":n,"data-progress-relative-selector":s},className:d,children:(0,I.jsx)(Dq,{attributes:e})})})}Nq.propTypes={};const Iq=(t,e="")=>{let i;switch(t?.alignment?.["value"+e]||"center"){case"left":default:i="flex-start";break;case"center":i="center";break;case"right":
5158 +i="flex-end"}return{display:"flex","justify-content":i}},Vq=(t,e="")=>{const{barHeightSize:i}=t,o=(0,M.Zy)(t.barBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.barBackgroundColor),...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:40,unitDefaultValue:"px",property:"height",device:e}),...(0,y.qD)(o,e)}},Oq=(t,e="")=>{const i=(0,M.Zy)(t?.barBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},Yq=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o=t.contentTypographyGlobal?t.contentTypographyGlobal:"";return{color:(0,Hs.qD)(t?.contentColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.contentTextStroke,e),...(0,fc.qD)(t?.contentTextShadow)}},Xq={UU:"ablocks/progress-tracker",uK:{block_id:{type:"string"},progressValue:{type:"number",default:100},maxValue:{type:"number",default:100},barColor:{type:"string",default:"black"},trackColor:{type:"string",default:"#e0e0e0"},mediaPosition:{type:"string",default:"top"},
5147 5159 isShowPercentage:{type:"boolean",default:!0},direction:{type:"string",default:"left"},progressRelative:{type:"string",default:"entire_page"},progressRelativeSelector:{type:"string",default:""},barProgressColor:{type:"string",default:"#000000"},barBackgroundColor:{type:"string",default:"#DDDDDF"},circleProgressColor:{type:"string",default:"#000000"},circleBackgroundColor:{type:"string",default:"#dadada"},circleSize:{type:"number",default:110},circleStrokeSize:{type:"number",default:10},contentColor:{type:"string",default:"white"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},contentTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",
5148 5160 lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},contentTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},barBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",
5149 5161 unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",
5150 5162 rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},layout:{type:"string",default:"bar"},barHeightSize:{type:"object",default:{value:40,valueTablet:30,valueMobile:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",
@@ -5154,15 +5166,15 @@
5154 5166 imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",
5155 5167 imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",
5156 5168 scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",
5157 5169 skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",
5158 -shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};(0,M.xV)(aq.UU)&&(0,o.registerBlockType)(aq.UU,{attributes:aq.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--progress-bar"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{}
5159 -;return t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle",rq(i),rq(i,"Tablet"),rq(i,"Mobile"),e(t=>rq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress__text",dq(i),dq(i,"Tablet"),dq(i,"Mobile"),e(t=>dq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar-track ",bq(i),bq(i,"Tablet"),bq(i,"Mobile"),e(t=>bq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar-track:hover",cq(i),cq(i,"Tablet"),cq(i,"Mobile"),e(t=>cq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar",(t=>{const{direction:e}=t,i={};return"left"===e?i["justify-content"]="right":"right"===e&&(i["justify-content"]="left"),{background:(0,Hs.qD)(t?.barProgressColor),...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle__svg-bar",(t=>({stroke:(0,Hs.qD)(t?.circleProgressColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle__svg-track",(t=>({stroke:(0,Hs.qD)(t?.circleBackgroundColor),...(0,Eb.qD)({
5160 -attributeValue:t?.circleStrokeSize,attributeObjectKey:"value",defaultValue:10,unitDefaultValue:"px",property:"stroke-width"})}))(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(oq,{...t}),(0,I.jsx)(sq,{...t})]})},save:t=>{const{attributes:e}=t,{block_id:i,direction:o,isShowPercentage:a,layout:n,_position:s,circleProgressColor:r,circleBackgroundColor:b,circleSize:c,progressRelative:d,progressRelativeSelector:u}=e,{positionType:p}=s,m="bar"===n&&"fixed"===p?"ablocks-block-progress--fixed":"absolute"===p?"ablocks-block-progress--absolute":"",h="right"===o?"ablocks-block-progress-bar-right":"ablocks-block-progress-bar-left";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:aq.UU,attributes:e,blockProps:{"data-layout":n,"data-progress-relative":d,"data-progress-relative-selector":u,"data-direction":o},className:m,children:"circle"===n?(0,I.jsx)(lq,{progress:0,barColor:r,trackColor:b,isShowPercentage:a,
5161 -direction:o,circleSize:c}):(0,I.jsx)("div",{className:`ablocks-block-progress-bar-track ${h}`,children:(0,I.jsx)("div",{className:"ablocks-block-progress-bar",children:a&&(0,I.jsx)("span",{className:"ablocks-block-progress__text",children:"0%"})})})})})},deprecated:[{attributes:uq.uK,save:t=>{const{attributes:e}=t,{block_id:i,direction:o,isShowPercentage:a,layout:n,_position:s,circleProgressColor:r,circleBackgroundColor:b,circleSize:c,progressRelative:d,progressRelativeSelector:u}=e,{positionType:p}=s,m="bar"===n&&"fixed"===p?"ablocks-block-progress--fixed":"absolute"===p?"ablocks-block-progress--absolute":"",h="right"===o?"ablocks-block-progress-bar-right":"ablocks-block-progress-bar-left";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:uq.UU,attributes:e,blockProps:{"data-layout":n,"data-progress-relative":d,"data-progress-relative-selector":u,"data-direction":o},className:m,children:"circle"===n?(0,I.jsx)(lq,{progress:0,barColor:r,trackColor:b,isShowPercentage:a,
5162 -direction:o,circleSize:c}):(0,I.jsx)("div",{className:`ablocks-block-progress-bar-track ${h}`,children:(0,I.jsx)("div",{className:"ablocks-block-progress-bar",children:a&&(0,I.jsx)("span",{className:"ablocks-block-progress__text",children:"0%"})})})})})}}]});const pq=({label:t,selectedImage:e,options:i,onChange:o})=>{const[a,l]=(0,Yt.useState)(e);(0,Yt.useEffect)(()=>{e&&l(e)},[e]);const n=`image-radio-control-${t.replace(/\s+/g,"-").toLowerCase()}`;return(0,I.jsx)(N.BaseControl,{label:t,id:n,children:(0,I.jsx)("div",{className:"ablocks-block--certificate__image-radio-control",children:i.map(t=>(0,I.jsx)("div",{role:"presentation",className:"ablocks-block--certificate__image-radio-control__image-option "+(a===t.value?"selected":""),onClick:()=>{return e=t.value,i=t.label,l(e),void o(i,e);var e,i},children:(0,I.jsx)("img",{src:t.value,alt:t.label})},t.value))})})},mq=(0,Eb.D$)({attributeName:"containerWidth",defaultValue:80,copyStyle:!0});function hq(t){
5163 -const{attributes:e,setAttributes:i}=t,{backgroundImage:o,pageSize:a,pageOrientation:n,certificate_padding:s,imageOptions:r}=e,b=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Certificate Background","ablocks"),initialOpen:!0,children:[(0,I.jsx)(pq,{label:(0,L.__)("Select a Certificate Image","ablocks"),selectedImage:o,options:r,attributes:e,onChange:(t,e)=>{i({backgroundImage:e})}}),(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,deviceType:b,attributeName:"backgroundImage",onSelectImageHandler:t=>{const e=t?.url||t?.source_url||t?.sizes?.full?.url||t?.sizes?.large?.url||"";e&&i({backgroundImage:e})},setAttributes:i,onRemoveImageHandler:()=>{i({backgroundImage:""})}})]}),(0,I.jsxs)(V,{title:(0,L.__)("Certificate Layout","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Page Size","ablocks"),isResponsive:!1,options:[{label:(0,
5164 -L.__)("A4","ablocks"),value:"A4"},{label:(0,L.__)("Letter","ablocks"),value:"Letter"}],attributeValue:a,attributeName:"pageSize",setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Page Orientation","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Portrait","ablocks"),value:"P"},{label:(0,L.__)("Landscape","ablocks"),value:"L"}],attributeValue:n,attributeName:"pageOrientation",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Container Width","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"containerWidth",attributeValue:e?.containerWidth,setAttributes:i,attributeDefaultValue:mq}),(0,I.jsx)(xt,{label:(0,L.__)("Certificate Padding","ablocks"),isResponsive:!1,attributeName:"certificate_padding",attributeValue:s,setAttributes:i})]})]})})})}(0,c.D$)("certificate_padding",!0),_r.Ay,hq.propTypes={};const gq={UU:"ablocks/academy-certificate",uK:{block_id:{type:"string",default:""},backgroundImage:{type:"string",default:""},pageSize:{type:"string",default:"A4"},
5170 +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};(0,M.xV)(Aq.UU)&&(0,o.registerBlockType)(Aq.UU,{attributes:Aq.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--progress-bar"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{}
5171 +;return t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle",Iq(i),Iq(i,"Tablet"),Iq(i,"Mobile"),e(t=>Iq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress__text",Yq(i),Yq(i,"Tablet"),Yq(i,"Mobile"),e(t=>Yq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar-track ",Vq(i),Vq(i,"Tablet"),Vq(i,"Mobile"),e(t=>Vq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar-track:hover",Oq(i),Oq(i,"Tablet"),Oq(i,"Mobile"),e(t=>Oq(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar",(t=>{const{direction:e}=t,i={};return"left"===e?i["justify-content"]="right":"right"===e&&(i["justify-content"]="left"),{background:(0,Hs.qD)(t?.barProgressColor),...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle__svg-bar",(t=>({stroke:(0,Hs.qD)(t?.circleProgressColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle__svg-track",(t=>({stroke:(0,Hs.qD)(t?.circleBackgroundColor),...(0,Eb.qD)({
5172 +attributeValue:t?.circleStrokeSize,attributeObjectKey:"value",defaultValue:10,unitDefaultValue:"px",property:"stroke-width"})}))(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Cq,{...t}),(0,I.jsx)(Nq,{...t})]})},save:t=>{const{attributes:e}=t,{block_id:i,direction:o,isShowPercentage:a,layout:n,_position:s,circleProgressColor:r,circleBackgroundColor:b,circleSize:c,progressRelative:d,progressRelativeSelector:u}=e,{positionType:p}=s,m="bar"===n&&"fixed"===p?"ablocks-block-progress--fixed":"absolute"===p?"ablocks-block-progress--absolute":"",h="right"===o?"ablocks-block-progress-bar-right":"ablocks-block-progress-bar-left";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:Aq.UU,attributes:e,blockProps:{"data-layout":n,"data-progress-relative":d,"data-progress-relative-selector":u,"data-direction":o},className:m,children:"circle"===n?(0,I.jsx)(Lq,{progress:0,barColor:r,trackColor:b,isShowPercentage:a,
5173 +direction:o,circleSize:c}):(0,I.jsx)("div",{className:`ablocks-block-progress-bar-track ${h}`,children:(0,I.jsx)("div",{className:"ablocks-block-progress-bar",children:a&&(0,I.jsx)("span",{className:"ablocks-block-progress__text",children:"0%"})})})})})},deprecated:[{attributes:Xq.uK,save:t=>{const{attributes:e}=t,{block_id:i,direction:o,isShowPercentage:a,layout:n,_position:s,circleProgressColor:r,circleBackgroundColor:b,circleSize:c,progressRelative:d,progressRelativeSelector:u}=e,{positionType:p}=s,m="bar"===n&&"fixed"===p?"ablocks-block-progress--fixed":"absolute"===p?"ablocks-block-progress--absolute":"",h="right"===o?"ablocks-block-progress-bar-right":"ablocks-block-progress-bar-left";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Xq.UU,attributes:e,blockProps:{"data-layout":n,"data-progress-relative":d,"data-progress-relative-selector":u,"data-direction":o},className:m,children:"circle"===n?(0,I.jsx)(Lq,{progress:0,barColor:r,trackColor:b,isShowPercentage:a,
5174 +direction:o,circleSize:c}):(0,I.jsx)("div",{className:`ablocks-block-progress-bar-track ${h}`,children:(0,I.jsx)("div",{className:"ablocks-block-progress-bar",children:a&&(0,I.jsx)("span",{className:"ablocks-block-progress__text",children:"0%"})})})})})}}]});const Bq=({label:t,selectedImage:e,options:i,onChange:o})=>{const[a,l]=(0,Yt.useState)(e);(0,Yt.useEffect)(()=>{e&&l(e)},[e]);const n=`image-radio-control-${t.replace(/\s+/g,"-").toLowerCase()}`;return(0,I.jsx)(N.BaseControl,{label:t,id:n,children:(0,I.jsx)("div",{className:"ablocks-block--certificate__image-radio-control",children:i.map(t=>(0,I.jsx)("div",{role:"presentation",className:"ablocks-block--certificate__image-radio-control__image-option "+(a===t.value?"selected":""),onClick:()=>{return e=t.value,i=t.label,l(e),void o(i,e);var e,i},children:(0,I.jsx)("img",{src:t.value,alt:t.label})},t.value))})})},Eq=(0,Eb.D$)({attributeName:"containerWidth",defaultValue:80,copyStyle:!0});function Fq(t){
5175 +const{attributes:e,setAttributes:i}=t,{backgroundImage:o,pageSize:a,pageOrientation:n,certificate_padding:s,imageOptions:r}=e,b=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Certificate Background","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Bq,{label:(0,L.__)("Select a Certificate Image","ablocks"),selectedImage:o,options:r,attributes:e,onChange:(t,e)=>{i({backgroundImage:e})}}),(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,deviceType:b,attributeName:"backgroundImage",onSelectImageHandler:t=>{const e=t?.url||t?.source_url||t?.sizes?.full?.url||t?.sizes?.large?.url||"";e&&i({backgroundImage:e})},setAttributes:i,onRemoveImageHandler:()=>{i({backgroundImage:""})}})]}),(0,I.jsxs)(V,{title:(0,L.__)("Certificate Layout","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Page Size","ablocks"),isResponsive:!1,options:[{label:(0,
5176 +L.__)("A4","ablocks"),value:"A4"},{label:(0,L.__)("Letter","ablocks"),value:"Letter"}],attributeValue:a,attributeName:"pageSize",setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Page Orientation","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Portrait","ablocks"),value:"P"},{label:(0,L.__)("Landscape","ablocks"),value:"L"}],attributeValue:n,attributeName:"pageOrientation",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Container Width","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"containerWidth",attributeValue:e?.containerWidth,setAttributes:i,attributeDefaultValue:Eq}),(0,I.jsx)(xt,{label:(0,L.__)("Certificate Padding","ablocks"),isResponsive:!1,attributeName:"certificate_padding",attributeValue:s,setAttributes:i})]})]})})})}(0,c.D$)("certificate_padding",!0),_r.Ay,Fq.propTypes={};const qq={UU:"ablocks/academy-certificate",uK:{block_id:{type:"string",default:""},backgroundImage:{type:"string",default:""},pageSize:{type:"string",default:"A4"},
5165 5177 pageOrientation:{type:"string",default:"L"},imageOptions:{type:"array",default:[]},isCustomImage:{type:"boolean",default:!1},certificate_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},containerWidth:{type:"number",default:80},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",
5166 5178 leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",
5167 5179 leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",
5168 5180 leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",
@@ -5169,15 +5181,15 @@
5169 5181 imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",
5170 5182 imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",
5171 5183 scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",
5172 5184 skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",
5173 -shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function fq(t){const{attributes:e,setAttributes:i}=t,{block_id:o,pageSize:n,pageOrientation:s}=e;return(0,a.useEffect)(()=>{n||i({pageSize:"A4"}),s||i({pageOrientation:"L"})},[]),(0,
5174 -I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:gq.UU,attributes:e,typography:[{fontFamily:e.search_typography?.fontFamily,weight:e.search_typography?.weight}],children:(0,I.jsx)("div",{className:"ablocks-block--certificate__background-image",children:(0,I.jsx)("div",{className:"ablocks-block--certificate__background-image-inner-block",children:(0,I.jsx)(D.InnerBlocks,{allowedBlocks:["ablocks/academy-certificate-text","core/image","ablocks/academy-certificate-id","core/spacer","ablocks/academy-container"],templateLock:!1})})})})})}fq.propTypes={};const yq=t=>{const e={};return t?.backgroundImage&&(e["background-image"]=`url(${t?.backgroundImage})`),"P"===t?.pageOrientation?(e["background-size"]="inherit !important",e["background-repeat"]="repeat !important",e["background-position"]="center !important","A4"===t?.pageSize?(e["max-width"]="794px !important",e.height="1123px !important"):(e["max-width"]="816px !important",
5175 -e.height="1056px !important")):"A4"===t?.pageSize?(e.height="794px !important",e["max-width"]="1123px !important"):(e.height="816px !important",e["max-width"]="1056px !important",e["background-repeat"]="round !important"),e},Tq=t=>{const e={};return"P"===t?.pageOrientation?"A4"===t?.pageSize?(e["max-width"]="794px !important",e.height="1123px !important"):(e["max-width"]="816px !important",e.height="1056px !important"):"A4"===t?.pageSize?(e.height="794px !important",e["max-width"]="1123px !important"):(e.height="816px !important",e["max-width"]="1056px !important"),e},Hq=(t,e="")=>{const i={...(0,c.qD)(t?.certificate_padding,"padding",e)};return t?.containerWidth&&(i.width=`${t?.containerWidth}%`),i};function Mq(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:gq.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block--certificate__background-image",children:(0,I.jsx)("div",{className:"ablocks-block--certificate__background-image-inner-block",
5176 -children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})}Mq.propTypes={},((0,M.xV)(gq.UU,"","academy_lms")||(0,M.xV)(gq.UU,"","quizpress"))&&(0,o.registerBlockType)(gq.UU,{title:(0,L.__)("Certificate","ablocks"),attributes:gq.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/logo-shape.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{pageOrientation:n,imageOptions:s,backgroundImage:r,block_id:b}=i;(0,a.useEffect)(()=>{b&&b===l||o({block_id:l})},[b,l]),(0,a.useEffect)(()=>{if(window.ABlocksGlobal&&window.ABlocksGlobal.certificate_image){const t=window.ABlocksGlobal.certificate_image;let e=[];e="L"===n?Object.keys(t.landscape).filter(t=>"custom_image"!==t).map(e=>({label:e,value:t.landscape[e]})):Object.keys(t.protrait).filter(t=>"custom_image"!==t).map(e=>({label:e,value:t.protrait[e]})),o({imageOptions:e})}},[n]),(0,a.useEffect)(()=>{!r&&s.length>0&&o({backgroundImage:s[0].value})},[s,r]);const c=new C(i,l)
5177 -;c.addClassStyles("{{WRAPPER}}",Tq(i),Tq(i),Tq(i),c.customDeviceMap(t=>Tq(i))),c.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__background-image",yq(i),yq(i),yq(i),c.customDeviceMap(t=>yq(i))),c.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__background-image-inner-block",Hq(i),Hq(i,"Tablet"),Hq(i,"Mobile"),c.customDeviceMap(t=>Hq(i,t)));const d=c.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)(hq,{...t}),(0,I.jsx)(fq,{...t})]})},save:Mq}),(0,L.__)("Align text left","ablocks"),(0,L.__)("Align text center","ablocks"),(0,L.__)("Align text right","ablocks"),(0,L.__)("Align text justify","ablocks");const xq={certificateFontVariants:{"Abhaya Libre":{variants:["400","500","600","700","800"]},"Alex Brush":{variants:["400"]},Allura:{variants:["400"]},Cinzel:{variants:["400","500","600","700"]},"DM Sans":{variants:["400","500","600","700","900"]},"Great Vibes":{variants:["400"]},"Grenze Gotisch":{
5178 -variants:["400","500","600","700"]},"Libre Baskerville":{variants:["400","700"]},Lora:{variants:["400","500","600","700"]},Poppins:{variants:["400","700"]},Roboto:{variants:["100","300","400","500","700","900"]}},families:[{label:"Abhaya Libre",value:"Abhaya Libre"},{label:"Alex Brush",value:"Alex Brush"},{label:"Allura",value:"Allura"},{label:"Cinzel",value:"Cinzel"},{label:"DM Sans",value:"DM Sans"},{label:"Great Vibes",value:"Great Vibes"},{label:"Grenze Gotisch",value:"Grenze Gotisch"},{label:"Libre Baskerville",value:"Libre Baskerville"},{label:"Lora",value:"Lora"},{label:"Poppins",value:"Poppins"},{label:"Roboto",value:"Roboto"}]};function kq(t){const{attributes:e,setAttributes:i}=t,{alignment:o,typography:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{title:(0,L.__)("Verification ID Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),
5179 -attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:a,setAttributes:i,isResponsive:!0,showOnlyCustomFonts:!0,customFontsOption:xq,attributes:e})]})})})})}kq.propTypes={};const vq={UU:"ablocks/academy-certificate-id",$t:["ablocks/academy-certificate"],uK:{block_id:{type:"string",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},typographyGlobal:{type:"string",default:""},typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",
5185 +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function $q(t){const{attributes:e,setAttributes:i}=t,{block_id:o,pageSize:n,pageOrientation:s}=e;return(0,a.useEffect)(()=>{n||i({pageSize:"A4"}),s||i({pageOrientation:"L"})},[]),(0,
5186 +I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:qq.UU,attributes:e,typography:[{fontFamily:e.search_typography?.fontFamily,weight:e.search_typography?.weight}],children:(0,I.jsx)("div",{className:"ablocks-block--certificate__background-image",children:(0,I.jsx)("div",{className:"ablocks-block--certificate__background-image-inner-block",children:(0,I.jsx)(D.InnerBlocks,{allowedBlocks:["ablocks/academy-certificate-text","core/image","ablocks/academy-certificate-id","core/spacer","ablocks/academy-container"],templateLock:!1})})})})})}$q.propTypes={};const Gq=t=>{const e={};return t?.backgroundImage&&(e["background-image"]=`url(${t?.backgroundImage})`),"P"===t?.pageOrientation?(e["background-size"]="inherit !important",e["background-repeat"]="repeat !important",e["background-position"]="center !important","A4"===t?.pageSize?(e["max-width"]="794px !important",e.height="1123px !important"):(e["max-width"]="816px !important",
5187 +e.height="1056px !important")):"A4"===t?.pageSize?(e.height="794px !important",e["max-width"]="1123px !important"):(e.height="816px !important",e["max-width"]="1056px !important",e["background-repeat"]="round !important"),e},Zq=t=>{const e={};return"P"===t?.pageOrientation?"A4"===t?.pageSize?(e["max-width"]="794px !important",e.height="1123px !important"):(e["max-width"]="816px !important",e.height="1056px !important"):"A4"===t?.pageSize?(e.height="794px !important",e["max-width"]="1123px !important"):(e.height="816px !important",e["max-width"]="1056px !important"),e},Kq=(t,e="")=>{const i={...(0,c.qD)(t?.certificate_padding,"padding",e)};return t?.containerWidth&&(i.width=`${t?.containerWidth}%`),i};function Jq(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:qq.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-block--certificate__background-image",children:(0,I.jsx)("div",{className:"ablocks-block--certificate__background-image-inner-block",
5188 +children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})}Jq.propTypes={},((0,M.xV)(qq.UU,"","academy_lms")||(0,M.xV)(qq.UU,"","quizpress"))&&(0,o.registerBlockType)(qq.UU,{title:(0,L.__)("Certificate","ablocks"),attributes:qq.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/logo-shape.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{pageOrientation:n,imageOptions:s,backgroundImage:r,block_id:b}=i;(0,a.useEffect)(()=>{b&&b===l||o({block_id:l})},[b,l]),(0,a.useEffect)(()=>{if(window.ABlocksGlobal&&window.ABlocksGlobal.certificate_image){const t=window.ABlocksGlobal.certificate_image;let e=[];e="L"===n?Object.keys(t.landscape).filter(t=>"custom_image"!==t).map(e=>({label:e,value:t.landscape[e]})):Object.keys(t.protrait).filter(t=>"custom_image"!==t).map(e=>({label:e,value:t.protrait[e]})),o({imageOptions:e})}},[n]),(0,a.useEffect)(()=>{!r&&s.length>0&&o({backgroundImage:s[0].value})},[s,r]);const c=new C(i,l)
5189 +;c.addClassStyles("{{WRAPPER}}",Zq(i),Zq(i),Zq(i),c.customDeviceMap(t=>Zq(i))),c.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__background-image",Gq(i),Gq(i),Gq(i),c.customDeviceMap(t=>Gq(i))),c.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__background-image-inner-block",Kq(i),Kq(i,"Tablet"),Kq(i,"Mobile"),c.customDeviceMap(t=>Kq(i,t)));const d=c.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)(Fq,{...t}),(0,I.jsx)($q,{...t})]})},save:Jq}),(0,L.__)("Align text left","ablocks"),(0,L.__)("Align text center","ablocks"),(0,L.__)("Align text right","ablocks"),(0,L.__)("Align text justify","ablocks");const Qq={certificateFontVariants:{"Abhaya Libre":{variants:["400","500","600","700","800"]},"Alex Brush":{variants:["400"]},Allura:{variants:["400"]},Cinzel:{variants:["400","500","600","700"]},"DM Sans":{variants:["400","500","600","700","900"]},"Great Vibes":{variants:["400"]},"Grenze Gotisch":{
5190 +variants:["400","500","600","700"]},"Libre Baskerville":{variants:["400","700"]},Lora:{variants:["400","500","600","700"]},Poppins:{variants:["400","700"]},Roboto:{variants:["100","300","400","500","700","900"]}},families:[{label:"Abhaya Libre",value:"Abhaya Libre"},{label:"Alex Brush",value:"Alex Brush"},{label:"Allura",value:"Allura"},{label:"Cinzel",value:"Cinzel"},{label:"DM Sans",value:"DM Sans"},{label:"Great Vibes",value:"Great Vibes"},{label:"Grenze Gotisch",value:"Grenze Gotisch"},{label:"Libre Baskerville",value:"Libre Baskerville"},{label:"Lora",value:"Lora"},{label:"Poppins",value:"Poppins"},{label:"Roboto",value:"Roboto"}]};function t$(t){const{attributes:e,setAttributes:i}=t,{alignment:o,typography:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{title:(0,L.__)("Verification ID Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),
5191 +attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:a,setAttributes:i,isResponsive:!0,showOnlyCustomFonts:!0,customFontsOption:Qq,attributes:e})]})})})})}t$.propTypes={};const e$={UU:"ablocks/academy-certificate-id",$t:["ablocks/academy-certificate"],uK:{block_id:{type:"string",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},typographyGlobal:{type:"string",default:""},typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",
5180 5192 letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},
5181 5193 _border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",
5182 5194 commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",
5183 5195 vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",
@@ -5184,12 +5196,12 @@
5184 5196 imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",
5185 5197 fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",
5186 5198 rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",
5187 5199 maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,
5188 -opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function _q(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:vq.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)("span",{className:"ablocks-block--certificate__verification-id",children:"[verification_id]"})})})}_q.propTypes={};const Rq=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a={...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,U.qD)(i,e,o)}
5189 -;return a.width="100%",a.display="block",a};function Sq(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:vq.UU,attributes:e,children:(0,I.jsx)("span",{className:"ablocks-block--certificate__verification-id",children:"#{{verification_id}}"})})}Sq.propTypes={},(0,M.xV)(vq.UU,vq.$t[0],"academy_lms")&&(0,o.registerBlockType)(vq.UU,{title:(0,L.__)("Certificate ID","ablocks"),attributes:vq.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/logo-shape.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__verification-id",Rq(i),Rq(i,"Tablet"),Rq(i,"Mobile"),s.customDeviceMap(t=>Rq(i,t)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(kq,{...t}),(0,I.jsx)(_q,{...t})]})},save:Sq});const Wq=[{
5190 -icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],Pq={certificateFontVariants:{"Abhaya Libre":{variants:["400","500","600","700","800"]},"Alex Brush":{variants:["400"]},Allura:{variants:["400"]},Cinzel:{variants:["400","500","600","700"]},"DM Sans":{variants:["400","500","600","700","900"]},"Great Vibes":{variants:["400"]},"Grenze Gotisch":{variants:["400","500","600","700"]},"Libre Baskerville":{variants:["400","700"]},Lora:{variants:["400","500","600","700"]},Poppins:{variants:["400","700"]},Roboto:{variants:["100","300","400","500","700","900"]}},families:[{label:"Abhaya Libre",value:"Abhaya Libre"},{label:"Alex Brush",value:"Alex Brush"},{label:"Allura",value:"Allura"},{label:"Cinzel",value:"Cinzel"},{label:"DM Sans",value:"DM Sans"},{label:"Great Vibes",
5191 -value:"Great Vibes"},{label:"Grenze Gotisch",value:"Grenze Gotisch"},{label:"Libre Baskerville",value:"Libre Baskerville"},{label:"Lora",value:"Lora"},{label:"Poppins",value:"Poppins"},{label:"Roboto",value:"Roboto"}]};function Uq(t){const{attributes:e,setAttributes:i}=t,{heading:o,headingTag:a,alignment:n,typography:s,textShadow:b,textStroke:c,textColor:d}=e,u=(0,r.select)("core/editor").getCurrentPostType(),p=(0,I.jsx)(I.Fragment,{children:"qp_certificate"===u?(0,I.jsx)(I.Fragment,{children:(0,L.sprintf)(
5200 +opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function i$(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:e$.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)("span",{className:"ablocks-block--certificate__verification-id",children:"[verification_id]"})})})}i$.propTypes={};const o$=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a={...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,U.qD)(i,e,o)}
5201 +;return a.width="100%",a.display="block",a};function a$(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:e$.UU,attributes:e,children:(0,I.jsx)("span",{className:"ablocks-block--certificate__verification-id",children:"#{{verification_id}}"})})}a$.propTypes={},(0,M.xV)(e$.UU,e$.$t[0],"academy_lms")&&(0,o.registerBlockType)(e$.UU,{title:(0,L.__)("Certificate ID","ablocks"),attributes:e$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/logo-shape.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__verification-id",o$(i),o$(i,"Tablet"),o$(i,"Mobile"),s.customDeviceMap(t=>o$(i,t)));const r=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(t$,{...t}),(0,I.jsx)(i$,{...t})]})},save:a$});const l$=[{
5202 +icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],n$={certificateFontVariants:{"Abhaya Libre":{variants:["400","500","600","700","800"]},"Alex Brush":{variants:["400"]},Allura:{variants:["400"]},Cinzel:{variants:["400","500","600","700"]},"DM Sans":{variants:["400","500","600","700","900"]},"Great Vibes":{variants:["400"]},"Grenze Gotisch":{variants:["400","500","600","700"]},"Libre Baskerville":{variants:["400","700"]},Lora:{variants:["400","500","600","700"]},Poppins:{variants:["400","700"]},Roboto:{variants:["100","300","400","500","700","900"]}},families:[{label:"Abhaya Libre",value:"Abhaya Libre"},{label:"Alex Brush",value:"Alex Brush"},{label:"Allura",value:"Allura"},{label:"Cinzel",value:"Cinzel"},{label:"DM Sans",value:"DM Sans"},{label:"Great Vibes",
5203 +value:"Great Vibes"},{label:"Grenze Gotisch",value:"Grenze Gotisch"},{label:"Libre Baskerville",value:"Libre Baskerville"},{label:"Lora",value:"Lora"},{label:"Poppins",value:"Poppins"},{label:"Roboto",value:"Roboto"}]};function s$(t){const{attributes:e,setAttributes:i}=t,{heading:o,headingTag:a,alignment:n,typography:s,textShadow:b,textStroke:c,textColor:d}=e,u=(0,r.select)("core/editor").getCurrentPostType(),p=(0,I.jsx)(I.Fragment,{children:"qp_certificate"===u?(0,I.jsx)(I.Fragment,{children:(0,L.sprintf)(
5192 5204 // translators: %1$s learner, %2$s: quiz title, %3$s completion date, %4$s total questions,
5193 5205 // translators: %1$s learner, %2$s: quiz title, %3$s completion date, %4$s total questions,
5194 5206 (0,L.__)("Customize certificate with these values: %1$s, %2$s, %3$s, %4$s","ablocks"),"{{learner}}","{{quiz_title}}","{{completion_date}}","{{total_questions}}")}):(0,I.jsxs)(I.Fragment,{children:[(0,L.sprintf)(
5195 5207 // translators: %1$s learner, %2$s: course title, %3$s instructor, %4$s course place, %5$s completion date, %6$s verification ID
@@ -5197,9 +5209,9 @@
5197 5209 (0,L.__)("Customize certificate with these values: %1$s, %2$s, %3$s, %4$s, %5$s, %6$s, %7$s, %8$s, %9$s, %10$s","ablocks"),"{{learner}}","{{course_title}}","{{instructor}}","{{course_place}}","{{completion_date}}","{{verification_id}}","{{total_topics}}","{{course_requirements}}","{{course_materials}}","{{what_you_will_learn}}"),(0,I.jsx)("br",{}),(0,L.sprintf)(
5198 5210 // translators: %s verification ID
5199 5211 // translators: %s verification ID
5200 5212 (0,L.__)("Academy LMS Pro Codes: %s","ablocks"),"{{verification_id}}")]})});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),description:p,attributeName:"heading",attributeValue:o,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"headingTag",attributeValue:a,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:n,setAttributes:i,isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),
5201 -attributeName:"typography",attributeValue:s,setAttributes:i,isResponsive:!0,showOnlyCustomFonts:!0,customFontsOption:Pq,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:b,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:c,setAttributes:i,isResponsive:!0})]})})})})})})}Uq.propTypes={};const jq={UU:"ablocks/academy-certificate-text",$t:["ablocks/academy-certificate"],uK:{block_id:{type:"string",default:""},heading:{type:"string",source:"html",selector:".ablocks-block--certificate__heading-text",default:"Add Your Heading Text Here"},headingTag:{type:"string",default:"h2"},textColor:{type:"string",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},typographyGlobal:{type:"string",default:""},typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",
5213 +attributeName:"typography",attributeValue:s,setAttributes:i,isResponsive:!0,showOnlyCustomFonts:!0,customFontsOption:n$,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:b,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:c,setAttributes:i,isResponsive:!0})]})})})})})})}s$.propTypes={};const r$={UU:"ablocks/academy-certificate-text",$t:["ablocks/academy-certificate"],uK:{block_id:{type:"string",default:""},heading:{type:"string",source:"html",selector:".ablocks-block--certificate__heading-text",default:"Add Your Heading Text Here"},headingTag:{type:"string",default:"h2"},textColor:{type:"string",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},typographyGlobal:{type:"string",default:""},typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",
5202 5214 fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",
5203 5215 bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",
5204 5216 bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",
5205 5217 unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",
@@ -5207,16 +5219,16 @@
5207 5219 imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",
5208 5220 rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",
5209 5221 offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",
5210 5222 xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},
5211 -_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function wq(t){const{attributes:e,setAttributes:i}=t,{block_id:o,headingTag:a,alignment:n}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:n,setAttributes:i,options:Wq})}),(0,I.jsx)(tP,{blockId:o,name:jq.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)(D.RichText,{tagName:a,value:e.heading,className:"ablocks-block--certificate__heading-text",onChange:t=>i({heading:t}),placeholder:(0,L.__)("Enter your title…","ablocks")})})]})}wq.propTypes={};const zq=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),Cq=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a={...(0,U.qD)(i,e,o),...(0,
5212 -Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow)};return a.margin="0px",a.padding="0px",a};function Aq(t){const{attributes:e}=t,{block_id:i,headingTag:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:jq.UU,attributes:e,children:(0,I.jsx)(D.RichText.Content,{tagName:o,className:"ablocks-block--certificate__heading-text",value:e.heading})})})}Aq.propTypes={},((0,M.xV)(jq.UU,jq.$t[0],"academy_lms")||(0,M.xV)(jq.UU,jq.$t[0],"quizpress"))&&(0,o.registerBlockType)(jq.UU,{title:(0,L.__)("Certificate Text","ablocks"),attributes:jq.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/logo-shape.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles("{{WRAPPER}}",zq(i),zq(i,"Tablet"),zq(i,"Mobile"),s.customDeviceMap(t=>zq(i,t)));const r=Cq(i);i?.textColor&&(r.color=i.textColor),
5213 -s.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__heading-text",r,Cq(i,"Tablet"),Cq(i,"Mobile"),s.customDeviceMap(t=>Cq(i,t)));const b=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:b}),e&&(0,I.jsx)(Uq,{...t}),(0,I.jsx)(wq,{...t})]})},save:Aq});var Lq=i(81568);function Dq(t){const{attributes:e,setAttributes:i}=t,{contentColor:o,contentColorH:a,contentTypography:n,course_id:s,heading_color:b,heading_color_hover:c,heading_typography:d,title_color:u,title_color_hover:p,title_typography:m,lesson_list_bg:h,lesson_list_hover:g,lock_icon_hover:f,lock_icon_color:y,lock_icon_size:T,readIconSize:H,read_icon_color:M,read_icon_hover:x,title_bg:k,title_bg_hover:v}=e,_=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),R=_?_.filter(t=>t):[],S=R?R.map(t=>({label:t.title?.rendered,value:t.id})):[];return S.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,
5223 +_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function b$(t){const{attributes:e,setAttributes:i}=t,{block_id:o,headingTag:a,alignment:n}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:n,setAttributes:i,options:l$})}),(0,I.jsx)(sP,{blockId:o,name:r$.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)(D.RichText,{tagName:a,value:e.heading,className:"ablocks-block--certificate__heading-text",onChange:t=>i({heading:t}),placeholder:(0,L.__)("Enter your title…","ablocks")})})]})}b$.propTypes={};const c$=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),d$=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a={...(0,U.qD)(i,e,o),...(0,
5224 +Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow)};return a.margin="0px",a.padding="0px",a};function u$(t){const{attributes:e}=t,{block_id:i,headingTag:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:r$.UU,attributes:e,children:(0,I.jsx)(D.RichText.Content,{tagName:o,className:"ablocks-block--certificate__heading-text",value:e.heading})})})}u$.propTypes={},((0,M.xV)(r$.UU,r$.$t[0],"academy_lms")||(0,M.xV)(r$.UU,r$.$t[0],"quizpress"))&&(0,o.registerBlockType)(r$.UU,{title:(0,L.__)("Certificate Text","ablocks"),attributes:r$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/logo-shape.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=new C(i,l);s.addClassStyles("{{WRAPPER}}",c$(i),c$(i,"Tablet"),c$(i,"Mobile"),s.customDeviceMap(t=>c$(i,t)));const r=d$(i);i?.textColor&&(r.color=i.textColor),
5225 +s.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__heading-text",r,d$(i,"Tablet"),d$(i,"Mobile"),s.customDeviceMap(t=>d$(i,t)));const b=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:b}),e&&(0,I.jsx)(s$,{...t}),(0,I.jsx)(b$,{...t})]})},save:u$});var p$=i(81568);function m$(t){const{attributes:e,setAttributes:i}=t,{contentColor:o,contentColorH:a,contentTypography:n,course_id:s,heading_color:b,heading_color_hover:c,heading_typography:d,title_color:u,title_color_hover:p,title_typography:m,lesson_list_bg:h,lesson_list_hover:g,lock_icon_hover:f,lock_icon_color:y,lock_icon_size:T,readIconSize:H,read_icon_color:M,read_icon_hover:x,title_bg:k,title_bg_hover:v}=e,_=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),R=_?_.filter(t=>t):[],S=R?R.map(t=>({label:t.title?.rendered,value:t.id})):[];return S.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,
5214 5226 I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Course Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(Ut,{options:S,label:(0,L.__)("Select Course","ablocks"),attributeValue:s,attributeName:"course_id",setAttributes:i}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"heading_typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"heading_color",attributeValue:b,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"heading_color_hover",attributeValue:c,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,
5215 5227 I.jsx)(at,{label:(0,L.__)("Curriculum Header","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"title_color",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"title_bg",attributeValue:k,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"title_color_hover",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"title_bg_hover",attributeValue:v,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{
5216 5228 label:(0,L.__)("Course Content Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"contentTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"contentColor",attributeValue:o,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"lesson_list_bg",attributeValue:h,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"contentColorH",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"lesson_list_hover",attributeValue:g,setAttributes:i})]})})]})})}),(0,I.jsxs)(V,{title:(0,
5217 -L.__)("Icon Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,L.__)("Lock Icon Style","ablocks")}),(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Lock Icon","ablocks"),attributeValue:T,setAttributes:i,attributeName:"lock_icon_size",min:0,step:1,max:200,isInline:!1,hasUnit:!0,isResponsive:!0,attributeObjectKey:"value",attributeDefaultValue:Lq.Yi}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"lock_icon_color",attributeValue:y,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"lock_icon_hover",attributeValue:f,setAttributes:i})})})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Read Icon Style","ablocks"),isResponsive:!1,
5218 -isHeader:!0}),(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:200,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"readIconSize",attributeValue:H,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Lq.xY}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"read_icon_color",attributeValue:M,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"read_icon_hover",attributeValue:x,setAttributes:i})})})]})})]})]})})})}Dq.propTypes={};const Nq={UU:"ablocks/academy-course-curriculums",uK:{block_id:{type:"string",default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},heading_color_hover:{type:"string",default:"#000"},
5229 +L.__)("Icon Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,L.__)("Lock Icon Style","ablocks")}),(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Lock Icon","ablocks"),attributeValue:T,setAttributes:i,attributeName:"lock_icon_size",min:0,step:1,max:200,isInline:!1,hasUnit:!0,isResponsive:!0,attributeObjectKey:"value",attributeDefaultValue:p$.Yi}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"lock_icon_color",attributeValue:y,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"lock_icon_hover",attributeValue:f,setAttributes:i})})})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Read Icon Style","ablocks"),isResponsive:!1,
5230 +isHeader:!0}),(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:200,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"readIconSize",attributeValue:H,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:p$.xY}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"read_icon_color",attributeValue:M,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"read_icon_hover",attributeValue:x,setAttributes:i})})})]})})]})]})})})}m$.propTypes={};const h$={UU:"ablocks/academy-course-curriculums",uK:{block_id:{type:"string",default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},heading_color_hover:{type:"string",default:"#000"},
5219 5231 heading_color:{type:"string",default:"#000"},buttonBackgroundH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonColor:{type:"string",default:"#000"},contentColorH:{type:"string",default:"#000"},contentColor:{type:"string",default:""},title_color:{type:"string",default:"#000"},title_color_hover:{type:"string",default:"#000"},lesson_list_hover:{type:"string",default:"#fff"},lesson_list_bg:{type:"string",default:"#fff"},read_icon_hover:{type:"string",default:"#e12a2a"},read_icon_color:{type:"string",default:"#e12a2a"},lock_icon_color:{type:"string",default:"#000"},lock_icon_hover:{type:"string",default:"#000"},title_bg:{type:"string",default:"#fff"},title_bg_hover:{type:"string",default:"#fff"},buttonTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",
5220 5232 wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},title_typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",
5221 5233 wordSpacingUnitMobile:"px"}},contentTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},heading_typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",
5222 5234 lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},heading_typographyGlobal:{type:"string",default:""},contentTypographyGlobal:{type:"string",default:""},title_typographyGlobal:{type:"string",default:""},buttonTypographyGlobal:{type:"string",default:""},lock_icon_size:{type:"object",default:{value:16,valueTablet:16,valueMobile:12,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},readIconSize:{type:"object",default:{value:16,valueTablet:16,valueMobile:12,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
@@ -5226,24 +5238,24 @@
5226 5238 imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",
5227 5239 imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",
5228 5240 offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",
5229 5241 offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",
5230 -yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function Iq(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:Nq.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{
5231 -fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-course-curriculums",httpMethod:"POST",attributes:e})})})})}Iq.propTypes={};const Vq=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typography,{weight:"400"}),o=t.heading_typographyGlobal?t.heading_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.heading_color)}},Oq=(t,e="")=>({color:(0,Hs.qD)(t?.heading_color_hover)}),Yq=(t,e="")=>{const i=(0,M.Zy)(t?.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.title_color),background:(0,Hs.qD)(t?.title_bg),...(0,U.qD)(i,e,o)}},Xq=(t,e="")=>({color:(0,Hs.qD)(t?.title_color_hover),background:(0,Hs.qD)(t?.title_bg_hover)}),Bq=(t,e="")=>{const i=(0,
5232 -M.Zy)(t?.contentTypography,{weight:"400"});return t.contentTypographyGlobal&&t.contentTypographyGlobal,{...(0,U.qD)(i,e,i),color:(0,Hs.qD)(t?.contentColor)}},Eq=(t,e="")=>({color:(0,Hs.qD)(t?.contentColorH)}),Fq=(t,e="")=>({background:(0,Hs.qD)(t?.lesson_list_bg)||"#fff"}),qq=(t,e="")=>({background:(0,Hs.qD)(t?.lesson_list_hover)||"#fff"}),$q=(t,e="")=>({color:(0,Hs.qD)(t?.lock_icon_color),...(0,Eb.qD)({attributeValue:t?.lock_icon_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),Gq=(t,e="")=>({color:(0,Hs.qD)(t?.lock_icon_hover)}),Zq=(t,e="")=>({color:(0,Hs.qD)(t?.read_icon_color),...(0,Eb.qD)({attributeValue:t?.readIconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),Kq=(t,e="")=>({color:(0,Hs.qD)(t?.read_icon_hover)});(0,M.xV)(Nq.UU,"","academy_lms")&&(0,o.registerBlockType)(Nq.UU,{title:(0,
5233 -L.__)("Course Curriculums","ablocks"),attributes:Nq.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--curriculum .academy-curriculum-title",Vq(i,""),Vq(i,"Tablet"),Vq(i,"Mobile"),e(t=>Vq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--curriculum .academy-curriculum-title:hover",Oq(i,""),Oq(i,"Tablet"),Oq(i,"Mobile"),e(t=>Oq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-accordion a.academy-accordion__title",Yq(i,""),Yq(i,"Tablet"),Yq(i,"Mobile"),e(t=>Yq(i,t))),
5234 -t.addClassStyles("{{WRAPPER}} .academy-accordion a.academy-accordion__title:hover",Xq(i,""),Xq(i,"Tablet"),Xq(i,"Mobile"),e(t=>Xq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-entry-title",Bq(i,""),Bq(i,"Tablet"),Bq(i,"Mobile"),e(t=>Bq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-entry-title:hover",Eq(i,""),Eq(i,"Tablet"),Eq(i,"Mobile"),e(t=>Eq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item",Fq(i,""),Fq(i,"Tablet"),Fq(i,"Mobile"),e(t=>Fq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item:hover",qq(i,""),qq(i,"Tablet"),qq(i,"Mobile"),e(t=>qq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-control .academy-btn-play i",$q(i,""),$q(i,"Tablet"),$q(i,"Mobile"),e(t=>$q(i,t))),
5235 -t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-control .academy-btn-play i:hover",Gq(i,""),Gq(i,"Tablet"),Gq(i,"Mobile"),e(t=>Gq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-icon::before",Zq(i,""),Zq(i,"Tablet"),Zq(i,"Mobile"),e(t=>Zq(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-icon::before",Kq(i,""),Kq(i,"Tablet"),Kq(i,"Mobile"),e(t=>Kq(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Dq,{...t}),(0,I.jsx)(Iq,{...t})]})},save:()=>null});var Jq=i(75799);function Qq(t){
5242 +yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function g$(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:h$.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{
5243 +fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-course-curriculums",httpMethod:"POST",attributes:e})})})})}g$.propTypes={};const f$=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typography,{weight:"400"}),o=t.heading_typographyGlobal?t.heading_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.heading_color)}},y$=(t,e="")=>({color:(0,Hs.qD)(t?.heading_color_hover)}),T$=(t,e="")=>{const i=(0,M.Zy)(t?.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.title_color),background:(0,Hs.qD)(t?.title_bg),...(0,U.qD)(i,e,o)}},H$=(t,e="")=>({color:(0,Hs.qD)(t?.title_color_hover),background:(0,Hs.qD)(t?.title_bg_hover)}),M$=(t,e="")=>{const i=(0,
5244 +M.Zy)(t?.contentTypography,{weight:"400"});return t.contentTypographyGlobal&&t.contentTypographyGlobal,{...(0,U.qD)(i,e,i),color:(0,Hs.qD)(t?.contentColor)}},x$=(t,e="")=>({color:(0,Hs.qD)(t?.contentColorH)}),k$=(t,e="")=>({background:(0,Hs.qD)(t?.lesson_list_bg)||"#fff"}),v$=(t,e="")=>({background:(0,Hs.qD)(t?.lesson_list_hover)||"#fff"}),_$=(t,e="")=>({color:(0,Hs.qD)(t?.lock_icon_color),...(0,Eb.qD)({attributeValue:t?.lock_icon_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),R$=(t,e="")=>({color:(0,Hs.qD)(t?.lock_icon_hover)}),S$=(t,e="")=>({color:(0,Hs.qD)(t?.read_icon_color),...(0,Eb.qD)({attributeValue:t?.readIconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),W$=(t,e="")=>({color:(0,Hs.qD)(t?.read_icon_hover)});(0,M.xV)(h$.UU,"","academy_lms")&&(0,o.registerBlockType)(h$.UU,{title:(0,
5245 +L.__)("Course Curriculums","ablocks"),attributes:h$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--curriculum .academy-curriculum-title",f$(i,""),f$(i,"Tablet"),f$(i,"Mobile"),e(t=>f$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--curriculum .academy-curriculum-title:hover",y$(i,""),y$(i,"Tablet"),y$(i,"Mobile"),e(t=>y$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-accordion a.academy-accordion__title",T$(i,""),T$(i,"Tablet"),T$(i,"Mobile"),e(t=>T$(i,t))),
5246 +t.addClassStyles("{{WRAPPER}} .academy-accordion a.academy-accordion__title:hover",H$(i,""),H$(i,"Tablet"),H$(i,"Mobile"),e(t=>H$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-entry-title",M$(i,""),M$(i,"Tablet"),M$(i,"Mobile"),e(t=>M$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-entry-title:hover",x$(i,""),x$(i,"Tablet"),x$(i,"Mobile"),e(t=>x$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item",k$(i,""),k$(i,"Tablet"),k$(i,"Mobile"),e(t=>k$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item:hover",v$(i,""),v$(i,"Tablet"),v$(i,"Mobile"),e(t=>v$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-control .academy-btn-play i",_$(i,""),_$(i,"Tablet"),_$(i,"Mobile"),e(t=>_$(i,t))),
5247 +t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-control .academy-btn-play i:hover",R$(i,""),R$(i,"Tablet"),R$(i,"Mobile"),e(t=>R$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-icon::before",S$(i,""),S$(i,"Tablet"),S$(i,"Mobile"),e(t=>S$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-icon::before",W$(i,""),W$(i,"Tablet"),W$(i,"Mobile"),e(t=>W$(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(m$,{...t}),(0,I.jsx)(g$,{...t})]})},save:()=>null});var P$=i(75799);function U$(t){
5236 5248 const{attributes:e,setAttributes:i}=t,{course_id:o,heading_color:a,heading_hover_color:n,heading_typography:s,padding:b,boxShadow:c,border:d,transition:u,section_bg:p,section_bg_hover:m,avg_typography:h,avg_color:g,avg_transition:f,avg_color_hover:y,rating_color:T,rating_color_hover:H,rating_transition:M,rating_size:x,section_height:k,section_width:v,total_transition:_,total_typography:R,total_rating_color:S,total_rating_hover:W,listT:P,listColorH:U,listColor:j,listTypography:w,startSize:z,startT:C,starColorH:A,starColor:N,fillBg:O,fillBgH:Y,fillT:X,fillAT:B,fillABg:E,fillABgH:F}=e,q=lt(),$=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),G=$?$.filter(t=>t):[],Z=G?G.map(t=>({label:t.title?.rendered,value:t.id})):[];return Z.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,
5237 5249 L.__)("Heading Style Options","ablocks"),initialOpen:!0,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"heading_typography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"heading_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"heading_hover_color",attributeValue:n,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Rating Section","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"section_bg",
5238 5250 attributeValue:p,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"section_bg_hover",attributeValue:m,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:u,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:b,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Boz Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:c,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:d,
5239 -setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Average Rating","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Rating Icon Size","ablocks"),min:0,step:1,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:x,attributeName:"rating_size",setAttributes:i,attributeDefaultValue:Jq.Dz}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"section_width",attributeObjectKey:"value",attributeValue:v,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(v["valueUnit"+q]??"%")?100:1600,attributeDefaultValue:Jq.sj,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"section_height",attributeObjectKey:"value",attributeValue:k,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",
5240 -unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","vh"].includes(k["valueUnit"+q]??"vh")?100:1600,attributeDefaultValue:Jq.r6,autoSyncRange:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"avg_typography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"avg_color",attributeValue:g,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"avg_color_hover",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,
5251 +setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Average Rating","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Rating Icon Size","ablocks"),min:0,step:1,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:x,attributeName:"rating_size",setAttributes:i,attributeDefaultValue:P$.Dz}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"section_width",attributeObjectKey:"value",attributeValue:v,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(v["valueUnit"+q]??"%")?100:1600,attributeDefaultValue:P$.sj,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"section_height",attributeObjectKey:"value",attributeValue:k,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",
5252 +unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","vh"].includes(k["valueUnit"+q]??"vh")?100:1600,attributeDefaultValue:P$.r6,autoSyncRange:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"avg_typography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"avg_color",attributeValue:g,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"avg_color_hover",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,
5241 5253 isResponsive:!1,attributeValue:f,attributeName:"avg_transition",setAttributes:i})]})}),(0,I.jsx)(at,{label:(0,L.__)("Rating Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"rating_color",attributeValue:T,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"rating_color_hover",attributeValue:H,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:M,attributeName:"rating_transition",setAttributes:i})]})})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Rating Text","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"total_typography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e}),(0,
5242 5254 I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"total_rating_color",attributeValue:S,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"total_rating_hover",attributeValue:W,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:_,attributeName:"total_transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Rating Fill Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"fillBg",attributeValue:O,
5243 5255 setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"fillBgH",attributeValue:Y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:X,attributeName:"fillT",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Rating Active Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"fillABg",attributeValue:E,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"fillABgH",attributeValue:F,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,
5244 -hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:B,attributeName:"fillAT",setAttributes:i})]})})]}),(0,I.jsx)(V,{title:(0,L.__)("Feedback Overview","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:500,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:z,attributeName:"startSize",setAttributes:i,attributeDefaultValue:Jq.Dz}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:w,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:j,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,
5245 -attributeName:"listColorH",attributeValue:U,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:P,attributeName:"listT",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"starColor",attributeValue:N,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"starColorH",attributeValue:A,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:C,attributeName:"startT",setAttributes:i})]})})]})})})]})})})}Qq.propTypes={};const t$={UU:"ablocks/academy-course-reviews",uK:{block_id:{type:"string",
5256 +hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:B,attributeName:"fillAT",setAttributes:i})]})})]}),(0,I.jsx)(V,{title:(0,L.__)("Feedback Overview","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:500,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:z,attributeName:"startSize",setAttributes:i,attributeDefaultValue:P$.Dz}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:w,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:j,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,
5257 +attributeName:"listColorH",attributeValue:U,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:P,attributeName:"listT",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"starColor",attributeValue:N,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"starColorH",attributeValue:A,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:C,attributeName:"startT",setAttributes:i})]})})]})})})]})})})}U$.propTypes={};const j$={UU:"ablocks/academy-course-reviews",uK:{block_id:{type:"string",
5246 5258 default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},heading_color:{type:"string",default:"#111"},heading_hover_color:{type:"string",default:"#111"},section_bg_hover:{type:"string",default:"#FFF"},section_bg:{type:"string",default:"#FFF"},avg_color:{type:"string",default:"#111"},avg_color_hover:{type:"string",default:"#111"},rating_color_hover:{type:"string",default:"#f4c150"},rating_color:{type:"string",default:"#f4c150"},total_rating_color:{type:"string",default:"#999"},total_rating_hover:{type:"string",default:"#999"},listColor:{type:"string",default:"#999"},listColorH:{type:"string",default:"#999"},starColorH:{type:"string",default:"#f4c150"},starColor:{type:"string",default:"#f4c150"},fillBg:{type:"string",default:"#e7e7e7"},fillBgH:{type:"string",default:"#e7e7e7"},fillABg:{type:"string",default:"#f4c150"},fillABgH:{type:"string",default:"#f4c150"},heading_typographyGlobal:{type:"string",default:""},heading_typography:{type:"object",default:{
5247 5259 fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",
5248 5260 lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},avg_typographyGlobal:{type:"string",default:""},avg_typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},total_typographyGlobal:{type:"string",default:""},total_typography:{
5249 5261 type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",
@@ -5256,28 +5268,28 @@
5256 5268 imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",
5257 5269 imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",
5258 5270 offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",
5259 5271 offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",
5260 -yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function e$(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:t$.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{
5261 -fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-course-reviews",httpMethod:"POST",attributes:e})})})})}e$.propTypes={};const i$=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typography,{weight:"400"}),o=t.heading_typographyGlobal?t.heading_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.heading_color)}},o$=(t,e="")=>({color:(0,Hs.qD)(t?.heading_color_hover)}),a$=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.section_bg)||"#fff",...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.section_width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,
5262 -unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.section_height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"height",device:e})}},l$=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.section_bg_hover)||"#fff",...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e),...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}},n$=(t,e="")=>{const i=(0,M.Zy)(t?.avg_typography,{weight:"400"}),o=t.avg_typographyGlobal?t.avg_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.avg_color)}},s$=(t,e="")=>({color:(0,Hs.qD)(t?.avg_color_hover),...(0,Eb.qD)({attributeValue:t?.avg_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),r$=(t,e="")=>({
5263 -color:(0,Hs.qD)(t?.rating_color),...(0,Eb.qD)({attributeValue:t?.rating_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),b$=(t,e="")=>({color:(0,Hs.qD)(t?.rating_color_hover),...(0,Eb.qD)({attributeValue:t?.rating_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),c$=(t,e="")=>{const i=(0,M.Zy)(t?.total_typography,{weight:"400"}),o=t.total_typographyGlobal?t.total_typographyGlobal:"";return{color:(0,Hs.qD)(t?.total_rating_color),...(0,U.qD)(i,e,o)}},d$=(t,e="")=>({color:(0,Hs.qD)(t?.total_rating_hover),...(0,Eb.qD)({attributeValue:t?.total_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),u$=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography,{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{...(0,
5264 -U.qD)(i,e,o),color:(0,Hs.qD)(t?.listColor)}},p$=(t,e="")=>({color:(0,Hs.qD)(t?.listColorH),...(0,Eb.qD)({attributeValue:t?.listT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),m$=(t,e="")=>({color:(0,Hs.qD)(t?.starColor),...(0,Eb.qD)({attributeValue:t?.startSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),h$=(t,e="")=>({color:(0,Hs.qD)(t?.starColorH),...(0,Eb.qD)({attributeValue:t?.startT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),g$=(t,e="")=>({background:(0,Hs.qD)(t?.fillBg)||"#e7e7e7"}),f$=(t,e="")=>({background:(0,Hs.qD)(t?.fillBgH)||"#e7e7e7",...(0,Eb.qD)({attributeValue:t?.fillT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})
5265 -}),y$=(t,e="")=>({background:(0,Hs.qD)(t?.fillABg)||"#f4c150"}),T$=(t,e="")=>({background:(0,Hs.qD)(t?.fillABgH)||"#f4c150",...(0,Eb.qD)({attributeValue:t?.fillT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});(0,M.xV)(t$.UU,"","academy_lms")&&(0,o.registerBlockType)(t$.UU,{title:(0,L.__)("Course Reviews","ablocks"),attributes:t$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .feedback-title",i$(i,""),i$(i,"Tablet"),i$(i,"Mobile"),e(t=>i$(i,t))),
5266 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .feedback-title:hover",o$(i,""),o$(i,"Tablet"),o$(i,"Mobile"),e(t=>o$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings",a$(i,""),a$(i,"Tablet"),a$(i,"Mobile"),e(t=>a$(i,t))),t.addClassStyles("{{WRAPPER}}.academy-single-course__content-item--feedback .academy-student-course-feedback-ratings:hover",l$(i,""),l$(i,"Tablet"),l$(i,"Mobile"),e(t=>l$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating",n$(i,""),n$(i,"Tablet"),n$(i,"Mobile"),e(t=>n$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating:hover",s$(i,""),s$(i,"Tablet"),s$(i,"Mobile"),e(t=>s$(i,t))),
5267 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-html .academy-icon::before",r$(i,""),r$(i,"Tablet"),r$(i,"Mobile"),e(t=>r$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-html .academy-icon:hover::before",b$(i,""),b$(i,"Tablet"),b$(i,"Mobile"),e(t=>b$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-total",c$(i,""),c$(i,"Tablet"),c$(i,"Mobile"),e(t=>c$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-total:hover",d$(i,""),d$(i,"Tablet"),d$(i,"Mobile"),e(t=>d$(i,t))),
5268 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-col,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-label,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-label span",u$(i,""),u$(i,"Tablet"),u$(i,"Mobile"),e(t=>u$(i,t))),
5269 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-col:hover,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-label:hover,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-label span:hover",p$(i,""),p$(i,"Tablet"),p$(i,"Mobile"),e(t=>p$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-icon",m$(i,""),m$(i,"Tablet"),m$(i,"Mobile"),e(t=>m$(i,t))),
5270 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-icon:hover",h$(i,""),h$(i,"Tablet"),h$(i,"Mobile"),e(t=>h$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill",g$(i,""),g$(i,"Tablet"),g$(i,"Mobile"),e(t=>g$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill",f$(i,""),f$(i,"Tablet"),f$(i,"Mobile"),e(t=>f$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill-bar",y$(i,""),y$(i,"Tablet"),y$(i,"Mobile"),e(t=>y$(i,t))),
5271 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill-bar:hover",T$(i,""),T$(i,"Tablet"),T$(i,"Mobile"),e(t=>T$(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Qq,{...t}),(0,I.jsx)(e$,{...t})]})},save:()=>null});var H$=i(72045);function M$(t){const{attributes:e,setAttributes:i}=t,{course_id:o,box_width:a,box_transition:n,review_bg_hover:s,review_bg:b,padding:c,boxShadow:d,border:u,review_btn:p,review_btn_hover:m,btn_transition:h,review_btn_typography:g,button_padding:f,review_btn_bg_hover:y,review_btn_bg:T,starColorH:H,starColor:M,startT:x,startSize:k,formTypography:v,formBg:_,formBgH:R,formTransition:S,formColor:W,formColorH:P,formBorder:U,formBtnTypography:j,formBtnColorH:w,formBtnColor:z,formBtnBgH:C,formBtnBg:A,formBtnT:N,formBtnPadding:O}=e,Y=lt(),X=(0,
5272 +yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function w$(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:j$.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{
5273 +fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-course-reviews",httpMethod:"POST",attributes:e})})})})}w$.propTypes={};const z$=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typography,{weight:"400"}),o=t.heading_typographyGlobal?t.heading_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.heading_color)}},C$=(t,e="")=>({color:(0,Hs.qD)(t?.heading_color_hover)}),A$=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.section_bg)||"#fff",...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.section_width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,
5274 +unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.section_height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"height",device:e})}},L$=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.section_bg_hover)||"#fff",...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e),...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}},D$=(t,e="")=>{const i=(0,M.Zy)(t?.avg_typography,{weight:"400"}),o=t.avg_typographyGlobal?t.avg_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.avg_color)}},N$=(t,e="")=>({color:(0,Hs.qD)(t?.avg_color_hover),...(0,Eb.qD)({attributeValue:t?.avg_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),I$=(t,e="")=>({
5275 +color:(0,Hs.qD)(t?.rating_color),...(0,Eb.qD)({attributeValue:t?.rating_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),V$=(t,e="")=>({color:(0,Hs.qD)(t?.rating_color_hover),...(0,Eb.qD)({attributeValue:t?.rating_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),O$=(t,e="")=>{const i=(0,M.Zy)(t?.total_typography,{weight:"400"}),o=t.total_typographyGlobal?t.total_typographyGlobal:"";return{color:(0,Hs.qD)(t?.total_rating_color),...(0,U.qD)(i,e,o)}},Y$=(t,e="")=>({color:(0,Hs.qD)(t?.total_rating_hover),...(0,Eb.qD)({attributeValue:t?.total_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),X$=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography,{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{...(0,
5276 +U.qD)(i,e,o),color:(0,Hs.qD)(t?.listColor)}},B$=(t,e="")=>({color:(0,Hs.qD)(t?.listColorH),...(0,Eb.qD)({attributeValue:t?.listT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),E$=(t,e="")=>({color:(0,Hs.qD)(t?.starColor),...(0,Eb.qD)({attributeValue:t?.startSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),F$=(t,e="")=>({color:(0,Hs.qD)(t?.starColorH),...(0,Eb.qD)({attributeValue:t?.startT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),q$=(t,e="")=>({background:(0,Hs.qD)(t?.fillBg)||"#e7e7e7"}),$$=(t,e="")=>({background:(0,Hs.qD)(t?.fillBgH)||"#e7e7e7",...(0,Eb.qD)({attributeValue:t?.fillT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})
5277 +}),G$=(t,e="")=>({background:(0,Hs.qD)(t?.fillABg)||"#f4c150"}),Z$=(t,e="")=>({background:(0,Hs.qD)(t?.fillABgH)||"#f4c150",...(0,Eb.qD)({attributeValue:t?.fillT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});(0,M.xV)(j$.UU,"","academy_lms")&&(0,o.registerBlockType)(j$.UU,{title:(0,L.__)("Course Reviews","ablocks"),attributes:j$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .feedback-title",z$(i,""),z$(i,"Tablet"),z$(i,"Mobile"),e(t=>z$(i,t))),
5278 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .feedback-title:hover",C$(i,""),C$(i,"Tablet"),C$(i,"Mobile"),e(t=>C$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings",A$(i,""),A$(i,"Tablet"),A$(i,"Mobile"),e(t=>A$(i,t))),t.addClassStyles("{{WRAPPER}}.academy-single-course__content-item--feedback .academy-student-course-feedback-ratings:hover",L$(i,""),L$(i,"Tablet"),L$(i,"Mobile"),e(t=>L$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating",D$(i,""),D$(i,"Tablet"),D$(i,"Mobile"),e(t=>D$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating:hover",N$(i,""),N$(i,"Tablet"),N$(i,"Mobile"),e(t=>N$(i,t))),
5279 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-html .academy-icon::before",I$(i,""),I$(i,"Tablet"),I$(i,"Mobile"),e(t=>I$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-html .academy-icon:hover::before",V$(i,""),V$(i,"Tablet"),V$(i,"Mobile"),e(t=>V$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-total",O$(i,""),O$(i,"Tablet"),O$(i,"Mobile"),e(t=>O$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-total:hover",Y$(i,""),Y$(i,"Tablet"),Y$(i,"Mobile"),e(t=>Y$(i,t))),
5280 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-col,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-label,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-label span",X$(i,""),X$(i,"Tablet"),X$(i,"Mobile"),e(t=>X$(i,t))),
5281 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-col:hover,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-label:hover,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-label span:hover",B$(i,""),B$(i,"Tablet"),B$(i,"Mobile"),e(t=>B$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-icon",E$(i,""),E$(i,"Tablet"),E$(i,"Mobile"),e(t=>E$(i,t))),
5282 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-icon:hover",F$(i,""),F$(i,"Tablet"),F$(i,"Mobile"),e(t=>F$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill",q$(i,""),q$(i,"Tablet"),q$(i,"Mobile"),e(t=>q$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill",$$(i,""),$$(i,"Tablet"),$$(i,"Mobile"),e(t=>$$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill-bar",G$(i,""),G$(i,"Tablet"),G$(i,"Mobile"),e(t=>G$(i,t))),
5283 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill-bar:hover",Z$(i,""),Z$(i,"Tablet"),Z$(i,"Mobile"),e(t=>Z$(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(U$,{...t}),(0,I.jsx)(w$,{...t})]})},save:()=>null});var K$=i(72045);function J$(t){const{attributes:e,setAttributes:i}=t,{course_id:o,box_width:a,box_transition:n,review_bg_hover:s,review_bg:b,padding:c,boxShadow:d,border:u,review_btn:p,review_btn_hover:m,btn_transition:h,review_btn_typography:g,button_padding:f,review_btn_bg_hover:y,review_btn_bg:T,starColorH:H,starColor:M,startT:x,startSize:k,formTypography:v,formBg:_,formBgH:R,formTransition:S,formColor:W,formColorH:P,formBorder:U,formBtnTypography:j,formBtnColorH:w,formBtnColor:z,formBtnBgH:C,formBtnBg:A,formBtnT:N,formBtnPadding:O}=e,Y=lt(),X=(0,
5272 5284 r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),B=X?X.filter(t=>t):[],E=B?B.map(t=>({label:t.title?.rendered,value:t.id})):[];return E.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Layout Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ut,{options:E,label:(0,L.__)("Select Course","ablocks"),attributeValue:o,attributeName:"course_id",setAttributes:i})}),(0,I.jsx)(V,{title:(0,L.__)("Average Rating Section","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"box_width",attributeObjectKey:"value",attributeValue:a,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",
5273 -label:"vw"}],min:0,max:["vw","%"].includes(a["valueUnit"+Y]??"%")?100:1600,attributeDefaultValue:H$.sectionWidth,autoSyncRange:!0}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"review_bg",attributeValue:b,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"review_bg_hover",attributeValue:s,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"box_transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",
5285 +label:"vw"}],min:0,max:["vw","%"].includes(a["valueUnit"+Y]??"%")?100:1600,attributeDefaultValue:K$.sectionWidth,autoSyncRange:!0}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"review_bg",attributeValue:b,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"review_bg_hover",attributeValue:s,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"box_transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",
5274 5286 attributeValue:c,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:d,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:u,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Button Setting","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"review_btn_typography",attributeValue:g,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"review_btn",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),
5275 5287 isResponsive:!1,attributeName:"review_btn_bg",attributeValue:T,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"review_btn_hover",attributeValue:m,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"review_btn_bg_hover",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:h,attributeName:"btn_transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Section Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"button_padding",attributeValue:f,setAttributes:i})]}),(0,I.jsx)(V,{title:(0,L.__)("From Section","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Star Width","ablocks"),
5276 -min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:k,attributeName:"startSize",setAttributes:i,attributeDefaultValue:H$.U2}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"starColor",attributeValue:M,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"starColorH",attributeValue:H,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:x,attributeName:"startT",setAttributes:i})]})})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("From Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"formTypography",attributeValue:v,
5288 +min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:k,attributeName:"startSize",setAttributes:i,attributeDefaultValue:K$.U2}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"starColor",attributeValue:M,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"starColorH",attributeValue:H,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:x,attributeName:"startT",setAttributes:i})]})})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("From Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"formTypography",attributeValue:v,
5277 5289 setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"formBg",attributeValue:_,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"formColor",attributeValue:W,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"formBgH",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"formColorH",attributeValue:P,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:S,attributeName:"formTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,
5278 5290 L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"formBorder",attributeValue:U,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Form Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"formBtnTypography",attributeValue:j,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"formBtnColor",attributeValue:z,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"formBtnBg",attributeValue:A,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"formBtnColorH",attributeValue:w,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
5279 -L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"formBtnBgH",attributeValue:C,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:N,attributeName:"formBtnT",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"formBtnPadding",attributeValue:O,setAttributes:i})]})]})})})}M$.propTypes={};const x$={UU:"ablocks/academy-review-form",uK:{block_id:{type:"string",default:""},course_id:{type:"number",default:0},review_bg:{type:"string",default:"#fff"},blockVersion:{type:"number",default:2},review_bg_hover:{type:"string",default:"#fff"},review_btn:{type:"string",default:"#fff"},review_btn_hover:{type:"string",default:"#fff"},review_btn_bg:{type:"string",default:"#7b68ee"},review_btn_bg_hover:{type:"string",default:"#7b68ee"},
5291 +L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"formBtnBgH",attributeValue:C,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:N,attributeName:"formBtnT",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"formBtnPadding",attributeValue:O,setAttributes:i})]})]})})})}J$.propTypes={};const Q$={UU:"ablocks/academy-review-form",uK:{block_id:{type:"string",default:""},course_id:{type:"number",default:0},review_bg:{type:"string",default:"#fff"},blockVersion:{type:"number",default:2},review_bg_hover:{type:"string",default:"#fff"},review_btn:{type:"string",default:"#fff"},review_btn_hover:{type:"string",default:"#fff"},review_btn_bg:{type:"string",default:"#7b68ee"},review_btn_bg_hover:{type:"string",default:"#7b68ee"},
5280 5292 starColor:{type:"string",default:"#f4c150"},starColorH:{type:"string",default:"#f4c150"},formColor:{type:"string",default:"#444"},formColorH:{type:"string",default:"#444"},formBg:{type:"string",default:"#E5E4E6"},formBgH:{type:"string",default:"#E5E4E6"},formBtnColor:{type:"string",default:"#fff"},formBtnColorH:{type:"string",default:"#fff"},formBtnBg:{type:"string",default:"#7b68ee"},formBtnBgH:{type:"string",default:"#7b68ee"},review_btn_typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",
5281 5293 wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},formTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},formBtnTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",
5282 5294 fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},formBtnTypographyGlobal:{type:"string",default:""},formTypographyGlobal:{type:"string",default:""},review_btn_typographyGlobal:{type:"string",default:""},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",
5283 5295 isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",
@@ -5291,21 +5303,21 @@
5291 5303 imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",
5292 5304 imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",
5293 5305 offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",
5294 5306 scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",
5295 -yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function k$(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:x$.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{
5296 -fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-review-form",httpMethod:"POST",attributes:e})})})})}k$.propTypes={};const v$=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.review_bg),...(0,H.qD)(t?.boxShadow,e),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,Eb.qD)({attributeValue:t?.box_width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e})}},_$=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.review_bg_hover),...(0,y.a9)(i,e),...(0,H.a9)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.box_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",
5297 -property:"transition-duration",device:e})}},R$=(t,e="")=>{const i=(0,M.Zy)(t?.button_padding,{unit:"px"}),o=(0,M.Zy)(t?.review_btn_typography??[],{weight:"400"}),a=t.review_btn_typographyGlobal?t.review_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.review_btn),background:(0,Hs.qD)(t?.review_btn_bg),...(0,c.qD)(i,"padding",e),...(0,U.qD)(o,e,a)}},S$=(t,e="")=>({color:(0,Hs.qD)(t?.review_btn_hover),background:(0,Hs.qD)(t?.review_btn_hover_bg),...(0,Eb.qD)({attributeValue:t?.btn_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),W$=(t,e="")=>({color:(0,Hs.qD)(t?.starColor)||"#f4c150",...(0,Eb.qD)({attributeValue:t?.startSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:40,unitDefaultValue:"px",property:"font-size",device:e})}),P$=(t,e="")=>({color:(0,Hs.qD)(t?.starColorH)||"#f4c150"}),U$=(t,e="")=>{const i=(0,M.Zy)(t?.formTypography??[],{weight:"400"
5298 -}),o=t.formTypographyGlobal?t.formTypographyGlobal:"",a=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.formColor)||"#444",background:(0,Hs.qD)(t?.fromBg)||"#E5E4E6",...(0,U.qD)(i,e,o),...(0,y.qD)(a,e)}},j$=(t,e="")=>{const i=(0,M.Zy)(t.formBorder??[],{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.formColorH)||"#444",background:(0,Hs.qD)(t?.fromBgH)||"#E5E4E6",...(0,y.a9)(i,e),...(0,Eb.qD)({attributeValue:t?.formTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}},w$=(t,e="")=>{const i=(0,M.Zy)(t?.formBtnPadding??[],{unit:"px"}),o=(0,M.Zy)(t?.formBtnTypography??[],{weight:"400"}),a=t.formBtnTypographyGlobal?t.formBtnTypographyGlobal:"";return{color:(0,Hs.qD)(t?.formBtnColor),background:(0,Hs.qD)(t?.formBtnBg),...(0,c.qD)(i,"padding",e),...(0,U.qD)(o,e,a)}},z$=(t,e="")=>({color:(0,Hs.qD)(t?.formBtnColorH),background:(0,Hs.qD)(t?.formBtnBgH),...(0,
5299 -Eb.qD)({attributeValue:t?.formBtnT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});function C$(t){const{attributes:e,setAttributes:i}=t,{course_id:o,avatarWidth:a,avatarHeight:n,authorTransition:s,authorTypography:b,authorColor:c,authorHoverColor:d,dateTransition:u,dateHoverColor:p,dateColor:m,dateTypography:h,desTransition:g,desHoverColor:f,desTypography:y,desColor:T,sumTransition:H,sumColor:M,sumColorH:x,sumTypography:k,iconSize:v,iconColor:_,iconColorH:R}=e,S=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),W=S?S.filter(t=>t):[],P=W?W.map(t=>({label:t.title?.rendered,value:t.id})):[];return P.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Avatar Style","ablocks"),initialOpen:!0,
5307 +yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function tG(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:Q$.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{
5308 +fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-review-form",httpMethod:"POST",attributes:e})})})})}tG.propTypes={};const eG=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.review_bg),...(0,H.qD)(t?.boxShadow,e),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,Eb.qD)({attributeValue:t?.box_width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e})}},iG=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.review_bg_hover),...(0,y.a9)(i,e),...(0,H.a9)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.box_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",
5309 +property:"transition-duration",device:e})}},oG=(t,e="")=>{const i=(0,M.Zy)(t?.button_padding,{unit:"px"}),o=(0,M.Zy)(t?.review_btn_typography??[],{weight:"400"}),a=t.review_btn_typographyGlobal?t.review_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.review_btn),background:(0,Hs.qD)(t?.review_btn_bg),...(0,c.qD)(i,"padding",e),...(0,U.qD)(o,e,a)}},aG=(t,e="")=>({color:(0,Hs.qD)(t?.review_btn_hover),background:(0,Hs.qD)(t?.review_btn_hover_bg),...(0,Eb.qD)({attributeValue:t?.btn_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),lG=(t,e="")=>({color:(0,Hs.qD)(t?.starColor)||"#f4c150",...(0,Eb.qD)({attributeValue:t?.startSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:40,unitDefaultValue:"px",property:"font-size",device:e})}),nG=(t,e="")=>({color:(0,Hs.qD)(t?.starColorH)||"#f4c150"}),sG=(t,e="")=>{const i=(0,M.Zy)(t?.formTypography??[],{weight:"400"
5310 +}),o=t.formTypographyGlobal?t.formTypographyGlobal:"",a=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.formColor)||"#444",background:(0,Hs.qD)(t?.fromBg)||"#E5E4E6",...(0,U.qD)(i,e,o),...(0,y.qD)(a,e)}},rG=(t,e="")=>{const i=(0,M.Zy)(t.formBorder??[],{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.formColorH)||"#444",background:(0,Hs.qD)(t?.fromBgH)||"#E5E4E6",...(0,y.a9)(i,e),...(0,Eb.qD)({attributeValue:t?.formTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}},bG=(t,e="")=>{const i=(0,M.Zy)(t?.formBtnPadding??[],{unit:"px"}),o=(0,M.Zy)(t?.formBtnTypography??[],{weight:"400"}),a=t.formBtnTypographyGlobal?t.formBtnTypographyGlobal:"";return{color:(0,Hs.qD)(t?.formBtnColor),background:(0,Hs.qD)(t?.formBtnBg),...(0,c.qD)(i,"padding",e),...(0,U.qD)(o,e,a)}},cG=(t,e="")=>({color:(0,Hs.qD)(t?.formBtnColorH),background:(0,Hs.qD)(t?.formBtnBgH),...(0,
5311 +Eb.qD)({attributeValue:t?.formBtnT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});function dG(t){const{attributes:e,setAttributes:i}=t,{course_id:o,avatarWidth:a,avatarHeight:n,authorTransition:s,authorTypography:b,authorColor:c,authorHoverColor:d,dateTransition:u,dateHoverColor:p,dateColor:m,dateTypography:h,desTransition:g,desHoverColor:f,desTypography:y,desColor:T,sumTransition:H,sumColor:M,sumColorH:x,sumTypography:k,iconSize:v,iconColor:_,iconColorH:R}=e,S=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),W=S?S.filter(t=>t):[],P=W?W.map(t=>({label:t.title?.rendered,value:t.id})):[];return P.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Avatar Style","ablocks"),initialOpen:!0,
5300 5312 children:[(0,I.jsx)(_t,{label:(0,L.__)("Avatar Height","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:n,attributeName:"avatarHeight",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Avatar Width","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:a,attributeName:"avatarWidth",setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Author Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"authorTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"authorColor",attributeValue:c,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,
5301 5313 attributeName:"authorHoverColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:s,attributeName:"authorTransition",setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Date Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"dateTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"dateColor",attributeValue:m,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"dateHoverColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,
5302 5314 L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:u,attributeName:"dateTransition",setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Description Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"desTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"desColor",attributeValue:T,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"desHoverColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:g,
5303 5315 attributeName:"desTransition",setAttributes:i})]})})]}),(0,I.jsx)(V,{title:(0,L.__)("Rating Summary","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("star Icon size","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:v,attributeName:"iconSize",setAttributes:i}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"sumTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Rating Summary Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"sumColor",attributeValue:M,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"sumColorH",attributeValue:x,setAttributes:i}),(0,I.jsx)(_t,{
5304 -label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:H,attributeName:"sumTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"iconColor",attributeValue:_,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"iconColorH",attributeValue:R,setAttributes:i})})})]})})})]})})})}(0,M.xV)(x$.UU,"","academy_lms")&&(0,o.registerBlockType)(x$.UU,{title:(0,L.__)("Reviews Form","ablocks"),attributes:x$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{
5305 -n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-review-form,\n\t\t\t {{WRAPPER}}.academy-review-form--open-form .comment-respond",v$(i,""),v$(i,"Tablet"),v$(i,"Mobile"),e(t=>v$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form:hover,\n\t\t\t{{WRAPPER}} .academy-review-form--open-form .comment-respond:hover",_$(i,""),_$(i,"Tablet"),_$(i,"Mobile"),e(t=>_$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review",R$(i,""),R$(i,"Tablet"),R$(i,"Mobile"),e(t=>R$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review:hover",S$(i,""),S$(i,"Tablet"),S$(i,"Mobile"),e(t=>S$(i,t))),
5306 -t.addClassStyles("{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a,\n\t\t\t{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a::before",W$(i,""),W$(i,"Tablet"),W$(i,"Mobile"),e(t=>W$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a,\n\t\t\t{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a::before",P$(i,""),P$(i,"Tablet"),P$(i,"Mobile"),e(t=>P$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea",U$(i,""),U$(i,"Tablet"),U$(i,"Mobile"),e(t=>U$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea:hover",j$(i,""),j$(i,"Tablet"),j$(i,"Mobile"),e(t=>j$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form input[type=submit]",w$(i,""),w$(i,"Tablet"),w$(i,"Mobile"),e(t=>w$(i,t))),
5307 -t.addClassStyles("{{WRAPPER}} .academy-review-form input[type=submit]:hover",z$(i,""),z$(i,"Tablet"),z$(i,"Mobile"),e(t=>z$(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(M$,{...t}),(0,I.jsx)(k$,{...t})]})},save:()=>null}),C$.propTypes={};const A$={UU:"ablocks/academy-review-list",uK:{block_id:{type:"string",default:""},course_id:{type:"number",default:0},authorColor:{type:"string",default:"#111"},blockVersion:{type:"number",default:2},authorHoverColor:{type:"string",default:"#111"},dateColor:{type:"string",default:"#111"},dateHoverColor:{type:"string",default:"#111"},desColor:{type:"string",default:"#111"},desHoverColor:{type:"string",default:"#111"},sumColor:{type:"string",default:"#111"},sumColorH:{type:"string",default:"#111"},iconColor:{type:"string",default:"#f4c150"},iconColorH:{type:"string",default:"#f4c150"},sumTypographyGlobal:{type:"string",default:""},authorTypographyGlobal:{type:"string",default:""},
5316 +label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:H,attributeName:"sumTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"iconColor",attributeValue:_,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"iconColorH",attributeValue:R,setAttributes:i})})})]})})})]})})})}(0,M.xV)(Q$.UU,"","academy_lms")&&(0,o.registerBlockType)(Q$.UU,{title:(0,L.__)("Reviews Form","ablocks"),attributes:Q$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{
5317 +n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-review-form,\n\t\t\t {{WRAPPER}}.academy-review-form--open-form .comment-respond",eG(i,""),eG(i,"Tablet"),eG(i,"Mobile"),e(t=>eG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form:hover,\n\t\t\t{{WRAPPER}} .academy-review-form--open-form .comment-respond:hover",iG(i,""),iG(i,"Tablet"),iG(i,"Mobile"),e(t=>iG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review",oG(i,""),oG(i,"Tablet"),oG(i,"Mobile"),e(t=>oG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review:hover",aG(i,""),aG(i,"Tablet"),aG(i,"Mobile"),e(t=>aG(i,t))),
5318 +t.addClassStyles("{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a,\n\t\t\t{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a::before",lG(i,""),lG(i,"Tablet"),lG(i,"Mobile"),e(t=>lG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a,\n\t\t\t{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a::before",nG(i,""),nG(i,"Tablet"),nG(i,"Mobile"),e(t=>nG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea",sG(i,""),sG(i,"Tablet"),sG(i,"Mobile"),e(t=>sG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea:hover",rG(i,""),rG(i,"Tablet"),rG(i,"Mobile"),e(t=>rG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-form input[type=submit]",bG(i,""),bG(i,"Tablet"),bG(i,"Mobile"),e(t=>bG(i,t))),
5319 +t.addClassStyles("{{WRAPPER}} .academy-review-form input[type=submit]:hover",cG(i,""),cG(i,"Tablet"),cG(i,"Mobile"),e(t=>cG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(J$,{...t}),(0,I.jsx)(tG,{...t})]})},save:()=>null}),dG.propTypes={};const uG={UU:"ablocks/academy-review-list",uK:{block_id:{type:"string",default:""},course_id:{type:"number",default:0},authorColor:{type:"string",default:"#111"},blockVersion:{type:"number",default:2},authorHoverColor:{type:"string",default:"#111"},dateColor:{type:"string",default:"#111"},dateHoverColor:{type:"string",default:"#111"},desColor:{type:"string",default:"#111"},desHoverColor:{type:"string",default:"#111"},sumColor:{type:"string",default:"#111"},sumColorH:{type:"string",default:"#111"},iconColor:{type:"string",default:"#f4c150"},iconColorH:{type:"string",default:"#f4c150"},sumTypographyGlobal:{type:"string",default:""},authorTypographyGlobal:{type:"string",default:""},
5308 5320 desTypographyGlobal:{type:"string",default:""},dateTypographyGlobal:{type:"string",default:""},sumTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},authorTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",
5309 5321 fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},dateTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},desTypography:{type:"object",default:{
5310 5322 fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},avatarHeight:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},avatarWidth:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSize:{type:"object",default:{value:16,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},authorTransition:{
5311 5323 type:"number",default:0},dateTransition:{type:"number",default:0},desTransition:{type:"number",default:0},sumTransition:{type:"number",default:0},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{
@@ -5315,18 +5327,18 @@
5315 5327 imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",
5316 5328 fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",
5317 5329 rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",
5318 5330 maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{
5319 -type:"string",default:""}}};function L$(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:A$.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-review-list",httpMethod:"POST",attributes:e})})})})}L$.propTypes={};const D$=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.avatarHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"px",property:"height",device:e}),...(0,Eb.qD)({attributeValue:t?.avatarWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,
5320 -defaultValue:50,unitDefaultValue:"px",property:"width",device:e})}),N$=(t,e="")=>{const i=(0,M.Zy)(t?.authorTypography??"",{weight:"400"}),o=t.authorTypographyGlobal?t.authorTypographyGlobal:"";return{color:(0,Hs.qD)(t?.authorColor)||"#111",...(0,U.qD)(i,e,o)}},I$=(t,e="")=>({color:(0,Hs.qD)(t?.authorHoverColor)||"#111",...(0,Eb.qD)({attributeValue:t?.authorTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),V$=(t,e="")=>{const i=(0,M.Zy)(t?.dateTypography??"",{weight:"400"}),o=t.dateTypographyGlobal?t.dateTypographyGlobal:"";return{color:(0,Hs.qD)(t?.dateColor)||"#111",...(0,U.qD)(i,e,o)}},O$=(t,e="")=>({color:(0,Hs.qD)(t?.dateHoverColor)||"#111",...(0,Eb.qD)({attributeValue:t?.dateTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),Y$=(t,e="")=>{const i=(0,M.Zy)(t?.desTypography??"",{weight:"400"
5321 -}),o=t.desTypographyGlobal?t.desTypographyGlobal:"";return{color:(0,Hs.qD)(t?.desColor)||"#111",...(0,U.qD)(i,e,o)}},X$=(t,e="")=>({color:(0,Hs.qD)(t?.desHoverColor)||"#111",...(0,Eb.qD)({attributeValue:t?.desTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),B$=(t,e="")=>{const i=(0,M.Zy)(t?.sumTypography??[],{weight:"400"}),o=t.sumTypographyGlobal?t.sumTypographyGlobal:"";return{color:(0,Hs.qD)(t?.sumColor)||"#111",...(0,U.qD)(i,e,o)}},E$=(t,e="")=>({color:(0,Hs.qD)(t?.sumColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.sumTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),F$=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)||"#f4c150",...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})
5322 -}),q$=(t,e="")=>({color:(0,Hs.qD)(t?.btnTextColor)||"#f4c150"});function $$(t){const{attributes:e,setAttributes:i}=t,{course_id:o,headingTypography:a,headingTransition:n,headingColorH:s,headingColor:b,listTransition:c,listTypography:d,listColorH:u,listColor:p,tabTypography:m,tabColor:h,tabColorH:g,tabTransition:f,listBorder:y,listMargin:T}=e,H=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),M=H?H.filter(t=>t):[],x=M?M.map(t=>({label:t.title?.rendered,value:t.id})):[];return x.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Layout Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ut,{options:x,label:(0,L.__)("Select Course","ablocks"),attributeValue:o,attributeName:"course_id",setAttributes:i})}),(0,I.jsxs)(V,{title:(0,L.__)("Heading Style","ablocks"),initialOpen:!0,
5331 +type:"string",default:""}}};function pG(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:uG.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-review-list",httpMethod:"POST",attributes:e})})})})}pG.propTypes={};const mG=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.avatarHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"px",property:"height",device:e}),...(0,Eb.qD)({attributeValue:t?.avatarWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,
5332 +defaultValue:50,unitDefaultValue:"px",property:"width",device:e})}),hG=(t,e="")=>{const i=(0,M.Zy)(t?.authorTypography??"",{weight:"400"}),o=t.authorTypographyGlobal?t.authorTypographyGlobal:"";return{color:(0,Hs.qD)(t?.authorColor)||"#111",...(0,U.qD)(i,e,o)}},gG=(t,e="")=>({color:(0,Hs.qD)(t?.authorHoverColor)||"#111",...(0,Eb.qD)({attributeValue:t?.authorTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),fG=(t,e="")=>{const i=(0,M.Zy)(t?.dateTypography??"",{weight:"400"}),o=t.dateTypographyGlobal?t.dateTypographyGlobal:"";return{color:(0,Hs.qD)(t?.dateColor)||"#111",...(0,U.qD)(i,e,o)}},yG=(t,e="")=>({color:(0,Hs.qD)(t?.dateHoverColor)||"#111",...(0,Eb.qD)({attributeValue:t?.dateTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),TG=(t,e="")=>{const i=(0,M.Zy)(t?.desTypography??"",{weight:"400"
5333 +}),o=t.desTypographyGlobal?t.desTypographyGlobal:"";return{color:(0,Hs.qD)(t?.desColor)||"#111",...(0,U.qD)(i,e,o)}},HG=(t,e="")=>({color:(0,Hs.qD)(t?.desHoverColor)||"#111",...(0,Eb.qD)({attributeValue:t?.desTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),MG=(t,e="")=>{const i=(0,M.Zy)(t?.sumTypography??[],{weight:"400"}),o=t.sumTypographyGlobal?t.sumTypographyGlobal:"";return{color:(0,Hs.qD)(t?.sumColor)||"#111",...(0,U.qD)(i,e,o)}},xG=(t,e="")=>({color:(0,Hs.qD)(t?.sumColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.sumTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),kG=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)||"#f4c150",...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})
5334 +}),vG=(t,e="")=>({color:(0,Hs.qD)(t?.btnTextColor)||"#f4c150"});function _G(t){const{attributes:e,setAttributes:i}=t,{course_id:o,headingTypography:a,headingTransition:n,headingColorH:s,headingColor:b,listTransition:c,listTypography:d,listColorH:u,listColor:p,tabTypography:m,tabColor:h,tabColorH:g,tabTransition:f,listBorder:y,listMargin:T}=e,H=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),M=H?H.filter(t=>t):[],x=M?M.map(t=>({label:t.title?.rendered,value:t.id})):[];return x.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Layout Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ut,{options:x,label:(0,L.__)("Select Course","ablocks"),attributeValue:o,attributeName:"course_id",setAttributes:i})}),(0,I.jsxs)(V,{title:(0,L.__)("Heading Style","ablocks"),initialOpen:!0,
5323 5335 children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"headingTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"headingColor",attributeValue:b,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"headingColorH",attributeValue:s,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"headingTransition",setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("list Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:d,
5324 5336 setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:p,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"listColorH",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:c,attributeName:"listTransition",setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Tab Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"tabTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{
5325 -children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"tabColor",attributeValue:h,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"tabColorH",attributeValue:g,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:f,attributeName:"tabTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Margin","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"listMargin",attributeValue:T,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"listBorder",attributeValue:y,setAttributes:i})]})]})})})}(0,M.xV)(A$.UU,"","academy_lms")&&(0,o.registerBlockType)(A$.UU,{title:(0,
5326 -L.__)("Review List","ablocks"),attributes:A$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail img",D$(i,""),D$(i,"Tablet"),D$(i,"Mobile"),e(t=>D$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author",N$(i,""),N$(i,"Tablet"),N$(i,"Mobile"),e(t=>N$(i,t))),
5327 -t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author:hover",I$(i,""),I$(i,"Tablet"),I$(i,"Mobile"),e(t=>I$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__published-date",V$(i,""),V$(i,"Tablet"),V$(i,"Mobile"),e(t=>V$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__published-date:hover",O$(i,""),O$(i,"Tablet"),O$(i,"Mobile"),e(t=>O$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-description p",Y$(i,""),Y$(i,"Tablet"),Y$(i,"Mobile"),e(t=>Y$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-description p:hover",X$(i,""),X$(i,"Tablet"),X$(i,"Mobile"),e(t=>X$(i,t))),
5328 -t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-review_container",B$(i,""),B$(i,"Tablet"),B$(i,"Mobile"),e(t=>B$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-review_container:hover",E$(i,""),E$(i,"Tablet"),E$(i,"Mobile"),e(t=>E$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-group-star i",F$(i,""),F$(i,"Tablet"),F$(i,"Mobile"),e(t=>F$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-group-star i:hover",q$(i,""),q$(i,"Tablet"),q$(i,"Mobile"),e(t=>q$(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(C$,{...t}),(0,I.jsx)(L$,{...t})]})},save:()=>null}),i(92731),$$.propTypes={};const G$={UU:"ablocks/academy-addition-info",uK:{block_id:{
5337 +children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"tabColor",attributeValue:h,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"tabColorH",attributeValue:g,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:f,attributeName:"tabTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Margin","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"listMargin",attributeValue:T,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"listBorder",attributeValue:y,setAttributes:i})]})]})})})}(0,M.xV)(uG.UU,"","academy_lms")&&(0,o.registerBlockType)(uG.UU,{title:(0,
5338 +L.__)("Review List","ablocks"),attributes:uG.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail img",mG(i,""),mG(i,"Tablet"),mG(i,"Mobile"),e(t=>mG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author",hG(i,""),hG(i,"Tablet"),hG(i,"Mobile"),e(t=>hG(i,t))),
5339 +t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author:hover",gG(i,""),gG(i,"Tablet"),gG(i,"Mobile"),e(t=>gG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__published-date",fG(i,""),fG(i,"Tablet"),fG(i,"Mobile"),e(t=>fG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__published-date:hover",yG(i,""),yG(i,"Tablet"),yG(i,"Mobile"),e(t=>yG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-description p",TG(i,""),TG(i,"Tablet"),TG(i,"Mobile"),e(t=>TG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-description p:hover",HG(i,""),HG(i,"Tablet"),HG(i,"Mobile"),e(t=>HG(i,t))),
5340 +t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-review_container",MG(i,""),MG(i,"Tablet"),MG(i,"Mobile"),e(t=>MG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-review_container:hover",xG(i,""),xG(i,"Tablet"),xG(i,"Mobile"),e(t=>xG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-group-star i",kG(i,""),kG(i,"Tablet"),kG(i,"Mobile"),e(t=>kG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-group-star i:hover",vG(i,""),vG(i,"Tablet"),vG(i,"Mobile"),e(t=>vG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(dG,{...t}),(0,I.jsx)(pG,{...t})]})},save:()=>null}),i(92731),_G.propTypes={};const RG={UU:"ablocks/academy-addition-info",uK:{block_id:{
5329 5341 type:"string",default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},headingColor:{type:"string",default:"#111"},headingColorH:{type:"string",default:"#111"},listColor:{type:"string",default:"#999"},listColorH:{type:"string",default:"#999"},tabColor:{type:"string",default:"#999"},tabColorH:{type:"string",default:"#999"},headingTypographyGlobal:{type:"string",default:""},listTypographyGlobal:{type:"string",default:""},tabTypographyGlobal:{type:"string",default:""},headingTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",
5330 5342 letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},listTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},tabTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",
5331 5343 fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},listBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",
5332 5344 topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",
@@ -5337,18 +5349,18 @@
5337 5349 imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",
5338 5350 imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",
5339 5351 offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",
5340 5352 scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",
5341 -animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function Z$(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:G$.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,
5342 -weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-addition-info",httpMethod:"POST",attributes:e})})})})}Z$.propTypes={};const K$=(t,e="")=>{const i=(0,M.Zy)(t?.headingTypography??"",{weight:"400"}),o=t.headingTypographyGlobal?t.headingTypographyGlobal:"";return{color:(0,Hs.qD)(t?.headingColor)||"#111",...(0,U.qD)(i,e,o)}},J$=(t,e="")=>({color:(0,Hs.qD)(t?.headingColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.headingTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),Q$=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography??"",{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,Hs.qD)(t?.listColor)||"#111",...(0,U.qD)(i,e,o)}},tG=(t,e="")=>({color:(0,Hs.qD)(t?.listColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.listTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",
5343 -property:"transition-duration",device:e})}),eG=(t,e="")=>{const i=(0,M.Zy)(t?.tabTypography??"",{weight:"400"}),o=t.tabTypographyGlobal?t.tabTypographyGlobal:"";return{color:(0,Hs.qD)(t?.tabColor)||"#111",...(0,U.qD)(i,e,o)}},iG=(t,e="")=>({color:(0,Hs.qD)(t?.tabColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.tabTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),oG=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.listMargin,{unit:"px"});return{...(0,y.qD)(i,e),...(0,c.qD)(o,"margin",e)}},aG=(t,e="")=>({color:(0,Hs.qD)(t?.activeColorH)||"#111"});(0,M.xV)(G$.UU,"","academy_lms")&&(0,o.registerBlockType)(G$.UU,{title:(0,L.__)("Addition Info","ablocks"),attributes:G$.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){
5344 -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title",K$(i,""),K$(i,"Tablet"),K$(i,"Mobile"),e(t=>K$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title:hover",J$(i,""),J$(i,"Tablet"),J$(i,"Mobile"),e(t=>J$(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-content ul li span,\n\t\t\t{{WRAPPER}} .academy-tabs-content .academy-lists li span",Q$(i,""),Q$(i,"Tablet"),Q$(i,"Mobile"),e(t=>Q$(i,t))),
5345 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-content ul li span:hover,\n\t\t\t{{WRAPPER}} .academy-tabs-content .academy-lists li span:hover",tG(i,""),tG(i,"Tablet"),tG(i,"Mobile"),e(t=>tG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a",eG(i,""),eG(i,"Tablet"),eG(i,"Mobile"),e(t=>eG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a:hover",iG(i,""),iG(i,"Tablet"),iG(i,"Mobile"),e(t=>iG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-tabs-nav li.active",oG(i,""),oG(i,"Tablet"),oG(i,"Mobile"),e(t=>oG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-tabs-nav li.active:hover",aG(i,""),aG(i,"Tablet"),aG(i,"Mobile"),e(t=>aG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)($$,{...t}),(0,I.jsx)(Z$,{...t})]})},save:()=>null});var lG=i(37807);function nG(t){
5346 -const{attributes:e,setAttributes:i}=t,{avatarH:o,avatarW:a,titleTransition:n,titleColor:s,titleTypography:r,titleColorH:b,textTypography:c,textColor:d,textColorH:u,textTransition:p,star_size:m,star_colorH:h,star_color:g,insTypography:f,insColor:y,insColorH:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Avatar Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Avatar Height","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:o,attributeName:"avatarH",setAttributes:i,attributeDefaultValue:lG.Ae}),(0,I.jsx)(_t,{label:(0,L.__)("Avatar Width","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:a,attributeName:"avatarW",setAttributes:i,attributeDefaultValue:lG.Hy})]}),(0,I.jsxs)(V,{title:(0,L.__)("Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,
5353 +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function SG(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:RG.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,
5354 +weight:e.price_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-addition-info",httpMethod:"POST",attributes:e})})})})}SG.propTypes={};const WG=(t,e="")=>{const i=(0,M.Zy)(t?.headingTypography??"",{weight:"400"}),o=t.headingTypographyGlobal?t.headingTypographyGlobal:"";return{color:(0,Hs.qD)(t?.headingColor)||"#111",...(0,U.qD)(i,e,o)}},PG=(t,e="")=>({color:(0,Hs.qD)(t?.headingColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.headingTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),UG=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography??"",{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,Hs.qD)(t?.listColor)||"#111",...(0,U.qD)(i,e,o)}},jG=(t,e="")=>({color:(0,Hs.qD)(t?.listColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.listTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",
5355 +property:"transition-duration",device:e})}),wG=(t,e="")=>{const i=(0,M.Zy)(t?.tabTypography??"",{weight:"400"}),o=t.tabTypographyGlobal?t.tabTypographyGlobal:"";return{color:(0,Hs.qD)(t?.tabColor)||"#111",...(0,U.qD)(i,e,o)}},zG=(t,e="")=>({color:(0,Hs.qD)(t?.tabColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.tabTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),CG=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.listMargin,{unit:"px"});return{...(0,y.qD)(i,e),...(0,c.qD)(o,"margin",e)}},AG=(t,e="")=>({color:(0,Hs.qD)(t?.activeColorH)||"#111"});(0,M.xV)(RG.UU,"","academy_lms")&&(0,o.registerBlockType)(RG.UU,{title:(0,L.__)("Addition Info","ablocks"),attributes:RG.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){
5356 +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title",WG(i,""),WG(i,"Tablet"),WG(i,"Mobile"),e(t=>WG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title:hover",PG(i,""),PG(i,"Tablet"),PG(i,"Mobile"),e(t=>PG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-content ul li span,\n\t\t\t{{WRAPPER}} .academy-tabs-content .academy-lists li span",UG(i,""),UG(i,"Tablet"),UG(i,"Mobile"),e(t=>UG(i,t))),
5357 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-content ul li span:hover,\n\t\t\t{{WRAPPER}} .academy-tabs-content .academy-lists li span:hover",jG(i,""),jG(i,"Tablet"),jG(i,"Mobile"),e(t=>jG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a",wG(i,""),wG(i,"Tablet"),wG(i,"Mobile"),e(t=>wG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a:hover",zG(i,""),zG(i,"Tablet"),zG(i,"Mobile"),e(t=>zG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-tabs-nav li.active",CG(i,""),CG(i,"Tablet"),CG(i,"Mobile"),e(t=>CG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-tabs-nav li.active:hover",AG(i,""),AG(i,"Tablet"),AG(i,"Mobile"),e(t=>AG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(_G,{...t}),(0,I.jsx)(SG,{...t})]})},save:()=>null});var LG=i(37807);function DG(t){
5358 +const{attributes:e,setAttributes:i}=t,{avatarH:o,avatarW:a,titleTransition:n,titleColor:s,titleTypography:r,titleColorH:b,textTypography:c,textColor:d,textColorH:u,textTransition:p,star_size:m,star_colorH:h,star_color:g,insTypography:f,insColor:y,insColorH:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Avatar Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Avatar Height","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:o,attributeName:"avatarH",setAttributes:i,attributeDefaultValue:LG.Ae}),(0,I.jsx)(_t,{label:(0,L.__)("Avatar Width","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:a,attributeName:"avatarW",setAttributes:i,attributeDefaultValue:LG.Hy})]}),(0,I.jsxs)(V,{title:(0,L.__)("Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,
5347 5359 L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"titleColor",attributeValue:s,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"titleColorH",attributeValue:b,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"titleTransition",setAttributes:i})]})})]}),(0,I.jsx)(V,{title:(0,L.__)("Review style","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Icon size","ablocks"),min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,
5348 -attributeValue:m,attributeName:"star_size",setAttributes:i,attributeDefaultValue:lG.Sg}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"textTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Review Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"textColor",attributeValue:d,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"textColorH",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:p,attributeName:"textTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon color","ablocks"),
5360 +attributeValue:m,attributeName:"star_size",setAttributes:i,attributeDefaultValue:LG.Sg}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"textTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Review Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"textColor",attributeValue:d,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"textColorH",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:p,attributeName:"textTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon color","ablocks"),
5349 5361 isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"star_color",attributeValue:g,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"star_colorH",attributeValue:h,setAttributes:i})})})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Instructor Name Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"insTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"insColor",attributeValue:y,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),
5350 -isResponsive:!1,attributeName:"insColorH",attributeValue:T,setAttributes:i})})})]})]})})})}nG.propTypes={};const sG={UU:"ablocks/academy-course-instructor",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleColorH:{type:"string",default:"#999"},titleColor:{type:"string",default:"#999"},textColorH:{type:"string",default:"#111"},textColor:{type:"string",default:"#111"},star_color:{type:"string",default:"#f4c150"},star_colorH:{type:"string",default:"#f4c150"},insColor:{type:"string",default:"#111"},insColorH:{type:"string",default:"#111"},titleTypographyGlobal:{type:"string",default:""},textTypographyGlobal:{type:"string",default:""},insTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",
5362 +isResponsive:!1,attributeName:"insColorH",attributeValue:T,setAttributes:i})})})]})]})})})}DG.propTypes={};const NG={UU:"ablocks/academy-course-instructor",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleColorH:{type:"string",default:"#999"},titleColor:{type:"string",default:"#999"},textColorH:{type:"string",default:"#111"},textColor:{type:"string",default:"#111"},star_color:{type:"string",default:"#f4c150"},star_colorH:{type:"string",default:"#f4c150"},insColor:{type:"string",default:"#111"},insColorH:{type:"string",default:"#111"},titleTypographyGlobal:{type:"string",default:""},textTypographyGlobal:{type:"string",default:""},insTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",
5351 5363 fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},textTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},insTypography:{type:"object",default:{
5352 5364 fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTransition:{type:"number",default:0},textTransition:{type:"number",default:0},avatarH:{type:"object",default:{value:62,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},avatarW:{type:"object",default:{value:62,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},star_size:{type:"object",default:{value:14,valueTablet:"",valueMobile:"",
5353 5365 valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",
5354 5366 borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",
@@ -5356,16 +5368,16 @@
5356 5368 vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",
5357 5369 imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",
5358 5370 zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",
5359 5371 rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",
5360 -maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function rG(t){
5361 -const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:sG.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-course-instructor",httpMethod:"POST",attributes:e})})})})}rG.propTypes={};const bG=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.avatarH,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:62,unitDefaultValue:"px",property:"height",device:e}),...(0,Eb.qD)({attributeValue:t?.avatarW,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:62,unitDefaultValue:"px",
5362 -property:"width",device:e})}),cG=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography??"",{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor)||"#111",...(0,U.qD)(i,e,o)}},dG=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.titleTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),uG=(t,e="")=>{const i=(0,M.Zy)(t?.textTypography??[],{weight:"400"}),o=t.textTypographyGlobal?t.textTypographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor)||"#111",...(0,U.qD)(i,e,o)}},pG=(t,e="")=>({color:(0,Hs.qD)(t?.star_color)||"#111",...(0,Eb.qD)({attributeValue:t?.star_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px",property:"font-size",device:e})}),mG=(t,e="")=>{const i=(0,M.Zy)(t?.insTypography??[],{weight:"400"}),o=t.insTypographyGlobal?t.insTypographyGlobal:"";return{color:(0,
5363 -Hs.qD)(t?.insColor)||"#111",...(0,U.qD)(i,e,o)}};function hG(t){const{attributes:e,setAttributes:i}=t,{heading_typography:o,heading_color:a,heading_transition:n,heading_colorH:s,description_color:r,description_colorH:b,description_typography:c,description_transition:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Overview Heading","ablocks"),initialOpen:!0,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"heading_typography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"heading_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"heading_colorH",attributeValue:s,setAttributes:i
5372 +maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function IG(t){
5373 +const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:NG.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-course-instructor",httpMethod:"POST",attributes:e})})})})}IG.propTypes={};const VG=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.avatarH,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:62,unitDefaultValue:"px",property:"height",device:e}),...(0,Eb.qD)({attributeValue:t?.avatarW,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:62,unitDefaultValue:"px",
5374 +property:"width",device:e})}),OG=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography??"",{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor)||"#111",...(0,U.qD)(i,e,o)}},YG=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)||"#111",...(0,Eb.qD)({attributeValue:t?.titleTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),XG=(t,e="")=>{const i=(0,M.Zy)(t?.textTypography??[],{weight:"400"}),o=t.textTypographyGlobal?t.textTypographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor)||"#111",...(0,U.qD)(i,e,o)}},BG=(t,e="")=>({color:(0,Hs.qD)(t?.star_color)||"#111",...(0,Eb.qD)({attributeValue:t?.star_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px",property:"font-size",device:e})}),EG=(t,e="")=>{const i=(0,M.Zy)(t?.insTypography??[],{weight:"400"}),o=t.insTypographyGlobal?t.insTypographyGlobal:"";return{color:(0,
5375 +Hs.qD)(t?.insColor)||"#111",...(0,U.qD)(i,e,o)}};function FG(t){const{attributes:e,setAttributes:i}=t,{heading_typography:o,heading_color:a,heading_transition:n,heading_colorH:s,description_color:r,description_colorH:b,description_typography:c,description_transition:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Overview Heading","ablocks"),initialOpen:!0,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"heading_typography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"heading_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"heading_colorH",attributeValue:s,setAttributes:i
5364 5376 }),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"heading_transition",setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Description Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"description_typography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"description_color",attributeValue:r,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"description_colorH",attributeValue:b,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:d,attributeName:"description_transition",
5365 -setAttributes:i})]})})]})]})})})}(0,M.xV)(sG.UU,"","academy_lms")&&(0,o.registerBlockType)(sG.UU,{title:(0,L.__)("Course Instructor","ablocks"),attributes:sG.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__thumbnail img",bG(i,""),bG(i,"Tablet"),bG(i,"Mobile"),e(t=>bG(i,t))),
5366 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__title,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-title",cG(i,""),cG(i,"Tablet"),cG(i,"Mobile"),e(t=>cG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__title:hover,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-title:hover",dG(i,""),dG(i,"Tablet"),dG(i,"Mobile"),e(t=>dG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating span",uG(i,""),uG(i,"Tablet"),uG(i,"Mobile"),e(t=>uG(i,t))),
5367 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating .academy-group-star .academy-icon:before",pG(i,""),pG(i,"Tablet"),pG(i,"Mobile"),e(t=>pG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-name a",mG(i,""),mG(i,"Tablet"),mG(i,"Mobile"),e(t=>mG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(nG,{...t}),(0,I.jsx)(rG,{...t})]})},save:()=>null}),hG.propTypes={};const gG={UU:"ablocks/academy-course-description",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},heading_color:{type:"string",default:"#111"},heading_colorH:{type:"string",default:"#111"},description_color:{type:"string",default:"#111"},description_colorH:{type:"string",default:"#111"},heading_typographyGlobal:{type:"string",default:""},
5377 +setAttributes:i})]})})]})]})})})}(0,M.xV)(NG.UU,"","academy_lms")&&(0,o.registerBlockType)(NG.UU,{title:(0,L.__)("Course Instructor","ablocks"),attributes:NG.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__thumbnail img",VG(i,""),VG(i,"Tablet"),VG(i,"Mobile"),e(t=>VG(i,t))),
5378 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__title,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-title",OG(i,""),OG(i,"Tablet"),OG(i,"Mobile"),e(t=>OG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__title:hover,\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-title:hover",YG(i,""),YG(i,"Tablet"),YG(i,"Mobile"),e(t=>YG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating span",XG(i,""),XG(i,"Tablet"),XG(i,"Mobile"),e(t=>XG(i,t))),
5379 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating .academy-group-star .academy-icon:before",BG(i,""),BG(i,"Tablet"),BG(i,"Mobile"),e(t=>BG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-name a",EG(i,""),EG(i,"Tablet"),EG(i,"Mobile"),e(t=>EG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(DG,{...t}),(0,I.jsx)(IG,{...t})]})},save:()=>null}),FG.propTypes={};const qG={UU:"ablocks/academy-course-description",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},heading_color:{type:"string",default:"#111"},heading_colorH:{type:"string",default:"#111"},description_color:{type:"string",default:"#111"},description_colorH:{type:"string",default:"#111"},heading_typographyGlobal:{type:"string",default:""},
5368 5380 description_typographyGlobal:{type:"string",default:""},heading_typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},description_typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",
5369 5381 fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},heading_transition:{type:"number",default:0},description_transition:{type:"number",default:0},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",
5370 5382 bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",
5371 5383 bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",
@@ -5373,17 +5385,17 @@
5373 5385 imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",
5374 5386 imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",
5375 5387 scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,
5376 5388 xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",
5377 -blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function fG(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:gG.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-course-description",httpMethod:"POST",attributes:e})})})})}
5378 -fG.propTypes={};const yG=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typography??"",{weight:"400"}),o=t.heading_typographyGlobal?t.heading_typographyGlobal:"";return{color:(0,Hs.qD)(t?.heading_color)||"#111",...(0,U.qD)(i,e,o)}},TG=(t,e="")=>({color:(0,Hs.qD)(t?.heading_colorH)||"#111",...(0,Eb.qD)({attributeValue:t?.heading_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),HG=(t,e="")=>{const i=(0,M.Zy)(t?.description_color??"",{weight:"400"}),o=t.description_colorGlobal?t.description_colorGlobal:"";return{color:(0,Hs.qD)(t?.description_color)||"#111",...(0,U.qD)(i,e,o)}},MG=(t,e="")=>({color:(0,Hs.qD)(t?.description_colorH)||"#444",...(0,Eb.qD)({attributeValue:t?.description_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});function xG(t){
5389 +blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function $G(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:qG.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-course-description",httpMethod:"POST",attributes:e})})})})}
5390 +$G.propTypes={};const GG=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typography??"",{weight:"400"}),o=t.heading_typographyGlobal?t.heading_typographyGlobal:"";return{color:(0,Hs.qD)(t?.heading_color)||"#111",...(0,U.qD)(i,e,o)}},ZG=(t,e="")=>({color:(0,Hs.qD)(t?.heading_colorH)||"#111",...(0,Eb.qD)({attributeValue:t?.heading_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),KG=(t,e="")=>{const i=(0,M.Zy)(t?.description_color??"",{weight:"400"}),o=t.description_colorGlobal?t.description_colorGlobal:"";return{color:(0,Hs.qD)(t?.description_color)||"#111",...(0,U.qD)(i,e,o)}},JG=(t,e="")=>({color:(0,Hs.qD)(t?.description_colorH)||"#444",...(0,Eb.qD)({attributeValue:t?.description_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});function QG(t){
5379 5391 const{attributes:e,setAttributes:i}=t,{contentTransition:o,contentBgH:a,contentBg:n,iconSize:s,iconColor:r,iconColorH:b,listTypography:c,listColor:d,listColorH:u,shareBg:p,shareBgH:m,shareColor:h,shareColorH:g,shareTypography:f,sharePadding:y,shareBorder:T,wishlistBg:H,wishlistBgH:M,wishlistColor:x,wishlistColorH:k,buttonIconSize:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Content Style","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:s,attributeName:"iconSize",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Button Icon Size","ablocks"),min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:v,attributeName:"buttonIconSize",setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{
5380 5392 children:[(0,I.jsx)(at,{label:(0,L.__)("Content Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"contentBg",attributeValue:n,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"contentBgH",attributeValue:a,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:o,attributeName:"contentTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"iconColor",attributeValue:r,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,
5381 5393 L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"iconColorH",attributeValue:b,setAttributes:i})})})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("List Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:d,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"listColorH",attributeValue:u,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Share Button","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"shareTypography",attributeValue:f,setAttributes:i,
5382 5394 isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"shareColor",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"shareBg",attributeValue:p,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"shareColorH",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"shareBgH",attributeValue:m,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"shareBorder",attributeValue:T,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),
5383 5395 isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"sharePadding",attributeValue:y,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("WishList Button","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"wishlistColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"wishlistBg",attributeValue:H,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"wishlistColorH",attributeValue:k,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"wishlistBgH",attributeValue:M,setAttributes:i})]})})]})]})})})}(0,
5384 -M.xV)(gG.UU,"","academy_lms")&&(0,o.registerBlockType)(gG.UU,{title:(0,L.__)("Course Description","ablocks"),attributes:gG.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description-title",yG(i,""),yG(i,"Tablet"),yG(i,"Mobile"),e(t=>yG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description-title:hover",TG(i,""),TG(i,"Tablet"),TG(i,"Mobile"),e(t=>TG(i,t))),
5385 -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description p\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--description ",HG(i,""),HG(i,"Tablet"),HG(i,"Mobile"),e(t=>HG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description p:hover\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--description:hover",MG(i,""),MG(i,"Tablet"),MG(i,"Mobile"),e(t=>MG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(hG,{...t}),(0,I.jsx)(fG,{...t})]})},save:()=>null}),i(61392),xG.propTypes={};const kG={UU:"ablocks/academy-enroll-content",uK:{block_id:{type:"string",default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},contentBg:{type:"string",default:"#fff"},contentBgH:{type:"string",default:"#fff"},iconColor:{type:"string",default:"#595959"},iconColorH:{type:"string",default:"#595959"},listColor:{type:"string",default:"#595959"},listColorH:{
5396 +M.xV)(qG.UU,"","academy_lms")&&(0,o.registerBlockType)(qG.UU,{title:(0,L.__)("Course Description","ablocks"),attributes:qG.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description-title",GG(i,""),GG(i,"Tablet"),GG(i,"Mobile"),e(t=>GG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description-title:hover",ZG(i,""),ZG(i,"Tablet"),ZG(i,"Mobile"),e(t=>ZG(i,t))),
5397 +t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description p\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--description ",KG(i,""),KG(i,"Tablet"),KG(i,"Mobile"),e(t=>KG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description p:hover\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--description:hover",JG(i,""),JG(i,"Tablet"),JG(i,"Mobile"),e(t=>JG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(FG,{...t}),(0,I.jsx)($G,{...t})]})},save:()=>null}),i(61392),QG.propTypes={};const tZ={UU:"ablocks/academy-enroll-content",uK:{block_id:{type:"string",default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},contentBg:{type:"string",default:"#fff"},contentBgH:{type:"string",default:"#fff"},iconColor:{type:"string",default:"#595959"},iconColorH:{type:"string",default:"#595959"},listColor:{type:"string",default:"#595959"},listColorH:{
5386 5398 type:"string",default:"#595959"},shareColor:{type:"string",default:"#444"},shareColorH:{type:"string",default:"#444"},shareBg:{type:"string",default:"#fff"},shareBgH:{type:"string",default:"#fff"},wishlistColor:{type:"string",default:"#fff"},wishlistColorH:{type:"string",default:"#fff"},wishlistBg:{type:"string",default:"#7b68ee"},wishlistBgH:{type:"string",default:"#7b68ee"},shareTypographyGlobal:{type:"string",default:""},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",
5387 5399 wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},shareTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},shareBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",
5388 5400 leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",
5389 5401 unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},sharePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},contentTransition:{type:"number",default:0},iconSize:{type:"object",default:{value:14,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},buttonIconSize:{
@@ -5394,23 +5406,23 @@
5394 5406 imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},
5395 5407 _zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,
5396 5408 rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",
5397 5409 maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",
5398 -default:""}}};function vG(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:kG.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-enroll-content",httpMethod:"POST",attributes:e})})})})}vG.propTypes={};const _G=(t,e="")=>({background:(0,Hs.qD)(t?.contentBg)||"#fff"}),RG=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)||"#595959",...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px",property:"font-size",device:e})
5399 -}),SG=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography??[],{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,Hs.qD)(t?.listColor)||"#111",...(0,U.qD)(i,e,o)}},WG=(t,e="")=>{const i=(0,M.Zy)(t?.shareTypography??[],{weight:"400"}),o=t.shareTypographyGlobal?t.shareTypographyGlobal:"",a=(0,M.Zy)(t?.sharePadding,{unit:"px"}),l=(0,M.Zy)(t.shareBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.shareColor)||"#fff",background:(0,Hs.qD)(t?.shareBg)||"#7b68ee",...(0,U.qD)(i,e,o),...(0,y.qD)(l,e),...(0,c.qD)(a,"padding",e)}},PG=(t,e="")=>({color:(0,Hs.qD)(t?.wishlistColor)||"#fff",background:(0,Hs.qD)(t?.wishlistBg)||"#7b68ee"}),UG=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.buttonIconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px",property:"font-size",device:e})});(0,M.xV)(kG.UU,"","academy_lms")&&(0,o.registerBlockType)(kG.UU,{title:(0,L.__)("Enroll Content","ablocks"),attributes:kG.uK,icon:(0,
5400 -I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__content-lists",_G(i,""),_G(i,"Tablet"),_G(i,"Mobile"),e(t=>_G(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__content-lists li .academy-icon,\n\t\t\t{{WRAPPER}} .academy-icon--level:before,\n\t\t\t{{WRAPPER}} .academy-icon--video-lesson:before",RG(i,""),RG(i,"Tablet"),RG(i,"Mobile"),e(t=>RG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__content-lists li",SG(i,""),SG(i,"Tablet"),SG(i,"Mobile"),e(t=>SG(i,t))),
5401 -t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-btn",WG(i,""),WG(i,"Tablet"),WG(i,"Mobile"),e(t=>WG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-course__wishlist",PG(i,""),PG(i,"Tablet"),PG(i,"Mobile"),e(t=>PG(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-btn i.academy-icon",UG(i,""),UG(i,"Tablet"),UG(i,"Mobile"),e(t=>UG(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(xG,{...t}),(0,I.jsx)(vG,{...t})]})},save:()=>null});const jG=window.wp.plugins,wG=window.wp.editPost,zG=window.wp.keyboardShortcuts;var CG=i(84391)
5402 -;const AG=[...i(76480).rG,"ablocks/academy-courses","ablocks/container","ablocks/heading","ablocks/button","ablocks/icon","ablocks/image","ablocks/image-scroll","ablocks/star-ratings","ablocks/divider","ablocks/paragraph","ablocks/spacer","ablocks/video","ablocks/counter","ablocks/tabs","ablocks/tabs-child","ablocks/accordion","ablocks/single-accordion","ablocks/image-comparison","ablocks/toggle","ablocks/toggle-child","ablocks/lists","ablocks/lottie-animation","ablocks/countdown","ablocks/news-ticker","ablocks/modal","ablocks/social-shares","ablocks/content-timeline","ablocks/content-timeline-child","ablocks/carousel","ablocks/chart","ablocks/dual-button","ablocks/price-menu","ablocks/price-menu-item","ablocks/table","ablocks/table-cell","ablocks/table-row","ablocks/table-of-content","ablocks/map","ablocks/svg-draw","ablocks/menu","ablocks/menu-child-mega","ablocks/menu-child-sub","ablocks/menu-item","ablocks/info-box","ablocks/filterable-cards","ablocks/filterable-cards-item","ablocks/advance-lists","ablocks/advance-list-item","ablocks/form","ablocks/form-name","ablocks/form-email","ablocks/form-textarea"]
5403 -;M.W0?.enabled_block_copy_paste_style&&(0,Fr.KU)()&&(0,jG.registerPlugin)("ablocks-block-copy-paste-styles",{render:()=>{const{registerShortcut:t}=(0,r.useDispatch)(zG.store);return(0,a.useEffect)(()=>{t({name:"ablocks/copy-styles",category:"block",description:(0,L.__)("Copy Block Styles","ablocks"),keyCombination:{modifier:"primaryShift",character:"c"}}),t({name:"ablocks/paste-styles",category:"block",description:(0,L.__)("Paste Block Styles","ablocks"),keyCombination:{modifier:"primaryShift",character:"v"}})},[]),(0,zG.useShortcut)("ablocks/copy-styles",t=>{(0,CG._)(),t.preventDefault()}),(0,zG.useShortcut)("ablocks/paste-styles",t=>{(0,CG.G)(),t.preventDefault()}),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wG.PluginBlockSettingsMenuItem,{allowedBlocks:AG,icon:"admin-page",label:(0,L.__)("aBlocks Copy Styles","ablocks"),onClick:CG._}),(0,I.jsx)(wG.PluginBlockSettingsMenuItem,{allowedBlocks:AG,icon:"admin-appearance",label:(0,L.__)("aBlocks Paste Styles","ablocks"),onClick:CG.G})]})}
5404 -}),(0,jG.registerPlugin)("ablocks-editor-bottom-panel-section",{render:()=>((0,a.useEffect)(()=>{const t=(0,r.select)("core/editor").getCurrentPostType();if(!["post","page"].includes(t))return()=>{};const e=(0,r.subscribe)(()=>{const t=()=>{const e=document.querySelector(".block-editor-block-list__layout, .is-root-container");if(!e)return;let i=document.getElementById("ablocks-add-section");if(i){const i=e.children;if("ablocks-add-section"!==i[i.length-1].id){const e=document.getElementById("ablocks-add-section");e.removeAttribute("id"),e?.remove?.(),t()}}else{i=document.createElement("div"),i.id="ablocks-add-section",i.className="ablocks-add-section";const t=document.createElement("div");t.className="ablocks-add-section-wrapper";const a=document.createElement("button");a.innerHTML="<span class='ablocks-icon ablocks-icon--block-container'></span>",a.onclick=()=>{(0,r.dispatch)("core/block-editor").insertBlock((0,o.createBlock)("ablocks/container"))},t.append(a)
5410 +default:""}}};function eZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:tZ.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/academy-enroll-content",httpMethod:"POST",attributes:e})})})})}eZ.propTypes={};const iZ=(t,e="")=>({background:(0,Hs.qD)(t?.contentBg)||"#fff"}),oZ=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)||"#595959",...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px",property:"font-size",device:e})
5411 +}),aZ=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography??[],{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,Hs.qD)(t?.listColor)||"#111",...(0,U.qD)(i,e,o)}},lZ=(t,e="")=>{const i=(0,M.Zy)(t?.shareTypography??[],{weight:"400"}),o=t.shareTypographyGlobal?t.shareTypographyGlobal:"",a=(0,M.Zy)(t?.sharePadding,{unit:"px"}),l=(0,M.Zy)(t.shareBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.shareColor)||"#fff",background:(0,Hs.qD)(t?.shareBg)||"#7b68ee",...(0,U.qD)(i,e,o),...(0,y.qD)(l,e),...(0,c.qD)(a,"padding",e)}},nZ=(t,e="")=>({color:(0,Hs.qD)(t?.wishlistColor)||"#fff",background:(0,Hs.qD)(t?.wishlistBg)||"#7b68ee"}),sZ=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.buttonIconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px",property:"font-size",device:e})});(0,M.xV)(tZ.UU,"","academy_lms")&&(0,o.registerBlockType)(tZ.UU,{title:(0,L.__)("Enroll Content","ablocks"),attributes:tZ.uK,icon:(0,
5412 +I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__content-lists",iZ(i,""),iZ(i,"Tablet"),iZ(i,"Mobile"),e(t=>iZ(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__content-lists li .academy-icon,\n\t\t\t{{WRAPPER}} .academy-icon--level:before,\n\t\t\t{{WRAPPER}} .academy-icon--video-lesson:before",oZ(i,""),oZ(i,"Tablet"),oZ(i,"Mobile"),e(t=>oZ(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__content-lists li",aZ(i,""),aZ(i,"Tablet"),aZ(i,"Mobile"),e(t=>aZ(i,t))),
5413 +t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-btn",lZ(i,""),lZ(i,"Tablet"),lZ(i,"Mobile"),e(t=>lZ(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-course__wishlist",nZ(i,""),nZ(i,"Tablet"),nZ(i,"Mobile"),e(t=>nZ(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-btn i.academy-icon",sZ(i,""),sZ(i,"Tablet"),sZ(i,"Mobile"),e(t=>sZ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(QG,{...t}),(0,I.jsx)(eZ,{...t})]})},save:()=>null});const rZ=window.wp.plugins,bZ=window.wp.editPost,cZ=window.wp.keyboardShortcuts;var dZ=i(62598)
5414 +;const uZ=[...i(76480).rG,"ablocks/academy-courses","ablocks/container","ablocks/heading","ablocks/button","ablocks/icon","ablocks/image","ablocks/image-scroll","ablocks/star-ratings","ablocks/divider","ablocks/paragraph","ablocks/spacer","ablocks/video","ablocks/counter","ablocks/tabs","ablocks/tabs-child","ablocks/accordion","ablocks/single-accordion","ablocks/image-comparison","ablocks/toggle","ablocks/toggle-child","ablocks/lists","ablocks/lottie-animation","ablocks/countdown","ablocks/news-ticker","ablocks/modal","ablocks/social-shares","ablocks/content-timeline","ablocks/content-timeline-child","ablocks/carousel","ablocks/chart","ablocks/dual-button","ablocks/price-menu","ablocks/price-menu-item","ablocks/table","ablocks/table-cell","ablocks/table-row","ablocks/table-of-content","ablocks/map","ablocks/svg-draw","ablocks/menu","ablocks/menu-child-mega","ablocks/menu-child-sub","ablocks/menu-item","ablocks/info-box","ablocks/filterable-cards","ablocks/filterable-cards-item","ablocks/advance-lists","ablocks/advance-list-item","ablocks/form","ablocks/form-name","ablocks/form-email","ablocks/form-textarea"]
5415 +;M.W0?.enabled_block_copy_paste_style&&(0,Fr.KU)()&&(0,rZ.registerPlugin)("ablocks-block-copy-paste-styles",{render:()=>{const{registerShortcut:t}=(0,r.useDispatch)(cZ.store);return(0,a.useEffect)(()=>{t({name:"ablocks/copy-styles",category:"block",description:(0,L.__)("Copy Block Styles","ablocks"),keyCombination:{modifier:"primaryShift",character:"c"}}),t({name:"ablocks/paste-styles",category:"block",description:(0,L.__)("Paste Block Styles","ablocks"),keyCombination:{modifier:"primaryShift",character:"v"}})},[]),(0,cZ.useShortcut)("ablocks/copy-styles",t=>{(0,dZ._)(),t.preventDefault()}),(0,cZ.useShortcut)("ablocks/paste-styles",t=>{(0,dZ.G)(),t.preventDefault()}),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(bZ.PluginBlockSettingsMenuItem,{allowedBlocks:uZ,icon:"admin-page",label:(0,L.__)("aBlocks Copy Styles","ablocks"),onClick:dZ._}),(0,I.jsx)(bZ.PluginBlockSettingsMenuItem,{allowedBlocks:uZ,icon:"admin-appearance",label:(0,L.__)("aBlocks Paste Styles","ablocks"),onClick:dZ.G})]})}
5416 +}),(0,rZ.registerPlugin)("ablocks-editor-bottom-panel-section",{render:()=>((0,a.useEffect)(()=>{const t=(0,r.select)("core/editor").getCurrentPostType();if(!["post","page"].includes(t))return()=>{};const e=(0,r.subscribe)(()=>{const t=()=>{const e=document.querySelector(".block-editor-block-list__layout, .is-root-container");if(!e)return;let i=document.getElementById("ablocks-add-section");if(i){const i=e.children;if("ablocks-add-section"!==i[i.length-1].id){const e=document.getElementById("ablocks-add-section");e.removeAttribute("id"),e?.remove?.(),t()}}else{i=document.createElement("div"),i.id="ablocks-add-section",i.className="ablocks-add-section";const t=document.createElement("div");t.className="ablocks-add-section-wrapper";const a=document.createElement("button");a.innerHTML="<span class='ablocks-icon ablocks-icon--block-container'></span>",a.onclick=()=>{(0,r.dispatch)("core/block-editor").insertBlock((0,o.createBlock)("ablocks/container"))},t.append(a)
5405 5417 ;const l=document.createElement("button");l.innerHTML="<span class='ablocks-icon ablocks-icon--block-heading'></span>",l.onclick=()=>{(0,r.dispatch)("core/block-editor").insertBlock((0,o.createBlock)("ablocks/heading"))},t.append(l);const n=document.createElement("button");n.innerHTML="<span class='ablocks-icon ablocks-icon--block-button'></span>",n.onclick=()=>{(0,r.dispatch)("core/block-editor").insertBlock((0,o.createBlock)("ablocks/button"))},t.append(n);const s=document.createElement("button");s.innerHTML="<span class='ablocks-icon ablocks-icon--info-box'></span>",s.onclick=()=>{(0,r.dispatch)("core/block-editor").insertBlock((0,o.createBlock)("ablocks/info-box"))},t.append(s);const b=document.createElement("button");b.innerHTML="<span class='ablocks-icon ablocks-icon--add'></span>",b.onclick=()=>{const t=document.querySelector(".block-editor-inserter__toggle");t?t.click():(0,r.dispatch)("core/edit-post").setIsInserterOpened(!0)},t.append(b);const c=document.createElement("span")
5406 -;c.className="ablocks-footer-section--pipe",c.onclick=()=>{},t.append(c);const d=document.createElement("button");d.id="ablocks-demo-importer-bottom-btn",d.innerHTML="<span class='ablocks-icon ablocks-icon--performance'></span>",d.onclick=()=>{},t.append(d),i.append(t),e.append(i)}};t()});return()=>{e()}},[]),(0,I.jsx)(I.Fragment,{}))});const LG={border:"none",background:"var(--abpm-btn-bg, #f3f4f6)",borderRadius:6,width:30,height:30,cursor:"pointer",fontSize:14,flex:"none"},DG={height:34,padding:"0 8px",borderRadius:6,border:"1px solid var(--abpm-border, #dcdfe6)",boxSizing:"border-box"},NG=({value:t=[],onChange:e})=>{const i=Array.isArray(t)?t:[],o=(t,o,a)=>e(i.map((e,i)=>i===t?{...e,[o]:a}:e)),a=(t,o)=>{const a=t+o;if(a<0||a>=i.length)return;const l=[...i];[l[t],l[a]]=[l[a],l[t]],e(l)};return(0,I.jsxs)("div",{className:"ablocks-bpm",children:[(0,I.jsxs)("div",{className:"ablocks-bpm__head",style:{display:"flex",gap:8,marginBottom:6,fontSize:11,fontWeight:600,
5407 -textTransform:"uppercase",letterSpacing:"0.03em",color:"var(--abpm-muted, #6b7280)"},children:[(0,I.jsx)("span",{style:{flex:1},children:(0,L.__)("Label","ablocks")}),(0,I.jsx)("span",{style:{width:90},children:(0,L.__)("Min","ablocks")}),(0,I.jsx)("span",{style:{width:90},children:(0,L.__)("Max","ablocks")}),(0,I.jsx)("span",{style:{width:98}})]}),0===i.length&&(0,I.jsx)("p",{style:{margin:"0 0 8px",color:"var(--abpm-muted, #6b7280)",fontSize:13},children:(0,L.__)("No custom breakpoints yet.","ablocks")}),i.map((t,l)=>{return(0,I.jsxs)("div",{className:"ablocks-bpm__row",style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,I.jsx)("input",{type:"text",placeholder:(0,L.__)("e.g. Laptop","ablocks"),value:t.label||"",onChange:t=>o(l,"label",t.target.value),style:{...DG,flex:1}}),(0,I.jsx)("input",{type:"number",placeholder:"–",value:t.minWidth??"",onChange:t=>o(l,"minWidth",t.target.value),style:{...DG,width:90}}),(0,I.jsx)("input",{type:"number",placeholder:"–",
5408 -value:(n=t,void 0!==n.maxWidth&&""!==n.maxWidth?n.maxWidth:n.width??""),onChange:t=>o(l,"maxWidth",t.target.value),style:{...DG,width:90}}),(0,I.jsx)("button",{type:"button",title:(0,L.__)("Move up","ablocks"),disabled:0===l,onClick:()=>a(l,-1),style:{...LG,opacity:0===l?.4:1},children:"↑"}),(0,I.jsx)("button",{type:"button",title:(0,L.__)("Move down","ablocks"),disabled:l===i.length-1,onClick:()=>a(l,1),style:{...LG,opacity:l===i.length-1?.4:1},children:"↓"}),(0,I.jsx)("button",{type:"button",title:(0,L.__)("Remove","ablocks"),onClick:()=>(t=>e(i.filter((e,i)=>i!==t)))(l),style:{...LG,color:"#ef4444"},children:"×"})]},t.key||l);var n}),(0,I.jsx)("button",{type:"button",onClick:()=>e([...i,{key:"k"+Math.random().toString(36).slice(2,8),label:"",minWidth:"",maxWidth:""}]),style:{border:"1px dashed var(--abpm-border, #c7cbd6)",background:"transparent",borderRadius:8,padding:"8px 14px",cursor:"pointer",fontWeight:600,color:"var(--abpm-accent, #4f46e5)"},children:(0,
5409 -L.__)("+ Add breakpoint","ablocks")}),(0,I.jsx)("p",{style:{margin:"8px 0 0",color:"var(--abpm-muted, #6b7280)",fontSize:12},children:(0,L.__)("Set a min and/or max width. Order controls the cascade (top = widest).","ablocks")})]})},IG={bar:{position:"fixed",top:"58px",left:"50%",transform:"translateX(-50%)",zIndex:30,display:"flex",alignItems:"center",gap:"2px",padding:"3px",background:"#fff",border:"1px solid #e6e8ef",borderRadius:"10px",boxShadow:"0 4px 16px rgba(17,24,39,0.12)"},item:t=>({display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:"34px",height:"30px",padding:"0 8px",border:0,background:t?"#4f46e5":"transparent",color:t?"#fff":"#4b5563",borderRadius:"7px",cursor:"pointer",fontSize:"12px",fontWeight:600,lineHeight:1}),manage:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",border:0,borderLeft:"1px solid #e6e8ef",marginLeft:"2px",background:"transparent",cursor:"pointer",color:"#6b7280"}},VG=t=>(0,
5410 -r.dispatch)("core/edit-post")?.__experimentalSetPreviewDeviceType?.(t);(0,jG.registerPlugin)("ablocks-breakpoint-switcher",{render:()=>{const{wpDevice:t,customDevice:e,devices:i}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||"Desktop",customDevice:t(M.rb)?.getCustomDevice()||null,devices:t(M.rb)?.getDevices()||[]}),[]),o="Desktop"!==t?t:e||"Desktop",l=i.find(t=>t.id===o),n=l&&!$.includes(l.id)?J(l):null,[s,b]=(0,a.useState)(!1),[c,d]=(0,a.useState)([]),[u,p]=(0,a.useState)(!1),m=(0,I.jsxs)("div",{className:"ablocks-bp-switcher",style:IG.bar,children:[i.map(t=>{const e=(t=>t.min&&t.max?`${t.min}–${t.max}px`:t.max?`≤ ${t.max}px`:t.min?`≥ ${t.min}px`:"")(t);return(0,I.jsx)("button",{type:"button",style:IG.item(o===t.id),title:e?`${t.label} (${e})`:t.label,onClick:()=>(t=>{$.includes(t.id)?((0,r.dispatch)(M.rb).setCustomDevice(null),VG(t.id)):(VG("Desktop"),(0,r.dispatch)(M.rb).setCustomDevice(t.id))})(t),children:$.includes(t.id)?(0,
5411 -I.jsx)("span",{className:`ablocks-icon ablocks-icon--${G(t.id)}`,style:{fontSize:"15px",lineHeight:1}}):(0,I.jsx)("span",{style:{fontSize:"11px",fontWeight:700},children:t.max||t.min})},t.id)}),(0,I.jsx)("button",{type:"button",style:IG.manage,title:(0,L.__)("Manage breakpoints","ablocks"),onClick:async()=>{const t=await(0,M.In)({action:"ablocks/breakpoints/get"}).then(t=>t?.data?.data);d(Array.isArray(t?.custom)?t.custom:[]),b(!0)},children:(0,I.jsx)("span",{className:"dashicons dashicons-admin-generic",style:{fontSize:"16px",width:"16px",height:"16px"}})})]});return(0,I.jsxs)(I.Fragment,{children:[(0,no.createPortal)(m,document.body),n&&(0,no.createPortal)((0,I.jsx)("style",{children:`\n\t\t\t\t\t\t.components-resizable-box__container:has( .block-editor-iframe__container ) {\n\t\t\t\t\t\t\twidth: ${n}px !important;\n\t\t\t\t\t\t\tmax-width: 100% !important;\n\t\t\t\t\t\t\tmargin: 0 auto !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t`}),document.head),s&&(0,I.jsxs)(N.Modal,{title:(0,
5412 -L.__)("Responsive Breakpoints","ablocks"),onRequestClose:()=>b(!1),className:"ablocks-bp-modal",children:[(0,I.jsx)(NG,{value:c,onChange:d}),(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:16},children:[(0,I.jsx)(N.Button,{variant:"tertiary",onClick:()=>b(!1),children:(0,L.__)("Cancel","ablocks")}),(0,I.jsx)(N.Button,{variant:"primary",isBusy:u,onClick:async()=>{p(!0);try{await(t=c,(0,M.In)({action:"ablocks/breakpoints/save",breakpoints:JSON.stringify(t)}).then(t=>{const e=t?.data?.data;return e&&Array.isArray(e.devices)&&(0,r.dispatch)(M.rb).setDevices(e.devices),e}))}finally{p(!1),b(!1)}var t},children:(0,L.__)("Save breakpoints","ablocks")})]})]})]})}}),"1.6.3"===window.ABlocksGlobal?.has_required_block_attribute_migration&&(0,b.addFilter)("blocks.getBlockAttributes","ablocks/migrate-attribute",(t={},e)=>{const i={...t};switch(e.name){case"ablocks/container":{
5418 +;c.className="ablocks-footer-section--pipe",c.onclick=()=>{},t.append(c);const d=document.createElement("button");d.id="ablocks-demo-importer-bottom-btn",d.innerHTML="<span class='ablocks-icon ablocks-icon--performance'></span>",d.onclick=()=>{},t.append(d),i.append(t),e.append(i)}};t()});return()=>{e()}},[]),(0,I.jsx)(I.Fragment,{}))});const pZ={border:"none",background:"var(--abpm-btn-bg, #f3f4f6)",borderRadius:6,width:30,height:30,cursor:"pointer",fontSize:14,flex:"none"},mZ={height:34,padding:"0 8px",borderRadius:6,border:"1px solid var(--abpm-border, #dcdfe6)",boxSizing:"border-box"},hZ=({value:t=[],onChange:e})=>{const i=Array.isArray(t)?t:[],o=(t,o,a)=>e(i.map((e,i)=>i===t?{...e,[o]:a}:e)),a=(t,o)=>{const a=t+o;if(a<0||a>=i.length)return;const l=[...i];[l[t],l[a]]=[l[a],l[t]],e(l)};return(0,I.jsxs)("div",{className:"ablocks-bpm",children:[(0,I.jsxs)("div",{className:"ablocks-bpm__head",style:{display:"flex",gap:8,marginBottom:6,fontSize:11,fontWeight:600,
5419 +textTransform:"uppercase",letterSpacing:"0.03em",color:"var(--abpm-muted, #6b7280)"},children:[(0,I.jsx)("span",{style:{flex:1},children:(0,L.__)("Label","ablocks")}),(0,I.jsx)("span",{style:{width:90},children:(0,L.__)("Min","ablocks")}),(0,I.jsx)("span",{style:{width:90},children:(0,L.__)("Max","ablocks")}),(0,I.jsx)("span",{style:{width:98}})]}),0===i.length&&(0,I.jsx)("p",{style:{margin:"0 0 8px",color:"var(--abpm-muted, #6b7280)",fontSize:13},children:(0,L.__)("No custom breakpoints yet.","ablocks")}),i.map((t,l)=>{return(0,I.jsxs)("div",{className:"ablocks-bpm__row",style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,I.jsx)("input",{type:"text",placeholder:(0,L.__)("e.g. Laptop","ablocks"),value:t.label||"",onChange:t=>o(l,"label",t.target.value),style:{...mZ,flex:1}}),(0,I.jsx)("input",{type:"number",placeholder:"–",value:t.minWidth??"",onChange:t=>o(l,"minWidth",t.target.value),style:{...mZ,width:90}}),(0,I.jsx)("input",{type:"number",placeholder:"–",
5420 +value:(n=t,void 0!==n.maxWidth&&""!==n.maxWidth?n.maxWidth:n.width??""),onChange:t=>o(l,"maxWidth",t.target.value),style:{...mZ,width:90}}),(0,I.jsx)("button",{type:"button",title:(0,L.__)("Move up","ablocks"),disabled:0===l,onClick:()=>a(l,-1),style:{...pZ,opacity:0===l?.4:1},children:"↑"}),(0,I.jsx)("button",{type:"button",title:(0,L.__)("Move down","ablocks"),disabled:l===i.length-1,onClick:()=>a(l,1),style:{...pZ,opacity:l===i.length-1?.4:1},children:"↓"}),(0,I.jsx)("button",{type:"button",title:(0,L.__)("Remove","ablocks"),onClick:()=>(t=>e(i.filter((e,i)=>i!==t)))(l),style:{...pZ,color:"#ef4444"},children:"×"})]},t.key||l);var n}),(0,I.jsx)("button",{type:"button",onClick:()=>e([...i,{key:"k"+Math.random().toString(36).slice(2,8),label:"",minWidth:"",maxWidth:""}]),style:{border:"1px dashed var(--abpm-border, #c7cbd6)",background:"transparent",borderRadius:8,padding:"8px 14px",cursor:"pointer",fontWeight:600,color:"var(--abpm-accent, #4f46e5)"},children:(0,
5421 +L.__)("+ Add breakpoint","ablocks")}),(0,I.jsx)("p",{style:{margin:"8px 0 0",color:"var(--abpm-muted, #6b7280)",fontSize:12},children:(0,L.__)("Set a min and/or max width. Order controls the cascade (top = widest).","ablocks")})]})},gZ={bar:{position:"fixed",top:"58px",left:"50%",transform:"translateX(-50%)",zIndex:30,display:"flex",alignItems:"center",gap:"2px",padding:"3px",background:"#fff",border:"1px solid #e6e8ef",borderRadius:"10px",boxShadow:"0 4px 16px rgba(17,24,39,0.12)"},item:t=>({display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:"34px",height:"30px",padding:"0 8px",border:0,background:t?"#4f46e5":"transparent",color:t?"#fff":"#4b5563",borderRadius:"7px",cursor:"pointer",fontSize:"12px",fontWeight:600,lineHeight:1}),manage:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",border:0,borderLeft:"1px solid #e6e8ef",marginLeft:"2px",background:"transparent",cursor:"pointer",color:"#6b7280"}},fZ=t=>(0,
5422 +r.dispatch)("core/edit-post")?.__experimentalSetPreviewDeviceType?.(t);(0,rZ.registerPlugin)("ablocks-breakpoint-switcher",{render:()=>{const{wpDevice:t,customDevice:e,devices:i}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||"Desktop",customDevice:t(M.rb)?.getCustomDevice()||null,devices:t(M.rb)?.getDevices()||[]}),[]),o="Desktop"!==t?t:e||"Desktop",l=i.find(t=>t.id===o),n=l&&!$.includes(l.id)?J(l):null,[s,b]=(0,a.useState)(!1),[c,d]=(0,a.useState)([]),[u,p]=(0,a.useState)(!1),m=(0,I.jsxs)("div",{className:"ablocks-bp-switcher",style:gZ.bar,children:[i.map(t=>{const e=(t=>t.min&&t.max?`${t.min}–${t.max}px`:t.max?`≤ ${t.max}px`:t.min?`≥ ${t.min}px`:"")(t);return(0,I.jsx)("button",{type:"button",style:gZ.item(o===t.id),title:e?`${t.label} (${e})`:t.label,onClick:()=>(t=>{$.includes(t.id)?((0,r.dispatch)(M.rb).setCustomDevice(null),fZ(t.id)):(fZ("Desktop"),(0,r.dispatch)(M.rb).setCustomDevice(t.id))})(t),children:$.includes(t.id)?(0,
5423 +I.jsx)("span",{className:`ablocks-icon ablocks-icon--${G(t.id)}`,style:{fontSize:"15px",lineHeight:1}}):(0,I.jsx)("span",{style:{fontSize:"11px",fontWeight:700},children:t.max||t.min})},t.id)}),(0,I.jsx)("button",{type:"button",style:gZ.manage,title:(0,L.__)("Manage breakpoints","ablocks"),onClick:async()=>{const t=await(0,M.In)({action:"ablocks/breakpoints/get"}).then(t=>t?.data?.data);d(Array.isArray(t?.custom)?t.custom:[]),b(!0)},children:(0,I.jsx)("span",{className:"dashicons dashicons-admin-generic",style:{fontSize:"16px",width:"16px",height:"16px"}})})]});return(0,I.jsxs)(I.Fragment,{children:[(0,no.createPortal)(m,document.body),n&&(0,no.createPortal)((0,I.jsx)("style",{children:`\n\t\t\t\t\t\t.components-resizable-box__container:has( .block-editor-iframe__container ) {\n\t\t\t\t\t\t\twidth: ${n}px !important;\n\t\t\t\t\t\t\tmax-width: 100% !important;\n\t\t\t\t\t\t\tmargin: 0 auto !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t`}),document.head),s&&(0,I.jsxs)(N.Modal,{title:(0,
5424 +L.__)("Responsive Breakpoints","ablocks"),onRequestClose:()=>b(!1),className:"ablocks-bp-modal",children:[(0,I.jsx)(hZ,{value:c,onChange:d}),(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:16},children:[(0,I.jsx)(N.Button,{variant:"tertiary",onClick:()=>b(!1),children:(0,L.__)("Cancel","ablocks")}),(0,I.jsx)(N.Button,{variant:"primary",isBusy:u,onClick:async()=>{p(!0);try{await(t=c,(0,M.In)({action:"ablocks/breakpoints/save",breakpoints:JSON.stringify(t)}).then(t=>{const e=t?.data?.data;return e&&Array.isArray(e.devices)&&(0,r.dispatch)(M.rb).setDevices(e.devices),e}))}finally{p(!1),b(!1)}var t},children:(0,L.__)("Save breakpoints","ablocks")})]})]})]})}}),"1.6.3"===window.ABlocksGlobal?.has_required_block_attribute_migration&&(0,b.addFilter)("blocks.getBlockAttributes","ablocks/migrate-attribute",(t={},e)=>{const i={...t};switch(e.name){case"ablocks/container":{
5413 5425 const{direction:t,directionTablet:e,directionMobile:o,justify:a,justifyTablet:l,justifyMobile:n,align:s,alignTablet:r,alignMobile:b,wrap:c,wrapTablet:d,wrapMobile:u}=i,p={...i.dir||{}},m=p.value;"column"!==m&&m||!t||(p.value=t),(e||o)&&(p.valueTablet=e||"",p.valueMobile=o||""),i.dir=p,(a||l||n)&&(i.justification={value:a,valueTablet:l,valueMobile:n}),(s||r||b)&&(i.alignment={value:s,valueTablet:r,valueMobile:b}),(c||d||u)&&(i.wrapping={value:c,valueTablet:d,valueMobile:u}),i.direction="",i.directionTablet="",i.directionMobile="",i.justify="",i.justifyTablet="",i.justifyMobile="",i.align="",i.alignTablet="",i.alignMobile="",i.wrap="",i.wrapTablet="",i.wrapMobile="";break}case"ablocks/button":{const{iconRotate:t}=i,e=parseInt(i.iconSize);16!==e&&(i.iconSizing={...i?.iconSizing||{},value:e},i.iconSize=void 0),t&&(i.iconRotated={...i?.iconRotated||{},value:t},i.iconRotate=void 0);break}case"ablocks/paypal-button":{const{iconRotate:t}=i,e=parseInt(i.iconSize);16!==e&&(i.iconSizing={
5414 5426 ...i?.iconSizing||{},value:e},i.iconSize=void 0),t&&(i.iconRotated={...i?.iconRotated||{},value:t},i.iconRotate=void 0);break}case"ablocks/stripe-button":{const{iconRotate:t}=i,e=parseInt(i.iconSize);16!==e&&(i.iconSizing={...i?.iconSizing||{},value:e},i.iconSize=void 0),t&&(i.iconRotated={...i?.iconRotated||{},value:t},i.iconRotate=void 0);break}case"ablocks/coupon":{const{iconRotate:t}=i,e=parseInt(i.iconSize);20!==e&&(i.iconSizing={...i?.iconSizing||{},value:e},i.iconSize=void 0),t&&(i.iconRotated={...i?.iconRotated||{},value:t},i.iconRotate=void 0);break}case"ablocks/notice":{const{iconRotate:t}=i,e=parseInt(i.iconSize);20!==e&&(i.iconSizing={...i?.iconSizing||{},value:e},i.iconSize=void 0),t&&(i.iconRotated={...i?.iconRotated||{},value:t},i.iconRotate=void 0);break}case"ablocks/price-menu-item":{const{iconRotate:t}=i,e=parseInt(i.iconSize);40!==e&&(i.iconSizing={...i?.iconSizing||{},value:e},i.iconSize=void 0),t&&(i.iconRotated={...i?.iconRotated||{},value:t},i.iconRotate=void 0)
5415 5427 ;break}case"ablocks/countdown":{const{direction:t,directionTablet:e,directionMobile:o,justifyAlign:a,justifyAlignTablet:l,justifyAlignMobile:n,align:s,alignTablet:r,alignMobile:b,wrap:c,wrapTablet:d,wrapMobile:u}=i,p={...i.orient||{}},m=p.value;"row"!==m&&m||!t||(p.value=t),(e||o)&&(p.valueTablet=e||"",p.valueMobile=o||""),i.orient=p;const h={...i.justificationAlign||{}},g=h.value;"center"!==g&&g||!a||(h.value=a),(l||n)&&(h.valueTablet=l||"",h.valueMobile=n||""),i.justificationAlign=h;const f={...i.alignment||{}},y=f.value;"stretch"!==y&&y||!s||(f.value=s),(r||b)&&(f.valueTablet=r||"",f.valueMobile=b||""),i.alignment=f;const T={...i.wrapping||{}},H=T.value;"wrap"!==H&&H||!c||(T.value=c),(d||u)&&(T.valueTablet=d||"",T.valueMobile=u||""),i.wrapping=T,i.direction="",i.directionTablet="",i.directionMobile="",i.justifyAlign="",i.justifyAlignTablet="",i.justifyAlignMobile="",i.align="",i.alignTablet="",i.alignMobile="",i.wrap="",i.wrapTablet="",i.wrapMobile="";break}case"ablocks/divider":
5416 5428 case"ablocks/flip-box":case"ablocks/form-input":break;case"ablocks/tabs":{const{tabsMenuPosition:t,tabsMenuPositionTablet:e,tabsMenuPositionMobile:o,tabMenuAlign:a,tabMenuAlignTablet:l,tabMenuAlignMobile:n,menuContentAlign:s,menuContentAlignTablet:r,menuContentAlignMobile:b}=i,c={...i.tabsMenuPositioning||{}},d=c.value;"left"!==d&&d||!t||(c.value=t),(e||o)&&(c.valueTablet=e||"",c.valueMobile=o||""),i.tabsMenuPositioning=c,(a||l||n)&&(i.tabMenuAlignment={value:a,valueTablet:l,valueMobile:n});const u={...i.menuContentAlignment||{}},p=u.value;"center"!==p&&p||!s||(u.value=s),(r||b)&&(u.valueTablet=r||"",u.valueMobile=b||""),i.menuContentAlignment=u,i.tabsMenuPosition="",i.tabsMenuPositionTablet="",i.tabsMenuPositionMobile="",i.tabMenuAlign="",i.tabMenuAlignTablet="",i.tabMenuAlignMobile="",i.menuContentAlign="",i.menuContentAlignTablet="",i.menuContentAlignMobile=""}case"ablocks/icon":case"ablocks/star-ratings":case"ablocks/svg-draw":case"ablocks/counter":case"ablocks/tabs":{
@@ -5416,44 +5428,44 @@
5416 5428 case"ablocks/flip-box":case"ablocks/form-input":break;case"ablocks/tabs":{const{tabsMenuPosition:t,tabsMenuPositionTablet:e,tabsMenuPositionMobile:o,tabMenuAlign:a,tabMenuAlignTablet:l,tabMenuAlignMobile:n,menuContentAlign:s,menuContentAlignTablet:r,menuContentAlignMobile:b}=i,c={...i.tabsMenuPositioning||{}},d=c.value;"left"!==d&&d||!t||(c.value=t),(e||o)&&(c.valueTablet=e||"",c.valueMobile=o||""),i.tabsMenuPositioning=c,(a||l||n)&&(i.tabMenuAlignment={value:a,valueTablet:l,valueMobile:n});const u={...i.menuContentAlignment||{}},p=u.value;"center"!==p&&p||!s||(u.value=s),(r||b)&&(u.valueTablet=r||"",u.valueMobile=b||""),i.menuContentAlignment=u,i.tabsMenuPosition="",i.tabsMenuPositionTablet="",i.tabsMenuPositionMobile="",i.tabMenuAlign="",i.tabMenuAlignTablet="",i.tabMenuAlignMobile="",i.menuContentAlign="",i.menuContentAlignTablet="",i.menuContentAlignMobile=""}case"ablocks/icon":case"ablocks/star-ratings":case"ablocks/svg-draw":case"ablocks/counter":case"ablocks/tabs":{
5417 5429 const{iconRotate:t}=i,e=parseInt(i.iconSize);55!==e&&(i.iconSizing={...i?.iconSizing||{},value:e},i.iconSize=void 0),t&&(i.iconRotated={...i?.iconRotated||{},value:t},i.iconRotate=void 0);break}case"ablocks/form-password":{const{passwordShowSize:t,passwordShowRotate:e,passwordHideSize:o,passwordHideRotate:a}=i;t&&(i.passwordShowSizing={...i?.passwordShowSizing||{},value:t},i.passwordShowSize=void 0),e&&(i.passwordShowRotated={...i?.passwordShowRotated||{},value:e},i.passwordShowRotate=void 0),o&&(i.passwordHideSizing={...i?.passwordHideSizing||{},value:o},i.passwordHideSize=void 0),a&&(i.passwordHideRotated={...i?.passwordHideRotated||{},value:a},i.passwordHideRotate=void 0);break}case"ablocks/carousel":{const{leftIconSize:t,leftIconRotate:e,rightIconSize:o,rightIconRotate:a}=i;t&&(i.leftIconSizing={...i?.leftIconSizing||{},value:t},i.leftIconSize=void 0),e&&(i.leftIconRotated={...i?.leftIconRotated||{},value:e},i.leftIconRotate=void 0),o&&(i.rightIconSizing={...i?.rightIconSizing||{},
5418 5430 value:o},i.rightIconSize=void 0),a&&(i.rightIconRotated={...i?.rightIconRotated||{},value:a},i.rightIconRotate=void 0);break}case"ablocks/content-timeline-child":{const{contentTimeLineIconSize:t,contentTimeLineIconRotate:e}=i;t&&(i.contentTimeLineIconSizing={...i?.contentTimeLineIconSizing||{},value:t},i.contentTimeLineIconSize=void 0),e&&(i.contentTimeLineIconRotated={...i?.contentTimeLineIconRotated||{},value:e},i.contentTimeLineIconRotate=void 0);break}case"ablocks/single-accordion":{const{leftActiveIconSize:t,leftActiveIconRotate:e,leftCloseIconSize:o,leftCloseIconRotate:a,rightActiveIconSize:l,rightActiveIconRotate:n,rightCloseIconSize:s,rightCloseIconRotate:r}=i;t&&(i.leftActiveIconSizing={...i?.leftActiveIconSizing||{},value:t},i.leftActiveIconSize=void 0),e&&(i.leftActiveIconRotated={...i?.leftActiveIconRotated||{},value:e},i.leftActiveIconRotate=void 0),o&&(i.leftCloseIconSizing={...i?.leftCloseIconSizing||{},value:o},i.leftCloseIconSize=void 0),a&&(i.leftCloseIconRotated={
5419 5431 ...i?.leftCloseIconRotated||{},value:a},i.leftCloseIconRotate=void 0),l&&(i.rightActiveIconSizing={...i?.rightActiveIconSizing||{},value:l},i.rightActiveIconSize=void 0),n&&(i.rightActiveIconRotated={...i?.rightActiveIconRotated||{},value:n},i.rightActiveIconRotate=void 0),s&&(i.rightCloseIconSizing={...i?.rightCloseIconSizing||{},value:s},i.rightCloseIconSize=void 0),r&&(i.rightCloseIconRotated={...i?.rightCloseIconRotated||{},value:r},i.rightCloseIconRotate=void 0);break}case"ablocks/table-of-content":{const{closeIconSize:t,closeIconRotate:e,openIconSize:o,openIconRotate:a}=i;t&&(i.closeIconSizing={...i?.closeIconSizing||{},value:t},i.closeIconSize=void 0),e&&(i.closeIconRotated={...i?.closeIconRotated||{},value:e},i.closeIconRotate=void 0),o&&(i.openIconSizing={...i?.openIconSizing||{},value:o},i.openIconSize=void 0),a&&(i.openIconRotated={...i?.openIconRotated||{},value:a},i.openIconRotate=void 0);break}case"ablocks/info-box":{
5420 -const{iconSize:t,iconRotate:e,btnIconSize:o,btnIconRotate:a,starIconSize:l,starIconRotate:n}=i;55!==t&&(i.iconSizing={...i?.iconSizing||{},value:t},i.iconSize=void 0),e&&(i.iconRotated={...i?.iconRotated||{},value:e},i.iconRotate=void 0),20!==o&&(i.btnIconSizing={...i?.btnIconSizing||{},value:o},i.btnIconSize=void 0),a&&(i.btnIconRotated={...i?.btnIconRotated||{},value:a},i.btnIconRotate=void 0),55!==l&&(i.starIconSizing={...i?.starIconSizing||{},value:l},i.starIconSize=void 0),n&&(i.starIconRotated={...i?.starIconRotated||{},value:n},i.starIconRotate=void 0);break}}return i}),(0,L.__)("All","ablocks"),(0,L.__)("Free","ablocks");const OG=({selectedTab:t,selectedCategory:e,setSelectedCategory:i,selectedType:o,setSelectedType:l,setSearchTerm:n,setPaginationData:s,showSnackbar:r})=>{const b=M.hq+"assets/images/ablocks-library.svg",[c,d]=(0,a.useState)([]);(0,a.useEffect)(()=>{(()=>{try{(0,M.In)({action:"ablocks/get_demo_categories",type:t}).then(({data:t})=>{
5421 -if(!t.success)throw r("error",(0,L.__)("Failed to fetch categroy.","ablocks")),new Error("HTTP error!");d(t.data)})}catch(t){r("error",t.message),console.error("Error fetching categories:",t)}})()},[t]);const u=t=>{switch(o){case"all":default:return t.count;case"free":return t.free_count;case"pro":return t.pro_count}};return(0,I.jsxs)("aside",{className:"ablocks-demo-importer-category-sidebar",children:[(0,I.jsx)("div",{className:"ablocks-demo-importer-logo",children:(0,I.jsx)("img",{alt:"ablocks-demo-importer-logo",src:b})}),(0,I.jsx)("ul",{className:"ablocks-demo-importer-category-sidebar__items",children:c?.map((t,o)=>(0,I.jsxs)("li",{className:e===t.slug?"ablocks-demo-importer-active-category":"",role:"presentation",onClick:()=>{s({page:1,perPage:10,total:0}),n(""),i(t.slug)},children:[t.name," ",(0,I.jsxs)("span",{children:["(",u(t),")"]})]},o))})]})},YG={title:Y().string,subtitle:Y().string,largeModalMarginTop:Y().string,isOpen:Y().bool,isEnabledHeader:Y().bool,
5422 -isEnabledResizer:Y().bool,onAfterOpen:Y().func,onRequestClose:Y().func,style:Y().object,externalComponent:Y().object,suffix:Y().string,size:Y().string,isSmallAvailable:Y().bool,isLargeAvailable:Y().bool};function XG({children:t,suffix:e="",title:i="",subtitle:o="",onAfterOpen:n,onRequestClose:r,isOpen:b=!1,isEnabledHeader:c=!0,size:d="medium",largeModalMarginTop:u="30px",style:p={overlay:{background:"rgba(35, 40, 45, 0.62)",overflowY:"scroll",display:"flex",justifyContent:"center",zIndex:9999,msOverflowStyle:"none",scrollbarWidth:"thin"},content:{inset:"unset",padding:0,overflow:"none",border:0,marginTop:"50px"}}}){const[m,h]=(0,a.useState)({expandableSize:d,activeIconIndex:3}),g="large"===m?.expandableSize?{...p,content:{...p.content,marginTop:u}}:p,f=function(t,e){return s()("ablocks-react-modal",t&&`ablocks-react-modal--${t}`,e&&`ablocks-react-modal--${e}`)}(e,m?.expandableSize),y=(T=m?.expandableSize,s()("ablocks-react-modal__content",T&&`ablocks-react-modal--content-${T}`));var T
5423 -;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(aw(),{isOpen:b,onAfterOpen:n,onRequestClose:r,contentLabel:i,style:g,shouldCloseOnOverlayClick:!1,ariaHideApp:!0,children:(0,I.jsxs)("div",{className:f,children:[c&&(0,I.jsxs)("div",{className:"ablocks-react-modal__head",children:[i&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h3",{className:"ablocks-react-modal__head-title",children:i}),o&&(0,I.jsxs)("p",{children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-right"}),o]})]}),(0,I.jsx)("div",{className:"ablocks-react-modal-buttons",children:(0,I.jsx)(X,{type:"button",onClick:()=>r(),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),className:"ablocks-btn-close-modal"})})]}),(0,I.jsxs)("div",{className:y,children:[!c&&(0,I.jsx)(X,{type:"button",onClick:()=>r(),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),className:"ablocks-btn-close-modal"}),t]})]})})})}
5424 -document.getElementById("ablockswrap")?aw().setAppElement("#ablockswrap"):document.getElementById("ablocksLessonsWrap")?aw().setAppElement("#ablocksLessonsWrap"):document.getElementById("ablocksFrontendDashWrap")?aw().setAppElement("#ablocksFrontendDashWrap"):document.getElementById("ablocksFrontendModalWrap")&&aw().setAppElement("#ablocksFrontendModalWrap"),XG.propTypes=YG;const BG=({isOpenModal:t,data:e,selectedItem:i,importDemo:o,installDependencies:a,importLoading:l,openModal:n,currentIndex:s,allDependenciesIsInstalled:r,templatePage:b,selectedTab:c,fetchTemplateData:d})=>(0,I.jsxs)(XG,{isOpen:n,suffix:"ablocks-demo-importer-dependency",onRequestClose:()=>t(!1),title:(0,L.__)("Dependencies list","ablocks"),children:[e.length&&e?.map((t,e)=>{const i=t?.status?.activated&&t?.status?.installed,o=i?(0,L.__)("Installed and Activated","ablocks"):(0,L.__)("Install and Activate","ablocks");return(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{
5432 +const{iconSize:t,iconRotate:e,btnIconSize:o,btnIconRotate:a,starIconSize:l,starIconRotate:n}=i;55!==t&&(i.iconSizing={...i?.iconSizing||{},value:t},i.iconSize=void 0),e&&(i.iconRotated={...i?.iconRotated||{},value:e},i.iconRotate=void 0),20!==o&&(i.btnIconSizing={...i?.btnIconSizing||{},value:o},i.btnIconSize=void 0),a&&(i.btnIconRotated={...i?.btnIconRotated||{},value:a},i.btnIconRotate=void 0),55!==l&&(i.starIconSizing={...i?.starIconSizing||{},value:l},i.starIconSize=void 0),n&&(i.starIconRotated={...i?.starIconRotated||{},value:n},i.starIconRotate=void 0);break}}return i}),(0,L.__)("All","ablocks"),(0,L.__)("Free","ablocks");const yZ=({selectedTab:t,selectedCategory:e,setSelectedCategory:i,selectedType:o,setSelectedType:l,setSearchTerm:n,setPaginationData:s,showSnackbar:r})=>{const b=M.hq+"assets/images/ablocks-library.svg",[c,d]=(0,a.useState)([]);(0,a.useEffect)(()=>{(()=>{try{(0,M.In)({action:"ablocks/get_demo_categories",type:t}).then(({data:t})=>{
5433 +if(!t.success)throw r("error",(0,L.__)("Failed to fetch categroy.","ablocks")),new Error("HTTP error!");d(t.data)})}catch(t){r("error",t.message),console.error("Error fetching categories:",t)}})()},[t]);const u=t=>{switch(o){case"all":default:return t.count;case"free":return t.free_count;case"pro":return t.pro_count}};return(0,I.jsxs)("aside",{className:"ablocks-demo-importer-category-sidebar",children:[(0,I.jsx)("div",{className:"ablocks-demo-importer-logo",children:(0,I.jsx)("img",{alt:"ablocks-demo-importer-logo",src:b})}),(0,I.jsx)("ul",{className:"ablocks-demo-importer-category-sidebar__items",children:c?.map((t,o)=>(0,I.jsxs)("li",{className:e===t.slug?"ablocks-demo-importer-active-category":"",role:"presentation",onClick:()=>{s({page:1,perPage:10,total:0}),n(""),i(t.slug)},children:[t.name," ",(0,I.jsxs)("span",{children:["(",u(t),")"]})]},o))})]})},TZ={title:Y().string,subtitle:Y().string,largeModalMarginTop:Y().string,isOpen:Y().bool,isEnabledHeader:Y().bool,
5434 +isEnabledResizer:Y().bool,onAfterOpen:Y().func,onRequestClose:Y().func,style:Y().object,externalComponent:Y().object,suffix:Y().string,size:Y().string,isSmallAvailable:Y().bool,isLargeAvailable:Y().bool};function HZ({children:t,suffix:e="",title:i="",subtitle:o="",onAfterOpen:n,onRequestClose:r,isOpen:b=!1,isEnabledHeader:c=!0,size:d="medium",largeModalMarginTop:u="30px",style:p={overlay:{background:"rgba(35, 40, 45, 0.62)",overflowY:"scroll",display:"flex",justifyContent:"center",zIndex:9999,msOverflowStyle:"none",scrollbarWidth:"thin"},content:{inset:"unset",padding:0,overflow:"none",border:0,marginTop:"50px"}}}){const[m,h]=(0,a.useState)({expandableSize:d,activeIconIndex:3}),g="large"===m?.expandableSize?{...p,content:{...p.content,marginTop:u}}:p,f=function(t,e){return s()("ablocks-react-modal",t&&`ablocks-react-modal--${t}`,e&&`ablocks-react-modal--${e}`)}(e,m?.expandableSize),y=(T=m?.expandableSize,s()("ablocks-react-modal__content",T&&`ablocks-react-modal--content-${T}`));var T
5435 +;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(mw(),{isOpen:b,onAfterOpen:n,onRequestClose:r,contentLabel:i,style:g,shouldCloseOnOverlayClick:!1,ariaHideApp:!0,children:(0,I.jsxs)("div",{className:f,children:[c&&(0,I.jsxs)("div",{className:"ablocks-react-modal__head",children:[i&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h3",{className:"ablocks-react-modal__head-title",children:i}),o&&(0,I.jsxs)("p",{children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-right"}),o]})]}),(0,I.jsx)("div",{className:"ablocks-react-modal-buttons",children:(0,I.jsx)(X,{type:"button",onClick:()=>r(),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),className:"ablocks-btn-close-modal"})})]}),(0,I.jsxs)("div",{className:y,children:[!c&&(0,I.jsx)(X,{type:"button",onClick:()=>r(),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),className:"ablocks-btn-close-modal"}),t]})]})})})}
5436 +document.getElementById("ablockswrap")?mw().setAppElement("#ablockswrap"):document.getElementById("ablocksLessonsWrap")?mw().setAppElement("#ablocksLessonsWrap"):document.getElementById("ablocksFrontendDashWrap")?mw().setAppElement("#ablocksFrontendDashWrap"):document.getElementById("ablocksFrontendModalWrap")&&mw().setAppElement("#ablocksFrontendModalWrap"),HZ.propTypes=TZ;const MZ=({isOpenModal:t,data:e,selectedItem:i,importDemo:o,installDependencies:a,importLoading:l,openModal:n,currentIndex:s,allDependenciesIsInstalled:r,templatePage:b,selectedTab:c,fetchTemplateData:d})=>(0,I.jsxs)(HZ,{isOpen:n,suffix:"ablocks-demo-importer-dependency",onRequestClose:()=>t(!1),title:(0,L.__)("Dependencies list","ablocks"),children:[e.length&&e?.map((t,e)=>{const i=t?.status?.activated&&t?.status?.installed,o=i?(0,L.__)("Installed and Activated","ablocks"):(0,L.__)("Install and Activate","ablocks");return(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{
5425 5437 className:"ablocks-demo-importer-dependency--card",children:[(0,I.jsxs)("h3",{className:"ablocks-demo-importer-dependency--card__title",children:[i?"✅":"⚠️"," ",t?.name]}),(0,I.jsx)("button",{onClick:()=>a([t],e),disabled:i,className:"ablocks-demo-importer-dependency--card__btn "+(i?"ablocks-demo-importer-dependency--card__btn--disabled":""),children:l?.currentIndex===e?(0,I.jsx)(N.Spinner,{}):o})]},e)})}),(0,I.jsxs)("div",{className:"ablocks-demo-importer-dependency-detail",children:[(0,I.jsx)("p",{className:"ablocks-demo-importer-dependency-detail--text",children:r?(0,L.__)("You're good to go","ablocks"):(0,L.__)("All dependencies are not installed and activated","ablocks")}),(0,I.jsx)("button",{onClick:()=>{if(r){if("template"===c)return void d(b,!0,s);o(i,s)}else a(e,s)},className:"ablocks-demo-import-button ablocks-demo-import-button--"+(r?"import-now":"imported"),children:l?.currentIndex===s?(0,I.jsx)(N.Spinner,{}):(0,I.jsx)(I.Fragment,{children:r?(0,
5426 -L.__)("Import Now","ablocks"):(0,L.__)("Install & activate","ablocks")})})]})]});var EG=i(31921);const FG={label:Y().oneOfType([Y().object,Y().string]),size:Y().string,className:Y().string,preset:Y().string,bg:Y().string,onClick:Y().func,type:Y().string,link:Y().string,isLoading:Y().bool,loadingLabel:Y().string,loadingStatus:Y().string,icon:Y().any,iconPosition:Y().string,border:Y().string,borderRadius:Y().string,isCircle:Y().bool,isDisabled:Y().bool,style:Y().object,suffix:Y().string,target:Y().string,isPro:Y().bool},qG=({label:t="",size:e="md",className:i="",preset:o="purple",onClick:a=()=>{},type:l="button",link:n="#",isLoading:s=!1,loadingLabel:r=null,icon:b=null,iconPosition:c=null,isCircle:d=!1,border:u=null,isDisabled:p=!1,borderRadius:m=null,style:h={},suffix:g="",target:f="",isPro:y=!0,id:T})=>{const H=[`ablocks-btn ablocks-btn--${e}`];if(o&&H.push("ablocks-btn--preset-"+o),c&&H.push("ablocks-btn--icon-"+c),d&&H.push("ablocks-btn--circle"),u&&H.push("ablocks-btn--border-"+u),
5438 +L.__)("Import Now","ablocks"):(0,L.__)("Install & activate","ablocks")})})]})]});var xZ=i(31921);const kZ={label:Y().oneOfType([Y().object,Y().string]),size:Y().string,className:Y().string,preset:Y().string,bg:Y().string,onClick:Y().func,type:Y().string,link:Y().string,isLoading:Y().bool,loadingLabel:Y().string,loadingStatus:Y().string,icon:Y().any,iconPosition:Y().string,border:Y().string,borderRadius:Y().string,isCircle:Y().bool,isDisabled:Y().bool,style:Y().object,suffix:Y().string,target:Y().string,isPro:Y().bool},vZ=({label:t="",size:e="md",className:i="",preset:o="purple",onClick:a=()=>{},type:l="button",link:n="#",isLoading:s=!1,loadingLabel:r=null,icon:b=null,iconPosition:c=null,isCircle:d=!1,border:u=null,isDisabled:p=!1,borderRadius:m=null,style:h={},suffix:g="",target:f="",isPro:y=!0,id:T})=>{const H=[`ablocks-btn ablocks-btn--${e}`];if(o&&H.push("ablocks-btn--preset-"+o),c&&H.push("ablocks-btn--icon-"+c),d&&H.push("ablocks-btn--circle"),u&&H.push("ablocks-btn--border-"+u),
5427 5439 m&&H.push("ablocks-btn--border-"+m),p&&H.push("ablocks-btn--disabled"),g&&H.push("ablocks-btn--"+g),"link"===l){const e=f?{target:f}:{};return(0,I.jsxs)("a",{href:n,className:i||H.join(" "),type:l,onClick:a,disabled:p||s,style:h,rel:"noreferrer",id:T,...e,children:["right"!==c&&b,s?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.Spinner,{}),r&&(0,I.jsx)("span",{className:"ablocks-btn--label",children:r})]}):(0,I.jsx)(I.Fragment,{children:t&&(0,I.jsx)("span",{className:"ablocks-btn--label",children:t})}),"right"===c&&b,!y&&(0,I.jsx)("span",{className:"ablocks-pro-badge",children:(0,L.__)("PRO","ablocks")})]})}return(0,I.jsxs)("button",{className:i||H.join(" "),type:l,onClick:a,disabled:p||s,style:h,id:T,children:["right"!==c&&!s&&b,s?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.Spinner,{}),r&&(0,I.jsx)("span",{className:"ablocks-btn--label",children:r})]}):(0,I.jsx)(I.Fragment,{children:t&&(0,I.jsx)("span",{className:"ablocks-btn--label",children:t})}),"right"===c&&!s&&b,!y&&(0,
5428 -I.jsx)("span",{className:"ablocks-pro-badge",children:(0,L.__)("PRO","ablocks")})]})};qG.propTypes=FG;const $G=qG,GG=({importLoading:t,templatePages:e,fetchTemplateData:i,templatePage:o,setTemplatePage:a,setSelectedTemplatePages:l,importWithImage:n,setImportWithImage:s,currentIndex:r,selectedItem:b})=>{const c=M.hq+"assets/images/template-placeholder.png",d=parseInt(o.post_id)===n.itemId&&n.isChecked;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-demo-importer-view-header",children:(0,I.jsxs)("div",{className:"ablocks-demo-importer-view-header-title",children:[(0,I.jsx)($G,{suffix:"back-btn",preset:"white",size:"sm",onClick:()=>l(!1),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left"})}),(0,I.jsx)("h3",{children:o?.title?o?.title:e[0]?.title})]})}),(0,I.jsxs)("div",{className:"ablocks-demo-importer-view-template",children:[(0,I.jsx)("div",{className:"ablocks-demo-importer-view--template-placeholder",children:(0,I.jsx)(EG.LazyLoadImage,{
5440 +I.jsx)("span",{className:"ablocks-pro-badge",children:(0,L.__)("PRO","ablocks")})]})};vZ.propTypes=kZ;const _Z=vZ,RZ=({importLoading:t,templatePages:e,fetchTemplateData:i,templatePage:o,setTemplatePage:a,setSelectedTemplatePages:l,importWithImage:n,setImportWithImage:s,currentIndex:r,selectedItem:b})=>{const c=M.hq+"assets/images/template-placeholder.png",d=parseInt(o.post_id)===n.itemId&&n.isChecked;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-demo-importer-view-header",children:(0,I.jsxs)("div",{className:"ablocks-demo-importer-view-header-title",children:[(0,I.jsx)(_Z,{suffix:"back-btn",preset:"white",size:"sm",onClick:()=>l(!1),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left"})}),(0,I.jsx)("h3",{children:o?.title?o?.title:e[0]?.title})]})}),(0,I.jsxs)("div",{className:"ablocks-demo-importer-view-template",children:[(0,I.jsx)("div",{className:"ablocks-demo-importer-view--template-placeholder",children:(0,I.jsx)(xZ.LazyLoadImage,{
5429 5441 src:o?.images[0]??c,placeholderSrc:c,className:"ablocks-demo-importer-thumbnail-placeholder",wrapperClassName:"ablocks-demo-importer-thumbnail-placeholder-remover",debounce:!0,delayMethod:"debounce",delayTime:300})}),(0,I.jsxs)("div",{className:"ablocks-demo-importer-view--template-items",children:[(0,I.jsxs)("div",{className:"ablocks-demo-importer-view",children:[(0,I.jsxs)("p",{className:"ablocks-demo-importer-view__header",children:[(0,I.jsx)("span",{className:"ablocks-demo-importer-view__title",children:b.title}),(0,I.jsx)("span",{className:"ablocks-demo-importer-view__sub-header",children:b.cost_type})]}),(0,I.jsx)("div",{className:"ablocks-demo-importer-view-grid",children:e?.map((t,e)=>{const i={background:`url(${t?.images_with_sizes?t?.images_with_sizes[0]?.large?.url:t?.images[0]})`,backgroundPosition:"center top",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return(0,I.jsxs)("div",{className:"ablocks-demo-importer-item "+(o===t?"ablocks-demo-importer-item--active":""),
5430 5442 role:"presentation",onClick:()=>{a(t)},children:[(0,I.jsxs)("div",{className:"ablocks-demo-importer-view-template-thumbnail",children:[(0,I.jsx)("div",{className:"ablocks-demo-importer-thumbnail__image",children:(0,I.jsx)("div",{className:"ablocks-demo-importer-thumbnail-placeholder",style:i??c})}),t.isPro&&(0,I.jsx)("div",{className:"pro-badge",children:(0,L.__)("Pro","ablocks")})]}),(0,I.jsx)("h4",{className:"ablocks-demo-importer-title",children:t.title})]},e)})})]}),(0,I.jsx)("div",{className:"ablocks-demo-importer-view-actions",children:(0,I.jsxs)("div",{className:"ablocks-demo-importer-view-actions__container",children:[(0,I.jsxs)("div",{className:"ablocks-demo-importer-view-actions__container__checkbox",children:[(0,I.jsx)("input",{id:"select-page",type:"checkbox",checked:d,onChange:()=>s({itemId:o.post_id,isChecked:!n.isChecked})}),(0,I.jsx)("label",{htmlFor:"select-page",children:(0,L.__)("Import with image","ablocks")})]}),(0,I.jsx)("button",{onClick:()=>{i(o,!0,r)},
5431 -className:"ablocks-demo-import-btn--import-theme",children:t?.currentIndex===r?(0,I.jsx)(N.Spinner,{}):(0,L.__)("Import Theme","ablocks")}),(0,I.jsx)($G,{label:(0,L.__)("Live Preview","ablocks"),type:"link",target:"_blank",link:o?.demo_url,size:"md",suffix:"live-preview"})]})})]})]})]})},ZG={placeholder:Y().string,onSearchHandler:Y().func};function KG({placeholder:t=(0,L.__)("Search…","ablocks"),defaultValue:e="",onSearchHandler:i=()=>{}}){const[o,n]=(0,a.useState)(e),s=(0,a.useCallback)(oe(t=>{i(t)},1e3),[i]);return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-search-component",children:[(0,I.jsx)("span",{className:"ablocks-search-component__search ablocks-icon ablocks-icon--search"}),(0,I.jsx)("input",{id:"search",type:"text",className:"ablocks-search-component__input ablocks-input",placeholder:t,value:o,onChange:t=>{return e=t.target.value,n(e),void s(e);var e}}),o&&(0,I.jsx)("button",{onClick:()=>{o&&(n(""),s(""))},
5432 -className:"ablocks-search-component__control",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"})})]})})}KG.propTypes=ZG;const JG=({tabs:t,selectedTab:e,setSelectedTemplatePages:i,setTemplatePage:o,searchTerm:a,onInputChangeHandler:l,setPaginationData:n,setSearchTerm:s,setSelectedTab:r,setSelectedCategory:b})=>(0,I.jsxs)("header",{className:"ablocks-demo-importer-library-header",children:[(0,I.jsx)("div",{className:"ablocks-demo-importer-library-header-tabs",children:t.map((t,a)=>(0,I.jsx)("button",{className:e===t.value?"active-tab":"",onClick:()=>{n({page:1,perPage:10,total:0}),b(null),s(""),r(t.value),e!==t.value&&(i(!1),o(!1))},children:t.label},a))}),(0,I.jsx)(KG,{placeholder:(0,L.sprintf)(/* translators: %s: selected tab name (e.g. "templates") */ /* translators: %s: selected tab name (e.g. "templates") */
5433 -(0,L.__)("Search %s…","ablocks"),e.toLowerCase()),defaultValue:a,onSearchHandler:t=>{s(t.trim()),l(t.trim())}})]}),QG=({tabs:t,setPaginationData:e,selectedTab:i,demos:o,setSelectedTab:l,searchTerm:n,setSearchTerm:s,templatePages:r,setSelectedTemplatePages:b,dataFetchingStatus:c,fetchingDemo:d,showSnackbar:u,setIsOpen:p,setSelectedCategory:m})=>{const[h,g]=(0,a.useState)([]),[f,y]=(0,a.useState)({itemId:null,isChecked:!1}),[T,H]=(0,a.useState)(!1),[x,k]=(0,a.useState)(!1),[v,_]=(0,a.useState)(!1),[R,S]=(0,a.useState)(null),[W,P]=(0,a.useState)({currentIndex:null,isLoading:!1}),[U,j]=(0,a.useState)(!1);(0,a.useMemo)(()=>{if(h.length){const t=h.every(t=>t.status.installed&&t.status.activated);j(t)}},[h]);const w=M.hq+"assets/images/template-placeholder.png",z="template"===i?(0,L.__)("View","ablocks"):(0,L.__)("Import","ablocks"),C=oe(t=>{d("",t)},1e3),A=async(t,e=null)=>{let i;P({currentIndex:e,isLoading:!0});for(let e=0;e<t.length;e++){const o=t[e];i=await(0,M.In)({
5443 +className:"ablocks-demo-import-btn--import-theme",children:t?.currentIndex===r?(0,I.jsx)(N.Spinner,{}):(0,L.__)("Import Theme","ablocks")}),(0,I.jsx)(_Z,{label:(0,L.__)("Live Preview","ablocks"),type:"link",target:"_blank",link:o?.demo_url,size:"md",suffix:"live-preview"})]})})]})]})]})},SZ={placeholder:Y().string,onSearchHandler:Y().func};function WZ({placeholder:t=(0,L.__)("Search…","ablocks"),defaultValue:e="",onSearchHandler:i=()=>{}}){const[o,n]=(0,a.useState)(e),s=(0,a.useCallback)(oe(t=>{i(t)},1e3),[i]);return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-search-component",children:[(0,I.jsx)("span",{className:"ablocks-search-component__search ablocks-icon ablocks-icon--search"}),(0,I.jsx)("input",{id:"search",type:"text",className:"ablocks-search-component__input ablocks-input",placeholder:t,value:o,onChange:t=>{return e=t.target.value,n(e),void s(e);var e}}),o&&(0,I.jsx)("button",{onClick:()=>{o&&(n(""),s(""))},
5444 +className:"ablocks-search-component__control",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"})})]})})}WZ.propTypes=SZ;const PZ=({tabs:t,selectedTab:e,setSelectedTemplatePages:i,setTemplatePage:o,searchTerm:a,onInputChangeHandler:l,setPaginationData:n,setSearchTerm:s,setSelectedTab:r,setSelectedCategory:b})=>(0,I.jsxs)("header",{className:"ablocks-demo-importer-library-header",children:[(0,I.jsx)("div",{className:"ablocks-demo-importer-library-header-tabs",children:t.map((t,a)=>(0,I.jsx)("button",{className:e===t.value?"active-tab":"",onClick:()=>{n({page:1,perPage:10,total:0}),b(null),s(""),r(t.value),e!==t.value&&(i(!1),o(!1))},children:t.label},a))}),(0,I.jsx)(WZ,{placeholder:(0,L.sprintf)(/* translators: %s: selected tab name (e.g. "templates") */ /* translators: %s: selected tab name (e.g. "templates") */
5445 +(0,L.__)("Search %s…","ablocks"),e.toLowerCase()),defaultValue:a,onSearchHandler:t=>{s(t.trim()),l(t.trim())}})]}),UZ=({tabs:t,setPaginationData:e,selectedTab:i,demos:o,setSelectedTab:l,searchTerm:n,setSearchTerm:s,templatePages:r,setSelectedTemplatePages:b,dataFetchingStatus:c,fetchingDemo:d,showSnackbar:u,setIsOpen:p,setSelectedCategory:m})=>{const[h,g]=(0,a.useState)([]),[f,y]=(0,a.useState)({itemId:null,isChecked:!1}),[T,H]=(0,a.useState)(!1),[x,k]=(0,a.useState)(!1),[v,_]=(0,a.useState)(!1),[R,S]=(0,a.useState)(null),[W,P]=(0,a.useState)({currentIndex:null,isLoading:!1}),[U,j]=(0,a.useState)(!1);(0,a.useMemo)(()=>{if(h.length){const t=h.every(t=>t.status.installed&&t.status.activated);j(t)}},[h]);const w=M.hq+"assets/images/template-placeholder.png",z="template"===i?(0,L.__)("View","ablocks"):(0,L.__)("Import","ablocks"),C=oe(t=>{d("",t)},1e3),A=async(t,e=null)=>{let i;P({currentIndex:e,isLoading:!0});for(let e=0;e<t.length;e++){const o=t[e];i=await(0,M.In)({
5434 5446 action:"ablocks/install_and_active",dependency:o}).catch(t=>{P({currentIndex:null,isLoading:!1}),u("error",t.message)})}if(i){if(i?.data?.success){const e=h.map(e=>({...e,status:t.some(t=>parseInt(e.id)===parseInt(t.id))?{installed:!0,activated:!0}:e.status}));g(e),P({currentIndex:null,isLoading:!1})}}else P({currentIndex:null,isLoading:!1}),u("error",(0,L.__)("Something went wrong!","ablocks"))},D=async(t,e=null)=>{P({currentIndex:e,isLoading:!0});try{const i=await(0,M.In)({action:"ablocks/check_dependencies",dependencies:t.dependencies});if(g(i.data.data),i.data.success){const o=i.data.data.every(t=>t.status.installed&&t.status.activated);o?O(t,e,o):(H(!0),P({currentIndex:null,isLoading:!1}))}else P({currentIndex:null,isLoading:!1})}catch(t){return P({currentIndex:null,isLoading:!1}),!1}},V=async(t={},e=!1,o=null)=>{P({currentIndex:o,isLoading:!0});const a=t?.id??t?.post_id;try{const{data:l}=await(0,M.In)({action:"ablocks/get_single_demo",id:a});if(e){
5435 5447 if("template"===i)return void D(l.data,o);D(t,o)}else b(l.data.pages),_(l.data.pages[0]),P({currentIndex:null,isLoading:!1})}catch(t){P({currentIndex:null,isLoading:!1}),u("error",t.message)}},O=async(t,e=null,o=!1)=>{P({currentIndex:e,isLoading:!0});let a={id:t?.id??t?.post_id};return(U||o)&&parseInt(f.itemId)===parseInt(a.id)&&(a={...a,with_images:f.isChecked}),await(0,M.In)({action:"ablocks/get_single_demo",...a}).then(({data:t})=>{if(t.success&&t?.data?.content){const{insertBlocks:e}=wp.data.dispatch("core/block-editor");e(wp.blocks.parse(t.data.content)),P({currentIndex:null,isLoading:!1}),H(!1),p(!1),u("success",(0,L.sprintf)(
5436 5448 // translators: %s: selectedTab
5437 5449 // translators: %s: selectedTab
5438 -(0,L.__)("%s inserted successfully!","ablocks"),i)),y({itemId:null,isChecked:!1})}else P({currentIndex:null,isLoading:!1}),u("error",(0,L.__)("Content is missing!","ablocks"))}).catch(t=>{P({currentIndex:null,isLoading:!1}),u("error",t.message)})};return(0,I.jsxs)("main",{className:"ablocks-demo-importer-content",children:[!r&&(0,I.jsx)(JG,{setSelectedCategory:m,tabs:t,selectedTab:i,setSelectedTemplatePages:b,setTemplatePage:_,searchTerm:n,onInputChangeHandler:C,setPaginationData:e,setSearchTerm:s,setSelectedTab:l}),c?(0,I.jsx)("div",{className:"ablocks-loading-spinner",children:(0,I.jsx)(N.Spinner,{})}):(0,I.jsx)(I.Fragment,{children:r?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(GG,{selectedTab:i,importDemo:O,installDependencies:A,importLoading:W,fetchTemplateData:V,templatePage:v,templatePages:r,setTemplatePage:_,selectedItem:x,currentIndex:R,importWithImage:f,setImportWithImage:y,setSelectedTemplatePages:b})}):(0,I.jsx)("div",{className:"ablocks-demo-importer-wrap",children:(0,
5439 -I.jsx)("div",{className:"ablocks-demo-importer-grid",children:o?.map((t,e)=>{const o=parseInt(t.id)===f.itemId&&f.isChecked,a={background:`url(${t?.images_with_sizes?t?.images_with_sizes[0]?.large?.url:t?.images[0]})`,backgroundPosition:"center top",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return(0,I.jsxs)("div",{className:"ablocks-demo-importer-item",children:[(0,I.jsxs)("div",{className:"ablocks-demo-importer-thumbnail "+(W?.currentIndex===e&&x===t?"ablocks-thumbnail-active":""),children:[(0,I.jsxs)("div",{className:"ablocks-demo-importer-overlay",children:[(0,I.jsx)($G,{onClick:()=>{k(t),S(e),"template"!==i?D(t,e):V(t,!1,e)},suffix:"card-import",isLoading:W?.currentIndex===e&&x===t,label:z}),"template"!==i&&(0,I.jsxs)("div",{className:"ablocks-demo-importer-overlay--import-with-image",children:[(0,I.jsx)("input",{id:"select-card",type:"checkbox",checked:o,onChange:()=>{parseInt(t.id)===parseInt(f.itemId)?y({itemId:t.id,isChecked:!f.isChecked}):y({itemId:t.id,isChecked:!0
5440 -})}}),(0,I.jsx)("label",{htmlFor:"select-card",children:(0,L.__)("Import with Image","ablocks")})]})]}),(0,I.jsx)("div",{className:"ablocks-demo-importer-thumbnail__image",children:(0,I.jsx)("div",{className:"ablocks-demo-importer-thumbnail-placeholder",style:a??w})}),t.isPro&&(0,I.jsx)("div",{className:"pro-badge",children:(0,L.__)("Pro","ablocks")})]}),(0,I.jsx)("h4",{className:"ablocks-demo-importer-title",children:t.title})]},e)})})})}),T&&(0,I.jsx)(BG,{openModal:T,isOpenModal:H,data:h,selectedItem:x,selectedTab:i,importDemo:O,installDependencies:A,importLoading:W,fetchTemplateData:V,templatePage:v,currentIndex:R,allDependenciesIsInstalled:U}),0===o.length&&(0,I.jsx)("p",{className:"no-results",children:(0,L.__)("No results found","ablocks")})]})},tZ={totalItems:Y().number,currentPageNumber:Y().number,fetchHandler:Y().func,rowsPerPage:Y().number},eZ=({totalItems:t=0,currentPageNumber:e=1,fetchHandler:i=()=>{},rowsPerPage:o=10})=>{const[l,n]=(0,
5450 +(0,L.__)("%s inserted successfully!","ablocks"),i)),y({itemId:null,isChecked:!1})}else P({currentIndex:null,isLoading:!1}),u("error",(0,L.__)("Content is missing!","ablocks"))}).catch(t=>{P({currentIndex:null,isLoading:!1}),u("error",t.message)})};return(0,I.jsxs)("main",{className:"ablocks-demo-importer-content",children:[!r&&(0,I.jsx)(PZ,{setSelectedCategory:m,tabs:t,selectedTab:i,setSelectedTemplatePages:b,setTemplatePage:_,searchTerm:n,onInputChangeHandler:C,setPaginationData:e,setSearchTerm:s,setSelectedTab:l}),c?(0,I.jsx)("div",{className:"ablocks-loading-spinner",children:(0,I.jsx)(N.Spinner,{})}):(0,I.jsx)(I.Fragment,{children:r?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(RZ,{selectedTab:i,importDemo:O,installDependencies:A,importLoading:W,fetchTemplateData:V,templatePage:v,templatePages:r,setTemplatePage:_,selectedItem:x,currentIndex:R,importWithImage:f,setImportWithImage:y,setSelectedTemplatePages:b})}):(0,I.jsx)("div",{className:"ablocks-demo-importer-wrap",children:(0,
5451 +I.jsx)("div",{className:"ablocks-demo-importer-grid",children:o?.map((t,e)=>{const o=parseInt(t.id)===f.itemId&&f.isChecked,a={background:`url(${t?.images_with_sizes?t?.images_with_sizes[0]?.large?.url:t?.images[0]})`,backgroundPosition:"center top",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return(0,I.jsxs)("div",{className:"ablocks-demo-importer-item",children:[(0,I.jsxs)("div",{className:"ablocks-demo-importer-thumbnail "+(W?.currentIndex===e&&x===t?"ablocks-thumbnail-active":""),children:[(0,I.jsxs)("div",{className:"ablocks-demo-importer-overlay",children:[(0,I.jsx)(_Z,{onClick:()=>{k(t),S(e),"template"!==i?D(t,e):V(t,!1,e)},suffix:"card-import",isLoading:W?.currentIndex===e&&x===t,label:z}),"template"!==i&&(0,I.jsxs)("div",{className:"ablocks-demo-importer-overlay--import-with-image",children:[(0,I.jsx)("input",{id:"select-card",type:"checkbox",checked:o,onChange:()=>{parseInt(t.id)===parseInt(f.itemId)?y({itemId:t.id,isChecked:!f.isChecked}):y({itemId:t.id,isChecked:!0
5452 +})}}),(0,I.jsx)("label",{htmlFor:"select-card",children:(0,L.__)("Import with Image","ablocks")})]})]}),(0,I.jsx)("div",{className:"ablocks-demo-importer-thumbnail__image",children:(0,I.jsx)("div",{className:"ablocks-demo-importer-thumbnail-placeholder",style:a??w})}),t.isPro&&(0,I.jsx)("div",{className:"pro-badge",children:(0,L.__)("Pro","ablocks")})]}),(0,I.jsx)("h4",{className:"ablocks-demo-importer-title",children:t.title})]},e)})})})}),T&&(0,I.jsx)(MZ,{openModal:T,isOpenModal:H,data:h,selectedItem:x,selectedTab:i,importDemo:O,installDependencies:A,importLoading:W,fetchTemplateData:V,templatePage:v,currentIndex:R,allDependenciesIsInstalled:U}),0===o.length&&(0,I.jsx)("p",{className:"no-results",children:(0,L.__)("No results found","ablocks")})]})},jZ={totalItems:Y().number,currentPageNumber:Y().number,fetchHandler:Y().func,rowsPerPage:Y().number},wZ=({totalItems:t=0,currentPageNumber:e=1,fetchHandler:i=()=>{},rowsPerPage:o=10})=>{const[l,n]=(0,
5441 5453 a.useState)(e||1),s=Number.isFinite(t)&&Number.isFinite(o)&&o>0?Math.ceil(t/o):0,r=o>=t?1:e,b=Array.from({length:s},(t,e)=>e+1),c=l<b.length&&t>o,d=l>1&&t>o;(0,a.useEffect)(()=>{n(r)},[o,e]);const u=t=>{n(t),i(t,o)};return(0,I.jsxs)("div",{className:"ablocks-pagination",children:[d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(X,{icon:(0,I.jsxs)("span",{children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left"}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left"})]}),onClick:()=>{u(1)}}),(0,I.jsx)(X,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left"}),onClick:()=>{u(l-1)}})]}),b.length>1&&(0,I.jsx)("ul",{className:"ablocks-pagination-list",children:(()=>{const t=[];if(b.length<=5)b.forEach((e,i)=>{const o=(0,I.jsx)("li",{className:`ablocks-pagination-list__item ${e===l&&"ablocks-pagination-list__item-active"}`,onClick:()=>{u(e)},role:"presentation",children:e},i);t.push(o)});else if(l<=3){for(let e=1;e<=3;e++){const i=(0,
5442 5454 I.jsx)("li",{className:`ablocks-pagination-list__item ${e===l&&"ablocks-pagination-list__item-active"}`,onClick:()=>{u(e)},role:"presentation",children:e},e);t.push(i)}t.push((0,I.jsx)("li",{className:"ablocks-pagination-list__item ablocks-pagination-list__item-dots",children:"..."},"dots"));const e=(0,I.jsx)("li",{className:"ablocks-pagination-list__item",onClick:()=>{u(s)},role:"presentation",children:s},s);t.push(e)}else if(l>=s-2){const e=(0,I.jsx)("li",{className:"ablocks-pagination-list__item",onClick:()=>{u(1)},role:"presentation",children:1},1);t.push(e),t.push((0,I.jsx)("li",{className:"ablocks-pagination-list__item ablocks-pagination-list__item-dots",children:"..."},"dots"));for(let e=s-2;e<=s;e++){const i=(0,I.jsx)("li",{className:`ablocks-pagination-list__item ${e===l&&"ablocks-pagination-list__item-active"}`,onClick:()=>{u(e)},role:"presentation",children:e},e);t.push(i)}}else{const e=(0,I.jsx)("li",{className:"ablocks-pagination-list__item",onClick:()=>{u(1)},
5443 5455 role:"presentation",children:1},1);t.push(e),t.push((0,I.jsx)("li",{className:"ablocks-pagination-list__item ablocks-pagination-list__item-dots",children:"..."},"dots-start"));for(let e=l-1;e<=l+1;e++){const i=(0,I.jsx)("li",{className:`ablocks-pagination-list__item ${e===l&&"ablocks-pagination-list__item-active"}`,onClick:()=>{u(e)},role:"presentation",children:e},e);t.push(i)}t.push((0,I.jsx)("li",{className:"ablocks-pagination-list__item ablocks-pagination-list__item-dots",children:"..."},"dots-end"));const i=(0,I.jsx)("li",{className:"ablocks-pagination-list__item",onClick:()=>{u(s)},role:"presentation",children:s},s);t.push(i)}return t})()}),c&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(X,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-right"}),onClick:()=>{u(l+1)}}),(0,I.jsx)(X,{icon:(0,I.jsxs)("span",{children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-right"}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-right"})]}),
5444 -onClick:()=>{u(b.length)}})]})]})};eZ.propTypes=tZ;const iZ=eZ,oZ=[{label:(0,L.__)("Pattern","ablocks"),value:"pattern"},{label:(0,L.__)("Template","ablocks"),value:"template"},{label:(0,L.__)("Page","ablocks"),value:"page"}],aZ=(lZ=t=>{const{setIsOpen:e,isSyncLoading:i}=t,[o,l]=(0,a.useState)("pattern"),[n,s]=(0,a.useState)(null),[b,c]=(0,a.useState)("all"),[d,u]=(0,a.useState)(""),[p,m]=(0,a.useState)([]),[h,g]=(0,a.useState)(!1),[f,y]=(0,a.useState)(!1),[T,H]=(0,a.useState)({page:1,perPage:10,total:0}),x=(t=1,e)=>{g(!0);let i={type:o,cost_type:b};n&&(i={category:n,...i}),e&&(i={q:e,...i}),t&&(i={page:t,...i}),(0,M.In)({action:"ablocks/get_demo_list",...i}).then(({data:t})=>{if(t.success){const{posts:e,...i}=t.data;m(e),H(i),g(!1)}})};(0,a.useEffect)(()=>{x(T.page)},[o,b,n,T.page,i]),(0,a.useEffect)(()=>{s(null)},[o]);const k=(0,r.useSelect)(t=>t("core/notices").getNotices().filter(t=>"snackbar"===t.type)),{createNotice:v,removeNotice:_}=(0,
5445 -r.useDispatch)("core/notices"),R=(t,e="success")=>{v(e,t,{type:"snackbar",isDismissible:!0})},S=!f&&""===d;return(0,I.jsxs)("div",{className:"ablocks-demo-importer-library",children:[(0,I.jsxs)("div",{className:"ablocks-demo-importer-library-body",children:[!f&&(0,I.jsx)(OG,{showSnackbar:R,selectedTab:o,selectedCategory:n,setSelectedCategory:s,selectedType:b,setSelectedType:c,setSearchTerm:u,setPaginationData:H}),(0,I.jsx)(QG,{tabs:oZ,setPaginationData:H,selectedTab:o,demos:p,setSelectedTab:l,searchTerm:d,setSearchTerm:u,templatePages:f,setSelectedTemplatePages:y,dataFetchingStatus:h,fetchingDemo:x,showSnackbar:R,setIsOpen:e,setSelectedCategory:s})]}),S&&(0,I.jsx)(iZ,{totalItems:T.total,currentPageNumber:T.page,fetchHandler:t=>x(t)}),(0,I.jsx)(N.SnackbarList,{notices:k,onRemove:_})]})},t=>{const[e,i]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{const t=setTimeout(()=>{i(!1)},2e3);return()=>{clearTimeout(t)}},[]),e?(0,I.jsx)("div",{className:"ablocks-loading-spinner",children:(0,
5446 -I.jsx)(N.Spinner,{})}):(0,I.jsx)(lZ,{...t})});var lZ;(0,jG.registerPlugin)("ablocks-demo-importer",{render:()=>{const[t,e]=(0,a.useState)(!1),[i,o]=(0,a.useState)(!1),l=(0,a.useRef)(null);return(0,a.useEffect)(()=>{const t=()=>{const i=document.querySelector(".editor-header__toolbar, .edit-post-header__toolbar, .edit-site-header-edit-mode__start");if(!i)return setTimeout(t,300);let o=document.getElementById("ablocks-demo-importer-btn");o||(o=document.createElement("button"),o.id="ablocks-demo-importer-btn",o.className="ablocks-demo-importer-button",o.textContent=(0,L.__)("Import Templates","ablocks"),o.onclick=()=>e(!0),i.append(o))};t();const i=new MutationObserver(()=>{const t=document.getElementById("ablocks-demo-importer-bottom-btn");t&&t!==l.current&&(l.current=t,t.addEventListener("click",()=>{e(!0)}))});return i.observe(document.body,{childList:!0,subtree:!0}),()=>i.disconnect()},[]),(0,I.jsx)(I.Fragment,{children:t&&(0,I.jsxs)(XG,{suffix:"ablocks-demo-importer",isOpen:t,
5447 -onRequestClose:()=>e(!1),title:(0,L.__)("Import Template","ablocks"),size:"large",largeModalMarginTop:"0px",style:{overlay:{overflowY:"hidden",display:"flex",justifyContent:"center",zIndex:9999},content:{inset:"unset",padding:0,overflow:"none",border:0,marginTop:"0px"}},children:[(0,I.jsx)($G,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--assets-generation"}),suffix:"sync-btn",onClick:()=>{o(!0),(0,M.In)({action:"ablocks/clear_demo_transients"}).then(()=>{o(!1)})}}),(0,I.jsx)(aZ,{setIsOpen:e,isSyncLoading:i})]})})}});const nZ=({type:t,attributes:e,setAttributes:i,storeEngineTerms:o})=>{let a=(0,L.__)("products Ids","ablocks"),l="products_ids",n=e?.products_ids||"",s=(0,L.__)("products Categories","ablocks"),r="products_categories",b=e?.products_categories||"",c=(0,L.__)("products Tags","ablocks"),d="products_tags",u=e?.products_tags||"";"exclude"===t&&(a=(0,L.__)("Exclude products Ids","ablocks"),l="products_exclude_ids",n=e?.products_exclude_ids||"",s=(0,
5448 -L.__)("Exclude products Categories","ablocks"),r="products_exclude_categories",b=e?.products_exclude_categories||"",c=(0,L.__)("Exclude products Tags","ablocks"),d="products_exclude_tags",u=e?.products_exclude_tags||"");const p=o.categories||[],m=o.tags||[];return(0,I.jsxs)("div",{className:"ablocks-products-settings-include-exclude-options",children:[(0,I.jsx)(le,{label:a,attributeName:l,attributeValue:n,onChangeHandler:t=>i({[l]:t||void 0}),placeholder:(0,L.__)("Enter products id's separated by comma","ablocks"),disableDynamicContent:!0}),(0,I.jsx)("i",{children:(0,L.__)("Enter products id's separated by comma","ablocks")}),(0,I.jsx)(Ut,{isMulti:!0,options:p,label:s,attributeValue:b||[],attributeName:r,setAttributes:i}),(0,I.jsx)(Ut,{isMulti:!0,options:m,label:c,attributeValue:u||[],attributeName:d,setAttributes:i})]})},sZ=[{label:(0,L.__)("2","ablocks"),value:2},{label:(0,L.__)("3","ablocks"),value:3},{label:(0,L.__)("4","ablocks"),value:4},{label:(0,L.__)("6","ablocks"),value:6},{
5449 -label:(0,L.__)("12","ablocks"),value:12}],rZ=((0,L.__)("Beginner","ablocks"),(0,L.__)("Intermediate","ablocks"),(0,L.__)("Expert","ablocks"),(0,L.__)("Free","ablocks"),(0,L.__)("Paid","ablocks"),[{label:(0,L.__)("Date","ablocks"),value:"date"},{label:(0,L.__)("Product Title","ablocks"),value:"title"},{label:(0,L.__)("Modified Date","ablocks"),value:"modified"}]),bZ=[{label:(0,L.__)("Descending","ablocks"),value:"DESC"},{label:(0,L.__)("Ascending","ablocks"),value:"ASC"}];function cZ(t){
5450 -const{attributes:e,setAttributes:i,storeEngineTerms:o}=t,{products_columns:a,show_pagination:n,order_by:s,products_count:r,products_order:b,title_typography:c,title_color:d,title_hover_color:u,price_typography:p,price_color:m,card_background:h,card_border:g,cart_border:f,card_margin:y,card_hover_margin:T,card_padding:H,card_hover_padding:M,cart_button_typography:x,cart_button_color:k,cart_button_hover_color:v,cart_button_text_hover_color:_,cart_button_text_color:R,buttonWidth:S,titleTextAlign:W,priceTextAlign:P}=e,U={attributes:e,setAttributes:i,storeEngineTerms:o},j=[{title:(0,L.__)("Include","ablocks"),name:"include",render:(0,I.jsx)(nZ,{type:"include",...U})},{title:(0,L.__)("Exclude","ablocks"),name:"exclude",render:(0,I.jsx)(nZ,{type:"exclude",...U})}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Layout Options","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{
5451 -options:sZ,label:(0,L.__)("Products Columns","ablocks"),attributeValue:a,attributeName:"products_columns",setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Pagination","ablocks"),attributeValue:n,setAttributes:i,attributeName:"show_pagination"})]}),(0,I.jsxs)(V,{title:(0,L.__)("Product Query","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Product Per Page","ablocks"),min:1,max:1e3,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"products_count",attributeValue:r,setAttributes:i,attributeObjectKey:"products_count"}),(0,I.jsx)(Ut,{options:rZ,label:(0,L.__)("Order By","ablocks"),attributeValue:s,attributeName:"order_by",setAttributes:i}),(0,I.jsx)(Ut,{options:bZ,label:(0,L.__)("Order","ablocks"),attributeValue:b,attributeName:"products_order",setAttributes:i}),(0,I.jsx)(Jl,{tabs:j})]}),(0,I.jsxs)(V,{title:(0,L.__)("Products Card","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1
5456 +onClick:()=>{u(b.length)}})]})]})};wZ.propTypes=jZ;const zZ=wZ,CZ=[{label:(0,L.__)("Pattern","ablocks"),value:"pattern"},{label:(0,L.__)("Template","ablocks"),value:"template"},{label:(0,L.__)("Page","ablocks"),value:"page"}],AZ=(LZ=t=>{const{setIsOpen:e,isSyncLoading:i}=t,[o,l]=(0,a.useState)("pattern"),[n,s]=(0,a.useState)(null),[b,c]=(0,a.useState)("all"),[d,u]=(0,a.useState)(""),[p,m]=(0,a.useState)([]),[h,g]=(0,a.useState)(!1),[f,y]=(0,a.useState)(!1),[T,H]=(0,a.useState)({page:1,perPage:10,total:0}),x=(t=1,e)=>{g(!0);let i={type:o,cost_type:b};n&&(i={category:n,...i}),e&&(i={q:e,...i}),t&&(i={page:t,...i}),(0,M.In)({action:"ablocks/get_demo_list",...i}).then(({data:t})=>{if(t.success){const{posts:e,...i}=t.data;m(e),H(i),g(!1)}})};(0,a.useEffect)(()=>{x(T.page)},[o,b,n,T.page,i]),(0,a.useEffect)(()=>{s(null)},[o]);const k=(0,r.useSelect)(t=>t("core/notices").getNotices().filter(t=>"snackbar"===t.type)),{createNotice:v,removeNotice:_}=(0,
5457 +r.useDispatch)("core/notices"),R=(t,e="success")=>{v(e,t,{type:"snackbar",isDismissible:!0})},S=!f&&""===d;return(0,I.jsxs)("div",{className:"ablocks-demo-importer-library",children:[(0,I.jsxs)("div",{className:"ablocks-demo-importer-library-body",children:[!f&&(0,I.jsx)(yZ,{showSnackbar:R,selectedTab:o,selectedCategory:n,setSelectedCategory:s,selectedType:b,setSelectedType:c,setSearchTerm:u,setPaginationData:H}),(0,I.jsx)(UZ,{tabs:CZ,setPaginationData:H,selectedTab:o,demos:p,setSelectedTab:l,searchTerm:d,setSearchTerm:u,templatePages:f,setSelectedTemplatePages:y,dataFetchingStatus:h,fetchingDemo:x,showSnackbar:R,setIsOpen:e,setSelectedCategory:s})]}),S&&(0,I.jsx)(zZ,{totalItems:T.total,currentPageNumber:T.page,fetchHandler:t=>x(t)}),(0,I.jsx)(N.SnackbarList,{notices:k,onRemove:_})]})},t=>{const[e,i]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{const t=setTimeout(()=>{i(!1)},2e3);return()=>{clearTimeout(t)}},[]),e?(0,I.jsx)("div",{className:"ablocks-loading-spinner",children:(0,
5458 +I.jsx)(N.Spinner,{})}):(0,I.jsx)(LZ,{...t})});var LZ;(0,rZ.registerPlugin)("ablocks-demo-importer",{render:()=>{const[t,e]=(0,a.useState)(!1),[i,o]=(0,a.useState)(!1),l=(0,a.useRef)(null);return(0,a.useEffect)(()=>{const t=()=>{const i=document.querySelector(".editor-header__toolbar, .edit-post-header__toolbar, .edit-site-header-edit-mode__start");if(!i)return setTimeout(t,300);let o=document.getElementById("ablocks-demo-importer-btn");o||(o=document.createElement("button"),o.id="ablocks-demo-importer-btn",o.className="ablocks-demo-importer-button",o.textContent=(0,L.__)("Import Templates","ablocks"),o.onclick=()=>e(!0),i.append(o))};t();const i=new MutationObserver(()=>{const t=document.getElementById("ablocks-demo-importer-bottom-btn");t&&t!==l.current&&(l.current=t,t.addEventListener("click",()=>{e(!0)}))});return i.observe(document.body,{childList:!0,subtree:!0}),()=>i.disconnect()},[]),(0,I.jsx)(I.Fragment,{children:t&&(0,I.jsxs)(HZ,{suffix:"ablocks-demo-importer",isOpen:t,
5459 +onRequestClose:()=>e(!1),title:(0,L.__)("Import Template","ablocks"),size:"large",largeModalMarginTop:"0px",style:{overlay:{overflowY:"hidden",display:"flex",justifyContent:"center",zIndex:9999},content:{inset:"unset",padding:0,overflow:"none",border:0,marginTop:"0px"}},children:[(0,I.jsx)(_Z,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--assets-generation"}),suffix:"sync-btn",onClick:()=>{o(!0),(0,M.In)({action:"ablocks/clear_demo_transients"}).then(()=>{o(!1)})}}),(0,I.jsx)(AZ,{setIsOpen:e,isSyncLoading:i})]})})}});const DZ=({type:t,attributes:e,setAttributes:i,storeEngineTerms:o})=>{let a=(0,L.__)("products Ids","ablocks"),l="products_ids",n=e?.products_ids||"",s=(0,L.__)("products Categories","ablocks"),r="products_categories",b=e?.products_categories||"",c=(0,L.__)("products Tags","ablocks"),d="products_tags",u=e?.products_tags||"";"exclude"===t&&(a=(0,L.__)("Exclude products Ids","ablocks"),l="products_exclude_ids",n=e?.products_exclude_ids||"",s=(0,
5460 +L.__)("Exclude products Categories","ablocks"),r="products_exclude_categories",b=e?.products_exclude_categories||"",c=(0,L.__)("Exclude products Tags","ablocks"),d="products_exclude_tags",u=e?.products_exclude_tags||"");const p=o.categories||[],m=o.tags||[];return(0,I.jsxs)("div",{className:"ablocks-products-settings-include-exclude-options",children:[(0,I.jsx)(le,{label:a,attributeName:l,attributeValue:n,onChangeHandler:t=>i({[l]:t||void 0}),placeholder:(0,L.__)("Enter products id's separated by comma","ablocks"),disableDynamicContent:!0}),(0,I.jsx)("i",{children:(0,L.__)("Enter products id's separated by comma","ablocks")}),(0,I.jsx)(Ut,{isMulti:!0,options:p,label:s,attributeValue:b||[],attributeName:r,setAttributes:i}),(0,I.jsx)(Ut,{isMulti:!0,options:m,label:c,attributeValue:u||[],attributeName:d,setAttributes:i})]})},NZ=[{label:(0,L.__)("2","ablocks"),value:2},{label:(0,L.__)("3","ablocks"),value:3},{label:(0,L.__)("4","ablocks"),value:4},{label:(0,L.__)("6","ablocks"),value:6},{
5461 +label:(0,L.__)("12","ablocks"),value:12}],IZ=((0,L.__)("Beginner","ablocks"),(0,L.__)("Intermediate","ablocks"),(0,L.__)("Expert","ablocks"),(0,L.__)("Free","ablocks"),(0,L.__)("Paid","ablocks"),[{label:(0,L.__)("Date","ablocks"),value:"date"},{label:(0,L.__)("Product Title","ablocks"),value:"title"},{label:(0,L.__)("Modified Date","ablocks"),value:"modified"}]),VZ=[{label:(0,L.__)("Descending","ablocks"),value:"DESC"},{label:(0,L.__)("Ascending","ablocks"),value:"ASC"}];function OZ(t){
5462 +const{attributes:e,setAttributes:i,storeEngineTerms:o}=t,{products_columns:a,show_pagination:n,order_by:s,products_count:r,products_order:b,title_typography:c,title_color:d,title_hover_color:u,price_typography:p,price_color:m,card_background:h,card_border:g,cart_border:f,card_margin:y,card_hover_margin:T,card_padding:H,card_hover_padding:M,cart_button_typography:x,cart_button_color:k,cart_button_hover_color:v,cart_button_text_hover_color:_,cart_button_text_color:R,buttonWidth:S,titleTextAlign:W,priceTextAlign:P}=e,U={attributes:e,setAttributes:i,storeEngineTerms:o},j=[{title:(0,L.__)("Include","ablocks"),name:"include",render:(0,I.jsx)(DZ,{type:"include",...U})},{title:(0,L.__)("Exclude","ablocks"),name:"exclude",render:(0,I.jsx)(DZ,{type:"exclude",...U})}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Layout Options","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{
5463 +options:NZ,label:(0,L.__)("Products Columns","ablocks"),attributeValue:a,attributeName:"products_columns",setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Pagination","ablocks"),attributeValue:n,setAttributes:i,attributeName:"show_pagination"})]}),(0,I.jsxs)(V,{title:(0,L.__)("Product Query","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Product Per Page","ablocks"),min:1,max:1e3,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"products_count",attributeValue:r,setAttributes:i,attributeObjectKey:"products_count"}),(0,I.jsx)(Ut,{options:IZ,label:(0,L.__)("Order By","ablocks"),attributeValue:s,attributeName:"order_by",setAttributes:i}),(0,I.jsx)(Ut,{options:VZ,label:(0,L.__)("Order","ablocks"),attributeValue:b,attributeName:"products_order",setAttributes:i}),(0,I.jsx)(Jl,{tabs:j})]}),(0,I.jsxs)(V,{title:(0,L.__)("Products Card","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1
5452 5464 }),(0,I.jsx)(Jt,{label:(0,L.__)("Text Align","ablocks"),attributeName:"titleTextAlign",attributeValue:W,setAttributes:i,isInline:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:d,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color",attributeValue:u,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Price","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Text Align","ablocks"),attributeName:"priceTextAlign",attributeValue:P,setAttributes:i,isInline:!1}),(0,I.jsx)(wc,{label:(0,
5453 5465 L.__)("Typography","ablocks"),attributeName:"price_typography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"price_color",attributeValue:m,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Margin , Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"card_margin",attributeValue:y,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"card_padding",attributeValue:H,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"card_hover_margin",attributeValue:T,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"card_hover_padding",attributeValue:M,setAttributes:i})]})})]}),(0,
5454 5466 I.jsx)(V,{title:(0,L.__)("Products Background","ablocks"),initialOpen:!1,children:(0,I.jsx)(nr,{isResponsive:!0,attributeName:"card_background",attributeValue:h,setAttributes:i})}),(0,I.jsxs)(V,{title:(0,L.__)("Products Border","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"card_border",attributeValue:g,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Products Cart Button","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,unitValue:S,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:S,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"cart_border",attributeValue:f,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Button Typography","ablocks"),attributeName:"cart_button_typography",attributeValue:x,setAttributes:i,isResponsive:!0,attributes:e
5455 -}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),isGradient:!1,attributeName:"cart_button_text_color",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"cart_button_color",attributeValue:k,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover Color","ablocks"),isGradient:!1,attributeName:"cart_button_text_hover_color",attributeValue:_,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover Color","ablocks"),isGradient:!1,attributeName:"cart_button_hover_color",attributeValue:v,setAttributes:i})]})})]})]})})})}cZ.propTypes={};const dZ={UU:"ablocks/storeengine-products",uK:{block_id:{type:"string",default:""},products_ids:{type:"array",default:[]},products_categories:{type:"array",default:[]},products_tags:{
5467 +}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),isGradient:!1,attributeName:"cart_button_text_color",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"cart_button_color",attributeValue:k,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover Color","ablocks"),isGradient:!1,attributeName:"cart_button_text_hover_color",attributeValue:_,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover Color","ablocks"),isGradient:!1,attributeName:"cart_button_hover_color",attributeValue:v,setAttributes:i})]})})]})]})})})}OZ.propTypes={};const YZ={UU:"ablocks/storeengine-products",uK:{block_id:{type:"string",default:""},products_ids:{type:"array",default:[]},products_categories:{type:"array",default:[]},products_tags:{
5456 5468 type:"array",default:[]},products_exclude_ids:{type:"array",default:[]},products_exclude_categories:{type:"array",default:[]},products_exclude_tags:{type:"array",default:[]},category_color:{type:"string",default:"#000"},category_hover_color:{type:"string",default:"#000"},products_count:{type:"number",default:3},products_columns:{type:"number",default:3},show_pagination:{type:"boolean",default:!0},difficulty_levels:{type:"array",default:[]},price_types:{type:"array",default:[]},cart_button_color:{type:"string",default:""},cart_button_hover_color:{type:"string",default:""},cart_button_text_color:{type:"string",default:""},cart_button_text_hover_color:{type:"string",default:""},cart_button_transition:{type:"number",default:0},order_by:{type:"string",default:"date"},products_order:{type:"string",default:"DESC"},title_color:{type:"string",default:"#000"},title_hover_color:{type:"string",default:""},price_color:{type:"string",default:""},price_hover_color:{type:"string",default:""},
5457 5469 cat_typographyGlobal:{type:"string",default:""},cat_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},cart_button_typographyGlobal:{type:"string",default:""},cart_button_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",
5458 5470 fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},title_typographyGlobal:{type:"string",default:""},title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",
5459 5471 wordSpacingUnitMobile:"px"}},author_typographyGlobal:{type:"string",default:""},author_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},rating_typographyGlobal:{type:"string",default:""},rating_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",
@@ -5474,11 +5486,11 @@
5474 5486 imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},
5475 5487 _zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,
5476 5488 rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",
5477 5489 maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,
5478 -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function uZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:dZ.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,
5479 -I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-products",httpMethod:"POST",attributes:e})})})})}uZ.propTypes={};const pZ=(t,e="")=>({...(0,d.qD)(t?.card_background,"background",e),...(0,y.qD)(t?.card_border,e),...(0,c.qD)(t?.card_margin,"margin",e),...(0,c.qD)(t?.card_padding,"padding",e)}),mZ=(t,e="")=>({...(0,d.a9)(t?.card_background,"background",e),...(0,y.a9)(t?.card_border,e),...(0,c.qD)(t?.card_hover_margin,"margin",e),...(0,c.qD)(t?.card_hover_padding,"padding",e)}),hZ=(t,e="")=>{const i={},o=(0,M.Zy)(t?.title_typography,{weight:"400"}),a=t?.title_typographyGlobal?t?.title_typographyGlobal:"";return i["text-align"]=t?.titleTextAlign[`value${e}`]??[],{...i,color:(0,Hs.qD)(t.title_color),...(0,U.qD)(o,e,a)}},gZ=(t,e="")=>{const i={},o=(0,M.Zy)(t.price_typography,{weight:"400"});i["justify-content"]=t?.priceTextAlign[`value${e}`]??[];const a=t?.price_typographyGlobal?t?.price_typographyGlobal:"";return{...i,color:(0,Hs.qD)(t.price_color),...(0,U.qD)(o,e,a)}
5480 -},fZ=(t,e="")=>{const i=t?.cart_button_typographyGlobal?t?.cart_button_typographyGlobal:"",o=t?.cart_button_typography?(0,U.qD)(t?.cart_button_typography,e,i):[];return{...(0,y.qD)(t?.cart_border,e),color:(0,Hs.qD)(t.cart_button_text_color),background:(0,Hs.qD)(t?.cart_button_color),...o,...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}},yZ=(t,e="")=>({color:(0,Hs.qD)(t.cart_button_text_hover_color),background:(0,Hs.qD)(t?.cart_button_hover_color)});function TZ(t){
5490 +yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function XZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:YZ.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,
5491 +I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-products",httpMethod:"POST",attributes:e})})})})}XZ.propTypes={};const BZ=(t,e="")=>({...(0,d.qD)(t?.card_background,"background",e),...(0,y.qD)(t?.card_border,e),...(0,c.qD)(t?.card_margin,"margin",e),...(0,c.qD)(t?.card_padding,"padding",e)}),EZ=(t,e="")=>({...(0,d.a9)(t?.card_background,"background",e),...(0,y.a9)(t?.card_border,e),...(0,c.qD)(t?.card_hover_margin,"margin",e),...(0,c.qD)(t?.card_hover_padding,"padding",e)}),FZ=(t,e="")=>{const i={},o=(0,M.Zy)(t?.title_typography,{weight:"400"}),a=t?.title_typographyGlobal?t?.title_typographyGlobal:"";return i["text-align"]=t?.titleTextAlign[`value${e}`]??[],{...i,color:(0,Hs.qD)(t.title_color),...(0,U.qD)(o,e,a)}},qZ=(t,e="")=>{const i={},o=(0,M.Zy)(t.price_typography,{weight:"400"});i["justify-content"]=t?.priceTextAlign[`value${e}`]??[];const a=t?.price_typographyGlobal?t?.price_typographyGlobal:"";return{...i,color:(0,Hs.qD)(t.price_color),...(0,U.qD)(o,e,a)}
5492 +},$Z=(t,e="")=>{const i=t?.cart_button_typographyGlobal?t?.cart_button_typographyGlobal:"",o=t?.cart_button_typography?(0,U.qD)(t?.cart_button_typography,e,i):[];return{...(0,y.qD)(t?.cart_border,e),color:(0,Hs.qD)(t.cart_button_text_color),background:(0,Hs.qD)(t?.cart_button_color),...o,...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}},GZ=(t,e="")=>({color:(0,Hs.qD)(t.cart_button_text_hover_color),background:(0,Hs.qD)(t?.cart_button_hover_color)});function ZZ(t){
5481 5493 const{attributes:e,setAttributes:i}=t,{form_title:o,title_color:a,title_typography:n,title_hover_color:s,username_label:r,username_placeholder:b,password_label:c,password_placeholder:d,remember_label:u,login_button_label:p,reset_password_label:m,login_redirect_url:h,logout_redirect_url:g,show_logged_in_message:f,login_btn_color:y,login_btn_bg_color:T,login_btn_typography:H,input_field_label_color:M,input_field_label_typography:x,input_field_label_hover_color:k,form_bg_color:v,input_field_bg_color:_,inputFieldColor:R,input_field_border:S,input_field_padding:W,form_padding:P,form_border:U,login_btn_hover_color:j,login_btn_bg_hover_color:w,inputFieldColorH:z,input_field_bg_hover_color:C}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Form Settings","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,
5482 5494 L.__)("Form Title","ablocks"),attributeValue:o,setAttributes:i,attributeName:"form_title"}),(0,I.jsx)(Kl,{label:(0,L.__)("Username Label","ablocks"),attributeValue:r,setAttributes:i,attributeName:"username_label"}),(0,I.jsx)(Kl,{label:(0,L.__)("Username Placeholder","ablocks"),attributeValue:b,setAttributes:i,attributeName:"username_placeholder"}),(0,I.jsx)(Kl,{label:(0,L.__)("Password Label","ablocks"),attributeValue:c,setAttributes:i,attributeName:"password_label"}),(0,I.jsx)(Kl,{label:(0,L.__)("Password Placeholder","ablocks"),attributeValue:d,setAttributes:i,attributeName:"password_placeholder"}),(0,I.jsx)(Kl,{label:(0,L.__)("Remember Label","ablocks"),attributeValue:u,setAttributes:i,attributeName:"remember_label"}),(0,I.jsx)(Kl,{label:(0,L.__)("Login Button Label","ablocks"),attributeValue:p,setAttributes:i,attributeName:"login_button_label"}),(0,I.jsx)(Kl,{label:(0,L.__)("Reset Password Label","ablocks"),attributeValue:m,setAttributes:i,attributeName:"reset_password_label"}),(0,
5483 5495 I.jsx)(Kl,{label:(0,L.__)("Login Redirect Url","ablocks"),attributeValue:h,setAttributes:i,attributeName:"login_redirect_url"}),(0,I.jsx)(Kl,{label:(0,L.__)("Logout Redirect Url","ablocks"),attributeValue:g,setAttributes:i,attributeName:"logout_redirect_url"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Logged in Message","ablocks"),attributeValue:f,setAttributes:i,attributeName:"show_logged_in_message"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"form_bg_color",attributeValue:v,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"form_padding",attributeValue:P,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,
5484 5496 I.jsx)(Us,{attributeName:"form_border",attributeValue:U,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Form Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color",attributeValue:s,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Input Field Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Input Label","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),
@@ -5483,12 +5495,12 @@
5483 5495 I.jsx)(Kl,{label:(0,L.__)("Login Redirect Url","ablocks"),attributeValue:h,setAttributes:i,attributeName:"login_redirect_url"}),(0,I.jsx)(Kl,{label:(0,L.__)("Logout Redirect Url","ablocks"),attributeValue:g,setAttributes:i,attributeName:"logout_redirect_url"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Logged in Message","ablocks"),attributeValue:f,setAttributes:i,attributeName:"show_logged_in_message"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"form_bg_color",attributeValue:v,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"form_padding",attributeValue:P,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,
5484 5496 I.jsx)(Us,{attributeName:"form_border",attributeValue:U,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Form Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color",attributeValue:s,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Input Field Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Input Label","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),
5485 5497 attributeName:"input_field_label_typography",attributeValue:x,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"input_field_label_color",attributeValue:M,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"input_field_label_hover_color",attributeValue:k,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Input Field","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"inputFieldColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"input_field_bg_color",attributeValue:_,
5486 5498 setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Hover color","ablocks"),isGradient:!1,attributeName:"inputFieldColorH",attributeValue:z,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover background","ablocks"),isGradient:!1,attributeName:"input_field_bg_hover_color",attributeValue:C,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"input_field_padding",attributeValue:W,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"input_field_border",attributeValue:S,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"login_btn_typography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e
5487 -}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_color",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_color",attributeValue:T,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_hover_color",attributeValue:j,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_hover_color",attributeValue:w,setAttributes:i})]})})]})]})})})}(0,M.xV)(dZ.UU,"","storeengine")&&(0,o.registerBlockType)(dZ.UU,{title:(0,L.__)("Products","ablocks"),attributes:dZ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),
5488 -edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const[s,r]=(0,a.useState)({});(0,a.useEffect)(()=>{if(s?.categories&&s?.tags)return!1;jQuery.post(window.ajaxurl,{action:"ablocks/get_storeengine_terms",security:window.ABlocksGlobal.ablocks_nonce},(t,e)=>{if("success"===e){const{categories:e=[],tags:i=[]}=t?.data||{};r({categories:e,tags:i})}})},[]);const c=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product",pZ(i),pZ(i,"Tablet"),pZ(i,"Mobile"),t.customDeviceMap(t=>pZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product:hover",mZ(i),mZ(i,"Tablet"),mZ(i,"Mobile"),t.customDeviceMap(t=>mZ(i,t))),
5489 -t.addClassStyles("{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title,\n\t\t\t{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title a ",hZ(i),hZ(i,"Tablet"),hZ(i,"Mobile"),t.customDeviceMap(t=>hZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-ajax__amount .storeengine-product__simple-price",gZ(i),gZ(i,"Tablet"),gZ(i,"Mobile"),t.customDeviceMap(t=>gZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn",fZ(i),fZ(i,"Tablet"),fZ(i,"Mobile"),t.customDeviceMap(t=>fZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn:hover",yZ(i),yZ(i,"Tablet"),yZ(i,"Mobile"),t.customDeviceMap(t=>yZ(i,t))),(0,b.applyFilters)("ablocks.storeengine-products.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:c}),e&&(0,
5490 -I.jsx)(cZ,{storeEngineTerms:s,...t}),(0,I.jsx)(uZ,{...t})]})},save:()=>null}),TZ.propTypes={};const HZ={UU:"ablocks/storeengine-login-form",uK:{block_id:{type:"string",default:""},form_title:{type:"string",default:"Log In into your Account"},username_label:{type:"string",default:"Username or Email Address"},username_placeholder:{type:"string",default:"Username or Email Address"},password_label:{type:"string",default:"Password"},password_placeholder:{type:"string",default:"Password"},remember_label:{type:"string",default:"Remember me"},login_button_label:{type:"string",default:"Log in"},reset_password_label:{type:"string",default:"Reset password"},show_logged_in_message:{type:"boolean",default:!0},customer_register_url:{type:"string",default:""},login_redirect_url:{type:"string",default:""},logout_redirect_url:{type:"string",default:""},login_btn_color:{type:"string",default:"#fff"},login_btn_bg_color:{type:"string",default:"#7B68EE"},login_btn_bg_hover_color:{type:"string",
5499 +}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_color",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_color",attributeValue:T,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_hover_color",attributeValue:j,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_hover_color",attributeValue:w,setAttributes:i})]})})]})]})})})}(0,M.xV)(YZ.UU,"","storeengine")&&(0,o.registerBlockType)(YZ.UU,{title:(0,L.__)("Products","ablocks"),attributes:YZ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),
5500 +edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const[s,r]=(0,a.useState)({});(0,a.useEffect)(()=>{if(s?.categories&&s?.tags)return!1;jQuery.post(window.ajaxurl,{action:"ablocks/get_storeengine_terms",security:window.ABlocksGlobal.ablocks_nonce},(t,e)=>{if("success"===e){const{categories:e=[],tags:i=[]}=t?.data||{};r({categories:e,tags:i})}})},[]);const c=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product",BZ(i),BZ(i,"Tablet"),BZ(i,"Mobile"),t.customDeviceMap(t=>BZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product:hover",EZ(i),EZ(i,"Tablet"),EZ(i,"Mobile"),t.customDeviceMap(t=>EZ(i,t))),
5501 +t.addClassStyles("{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title,\n\t\t\t{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title a ",FZ(i),FZ(i,"Tablet"),FZ(i,"Mobile"),t.customDeviceMap(t=>FZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-ajax__amount .storeengine-product__simple-price",qZ(i),qZ(i,"Tablet"),qZ(i,"Mobile"),t.customDeviceMap(t=>qZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn",$Z(i),$Z(i,"Tablet"),$Z(i,"Mobile"),t.customDeviceMap(t=>$Z(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn:hover",GZ(i),GZ(i,"Tablet"),GZ(i,"Mobile"),t.customDeviceMap(t=>GZ(i,t))),(0,b.applyFilters)("ablocks.storeengine-products.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:c}),e&&(0,
5502 +I.jsx)(OZ,{storeEngineTerms:s,...t}),(0,I.jsx)(XZ,{...t})]})},save:()=>null}),ZZ.propTypes={};const KZ={UU:"ablocks/storeengine-login-form",uK:{block_id:{type:"string",default:""},form_title:{type:"string",default:"Log In into your Account"},username_label:{type:"string",default:"Username or Email Address"},username_placeholder:{type:"string",default:"Username or Email Address"},password_label:{type:"string",default:"Password"},password_placeholder:{type:"string",default:"Password"},remember_label:{type:"string",default:"Remember me"},login_button_label:{type:"string",default:"Log in"},reset_password_label:{type:"string",default:"Reset password"},show_logged_in_message:{type:"boolean",default:!0},customer_register_url:{type:"string",default:""},login_redirect_url:{type:"string",default:""},logout_redirect_url:{type:"string",default:""},login_btn_color:{type:"string",default:"#fff"},login_btn_bg_color:{type:"string",default:"#7B68EE"},login_btn_bg_hover_color:{type:"string",
5491 5503 default:"#6F5DD6"},login_btn_hover_color:{type:"string",default:"#fff"},title_color:{type:"string",default:"#000"},title_hover_color:{type:"string",default:"#000"},input_field_label_color:{type:"string",default:"#333"},input_field_label_hover_color:{type:"string",default:"#333"},form_footer_title_color:{type:"string",default:"#000"},input_field_bg_color:{type:"string",default:"#fff"},inputFieldColor:{type:"string",default:"#333"},input_field_bg_hover_color:{type:"string",default:"#fff"},inputFieldColorH:{type:"string",default:"#333"},login_btn_typographyGlobal:{type:"string",default:""},login_btn_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",
5492 5504 lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},form_bg_color:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",
5493 5505 imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",
5494 5506 externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},title_typographyGlobal:{type:"string",default:""},title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},input_field_label_typographyGlobal:{type:"string",default:""},input_field_label_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",
@@ -5504,17 +5516,17 @@
5504 5516 imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",
5505 5517 imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",
5506 5518 skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",
5507 5519 yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",
5508 -shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function MZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:HZ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,
5509 -weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-login-form",httpMethod:"POST",attributes:e})})})})}MZ.propTypes={};const xZ=(t,e="")=>({...(0,d.qD)(t?.form_bg_color,"background",e),...(0,y.qD)(t?.form_border,e),...(0,c.qD)(t?.form_padding,"padding",e)}),kZ=(t,e="")=>({color:(0,Hs.qD)(t?.inputFieldColor),background:(0,Hs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.input_field_border,e),...(0,c.qD)(t?.input_field_padding,"padding",e)}),vZ=t=>({color:(0,Hs.qD)(t?.inputFieldColor)}),_Z=(t,e="")=>({...(0,d.a9)(t?.form_bg_color,"background",e)}),RZ=t=>({color:(0,Hs.qD)(t?.login_btn_hover_color),background:(0,Hs.qD)(t?.login_btn_bg_hover_color)}),SZ=(t,e="")=>{const i=(0,M.Zy)(t.login_btn_typography,{weight:"400"
5510 -}),o=t.login_btn_typographyGlobal?t.login_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.login_btn_bg_color),...(0,U.qD)(i,e,o)}},WZ=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.title_color),...(0,U.qD)(i,e,o)}},PZ=(t,e="")=>{const i=(0,M.Zy)(t.form_footer_title_typography,{weight:"400"}),o=t.form_footer_title_typographyGlobal?t.form_footer_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.form_footer_title_color),...(0,U.qD)(i,e,o)}},UZ=(t,e="")=>{const i=(0,M.Zy)(t.input_field_label_typography,{weight:"400"}),o=t.input_field_label_typographyGlobal?t.input_field_label_typographyGlobal:"";return{color:(0,Hs.qD)(t?.input_field_label_color),...(0,U.qD)(i,e,o)}},jZ=t=>({color:(0,Hs.qD)(t?.input_field_label_hover_color)});function wZ(t){
5520 +shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function JZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:KZ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,
5521 +weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-login-form",httpMethod:"POST",attributes:e})})})})}JZ.propTypes={};const QZ=(t,e="")=>({...(0,d.qD)(t?.form_bg_color,"background",e),...(0,y.qD)(t?.form_border,e),...(0,c.qD)(t?.form_padding,"padding",e)}),tK=(t,e="")=>({color:(0,Hs.qD)(t?.inputFieldColor),background:(0,Hs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.input_field_border,e),...(0,c.qD)(t?.input_field_padding,"padding",e)}),eK=t=>({color:(0,Hs.qD)(t?.inputFieldColor)}),iK=(t,e="")=>({...(0,d.a9)(t?.form_bg_color,"background",e)}),oK=t=>({color:(0,Hs.qD)(t?.login_btn_hover_color),background:(0,Hs.qD)(t?.login_btn_bg_hover_color)}),aK=(t,e="")=>{const i=(0,M.Zy)(t.login_btn_typography,{weight:"400"
5522 +}),o=t.login_btn_typographyGlobal?t.login_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.login_btn_bg_color),...(0,U.qD)(i,e,o)}},lK=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.title_color),...(0,U.qD)(i,e,o)}},nK=(t,e="")=>{const i=(0,M.Zy)(t.form_footer_title_typography,{weight:"400"}),o=t.form_footer_title_typographyGlobal?t.form_footer_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.form_footer_title_color),...(0,U.qD)(i,e,o)}},sK=(t,e="")=>{const i=(0,M.Zy)(t.input_field_label_typography,{weight:"400"}),o=t.input_field_label_typographyGlobal?t.input_field_label_typographyGlobal:"";return{color:(0,Hs.qD)(t?.input_field_label_color),...(0,U.qD)(i,e,o)}},rK=t=>({color:(0,Hs.qD)(t?.input_field_label_hover_color)});function bK(t){
5511 5523 const{attributes:e,setAttributes:i}=t,{tableBackground:o,tableBackgroundH:a,tableTransition:n,productTilteTypography:s,productTitleColor:r,productTitleColorH:b,productsubTitleTypography:c,productSubTiteColor:d,productSubTiteColorH:u,productPriceTypography:p,productPriceColor:m,productPriceColorH:h}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Table Background","ablocks"),initialOpen:!0,children:[" ",(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeName:"tableBackground",attributeValue:o,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:a,attributeName:"tableBackgroundH",setAttributes:i}),(0,I.jsx)(_t,{label:(0,
5512 5524 L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"tableTransition",setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Table Child Control","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,L.__)("Product Title","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"productTilteTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:r,attributeName:"productTitleColor",setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeValue:b,attributeName:"productTitleColorH",setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,
5513 5525 L.__)("Product SubTitle","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"productsubTitleTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:d,attributeName:"productSubTiteColor",setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeValue:u,attributeName:"productSubTiteColorH",setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Product Price","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"productPriceTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,
5514 -isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:m,attributeName:"productPriceColor",setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:h,attributeName:"productPriceColorH",setAttributes:i})})})]})]})})})}(0,M.xV)(HZ.UU,"","storeengine")&&(0,o.registerBlockType)(HZ.UU,{title:(0,L.__)("Login Form","ablocks"),attributes:HZ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} storeengine-login-form-wrapper .storeengine-form-group button",SZ(i),SZ(i,"Tablet"),SZ(i,"Mobile"),t.customDeviceMap(t=>SZ(i,t))),
5515 -t.addClassStyles("{{WRAPPER}} storeengine-login-form-wrapper .storeengine-form-group button:hover",RZ(i),RZ(i),RZ(i),t.customDeviceMap(t=>RZ(i))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form-info p,\n\t\t\t{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form-info p a",PZ(i),PZ(i,"Tablet"),PZ(i,"Mobile"),t.customDeviceMap(t=>PZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-heading",WZ(i),WZ(i,"Tablet"),WZ(i,"Mobile"),t.customDeviceMap(t=>WZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-heading:hover",(t=>({color:(0,Hs.qD)(t?.title_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group label",UZ(i),UZ(i,"Tablet"),UZ(i,"Mobile"),t.customDeviceMap(t=>UZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group label:hover ",jZ(i),jZ(i),jZ(i),t.customDeviceMap(t=>jZ(i))),
5516 -t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper",xZ(i),xZ(i,"Tablet"),xZ(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper:hover",_Z(i),_Z(i,"Tablet"),_Z(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group input",kZ(i),kZ(i,"Tablet"),kZ(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group input::placeholder",vZ(i),vZ(i),vZ(i)),(0,b.applyFilters)("ablocks.storeengine-login-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(TZ,{...t}),(0,I.jsx)(MZ,{...t})]})},save:()=>null}),wZ.propTypes={};const zZ={UU:"ablocks/storeengine-cart-list",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},tableBackground:{type:"string",default:""},tableTransition:{type:"number",default:0},tableBackgroundH:{
5526 +isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:m,attributeName:"productPriceColor",setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:h,attributeName:"productPriceColorH",setAttributes:i})})})]})]})})})}(0,M.xV)(KZ.UU,"","storeengine")&&(0,o.registerBlockType)(KZ.UU,{title:(0,L.__)("Login Form","ablocks"),attributes:KZ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} storeengine-login-form-wrapper .storeengine-form-group button",aK(i),aK(i,"Tablet"),aK(i,"Mobile"),t.customDeviceMap(t=>aK(i,t))),
5527 +t.addClassStyles("{{WRAPPER}} storeengine-login-form-wrapper .storeengine-form-group button:hover",oK(i),oK(i),oK(i),t.customDeviceMap(t=>oK(i))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form-info p,\n\t\t\t{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form-info p a",nK(i),nK(i,"Tablet"),nK(i,"Mobile"),t.customDeviceMap(t=>nK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-heading",lK(i),lK(i,"Tablet"),lK(i,"Mobile"),t.customDeviceMap(t=>lK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-heading:hover",(t=>({color:(0,Hs.qD)(t?.title_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group label",sK(i),sK(i,"Tablet"),sK(i,"Mobile"),t.customDeviceMap(t=>sK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group label:hover ",rK(i),rK(i),rK(i),t.customDeviceMap(t=>rK(i))),
5528 +t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper",QZ(i),QZ(i,"Tablet"),QZ(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper:hover",iK(i),iK(i,"Tablet"),iK(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group input",tK(i),tK(i,"Tablet"),tK(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group input::placeholder",eK(i),eK(i),eK(i)),(0,b.applyFilters)("ablocks.storeengine-login-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(ZZ,{...t}),(0,I.jsx)(JZ,{...t})]})},save:()=>null}),bK.propTypes={};const cK={UU:"ablocks/storeengine-cart-list",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},tableBackground:{type:"string",default:""},tableTransition:{type:"number",default:0},tableBackgroundH:{
5517 5529 type:"string",default:""},tableHeaderBackground:{type:"string",default:""},tableHeaderBackgroundH:{type:"string",default:""},thumbImage:{type:"number",default:120},productTitleColor:{type:"string",default:""},productTitleColorH:{type:"string",default:""},productSubTiteColor:{type:"string",default:""},productSubTiteColorH:{type:"string",default:""},productPriceColor:{type:"string",default:""},productPriceColorH:{type:"string",default:""},tableHeaderTypographyGlobal:{type:"string",default:""},tableHeaderTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",
5518 5530 letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},productTilteTypographyGlobal:{type:"string",default:""},productTilteTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},productsubTitleTypographyGlobal:{type:"string",default:""},productsubTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",
5519 5531 fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},productPriceTypographyGlobal:{type:"string",default:""},productPriceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",
5520 5532 letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",
@@ -5524,16 +5536,16 @@
5524 5536 imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",
5525 5537 videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",
5526 5538 yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",
5527 5539 customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,
5528 -delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function CZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:zZ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{
5529 -fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-cart-list",httpMethod:"POST",attributes:e})})})})}CZ.propTypes={};const AZ=(t,e="")=>({background:(0,Hs.qD)(t?.tableBackground)}),LZ=(t,e="")=>({background:(0,Hs.qD)(t?.tableHeaderBackground)}),DZ=(t,e="")=>{const i=(0,M.Zy)(t?.tableHeaderTypography,{"font-weight":"400"}),o=t.tableHeaderTypographyGlobal?t.tableHeaderTypographyGlobal:"";return{...(0,U.qD)(i,e,o)}},NZ=(t,e="")=>{const i=t?.productTitleTypography?t?.productTitleTypography:[],o=t.productTitleTypographyGlobal?t.productTitleTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.productTitleColor)}},IZ=(t,e="")=>{const i=(0,M.Zy)(t?.productsubTitleTypography??"",{"font-weight":"400"}),o=t.productsubTitleTypographyGlobal?t.productsubTitleTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.productSubTitleColor)}},VZ=(t,e="")=>{
5530 -const i=(0,M.Zy)(t?.productPriceTypography,{"font-weight":"400"}),o=t.productPriceTypographyGlobal?t.productPriceTypographyGlobal:"";return{color:(0,Hs.qD)(t?.productPriceColor),...(0,U.qD)(i,e,o)}};(0,M.xV)(zZ.UU,"","storeengine")&&(0,o.registerBlockType)(zZ.UU,{title:(0,L.__)("Cart List","ablocks"),attributes:zZ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-cart-table",AZ(i),AZ(i,"Tablet"),AZ(i,"Mobile"),t.customDeviceMap(t=>AZ(i,t))),
5531 -t.addClassStyles("{{WRAPPER}} .storeengine-cart-table .storeengine-cart-table__head tr",LZ(i),LZ(i,"Tablet"),LZ(i,"Mobile"),t.customDeviceMap(t=>LZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-list-table-shortcode .storeengine-cart-table__head tr th",DZ(i),DZ(i,"Tablet"),DZ(i,"Mobile"),t.customDeviceMap(t=>DZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-product .storeengine-cart-product__content .storeengine-cart-product-title a",NZ(i),NZ(i,"Tablet"),NZ(i,"Mobile"),t.customDeviceMap(t=>NZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-product__content .storeengine-cart-product-price",IZ(i),IZ(i,"Tablet"),IZ(i,"Mobile"),t.customDeviceMap(t=>IZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-list-table-shortcode .storeengine-cart-table__body-td .storeengine-price bdi",VZ(i),VZ(i,"Tablet"),VZ(i,"Mobile"),t.customDeviceMap(t=>VZ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(wZ,{...t}),(0,
5532 -I.jsx)(CZ,{...t})]})},save:()=>null});var OZ=i(78696);function YZ(t){const{attributes:e,setAttributes:i}=t,{direction:o,formAlignment:a,inputWidth:n,inputBorder:s,input_placeholder:r,buttonColor:b,buttonColorH:c,buttonBackground:d,buttonBackgroundH:u,buttonTitle:p,buttonTypography:m,buttonBorder:h,padding:g,buttonWidth:f}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Layout","ablocks"),children:[(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!0,label:(0,L.__)("Flex Direction","ablocks"),options:[{value:"row",label:(0,L.__)("Horizontal","ablocks")},{value:"column",label:(0,L.__)("Vertical","ablocks")}],attributeName:"direction",attributeValue:o,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"formAlignment",attributeValue:a,setAttributes:i,isInline:!1})]}),(0,I.jsx)(V,{title:(0,L.__)("Input Box Style","ablocks"),
5533 -initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"inputWidth",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:OZ.do,autoSyncRange:!0})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"inputBorder",attributeValue:s,setAttributes:i})]})})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:500,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:f,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:OZ.D_,autoSyncRange:!0}),(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Button Text","ablocks"),attributeName:"buttonTitle",attributeValue:p,
5540 +delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function dK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:cK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{
5541 +fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-cart-list",httpMethod:"POST",attributes:e})})})})}dK.propTypes={};const uK=(t,e="")=>({background:(0,Hs.qD)(t?.tableBackground)}),pK=(t,e="")=>({background:(0,Hs.qD)(t?.tableHeaderBackground)}),mK=(t,e="")=>{const i=(0,M.Zy)(t?.tableHeaderTypography,{"font-weight":"400"}),o=t.tableHeaderTypographyGlobal?t.tableHeaderTypographyGlobal:"";return{...(0,U.qD)(i,e,o)}},hK=(t,e="")=>{const i=t?.productTitleTypography?t?.productTitleTypography:[],o=t.productTitleTypographyGlobal?t.productTitleTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.productTitleColor)}},gK=(t,e="")=>{const i=(0,M.Zy)(t?.productsubTitleTypography??"",{"font-weight":"400"}),o=t.productsubTitleTypographyGlobal?t.productsubTitleTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.productSubTitleColor)}},fK=(t,e="")=>{
5542 +const i=(0,M.Zy)(t?.productPriceTypography,{"font-weight":"400"}),o=t.productPriceTypographyGlobal?t.productPriceTypographyGlobal:"";return{color:(0,Hs.qD)(t?.productPriceColor),...(0,U.qD)(i,e,o)}};(0,M.xV)(cK.UU,"","storeengine")&&(0,o.registerBlockType)(cK.UU,{title:(0,L.__)("Cart List","ablocks"),attributes:cK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-cart-table",uK(i),uK(i,"Tablet"),uK(i,"Mobile"),t.customDeviceMap(t=>uK(i,t))),
5543 +t.addClassStyles("{{WRAPPER}} .storeengine-cart-table .storeengine-cart-table__head tr",pK(i),pK(i,"Tablet"),pK(i,"Mobile"),t.customDeviceMap(t=>pK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-list-table-shortcode .storeengine-cart-table__head tr th",mK(i),mK(i,"Tablet"),mK(i,"Mobile"),t.customDeviceMap(t=>mK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-product .storeengine-cart-product__content .storeengine-cart-product-title a",hK(i),hK(i,"Tablet"),hK(i,"Mobile"),t.customDeviceMap(t=>hK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-product__content .storeengine-cart-product-price",gK(i),gK(i,"Tablet"),gK(i,"Mobile"),t.customDeviceMap(t=>gK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-list-table-shortcode .storeengine-cart-table__body-td .storeengine-price bdi",fK(i),fK(i,"Tablet"),fK(i,"Mobile"),t.customDeviceMap(t=>fK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(bK,{...t}),(0,
5544 +I.jsx)(dK,{...t})]})},save:()=>null});var yK=i(78696);function TK(t){const{attributes:e,setAttributes:i}=t,{direction:o,formAlignment:a,inputWidth:n,inputBorder:s,input_placeholder:r,buttonColor:b,buttonColorH:c,buttonBackground:d,buttonBackgroundH:u,buttonTitle:p,buttonTypography:m,buttonBorder:h,padding:g,buttonWidth:f}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Layout","ablocks"),children:[(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!0,label:(0,L.__)("Flex Direction","ablocks"),options:[{value:"row",label:(0,L.__)("Horizontal","ablocks")},{value:"column",label:(0,L.__)("Vertical","ablocks")}],attributeName:"direction",attributeValue:o,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"formAlignment",attributeValue:a,setAttributes:i,isInline:!1})]}),(0,I.jsx)(V,{title:(0,L.__)("Input Box Style","ablocks"),
5545 +initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"inputWidth",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:yK.do,autoSyncRange:!0})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"inputBorder",attributeValue:s,setAttributes:i})]})})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:500,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:f,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:yK.D_,autoSyncRange:!0}),(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Button Text","ablocks"),attributeName:"buttonTitle",attributeValue:p,
5534 5546 setAttributes:i,isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Button Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:d,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:b,attributeName:"buttonColor",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:u,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover","ablocks"),attributeValue:c,attributeName:"buttonColorH",setAttributes:i})]})})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Button Typography","ablocks"),attributeName:"buttonTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,
5535 -I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i})]})]})})})}YZ.propTypes={};const XZ={UU:"ablocks/storeengine-coupon-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},input_placeholder:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},
5547 +I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i})]})]})})})}TK.propTypes={};const HK={UU:"ablocks/storeengine-coupon-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},input_placeholder:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},
5536 5548 buttonTitle:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",
5537 5549 wordSpacingUnitMobile:"px"}},inputBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,
5538 5550 commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",
5539 5551 commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",
@@ -5547,14 +5559,14 @@
5547 5559 imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",
5548 5560 rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",
5549 5561 rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",
5550 5562 scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",
5551 -default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function BZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:XZ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-coupon-form",httpMethod:"POST",attributes:e})})})})}BZ.propTypes={};const EZ=(t,e="")=>{
5552 -const i={},{formAlignment:o}=t;return""!==t.direction&&(i["flex-direction"]=t.direction),o[`value${e}`]&&(i["justify-content"]=o[`value${e}`]),i},FZ=(t,e="")=>{const i=(0,M.Zy)(t.inputBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,y.qD)(i,e)}},qZ=(t,e="")=>{const i=(0,M.Zy)(t?.buttonTypography,{"font-weight":"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t?.padding,{unit:"px"});return{color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(a,e),...(0,U.qD)(i,e,o),...(0,c.qD)(l,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e})}};function $Z(t){
5563 +default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function MK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:HK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-coupon-form",httpMethod:"POST",attributes:e})})})})}MK.propTypes={};const xK=(t,e="")=>{
5564 +const i={},{formAlignment:o}=t;return""!==t.direction&&(i["flex-direction"]=t.direction),o[`value${e}`]&&(i["justify-content"]=o[`value${e}`]),i},kK=(t,e="")=>{const i=(0,M.Zy)(t.inputBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,y.qD)(i,e)}},vK=(t,e="")=>{const i=(0,M.Zy)(t?.buttonTypography,{"font-weight":"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t?.padding,{unit:"px"});return{color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(a,e),...(0,U.qD)(i,e,o),...(0,c.qD)(l,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e})}};function _K(t){
5553 5565 const{attributes:e,setAttributes:i}=t,{selectTextcolor:o,selectTextcolorH:a,selectTypography:n,selectBackground:s,selectBackgroundH:r,selectPadding:b,selectBorder:c,selectWidth:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Layout","ablocks"),children:(0,I.jsx)(_t,{label:(0,L.__)("Select Width","ablocks"),min:1,max:500,step:1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:d,setAttributes:i,attributeName:"selectWidth"})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Select Style","ablocks"),children:[(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"selectTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{
5554 -label:(0,L.__)("Text color","ablocks"),attributeName:"selectTextcolor",attributeValue:o,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"selectBackground",attributeValue:s,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text color","ablocks"),attributeName:"selectTextcolorH",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"selectBackgroundH",attributeValue:r,setAttributes:i})]})})]}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"selectPadding",attributeValue:b,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"selectBorder",attributeValue:c,setAttributes:i})]})]})})})}(0,M.xV)(XZ.UU,"","storeengine")&&(0,
5555 -o.registerBlockType)(XZ.UU,{title:(0,L.__)("Coupon Form","ablocks"),attributes:XZ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form",EZ(i),EZ(i,"Tablet"),EZ(i,"Mobile"),t.customDeviceMap(t=>EZ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form input[type=text]",FZ(i),FZ(i,"Tablet"),FZ(i,"Mobile"),t.customDeviceMap(t=>FZ(i,t))),
5556 -t.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form input[type=submit]",qZ(i),qZ(i,"Tablet"),qZ(i,"Mobile"),t.customDeviceMap(t=>qZ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(YZ,{...t}),(0,I.jsx)(BZ,{...t})]})},save:()=>null}),$Z.propTypes={};const GZ={UU:"ablocks/storeengine-product-filter",uK:{block_id:{type:"string",default:""},selectTextcolor:{type:"string",default:""},selectTextcolorH:{type:"string",default:""},selectBackground:{type:"string",default:""},selectBackgroundH:{type:"string",default:""},selectWidth:{type:"number",default:236},selectTypographyGlobal:{type:"string",default:""},selectTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",
5566 +label:(0,L.__)("Text color","ablocks"),attributeName:"selectTextcolor",attributeValue:o,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"selectBackground",attributeValue:s,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text color","ablocks"),attributeName:"selectTextcolorH",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"selectBackgroundH",attributeValue:r,setAttributes:i})]})})]}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"selectPadding",attributeValue:b,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"selectBorder",attributeValue:c,setAttributes:i})]})]})})})}(0,M.xV)(HK.UU,"","storeengine")&&(0,
5567 +o.registerBlockType)(HK.UU,{title:(0,L.__)("Coupon Form","ablocks"),attributes:HK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form",xK(i),xK(i,"Tablet"),xK(i,"Mobile"),t.customDeviceMap(t=>xK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form input[type=text]",kK(i),kK(i,"Tablet"),kK(i,"Mobile"),t.customDeviceMap(t=>kK(i,t))),
5568 +t.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form input[type=submit]",vK(i),vK(i,"Tablet"),vK(i,"Mobile"),t.customDeviceMap(t=>vK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(TK,{...t}),(0,I.jsx)(MK,{...t})]})},save:()=>null}),_K.propTypes={};const RK={UU:"ablocks/storeengine-product-filter",uK:{block_id:{type:"string",default:""},selectTextcolor:{type:"string",default:""},selectTextcolorH:{type:"string",default:""},selectBackground:{type:"string",default:""},selectBackgroundH:{type:"string",default:""},selectWidth:{type:"number",default:236},selectTypographyGlobal:{type:"string",default:""},selectTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",
5557 5569 fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},selectPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},selectBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",
5558 5570 rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",
5559 5571 isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
5560 5572 topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",
@@ -5563,16 +5575,16 @@
5563 5575 imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",
5564 5576 imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",
5565 5577 scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",
5566 5578 flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",
5567 -shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function ZZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:GZ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,
5568 -weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-product-filter",httpMethod:"POST",attributes:e})})})})}ZZ.propTypes={};const KZ=(t,e="")=>{const i={};i.width=`${t?.selectWidth?.[e]||t?.selectWidth}px`;const o=(0,M.Zy)(t.selectTypography,{"font-weight":"400"}),a=t?.selectTypographyGlobal?t?.selectTypographyGlobal:"",l=(0,M.Zy)(t.selectBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.selectPadding,{unit:"px"});return{color:(0,Hs.qD)(t?.selectTextcolor),background:(0,Hs.qD)(t?.selectBackground),...i,...(0,U.qD)(o,e,a),...(0,y.qD)(l,e),...(0,c.qD)(n,"padding",e)}};(0,M.xV)(GZ.UU,"","storeengine")&&(0,o.registerBlockType)(GZ.UU,{title:(0,
5569 -L.__)("Product Filter","ablocks"),attributes:GZ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .storeengine-products__filter .storeengine__header-ordering select",KZ(i),KZ(i,"Tablet"),KZ(i,"Mobile"),t.customDeviceMap(t=>KZ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)($Z,{...t}),(0,I.jsx)(ZZ,{...t})]})},save:()=>null});var JZ=i(53490);function QZ(t){
5579 +shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function SK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:RK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,
5580 +weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-product-filter",httpMethod:"POST",attributes:e})})})})}SK.propTypes={};const WK=(t,e="")=>{const i={};i.width=`${t?.selectWidth?.[e]||t?.selectWidth}px`;const o=(0,M.Zy)(t.selectTypography,{"font-weight":"400"}),a=t?.selectTypographyGlobal?t?.selectTypographyGlobal:"",l=(0,M.Zy)(t.selectBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.selectPadding,{unit:"px"});return{color:(0,Hs.qD)(t?.selectTextcolor),background:(0,Hs.qD)(t?.selectBackground),...i,...(0,U.qD)(o,e,a),...(0,y.qD)(l,e),...(0,c.qD)(n,"padding",e)}};(0,M.xV)(RK.UU,"","storeengine")&&(0,o.registerBlockType)(RK.UU,{title:(0,
5581 +L.__)("Product Filter","ablocks"),attributes:RK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .storeengine-products__filter .storeengine__header-ordering select",WK(i),WK(i,"Tablet"),WK(i,"Mobile"),t.customDeviceMap(t=>WK(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(_K,{...t}),(0,I.jsx)(SK,{...t})]})},save:()=>null});var PK=i(53490);function UK(t){
5570 5582 const{attributes:e,setAttributes:i}=t,{titleTypography:o,titleColor:a,titleColorH:n,labelTypography:s,labelColor:r,labelColorH:b,inputBorder:c,padding:d,selectTextcolor:u,selectTextcolorH:p,selectBackground:m,selectBackgroundH:h,selectBorder:g,selectPadding:f,selectTypography:y,buttonColor:T,buttonColorH:H,buttonBackground:M,buttonBackgroundH:x,buttonTypography:k,selectWidth:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Title Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Text color","ablocks"),attributeName:"titleColor",attributeValue:a,
5571 5583 setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Text color","ablocks"),attributeName:"titleColorH",attributeValue:n,setAttributes:i})})})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Label Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Text color","ablocks"),attributeName:"labelColor",attributeValue:r,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Text color","ablocks"),attributeName:"labelColorH",attributeValue:b,setAttributes:i})})})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Input Style","ablocks"),children:[(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,
5572 5584 I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:d,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"inputBorder",attributeValue:c,setAttributes:i})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Select Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"selectTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text color","ablocks"),attributeName:"selectTextcolor",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"selectBackground",attributeValue:m,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,
5573 -L.__)("Text color","ablocks"),attributeName:"selectTextcolorH",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"selectBackgroundH",attributeValue:h,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"selectPadding",attributeValue:f,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"selectBorder",attributeValue:g,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"selectWidth",attributeValue:v,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:JZ.V,autoSyncRange:!0})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),
5574 -attributeName:"buttonTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:M,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Text","ablocks"),attributeValue:T,attributeName:"buttonColor",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Button Background Hover","ablocks"),attributeValue:x,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Button Text Hover","ablocks"),attributeValue:H,attributeName:"buttonColorH",setAttributes:i})]})})]})]})})})}QZ.propTypes={};const tK={UU:"ablocks/storeengine-checkout-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleColor:{type:"string",default:""},titleColorH:{
5585 +L.__)("Text color","ablocks"),attributeName:"selectTextcolorH",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"selectBackgroundH",attributeValue:h,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"selectPadding",attributeValue:f,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"selectBorder",attributeValue:g,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"selectWidth",attributeValue:v,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:PK.V,autoSyncRange:!0})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),
5586 +attributeName:"buttonTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:M,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Text","ablocks"),attributeValue:T,attributeName:"buttonColor",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Button Background Hover","ablocks"),attributeValue:x,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Button Text Hover","ablocks"),attributeValue:H,attributeName:"buttonColorH",setAttributes:i})]})})]})]})})})}UK.propTypes={};const jK={UU:"ablocks/storeengine-checkout-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleColor:{type:"string",default:""},titleColorH:{
5575 5587 type:"string",default:""},labelColor:{type:"string",default:""},labelColorH:{type:"string",default:""},selectTextcolor:{type:"string",default:""},selectTextcolorH:{type:"string",default:""},selectBackground:{type:"string",default:""},selectBackgroundH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",
5576 5588 letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",
5577 5589 lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},inputBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",
5578 5590 commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",
@@ -5586,16 +5598,16 @@
5586 5598 imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",
5587 5599 imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",
5588 5600 scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",
5589 5601 flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",
5590 -shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function eK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:tK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,
5591 -weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-checkout-form",httpMethod:"POST",attributes:e})})})})}eK.propTypes={};const iK=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{"font-weight":"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},oK=(t,e="")=>{const i=(0,M.Zy)(t.labelTypography,{"font-weight":"400"}),o=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.labelColor),...(0,U.qD)(i,e,o)}},aK=(t,e="")=>{const i=(0,M.Zy)(t.inputBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(o,"padding",e),...(0,
5592 -y.qD)(i,e)}},lK=(t,e="")=>{const i=(0,M.Zy)(t.selectTypography,{"font-weight":"400"}),o=t.selectTypographyGlobal?t.selectTypographyGlobal:"",a=(0,M.Zy)(t.selectBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t?.selectPadding,{unit:"px"});return{color:(0,Hs.qD)(t?.selectTextcolor),background:(0,Hs.qD)(t?.selectBackground),...(0,Eb.qD)({attributeValue:t?.selectWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"padding",e)}},nK=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{"font-weight":"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"";return{color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,U.qD)(i,e,o)}};function sK(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonTypography:c,buttonWidth:d,buttonAlignment:u}=e;return(0,
5602 +shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function wK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:jK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,
5603 +weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-checkout-form",httpMethod:"POST",attributes:e})})})})}wK.propTypes={};const zK=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{"font-weight":"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},CK=(t,e="")=>{const i=(0,M.Zy)(t.labelTypography,{"font-weight":"400"}),o=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.labelColor),...(0,U.qD)(i,e,o)}},AK=(t,e="")=>{const i=(0,M.Zy)(t.inputBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(o,"padding",e),...(0,
5604 +y.qD)(i,e)}},LK=(t,e="")=>{const i=(0,M.Zy)(t.selectTypography,{"font-weight":"400"}),o=t.selectTypographyGlobal?t.selectTypographyGlobal:"",a=(0,M.Zy)(t.selectBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t?.selectPadding,{unit:"px"});return{color:(0,Hs.qD)(t?.selectTextcolor),background:(0,Hs.qD)(t?.selectBackground),...(0,Eb.qD)({attributeValue:t?.selectWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"padding",e)}},DK=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{"font-weight":"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"";return{color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,U.qD)(i,e,o)}};function NK(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonTypography:c,buttonWidth:d,buttonAlignment:u}=e;return(0,
5593 5605 I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Button Hover Effect","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,
5594 5606 attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,
5595 -L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(tK.UU,"","storeengine")&&(0,o.registerBlockType)(tK.UU,{title:(0,L.__)("Checkout Form","ablocks"),attributes:tK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-ajax-checkout-form__contact-information .storeengine-checkout-form-section-heading,\n\t\t\t{{WRAPPER}} .storeengine-ajax-checkout-form__billing-address .storeengine-checkout-form-section-heading",iK(i),iK(i,"Tablet"),iK(i,"Mobile"),t.customDeviceMap(t=>iK(i,t))),
5596 -t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner label,\n\t\t\t{{WRAPPER}} .storeengine-ajax-checkout-form__contact-information .storeengine-form-field .storeengine-form-field__inner label",oK(i),oK(i,"Tablet"),oK(i,"Mobile"),t.customDeviceMap(t=>oK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner input,\n\t\t\t{{WRAPPER}} .storeengine-ajax-checkout-form input",aK(i),aK(i,"Tablet"),aK(i,"Mobile"),t.customDeviceMap(t=>aK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner select",lK(i),lK(i,"Tablet"),lK(i,"Mobile"),t.customDeviceMap(t=>lK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-ajax-checkout-form .storeengine-checkout__order-btn button",nK(i),nK(i,"Tablet"),nK(i,"Mobile"),t.customDeviceMap(t=>nK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(QZ,{...t}),(0,I.jsx)(eK,{...t})]})},save:()=>null}),sK.propTypes={}
5597 -;const rK={UU:"ablocks/storeengine-continue-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",
5607 +L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(jK.UU,"","storeengine")&&(0,o.registerBlockType)(jK.UU,{title:(0,L.__)("Checkout Form","ablocks"),attributes:jK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-ajax-checkout-form__contact-information .storeengine-checkout-form-section-heading,\n\t\t\t{{WRAPPER}} .storeengine-ajax-checkout-form__billing-address .storeengine-checkout-form-section-heading",zK(i),zK(i,"Tablet"),zK(i,"Mobile"),t.customDeviceMap(t=>zK(i,t))),
5608 +t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner label,\n\t\t\t{{WRAPPER}} .storeengine-ajax-checkout-form__contact-information .storeengine-form-field .storeengine-form-field__inner label",CK(i),CK(i,"Tablet"),CK(i,"Mobile"),t.customDeviceMap(t=>CK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner input,\n\t\t\t{{WRAPPER}} .storeengine-ajax-checkout-form input",AK(i),AK(i,"Tablet"),AK(i,"Mobile"),t.customDeviceMap(t=>AK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner select",LK(i),LK(i,"Tablet"),LK(i,"Mobile"),t.customDeviceMap(t=>LK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-ajax-checkout-form .storeengine-checkout__order-btn button",DK(i),DK(i,"Tablet"),DK(i,"Mobile"),t.customDeviceMap(t=>DK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(UK,{...t}),(0,I.jsx)(wK,{...t})]})},save:()=>null}),NK.propTypes={}
5609 +;const IK={UU:"ablocks/storeengine-continue-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",
5598 5610 lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",
5599 5611 rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",
5600 5612 unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},buttonWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",
5601 5613 leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",
@@ -5604,14 +5616,14 @@
5604 5616 imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",
5605 5617 imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",
5606 5618 scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",
5607 5619 skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",
5608 -shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function bK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:rK.UU,attributes:e,typography:[{
5609 -fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-continue-button",httpMethod:"POST",attributes:e})})})})}bK.propTypes={};const cK=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},dK=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,
5610 -Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function uK(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonTypography:c,buttonWidth:d,buttonAlignment:u}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,
5620 +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function VK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:IK.UU,attributes:e,typography:[{
5621 +fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-continue-button",httpMethod:"POST",attributes:e})})})})}VK.propTypes={};const OK=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},YK=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,
5622 +Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function XK(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonTypography:c,buttonWidth:d,buttonAlignment:u}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,
5611 5623 I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Button Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:s,
5612 -attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(rK.UU,"","storeengine")&&(0,o.registerBlockType)(rK.UU,{title:(0,L.__)("Continue Button","ablocks"),attributes:rK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5613 -;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-continue-shopping-shortcode",cK(i),cK(i,"Tablet"),cK(i,"Mobile"),t.customDeviceMap(t=>cK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-continue-shopping-shortcode a",dK(i),dK(i,"Tablet"),dK(i,"Mobile"),t.customDeviceMap(t=>dK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(sK,{...t}),(0,I.jsx)(bK,{...t})]})},save:()=>null}),uK.propTypes={};const pK={UU:"ablocks/storeengine-checkout-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,
5624 +attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(IK.UU,"","storeengine")&&(0,o.registerBlockType)(IK.UU,{title:(0,L.__)("Continue Button","ablocks"),attributes:IK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5625 +;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-continue-shopping-shortcode",OK(i),OK(i,"Tablet"),OK(i,"Mobile"),t.customDeviceMap(t=>OK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-continue-shopping-shortcode a",YK(i),YK(i,"Tablet"),YK(i,"Mobile"),t.customDeviceMap(t=>YK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(NK,{...t}),(0,I.jsx)(VK,{...t})]})},save:()=>null}),XK.propTypes={};const BK={UU:"ablocks/storeengine-checkout-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,
5614 5626 isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonBorder:{type:"object",default:{borderStyle:"default",
5615 5627 borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",
5616 5628 bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",
5617 5629 spreadH:"",colorH:"",transitionDuration:"0"}},buttonWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{
@@ -5621,14 +5633,14 @@
5621 5633 imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},
5622 5634 _zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,
5623 5635 rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",
5624 5636 maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,
5625 -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function mK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:pK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{
5626 -children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-checkout-button",httpMethod:"POST",attributes:e})})})})}mK.propTypes={};const hK=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o,width:"100%",display:"flex"}},gK=(t,e="")=>{const i={};i.color=t?.buttonColor,i.background=t?.buttonBackground;const o=(0,M.Zy)(t?.buttonTypography,{"font-weight":"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...i,...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function fK(t){
5637 +yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function EK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:BK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{
5638 +children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-checkout-button",httpMethod:"POST",attributes:e})})})})}EK.propTypes={};const FK=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o,width:"100%",display:"flex"}},qK=(t,e="")=>{const i={};i.color=t?.buttonColor,i.background=t?.buttonBackground;const o=(0,M.Zy)(t?.buttonTypography,{"font-weight":"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...i,...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function $K(t){
5627 5639 const{attributes:e,setAttributes:i}=t,{tableWidth:o,tableAlignment:a,tableBackground:n,tableBackgroundH:s,tableColor:r,tableColorH:b,firstTableTypography:c,lastTableTypography:d,tableLastColor:u,tableLastColorH:p,tableLastBackground:m,tableLastBackgroundH:h}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Table Layout","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Table Width","ablocks"),attributeName:"tableWidth",attributeValue:o,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"tableAlignment",attributeValue:a,setAttributes:i,isInline:!1})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Table First Row Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"firstTableTypography",attributeValue:c,setAttributes:i,isResponsive:!1,
5628 5640 attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,attributeName:"tableBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:r,attributeName:"tableColor",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"tableBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("color Hover","ablocks"),attributeValue:b,attributeName:"tableColorH",setAttributes:i})]})})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Table Second Row Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Row Typography","ablocks"),attributeName:"lastTableTypography",attributeValue:d,setAttributes:i,isResponsive:!1,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),
5629 -isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:m,attributeName:"tableLastBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:u,attributeName:"tableLastColor",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:h,attributeName:"tableLastBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:p,attributeName:"tableLastColorH",setAttributes:i})]})})]})]})})})}(0,M.xV)(pK.UU,"","storeengine")&&(0,o.registerBlockType)(pK.UU,{title:(0,L.__)("Checkout Button","ablocks"),attributes:pK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l
5630 -})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-proceed-to-checkout-shortcode",hK(i),hK(i,"Tablet"),hK(i,"Mobile"),t.customDeviceMap(t=>hK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-proceed-to-checkout-shortcode a",gK(i),gK(i,"Tablet"),gK(i,"Mobile"),t.customDeviceMap(t=>gK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(uK,{...t}),(0,I.jsx)(mK,{...t})]})},save:()=>null}),fK.propTypes={};const yK={UU:"ablocks/storeengine-cart-sub-table",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},tableWidth:{type:"number",default:100},tableColor:{type:"string",default:""},tableColorH:{type:"string",default:""},tableBackgroundH:{type:"string",default:""},tableBackground:{type:"string",
5641 +isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:m,attributeName:"tableLastBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:u,attributeName:"tableLastColor",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:h,attributeName:"tableLastBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:p,attributeName:"tableLastColorH",setAttributes:i})]})})]})]})})})}(0,M.xV)(BK.UU,"","storeengine")&&(0,o.registerBlockType)(BK.UU,{title:(0,L.__)("Checkout Button","ablocks"),attributes:BK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l
5642 +})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-proceed-to-checkout-shortcode",FK(i),FK(i,"Tablet"),FK(i,"Mobile"),t.customDeviceMap(t=>FK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-proceed-to-checkout-shortcode a",qK(i),qK(i,"Tablet"),qK(i,"Mobile"),t.customDeviceMap(t=>qK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(XK,{...t}),(0,I.jsx)(EK,{...t})]})},save:()=>null}),$K.propTypes={};const GK={UU:"ablocks/storeengine-cart-sub-table",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},tableWidth:{type:"number",default:100},tableColor:{type:"string",default:""},tableColorH:{type:"string",default:""},tableBackgroundH:{type:"string",default:""},tableBackground:{type:"string",
5631 5643 default:""},tableLastBackground:{type:"string",default:""},tableLastBackgroundH:{type:"string",default:""},tableLastColorH:{type:"string",default:""},tableLastColor:{type:"string",default:""},firstTableTypographyGlobal:{type:"string",default:""},firstTableTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},lastTableTypographyGlobal:{type:"string",default:""},lastTableTypography:{type:"object",default:{fontFamily:"",weight:"",
5632 5644 transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},tableAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,
5633 5645 isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,
5634 5646 isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",
@@ -5636,21 +5648,21 @@
5636 5648 imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",
5637 5649 imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",
5638 5650 offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",
5639 5651 scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{
5640 -animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function TK(t){
5641 -const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:yK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-cart-sub-table",httpMethod:"POST",attributes:e})})})})}TK.propTypes={};const HK=(t,e="")=>{const i={};return i.width=`${t?.tableWidth}%`??0,{...i}},MK=(t,e="")=>{const{tableAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o,display:"flex"}},xK=(t,e="")=>({background:(0,Hs.qD)(t?.tableBackground)}),kK=(t,e="")=>{const i=(0,M.Zy)(t?.firstTableTypography??"",{"font-weight":"400"
5642 -}),o=t.firstTableTypographyGlobal?t.firstTableTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.tableColor)}},vK=(t,e="")=>({background:(0,Hs.qD)(t?.tableLastBackground)}),_K=(t,e="")=>{const i=(0,M.Zy)(t?.lastTableTypography??"",{"font-weight":"400"}),o=t.lastTableTypographyGlobal?t.lastTableTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.tableLastColor)}};(0,M.xV)(yK.UU,"","storeengine")&&(0,o.registerBlockType)(yK.UU,{title:(0,L.__)("Cart Sub Table","ablocks"),attributes:yK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
5643 -null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode table",HK(i),HK(i,"Tablet"),HK(i,"Mobile"),t.customDeviceMap(t=>HK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode ",MK(i),MK(i,"Tablet"),MK(i,"Mobile"),t.customDeviceMap(t=>MK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr:first-child ",xK(i),xK(i,"Tablet"),xK(i,"Mobile"),t.customDeviceMap(t=>xK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr:first-child td,\n\t\t\t{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr:first-child th",kK(i),kK(i,"Tablet"),kK(i,"Mobile"),t.customDeviceMap(t=>kK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr",vK(i),vK(i,"Tablet"),vK(i,"Mobile"),t.customDeviceMap(t=>vK(i,t))),
5644 -t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr td,\n\t\t\t{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr th",_K(i),_K(i,"Tablet"),_K(i,"Mobile"),t.customDeviceMap(t=>_K(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(fK,{...t}),(0,I.jsx)(TK,{...t})]})},save:()=>null});const RK=(0,Eb.D$)({attributeName:"button_width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"}),SK=(0,Eb.D$)({attributeName:"boxWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"});(0,Eb.D$)({attributeName:"radioHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px"}),(0,Eb.D$)({
5645 -attributeName:"radioHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px"}),(0,Eb.D$)({attributeName:"elementGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:12,hasUnit:!0,unitDefaultValue:"px"});function WK(t){const{attributes:e,setAttributes:i}=t,{product_id:o,price_display:a,direct_checkout:n,label:s,button_color:b,button_color_hover:c,btn_typography:d,button_width:u,button_bg_hover:p,button_bg:m,padding:h,buttonBorder:g,boxShadow:f,buttonAlign:y,priceAlign:T,priceTypography:H,priceColor:M,priceColorH:x,priceNameTypography:k,priceNameColor:v,priceNameColorH:_,boxWidth:R,boxBackgroundH:S,boxBackground:W,radioHeight:P,radioWidth:U,buttonTextAlign:j,boxPadding:w,elementGap:z,boxBorder:C,button_display:A}=e,N=[{label:(0,L.__)("Radio","ablocks"),value:"radio"},{label:(0,L.__)("Dropdown","ablocks"),value:"dropdown"},{label:(0,L.__)("Price Range","ablocks"),value:"price_range"},{label:(0,L.__)("Hidden","ablocks"),value:"hidden"
5652 +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function ZK(t){
5653 +const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:GK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-cart-sub-table",httpMethod:"POST",attributes:e})})})})}ZK.propTypes={};const KK=(t,e="")=>{const i={};return i.width=`${t?.tableWidth}%`??0,{...i}},JK=(t,e="")=>{const{tableAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o,display:"flex"}},QK=(t,e="")=>({background:(0,Hs.qD)(t?.tableBackground)}),tJ=(t,e="")=>{const i=(0,M.Zy)(t?.firstTableTypography??"",{"font-weight":"400"
5654 +}),o=t.firstTableTypographyGlobal?t.firstTableTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.tableColor)}},eJ=(t,e="")=>({background:(0,Hs.qD)(t?.tableLastBackground)}),iJ=(t,e="")=>{const i=(0,M.Zy)(t?.lastTableTypography??"",{"font-weight":"400"}),o=t.lastTableTypographyGlobal?t.lastTableTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.tableLastColor)}};(0,M.xV)(GK.UU,"","storeengine")&&(0,o.registerBlockType)(GK.UU,{title:(0,L.__)("Cart Sub Table","ablocks"),attributes:GK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
5655 +null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode table",KK(i),KK(i,"Tablet"),KK(i,"Mobile"),t.customDeviceMap(t=>KK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode ",JK(i),JK(i,"Tablet"),JK(i,"Mobile"),t.customDeviceMap(t=>JK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr:first-child ",QK(i),QK(i,"Tablet"),QK(i,"Mobile"),t.customDeviceMap(t=>QK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr:first-child td,\n\t\t\t{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr:first-child th",tJ(i),tJ(i,"Tablet"),tJ(i,"Mobile"),t.customDeviceMap(t=>tJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr",eJ(i),eJ(i,"Tablet"),eJ(i,"Mobile"),t.customDeviceMap(t=>eJ(i,t))),
5656 +t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr td,\n\t\t\t{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr th",iJ(i),iJ(i,"Tablet"),iJ(i,"Mobile"),t.customDeviceMap(t=>iJ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)($K,{...t}),(0,I.jsx)(ZK,{...t})]})},save:()=>null});const oJ=(0,Eb.D$)({attributeName:"button_width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"}),aJ=(0,Eb.D$)({attributeName:"boxWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"});(0,Eb.D$)({attributeName:"radioHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px"}),(0,Eb.D$)({
5657 +attributeName:"radioHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px"}),(0,Eb.D$)({attributeName:"elementGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:12,hasUnit:!0,unitDefaultValue:"px"});function lJ(t){const{attributes:e,setAttributes:i}=t,{product_id:o,price_display:a,direct_checkout:n,label:s,button_color:b,button_color_hover:c,btn_typography:d,button_width:u,button_bg_hover:p,button_bg:m,padding:h,buttonBorder:g,boxShadow:f,buttonAlign:y,priceAlign:T,priceTypography:H,priceColor:M,priceColorH:x,priceNameTypography:k,priceNameColor:v,priceNameColorH:_,boxWidth:R,boxBackgroundH:S,boxBackground:W,radioHeight:P,radioWidth:U,buttonTextAlign:j,boxPadding:w,elementGap:z,boxBorder:C,button_display:A}=e,N=[{label:(0,L.__)("Radio","ablocks"),value:"radio"},{label:(0,L.__)("Dropdown","ablocks"),value:"dropdown"},{label:(0,L.__)("Price Range","ablocks"),value:"price_range"},{label:(0,L.__)("Hidden","ablocks"),value:"hidden"
5646 5658 }],O=[{label:(0,L.__)("Visible","ablocks"),value:"yes"},{label:(0,L.__)("Hide","ablocks"),value:"no"}],Y=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),X=Y?Y.map(t=>({label:t.title?.rendered,value:t.id})):[];X.unshift({label:(0,L.__)("Select a Product","ablocks"),value:0});const B=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("General","ablocks"),children:[(0,I.jsx)(Ut,{options:X,label:(0,L.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i}),(0,I.jsx)(Ut,{options:N,label:(0,L.__)("Price Display","ablocks"),attributeValue:a,attributeName:"price_display",setAttributes:i}),(0,I.jsx)(Ut,{options:O,label:(0,L.__)("Button Display","ablocks"),attributeValue:A,attributeName:"button_display",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Button Label","ablocks"),
5647 -attributeValue:s,setAttributes:i,attributeName:"label"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Direct Checkout","ablocks"),attributeValue:n,setAttributes:t=>{if(i(t),void 0!==t.direct_checkout){const o=t.direct_checkout;o&&"Add To Cart"===e.label?i({label:"Buy Now"}):o||"Buy Now"!==e.label||i({label:"Add To Cart"})}},attributeName:"direct_checkout"})]}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("Button","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,isInline:!1,isResponsive:!0,attributeName:"button_width",attributeValue:u,hasUnit:!0,setAttributes:i,attributeDefaultValue:RK,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlign",attributeValue:y,setAttributes:i,isInline:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Text Align","ablocks"),attributeName:"buttonTextAlign",attributeValue:j,setAttributes:i,isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,
5659 +attributeValue:s,setAttributes:i,attributeName:"label"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Direct Checkout","ablocks"),attributeValue:n,setAttributes:t=>{if(i(t),void 0!==t.direct_checkout){const o=t.direct_checkout;o&&"Add To Cart"===e.label?i({label:"Buy Now"}):o||"Buy Now"!==e.label||i({label:"Add To Cart"})}},attributeName:"direct_checkout"})]}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("Button","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,isInline:!1,isResponsive:!0,attributeName:"button_width",attributeValue:u,hasUnit:!0,setAttributes:i,attributeDefaultValue:oJ,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlign",attributeValue:y,setAttributes:i,isInline:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Text Align","ablocks"),attributeName:"buttonTextAlign",attributeValue:j,setAttributes:i,isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,
5648 5660 I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"btn_typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeValue:b,attributeName:"button_color",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:m,attributeName:"button_bg",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover","ablocks"),attributeValue:c,attributeName:"button_color_hover",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:p,attributeName:"button_bg_hover",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,
5649 -attributeName:"padding",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box Shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box Shadow","ablocks"),attributeName:"boxShadow",attributeValue:f,setAttributes:i})]})})}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("Price","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"boxWidth",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(R["valueUnit"+B]??"%")?100:1600,attributeDefaultValue:SK,autoSyncRange:!0
5650 -}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"priceAlign",attributeValue:T,setAttributes:i,isInline:!1}),"radio"===a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Radio Width","ablocks"),min:0,max:200,isInline:!1,isResponsive:!0,attributeName:"radioWidth",attributeValue:U,hasUnit:!0,setAttributes:i,attributeDefaultValue:SK}),(0,I.jsx)(_t,{label:(0,L.__)("Radio Height","ablocks"),min:0,max:200,isInline:!1,isResponsive:!0,attributeName:"radioHeight",attributeValue:P,hasUnit:!0,setAttributes:i,attributeDefaultValue:SK})]}),("radio"===a||"dropdown"===a)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"boxPadding",attributeValue:w,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"boxBorder",
5661 +attributeName:"padding",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box Shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box Shadow","ablocks"),attributeName:"boxShadow",attributeValue:f,setAttributes:i})]})})}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("Price","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"boxWidth",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(R["valueUnit"+B]??"%")?100:1600,attributeDefaultValue:aJ,autoSyncRange:!0
5662 +}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"priceAlign",attributeValue:T,setAttributes:i,isInline:!1}),"radio"===a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Radio Width","ablocks"),min:0,max:200,isInline:!1,isResponsive:!0,attributeName:"radioWidth",attributeValue:U,hasUnit:!0,setAttributes:i,attributeDefaultValue:aJ}),(0,I.jsx)(_t,{label:(0,L.__)("Radio Height","ablocks"),min:0,max:200,isInline:!1,isResponsive:!0,attributeName:"radioHeight",attributeValue:P,hasUnit:!0,setAttributes:i,attributeDefaultValue:aJ})]}),("radio"===a||"dropdown"===a)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"boxPadding",attributeValue:w,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"boxBorder",
5651 5663 attributeValue:C,setAttributes:i})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Price Text","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:M,attributeName:"priceColor",setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeValue:x,attributeName:"priceColorH",setAttributes:i})}),("radio"===a||"dropdown"===a)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Price Name","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"priceNameTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
5652 -attributeValue:v,attributeName:"priceNameColor",setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeValue:_,attributeName:"priceNameColorH",setAttributes:i})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box Background","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:W,attributeName:"boxBackground",setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Background","ablocks"),attributeValue:S,attributeName:"boxBackgroundH",setAttributes:i})})]})]})})})]})})})}(0,Zt.D$)("buttonAlign",!0,{value:"left"}),(0,Zt.D$)("priceAlign",!0,{value:"left"}),(0,Zt.D$)("buttonTextAlign",!0,{value:"center"}),(0,U.D$)("btn_typography",!0),(0,U.D$)("priceTypography",!0),(0,U.D$)("priceNameTypography",!0),(0,c.D$)("padding",!0),(0,y.D$)("buttonBorder",!0),(0,H.D$)("boxShadow",!0),_r.Ay,WK.propTypes={};const PK={UU:"ablocks/storeengine-cart-button",uK:{block_id:{type:"string",
5664 +attributeValue:v,attributeName:"priceNameColor",setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeValue:_,attributeName:"priceNameColorH",setAttributes:i})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box Background","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:W,attributeName:"boxBackground",setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Background","ablocks"),attributeValue:S,attributeName:"boxBackgroundH",setAttributes:i})})]})]})})})]})})})}(0,Zt.D$)("buttonAlign",!0,{value:"left"}),(0,Zt.D$)("priceAlign",!0,{value:"left"}),(0,Zt.D$)("buttonTextAlign",!0,{value:"center"}),(0,U.D$)("btn_typography",!0),(0,U.D$)("priceTypography",!0),(0,U.D$)("priceNameTypography",!0),(0,c.D$)("padding",!0),(0,y.D$)("buttonBorder",!0),(0,H.D$)("boxShadow",!0),_r.Ay,lJ.propTypes={};const nJ={UU:"ablocks/storeengine-cart-button",uK:{block_id:{type:"string",
5653 5665 default:""},blockVersion:{type:"number",default:2},quantity:{type:"number"},product_id:{type:"number"},price_display:{type:"string",default:"radio"},label:{type:"string",default:"Buy Now"},direct_checkout:{type:"boolean",default:!0},button_color:{type:"string",default:"#fff"},button_color_hover:{type:"string",default:"#fff"},button_bg_hover:{type:"string",default:"#008DFF"},button_bg:{type:"string",default:"#008DFF"},priceColor:{type:"string",default:"#111"},priceColorH:{type:"string",default:"#111"},priceNameColor:{type:"string",default:"#101828"},priceNameColorH:{type:"string",default:"#101828"},button_display:{type:"string",default:"yes"},boxBackground:{type:"string",default:"#fff"},boxBackgroundH:{type:"string",default:"#fff"},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",
5654 5666 rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},btn_typographyGlobal:{type:"string",default:""},btn_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTypographyGlobal:{type:"string",default:""},priceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",
5655 5667 wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceNameTypographyGlobal:{type:"string",default:""},priceNameTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",
5656 5668 wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,
@@ -5665,17 +5677,17 @@
5665 5677 imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{
5666 5678 zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,
5667 5679 rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",
5668 5680 maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,
5669 -easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function UK(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:PK.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-cart-button",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}UK.propTypes={};const jK=(t,e="")=>{const i={},o=(0,M.Zy)(t.btn_typography,{"font-weight":"400"}),a=t.btn_typographyGlobal?t.btn_typographyGlobal:"",l=(0,M.Zy)(t?.padding,{unit:"px"}),n=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"
5670 -}),s={...(0,Eb.qD)({attributeValue:t?.button_width,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})};return i["justify-content"]=t?.buttonTextAlign[`value${e}`]??[],{...s,...(0,U.qD)(o,e,a),...i,...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t?.boxShadow,e),color:(0,Hs.qD)(t?.button_color),background:(0,Hs.qD)(t?.button_bg)}},wK=(t,e="")=>({color:(0,Hs.qD)(t?.button_hover_color),background:(0,Hs.qD)(t?.button_bg_hover)}),zK=(t,e="")=>{const i={};return i["justify-content"]=t?.buttonAlign[`value${e}`]??[],i},CK=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{"font-weight":"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.priceColor)}},AK=(t,e="")=>{const i=(0,M.Zy)(t?.priceNameTypography,{"font-weight":"400"}),o=t.priceNameTypographyGlobal?t.priceNameTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.priceNameColor)}},LK=(t,e="")=>({...(0,
5671 -Eb.qD)({attributeValue:t?.boxWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e}),background:(0,Hs.qD)(t?.boxBackground)}),DK=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.radioWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.radioHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}),NK=(t,e="")=>{const i={};return i["justify-content"]=t?.priceAlign[`value${e}`]??[],i},IK=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.elementGap,attributeObjectKey:"value",isResponsive:!0,defaultValue:12,hasUnit:!0,unitDefaultValue:"px",property:"gap",device:e})}),VK=(t,e="")=>{const i=(0,M.Zy)(t?.boxPadding,{unit:"px"}),o=(0,M.Zy)(t.boxBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}};function OK(t){
5681 +easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function sJ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:nJ.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-cart-button",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}sJ.propTypes={};const rJ=(t,e="")=>{const i={},o=(0,M.Zy)(t.btn_typography,{"font-weight":"400"}),a=t.btn_typographyGlobal?t.btn_typographyGlobal:"",l=(0,M.Zy)(t?.padding,{unit:"px"}),n=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"
5682 +}),s={...(0,Eb.qD)({attributeValue:t?.button_width,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})};return i["justify-content"]=t?.buttonTextAlign[`value${e}`]??[],{...s,...(0,U.qD)(o,e,a),...i,...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t?.boxShadow,e),color:(0,Hs.qD)(t?.button_color),background:(0,Hs.qD)(t?.button_bg)}},bJ=(t,e="")=>({color:(0,Hs.qD)(t?.button_hover_color),background:(0,Hs.qD)(t?.button_bg_hover)}),cJ=(t,e="")=>{const i={};return i["justify-content"]=t?.buttonAlign[`value${e}`]??[],i},dJ=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{"font-weight":"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.priceColor)}},uJ=(t,e="")=>{const i=(0,M.Zy)(t?.priceNameTypography,{"font-weight":"400"}),o=t.priceNameTypographyGlobal?t.priceNameTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.priceNameColor)}},pJ=(t,e="")=>({...(0,
5683 +Eb.qD)({attributeValue:t?.boxWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e}),background:(0,Hs.qD)(t?.boxBackground)}),mJ=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.radioWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.radioHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}),hJ=(t,e="")=>{const i={};return i["justify-content"]=t?.priceAlign[`value${e}`]??[],i},gJ=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.elementGap,attributeObjectKey:"value",isResponsive:!0,defaultValue:12,hasUnit:!0,unitDefaultValue:"px",property:"gap",device:e})}),fJ=(t,e="")=>{const i=(0,M.Zy)(t?.boxPadding,{unit:"px"}),o=(0,M.Zy)(t.boxBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}};function yJ(t){
5672 5684 const{attributes:e,setAttributes:i}=t,{titleContentTypography:o,titleContentColor:a,titleContentColorH:n,detailsColor:s,detailsColorH:r,detailsTypography:b,emailColor:c,emailColorH:d,emailTypography:u}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Order Info","ablocks"),children:[(0,I.jsx)(at,{label:(0,L.__)("Status Title Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleContentTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"titleContentColor",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,
5673 5685 L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"titleContentColorH",attributeValue:n,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Details Title Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"detailsTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"detailsColor",attributeValue:s,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"detailsColorH",attributeValue:r,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Email Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),
5674 -attributeName:"emailTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"emailColor",attributeValue:c,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"emailColorH",attributeValue:d,setAttributes:i})})})]})})})})}(0,M.xV)(PK.UU,"","storeengine")&&(0,o.registerBlockType)(PK.UU,{title:(0,L.__)("Add To Cart","ablocks"),attributes:PK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5675 -;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-btn--add-to-cart, \n\t\t\t{{WRAPPER}} .storeengine-btn--add-to-cart-replacement, \n\t\t\t{{WRAPPER}} .storeengine-btn--direct-checkout, \n\t\t\t{{WRAPPER}} .storeengine-btn--view-options",jK(i),jK(i,"Tablet"),jK(i,"Mobile"),t.customDeviceMap(t=>jK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-btn--add-to-cart:hover,\n\t\t\t{{WRAPPER}} .storeengine-btn--add-to-cart-replacement:hover,\n\t\t\t{{WRAPPER}} .storeengine-btn--direct-checkout:hover,\n\t\t\t{{WRAPPER}} .storeengine-btn--view-options:hover",wK(i),wK(i,"Tablet"),wK(i,"Mobile"),t.customDeviceMap(t=>wK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-quantity-wrap",zK(i),zK(i,"Tablet"),zK(i,"Mobile"),t.customDeviceMap(t=>zK(i,t))),
5676 -t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-shortcode .storeengine-price.amount",CK(i),CK(i,"Tablet"),CK(i,"Mobile"),t.customDeviceMap(t=>CK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-price-name,\n\t\t\t{{WRAPPER}} .storeengine-loop-product-price-summery .storeengine-loop-product-price-label",AK(i),AK(i,"Tablet"),AK(i,"Mobile"),t.customDeviceMap(t=>AK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single__amount .storeengine-product__multi-prices,\n\t\t\t{{WRAPPER}} .storeengine-single__amount .storeengine-single-product-prices,\n\t\t\t{{WRAPPER}} .storeengine-single__amount .storeengine-dropdown__toggle,\n\t\t\t{{WRAPPER}} .storeengine-dropdown.open .storeengine-dropdown-content .storeengine-product__multi-price,\n\t\t\t{{WRAPPER}} .storeengine-dropdown.open .storeengine-dropdown-content .storeengine-product__multi-price label",LK(i),LK(i,"Tablet"),LK(i,"Mobile"),t.customDeviceMap(t=>LK(i,t))),
5677 -t.addClassStyles("{{WRAPPER}} .storeengine-single-product-price-summery .storeengine-single-product-price-label input[type=radio]",DK(i),DK(i,"Tablet"),DK(i,"Mobile"),t.customDeviceMap(t=>DK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single__amount",NK(i),NK(i,"Tablet"),NK(i,"Mobile"),t.customDeviceMap(t=>NK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-shortcode",IK(i),IK(i,"Tablet"),IK(i,"Mobile"),t.customDeviceMap(t=>IK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-prices .storeengine-single-product-price,\n\t\t\t{{WRAPPER}} .storeengine-product__multi-prices .storeengine-dropdown__toggle,\n\t\t\t{{WRAPPER}} .storeengine-single__amount .storeengine-product__multi-prices",VK(i,""),VK(i,"Tablet"),VK(i,"Mobile"),t.customDeviceMap(t=>VK(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(WK,{...t}),(0,I.jsx)(UK,{...t})]})},save:()=>null}),OK.propTypes={};const YK={
5686 +attributeName:"emailTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"emailColor",attributeValue:c,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"emailColorH",attributeValue:d,setAttributes:i})})})]})})})})}(0,M.xV)(nJ.UU,"","storeengine")&&(0,o.registerBlockType)(nJ.UU,{title:(0,L.__)("Add To Cart","ablocks"),attributes:nJ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5687 +;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-btn--add-to-cart, \n\t\t\t{{WRAPPER}} .storeengine-btn--add-to-cart-replacement, \n\t\t\t{{WRAPPER}} .storeengine-btn--direct-checkout, \n\t\t\t{{WRAPPER}} .storeengine-btn--view-options",rJ(i),rJ(i,"Tablet"),rJ(i,"Mobile"),t.customDeviceMap(t=>rJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-btn--add-to-cart:hover,\n\t\t\t{{WRAPPER}} .storeengine-btn--add-to-cart-replacement:hover,\n\t\t\t{{WRAPPER}} .storeengine-btn--direct-checkout:hover,\n\t\t\t{{WRAPPER}} .storeengine-btn--view-options:hover",bJ(i),bJ(i,"Tablet"),bJ(i,"Mobile"),t.customDeviceMap(t=>bJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-quantity-wrap",cJ(i),cJ(i,"Tablet"),cJ(i,"Mobile"),t.customDeviceMap(t=>cJ(i,t))),
5688 +t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-shortcode .storeengine-price.amount",dJ(i),dJ(i,"Tablet"),dJ(i,"Mobile"),t.customDeviceMap(t=>dJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-price-name,\n\t\t\t{{WRAPPER}} .storeengine-loop-product-price-summery .storeengine-loop-product-price-label",uJ(i),uJ(i,"Tablet"),uJ(i,"Mobile"),t.customDeviceMap(t=>uJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single__amount .storeengine-product__multi-prices,\n\t\t\t{{WRAPPER}} .storeengine-single__amount .storeengine-single-product-prices,\n\t\t\t{{WRAPPER}} .storeengine-single__amount .storeengine-dropdown__toggle,\n\t\t\t{{WRAPPER}} .storeengine-dropdown.open .storeengine-dropdown-content .storeengine-product__multi-price,\n\t\t\t{{WRAPPER}} .storeengine-dropdown.open .storeengine-dropdown-content .storeengine-product__multi-price label",pJ(i),pJ(i,"Tablet"),pJ(i,"Mobile"),t.customDeviceMap(t=>pJ(i,t))),
5689 +t.addClassStyles("{{WRAPPER}} .storeengine-single-product-price-summery .storeengine-single-product-price-label input[type=radio]",mJ(i),mJ(i,"Tablet"),mJ(i,"Mobile"),t.customDeviceMap(t=>mJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single__amount",hJ(i),hJ(i,"Tablet"),hJ(i,"Mobile"),t.customDeviceMap(t=>hJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-shortcode",gJ(i),gJ(i,"Tablet"),gJ(i,"Mobile"),t.customDeviceMap(t=>gJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-prices .storeengine-single-product-price,\n\t\t\t{{WRAPPER}} .storeengine-product__multi-prices .storeengine-dropdown__toggle,\n\t\t\t{{WRAPPER}} .storeengine-single__amount .storeengine-product__multi-prices",fJ(i,""),fJ(i,"Tablet"),fJ(i,"Mobile"),t.customDeviceMap(t=>fJ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(lJ,{...t}),(0,I.jsx)(sJ,{...t})]})},save:()=>null}),yJ.propTypes={};const TJ={
5678 5690 UU:"ablocks/storeengine-order-info",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleContentColor:{type:"string",default:""},titleContentColorH:{type:"string",default:""},detailsColor:{type:"string",default:""},detailsColorH:{type:"string",default:""},emailColor:{type:"string",default:""},emailColorH:{type:"string",default:""},titleContentTypographyGlobal:{type:"string",default:""},titleContentTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",
5679 5691 wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},detailsTypographyGlobal:{type:"string",default:""},detailsTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},emailTypographyGlobal:{type:"string",default:""},emailTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",
5680 5692 wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",
5681 5693 leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",
@@ -5684,14 +5696,14 @@
5684 5696 imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",
5685 5697 imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",
5686 5698 skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",
5687 5699 xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",
5688 -color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function XK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:YK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{
5689 -fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-order-info",httpMethod:"POST",attributes:e})})})})}XK.propTypes={};const BK=(t,e="")=>{const i={};i.color=t?.titleContentColor??"";const o=(0,M.Zy)(t?.titleContentTypography,{"font-weight":"400"}),a=t?.titleContentTypographyGlobal?t?.titleContentTypographyGlobal:"";return{...(0,U.qD)(o,e,a),...i}},EK=(t,e="")=>{const i={};i.color=t?.detailsColor??"";const o=(0,M.Zy)(t?.detailsTypography,{"font-weight":"400"}),a=t?.detailsTypographyGlobal?t?.detailsTypographyGlobal:"";return{...(0,U.qD)(o,e,a),...i}},FK=(t,e="")=>{const i={};i.color=t?.emailColor??"";const o=(0,M.Zy)(t?.emailTypography,{"font-weight":"400"
5690 -}),a=t?.emailTypographyGlobal?t?.emailTypographyGlobal:"";return{...(0,U.qD)(o,e,a),...i}};function qK(t){const{attributes:e,setAttributes:i}=t,{heading_typograhy:o,heading_color:a,heading_hover_color:n,address_typograhy:s,address_hover_color:r,address_color:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Billing Info Style","ablocks"),children:[(0,I.jsx)(at,{label:(0,L.__)("Heading Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"heading_typograhy",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"heading_color",attributeValue:a,setAttributes:i})}),
5691 -hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"heading_hover_color",attributeValue:n,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Address Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"address_typograhy",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"address_color",attributeValue:b,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"address_hover_color",attributeValue:r,setAttributes:i})})})]})})})})}(0,M.xV)(YK.UU,"","storeengine")&&(0,o.registerBlockType)(YK.UU,{title:(0,
5692 -L.__)("Order Info","ablocks"),attributes:YK.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success__content h4",BK(i),BK(i,"Tablet"),BK(i,"Mobile"),e(t=>BK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success__content p span,\n\t\t\t {{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success__content p time",EK(i),EK(i,"Tablet"),EK(i,"Mobile"),e(t=>EK(i,t))),
5693 -t.addClassStyles("{{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success .storeengine-thankyou-order-info-success__email p span,\n\t\t\t{{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success .storeengine-thankyou-order-info-success__email p a",FK(i,""),FK(i,"Tablet"),FK(i,"Mobile"),e(t=>FK(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(OK,{...t}),(0,I.jsx)(XK,{...t})]})},save:()=>null}),qK.propTypes={};const $K={UU:"ablocks/storeengine-billing-info",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},heading_color:{type:"string",default:""},heading_hover_color:{type:"string",default:""},address_hover_color:{type:"string",default:""},address_color:{type:"string",default:""},heading_typograhyGlobal:{type:"string",default:""},heading_typograhy:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",
5700 +color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function HJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:TJ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{
5701 +fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-order-info",httpMethod:"POST",attributes:e})})})})}HJ.propTypes={};const MJ=(t,e="")=>{const i={};i.color=t?.titleContentColor??"";const o=(0,M.Zy)(t?.titleContentTypography,{"font-weight":"400"}),a=t?.titleContentTypographyGlobal?t?.titleContentTypographyGlobal:"";return{...(0,U.qD)(o,e,a),...i}},xJ=(t,e="")=>{const i={};i.color=t?.detailsColor??"";const o=(0,M.Zy)(t?.detailsTypography,{"font-weight":"400"}),a=t?.detailsTypographyGlobal?t?.detailsTypographyGlobal:"";return{...(0,U.qD)(o,e,a),...i}},kJ=(t,e="")=>{const i={};i.color=t?.emailColor??"";const o=(0,M.Zy)(t?.emailTypography,{"font-weight":"400"
5702 +}),a=t?.emailTypographyGlobal?t?.emailTypographyGlobal:"";return{...(0,U.qD)(o,e,a),...i}};function vJ(t){const{attributes:e,setAttributes:i}=t,{heading_typograhy:o,heading_color:a,heading_hover_color:n,address_typograhy:s,address_hover_color:r,address_color:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Billing Info Style","ablocks"),children:[(0,I.jsx)(at,{label:(0,L.__)("Heading Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"heading_typograhy",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"heading_color",attributeValue:a,setAttributes:i})}),
5703 +hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"heading_hover_color",attributeValue:n,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Address Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"address_typograhy",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"address_color",attributeValue:b,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"address_hover_color",attributeValue:r,setAttributes:i})})})]})})})})}(0,M.xV)(TJ.UU,"","storeengine")&&(0,o.registerBlockType)(TJ.UU,{title:(0,
5704 +L.__)("Order Info","ablocks"),attributes:TJ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success__content h4",MJ(i),MJ(i,"Tablet"),MJ(i,"Mobile"),e(t=>MJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success__content p span,\n\t\t\t {{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success__content p time",xJ(i),xJ(i,"Tablet"),xJ(i,"Mobile"),e(t=>xJ(i,t))),
5705 +t.addClassStyles("{{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success .storeengine-thankyou-order-info-success__email p span,\n\t\t\t{{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success .storeengine-thankyou-order-info-success__email p a",kJ(i,""),kJ(i,"Tablet"),kJ(i,"Mobile"),e(t=>kJ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(yJ,{...t}),(0,I.jsx)(HJ,{...t})]})},save:()=>null}),vJ.propTypes={};const _J={UU:"ablocks/storeengine-billing-info",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},heading_color:{type:"string",default:""},heading_hover_color:{type:"string",default:""},address_hover_color:{type:"string",default:""},address_color:{type:"string",default:""},heading_typograhyGlobal:{type:"string",default:""},heading_typograhy:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",
5694 5706 decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},address_typograhyGlobal:{type:"string",default:""},address_typograhy:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",
5695 5707 lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",
5696 5708 customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,
5697 5709 isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",
@@ -5699,13 +5711,13 @@
5699 5711 imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,
5700 5712 videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",
5701 5713 yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,
5702 5714 maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{
5703 -animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function GK(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:$K.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{
5704 -fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-billing-info",httpMethod:"POST",attributes:e})})})})}GK.propTypes={};const ZK=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typograhy,"",{weight:"400"}),o=t.heading_typograhyGlobal?t.heading_typograhyGlobal:"";return{color:(0,Hs.qD)(t?.heading_color),...(0,U.qD)(i,"",e,o)}},KK=(t,e="")=>{const i=(0,M.Zy)(t?.address_typograhy,"",{weight:"400"}),o=t.address_typograhyGlobal?t.address_typograhyGlobal:"";return{color:(0,Hs.qD)(t?.address_color),...(0,U.qD)(i,"",e,o)}};function JK(t){const{attributes:e,setAttributes:i}=t,{shipping_heading_hover_color:o,shipping_heading_color:a,shipping_heading_typograhy:n,shipping_address_color:s,shipping_address_hover_color:r,shipping_address_typograhy:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,
5715 +animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function RJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:_J.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{
5716 +fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-billing-info",httpMethod:"POST",attributes:e})})})})}RJ.propTypes={};const SJ=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typograhy,"",{weight:"400"}),o=t.heading_typograhyGlobal?t.heading_typograhyGlobal:"";return{color:(0,Hs.qD)(t?.heading_color),...(0,U.qD)(i,"",e,o)}},WJ=(t,e="")=>{const i=(0,M.Zy)(t?.address_typograhy,"",{weight:"400"}),o=t.address_typograhyGlobal?t.address_typograhyGlobal:"";return{color:(0,Hs.qD)(t?.address_color),...(0,U.qD)(i,"",e,o)}};function PJ(t){const{attributes:e,setAttributes:i}=t,{shipping_heading_hover_color:o,shipping_heading_color:a,shipping_heading_typograhy:n,shipping_address_color:s,shipping_address_hover_color:r,shipping_address_typograhy:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,
5705 5717 I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Shipping Info Style","ablocks"),children:[(0,I.jsx)(at,{label:(0,L.__)("Heading Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"shipping_heading_typograhy",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"shipping_heading_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"shipping_heading_hover_color",attributeValue:o,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Address Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),
5706 -attributeName:"shipping_address_typograhy",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"shipping_address_color",attributeValue:s,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"shipping_address_hover_color",attributeValue:r,setAttributes:i})})})]})})})})}(0,M.xV)($K.UU,"","storeengine")&&(0,o.registerBlockType)($K.UU,{title:(0,L.__)("Billing Info","ablocks"),attributes:$K.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{
5707 -let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-order-billing-shortcode .storeengine-order-billing-heading",ZK(i),ZK(i,"Tablet"),ZK(i,"Mobile"),e(t=>ZK(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-billing-shortcode .storeengine-order-billing-address p",KK(i),KK(i,"Tablet"),KK(i,"Mobile"),e(t=>KK(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(qK,{...t}),(0,I.jsx)(GK,{...t})]})},save:()=>null}),JK.propTypes={};const QK={UU:"ablocks/storeengine-shipping-info",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},shipping_heading_hover_color:{type:"string",default:""},shipping_heading_color:{type:"string",default:""},shipping_address_hover_color:{type:"string",default:"#000000"},shipping_address_color:{type:"string",default:"#000000"},
5718 +attributeName:"shipping_address_typograhy",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"shipping_address_color",attributeValue:s,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"shipping_address_hover_color",attributeValue:r,setAttributes:i})})})]})})})})}(0,M.xV)(_J.UU,"","storeengine")&&(0,o.registerBlockType)(_J.UU,{title:(0,L.__)("Billing Info","ablocks"),attributes:_J.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{
5719 +let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-order-billing-shortcode .storeengine-order-billing-heading",SJ(i),SJ(i,"Tablet"),SJ(i,"Mobile"),e(t=>SJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-billing-shortcode .storeengine-order-billing-address p",WJ(i),WJ(i,"Tablet"),WJ(i,"Mobile"),e(t=>WJ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(vJ,{...t}),(0,I.jsx)(RJ,{...t})]})},save:()=>null}),PJ.propTypes={};const UJ={UU:"ablocks/storeengine-shipping-info",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},shipping_heading_hover_color:{type:"string",default:""},shipping_heading_color:{type:"string",default:""},shipping_address_hover_color:{type:"string",default:"#000000"},shipping_address_color:{type:"string",default:"#000000"},
5708 5720 shipping_heading_typograhyGlobal:{type:"string",default:""},shipping_heading_typograhy:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},shipping_address_typograhyGlobal:{type:"string",default:""},shipping_address_typograhy:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",
5709 5721 fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""
5710 5722 }},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",
5711 5723 rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",
@@ -5713,16 +5725,16 @@
5713 5725 imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",
5714 5726 imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",
5715 5727 skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",
5716 5728 yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",
5717 -shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function tJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:QK.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,
5718 -weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-shipping-info",httpMethod:"POST",attributes:e})})})})}tJ.propTypes={};const eJ=(t,e="")=>{const i=(0,M.Zy)(t?.shipping_heading_typograhy,"",{weight:"400"}),o=t.shipping_heading_typograhyGlobal?t.shipping_heading_typograhyGlobal:"";return{color:(0,Hs.qD)(t?.shipping_heading_color),...(0,U.qD)(i,e,o)}},iJ=(t,e="")=>{const i=(0,M.Zy)(t?.shipping_address_typograhy,"",{weight:"400"}),o=t.shipping_address_typograhyGlobal?t.shipping_address_typograhyGlobal:"";return{color:(0,Hs.qD)(t?.shipping_address_color),...(0,U.qD)(i,e,o)}};(0,M.xV)(QK.UU,"","storeengine")&&(0,o.registerBlockType)(QK.UU,{title:(0,L.__)("Shipping Info","ablocks"),attributes:QK.uK,icon:(0,I.jsx)("img",{
5719 -className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-heading",eJ(i,""),eJ(i,"Tablet"),eJ(i,"Mobile"),e(t=>eJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-address p",iJ(i,""),iJ(i,"Tablet"),iJ(i,"Mobile"),e(t=>iJ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(JK,{...t}),(0,I.jsx)(tJ,{...t})]})},save:()=>null});const oJ=(0,Eb.D$)({attributeName:"imageWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,
5720 -unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),aJ=(0,Eb.D$)({attributeName:"imageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0});function lJ(t){const{attributes:e,setAttributes:i}=t,{titleColor:o,titleColorH:a,titleTypography:n,imageWidth:s,ProductTitleTypography:r,productTitleColorH:b,productTitleColor:c,discountPriceTypography:d,discountPriceColor:u,discountPriceColorH:p,imageHeight:m,tableTextTypography:h,tableTextColorH:g,tableTextColor:f}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Layout Style","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"imageWidth",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:oJ,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),
5721 -attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:aJ,autoSyncRange:!0})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Style","ablocks"),children:[(0,I.jsx)(at,{label:(0,L.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ProductTitleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColor",attributeValue:c,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColorH",attributeValue:b,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Quality Style","ablocks"),
5729 +shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function jJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:UJ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,
5730 +weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-shipping-info",httpMethod:"POST",attributes:e})})})})}jJ.propTypes={};const wJ=(t,e="")=>{const i=(0,M.Zy)(t?.shipping_heading_typograhy,"",{weight:"400"}),o=t.shipping_heading_typograhyGlobal?t.shipping_heading_typograhyGlobal:"";return{color:(0,Hs.qD)(t?.shipping_heading_color),...(0,U.qD)(i,e,o)}},zJ=(t,e="")=>{const i=(0,M.Zy)(t?.shipping_address_typograhy,"",{weight:"400"}),o=t.shipping_address_typograhyGlobal?t.shipping_address_typograhyGlobal:"";return{color:(0,Hs.qD)(t?.shipping_address_color),...(0,U.qD)(i,e,o)}};(0,M.xV)(UJ.UU,"","storeengine")&&(0,o.registerBlockType)(UJ.UU,{title:(0,L.__)("Shipping Info","ablocks"),attributes:UJ.uK,icon:(0,I.jsx)("img",{
5731 +className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-heading",wJ(i,""),wJ(i,"Tablet"),wJ(i,"Mobile"),e(t=>wJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-address p",zJ(i,""),zJ(i,"Tablet"),zJ(i,"Mobile"),e(t=>zJ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(PJ,{...t}),(0,I.jsx)(jJ,{...t})]})},save:()=>null});const CJ=(0,Eb.D$)({attributeName:"imageWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,
5732 +unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),AJ=(0,Eb.D$)({attributeName:"imageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0});function LJ(t){const{attributes:e,setAttributes:i}=t,{titleColor:o,titleColorH:a,titleTypography:n,imageWidth:s,ProductTitleTypography:r,productTitleColorH:b,productTitleColor:c,discountPriceTypography:d,discountPriceColor:u,discountPriceColorH:p,imageHeight:m,tableTextTypography:h,tableTextColorH:g,tableTextColor:f}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Layout Style","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"imageWidth",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:CJ,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),
5733 +attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:AJ,autoSyncRange:!0})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Style","ablocks"),children:[(0,I.jsx)(at,{label:(0,L.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ProductTitleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColor",attributeValue:c,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColorH",attributeValue:b,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Quality Style","ablocks"),
5722 5734 isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColor",attributeValue:o,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColorH",attributeValue:a,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Price Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"discountPriceTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,
5723 5735 I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColor",attributeValue:u,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColorH",attributeValue:p,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Table Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"tableTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColor",attributeValue:f,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColorH",
5724 -attributeValue:g,setAttributes:i})})})]})]})})})}(0,U.D$)("titleTypography",!0),(0,U.D$)("ProductTitleTypography",!0),(0,U.D$)("discountPriceTypography",!0),(0,U.D$)("qualityTypography",!0),(0,U.D$)("tableTextTypography",!0),_r.Ay,lJ.propTypes={};const nJ={UU:"ablocks/storeengine-order-details",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleColor:{type:"string",default:""},titleColorH:{type:"string",default:""},productTitleColor:{type:"string",default:""},productTitleColorH:{type:"string",default:""},discountPriceColor:{type:"string",default:""},discountPriceColorH:{type:"string",default:""},regularPriceColor:{type:"string",default:""},regularPriceColorH:{type:"string",default:""},qualityColorH:{type:"string",default:""},qualityColor:{type:"string",default:""},tableTextColorH:{type:"string",default:""},tableTextColor:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",
5736 +attributeValue:g,setAttributes:i})})})]})]})})})}(0,U.D$)("titleTypography",!0),(0,U.D$)("ProductTitleTypography",!0),(0,U.D$)("discountPriceTypography",!0),(0,U.D$)("qualityTypography",!0),(0,U.D$)("tableTextTypography",!0),_r.Ay,LJ.propTypes={};const DJ={UU:"ablocks/storeengine-order-details",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleColor:{type:"string",default:""},titleColorH:{type:"string",default:""},productTitleColor:{type:"string",default:""},productTitleColorH:{type:"string",default:""},discountPriceColor:{type:"string",default:""},discountPriceColorH:{type:"string",default:""},regularPriceColor:{type:"string",default:""},regularPriceColorH:{type:"string",default:""},qualityColorH:{type:"string",default:""},qualityColor:{type:"string",default:""},tableTextColorH:{type:"string",default:""},tableTextColor:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",
5725 5737 weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},ProductTitleTypographyGlobal:{type:"string",default:""},ProductTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",
5726 5738 lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},discountPriceTypographyGlobal:{type:"string",default:""},discountPriceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},regularPriceTypographyGlobal:{type:"string",default:""},
5727 5739 regularPriceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},tableTextTypographyGlobal:{type:"string",default:""},tableTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",
5728 5740 fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},qualityTypographyGlobal:{type:"string",default:""},qualityTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},
@@ -5733,19 +5745,19 @@
5733 5745 imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",
5734 5746 fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",
5735 5747 rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",
5736 5748 maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,
5737 -opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function sJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:nJ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,
5738 -I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-order-details",httpMethod:"POST",attributes:e})})})})}sJ.propTypes={};const rJ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},bJ=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)}),cJ=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"height",device:e})}),dJ=(t,e="")=>{const i=(0,M.Zy)(t?.ProductTitleTypography,{weight:"400"}),o=t?.ProductTitleTypographyGlobal?t?.ProductTitleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.productTitleColor),...(0,U.qD)(i,e,o)}},uJ=(t,e="")=>({color:(0,Hs.qD)(t?.productTitleColorH)}),pJ=(t,e="")=>{
5739 -const i=(0,M.Zy)(t?.discountPriceTypography,{weight:"400"}),o=t?.discountPriceTypographyGlobal?t?.discountPriceTypographyGlobal:"",a=t?.discountPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.discountPriceColor),...a}},mJ=(t,e="")=>{const i=(0,M.Zy)(t?.regularPriceTypography,{weight:"400"}),o=t?.regularPriceTypographyGlobal?t?.regularPriceTypographyGlobal:"",a=t?.regularPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.regularPriceColor),...a}},hJ=(t,e="")=>{const i={};t?.regularPriceColor&&(i.color=(0,Hs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400"}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,U.qD)(o,e,a):[];return{...i,...l}},gJ=(t,e="")=>{const i=(0,M.Zy)(t?.tableTextTypography,"",{weight:"400"}),o=t?.tableTextTypographyGlobal?t?.tableTextTypographyGlobal:"";return{color:(0,Hs.qD)(t?.tableTextColor)||"#000",...(0,U.qD)(i,e,o)}};(0,M.xV)(nJ.UU,"","storeengine")&&(0,
5740 -o.registerBlockType)(nJ.UU,{title:(0,L.__)("Order Details","ablocks"),attributes:nJ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p",rJ(i),rJ(i,"Tablet"),rJ(i,"Mobile"),e(t=>rJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p:hover",bJ(i),bJ(i,"Tablet"),bJ(i,"Mobile"),e(t=>bJ(i,t))),
5741 -t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content img",cJ(i),cJ(i,"Tablet"),cJ(i,"Mobile"),e(t=>cJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title h6",dJ(i),dJ(i,"Tablet"),dJ(i,"Mobile"),e(t=>dJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title h6:hover",uJ(i),uJ(i,"Tablet"),uJ(i,"Mobile"),e(t=>uJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__price",pJ(i),pJ(i,"Tablet"),pJ(i,"Mobile"),e(t=>pJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-summary-shortcode .storeengine-order-summary__item .storeengine-order-item-entry-right .storeengine-order-item__price .storeengine-order-item__price-regular",mJ(i),mJ(i,"Tablet"),mJ(i,"Mobile"),e(t=>mJ(i,t))),
5742 -t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p,\n\t\t\t {{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p span",hJ(i),hJ(i,"Tablet"),hJ(i,"Mobile"),e(t=>hJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-thankyou-summery--item p,\n\t\t\t {{WRAPPER}} .storeengine-order-details-shortcode .storeengine-thankyou-summery--item p span",gJ(i),gJ(i,"Tablet"),gJ(i,"Mobile"),e(t=>gJ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(lJ,{...t}),(0,I.jsx)(sJ,{...t})]})},save:()=>null});var fJ=i(82424);function yJ(t){
5749 +opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function NJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:DJ.UU,attributes:e,typography:[{fontFamily:e.login_btn_typography?.fontFamily,weight:e.login_btn_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.input_field_label_typography?.fontFamily,weight:e.input_field_label_typography?.weight},{fontFamily:e.form_footer_title_typography?.fontFamily,weight:e.form_footer_title_typography?.weight}],children:(0,
5750 +I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-order-details",httpMethod:"POST",attributes:e})})})})}NJ.propTypes={};const IJ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},VJ=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)}),OJ=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"height",device:e})}),YJ=(t,e="")=>{const i=(0,M.Zy)(t?.ProductTitleTypography,{weight:"400"}),o=t?.ProductTitleTypographyGlobal?t?.ProductTitleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.productTitleColor),...(0,U.qD)(i,e,o)}},XJ=(t,e="")=>({color:(0,Hs.qD)(t?.productTitleColorH)}),BJ=(t,e="")=>{
5751 +const i=(0,M.Zy)(t?.discountPriceTypography,{weight:"400"}),o=t?.discountPriceTypographyGlobal?t?.discountPriceTypographyGlobal:"",a=t?.discountPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.discountPriceColor),...a}},EJ=(t,e="")=>{const i=(0,M.Zy)(t?.regularPriceTypography,{weight:"400"}),o=t?.regularPriceTypographyGlobal?t?.regularPriceTypographyGlobal:"",a=t?.regularPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.regularPriceColor),...a}},FJ=(t,e="")=>{const i={};t?.regularPriceColor&&(i.color=(0,Hs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400"}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,U.qD)(o,e,a):[];return{...i,...l}},qJ=(t,e="")=>{const i=(0,M.Zy)(t?.tableTextTypography,"",{weight:"400"}),o=t?.tableTextTypographyGlobal?t?.tableTextTypographyGlobal:"";return{color:(0,Hs.qD)(t?.tableTextColor)||"#000",...(0,U.qD)(i,e,o)}};(0,M.xV)(DJ.UU,"","storeengine")&&(0,
5752 +o.registerBlockType)(DJ.UU,{title:(0,L.__)("Order Details","ablocks"),attributes:DJ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p",IJ(i),IJ(i,"Tablet"),IJ(i,"Mobile"),e(t=>IJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p:hover",VJ(i),VJ(i,"Tablet"),VJ(i,"Mobile"),e(t=>VJ(i,t))),
5753 +t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content img",OJ(i),OJ(i,"Tablet"),OJ(i,"Mobile"),e(t=>OJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title h6",YJ(i),YJ(i,"Tablet"),YJ(i,"Mobile"),e(t=>YJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title h6:hover",XJ(i),XJ(i,"Tablet"),XJ(i,"Mobile"),e(t=>XJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__price",BJ(i),BJ(i,"Tablet"),BJ(i,"Mobile"),e(t=>BJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-summary-shortcode .storeengine-order-summary__item .storeengine-order-item-entry-right .storeengine-order-item__price .storeengine-order-item__price-regular",EJ(i),EJ(i,"Tablet"),EJ(i,"Mobile"),e(t=>EJ(i,t))),
5754 +t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p,\n\t\t\t {{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p span",FJ(i),FJ(i,"Tablet"),FJ(i,"Mobile"),e(t=>FJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-thankyou-summery--item p,\n\t\t\t {{WRAPPER}} .storeengine-order-details-shortcode .storeengine-thankyou-summery--item p span",qJ(i),qJ(i,"Tablet"),qJ(i,"Mobile"),e(t=>qJ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(LJ,{...t}),(0,I.jsx)(NJ,{...t})]})},save:()=>null});var $J=i(82424);function GJ(t){
5743 5755 const{attributes:e,setAttributes:i}=t,{titleColor:o,titleColorH:a,titleTypography:n,imageWidth:s,ProductTitleTypography:r,productTitleColorH:b,productTitleColor:c,discountPriceTypography:d,discountPriceColor:u,discountPriceColorH:p,imageHeight:m,tableTextTypography:h,tableTextColorH:g,tableTextColor:f,qualityColor:y,qualityColorH:T,qualityTypography:H}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(N.ToggleControl,{label:(0,L.__)("Show order summary","ablocks"),checked:!1!==e.showSummary,onChange:t=>i({showSummary:t}),help:(0,L.__)("Show the product list, coupon field and totals beside the checkout form.","ablocks")})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Layout Style","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"imageWidth",attributeValue:s,setAttributes:i,isInline:!1,
5744 -min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:fJ.uf,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:fJ.vr,autoSyncRange:!0})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Style","ablocks"),children:[(0,I.jsx)(at,{label:"Product Title",isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ProductTitleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColor",attributeValue:c,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,
5756 +min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:$J.uf,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:$J.vr,autoSyncRange:!0})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Style","ablocks"),children:[(0,I.jsx)(at,{label:"Product Title",isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ProductTitleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColor",attributeValue:c,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,
5745 5757 attributeName:"productTitleColorH",attributeValue:b,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Order Title Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColor",attributeValue:o,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColorH",attributeValue:a,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Quality Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"qualityTypography",attributeValue:H,setAttributes:i,
5746 5758 isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"qualityColor",attributeValue:y,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"qualityColorH",attributeValue:T,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Price Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"discountPriceTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColor",attributeValue:u,
5747 -setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColorH",attributeValue:p,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Table Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"tableTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColor",attributeValue:f,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColorH",attributeValue:g,setAttributes:i})})})]})]})})})}yJ.propTypes={};const TJ={UU:"ablocks/storeengine-funnel-checkout",uK:{block_id:{type:"string",
5759 +setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColorH",attributeValue:p,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Table Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"tableTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColor",attributeValue:f,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColorH",attributeValue:g,setAttributes:i})})})]})]})})})}GJ.propTypes={};const ZJ={UU:"ablocks/storeengine-funnel-checkout",uK:{block_id:{type:"string",
5748 5760 default:""},blockVersion:{type:"number",default:2},showSummary:{type:"boolean",default:!0},titleColor:{type:"string",default:""},titleColorH:{type:"string",default:""},productTitleColor:{type:"string",default:""},productTitleColorH:{type:"string",default:""},discountPriceColor:{type:"string",default:""},discountPriceColorH:{type:"string",default:""},regularPriceColor:{type:"string",default:""},regularPriceColorH:{type:"string",default:""},qualityColorH:{type:"string",default:""},qualityColor:{type:"string",default:""},tableTextColorH:{type:"string",default:""},tableTextColor:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",
5749 5761 lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},ProductTitleTypographyGlobal:{type:"string",default:""},ProductTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},
5750 5762 discountPriceTypographyGlobal:{type:"string",default:""},discountPriceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},regularPriceTypographyGlobal:{type:"string",default:""},regularPriceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",
5751 5763 fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},tableTextTypographyGlobal:{type:"string",default:""},tableTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",
@@ -5757,19 +5769,19 @@
5757 5769 imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",
5758 5770 rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",
5759 5771 offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",
5760 5772 xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{
5761 -type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function HJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:TJ.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-funnel-checkout",httpMethod:"POST",attributes:e})})})})}HJ.propTypes={};const MJ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},xJ=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)}),kJ=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",
5762 -isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"height",device:e})}),vJ=(t,e="")=>{const i=(0,M.Zy)(t?.ProductTitleTypography,{weight:"400"}),o=t?.ProductTitleTypographyGlobal?t?.ProductTitleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.productTitleColor),...(0,U.qD)(i,e,o)}},_J=(t,e="")=>({color:(0,Hs.qD)(t?.productTitleColorH)}),RJ=(t,e="")=>{const i=(0,M.Zy)(t?.discountPriceTypography,{weight:"400"}),o=t?.discountPriceTypographyGlobal?t?.discountPriceTypographyGlobal:"",a=t?.discountPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.discountPriceColor),...a}},SJ=(t,e="")=>{const i=(0,M.Zy)(t?.regularPriceTypography,{weight:"400"}),o=t?.regularPriceTypographyGlobal?t?.regularPriceTypographyGlobal:"",a=t?.regularPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.regularPriceColor),...a}},WJ=(t,e="")=>{const i={};t?.qualityColor&&(i.color=(0,Hs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400"
5763 -}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,U.qD)(o,e,a):[];return{...i,...l}},PJ=(t,e="")=>{const i=(0,M.Zy)(t?.tableTextTypography,"",{weight:"400"}),o=t?.tableTextTypographyGlobal?t?.tableTextTypographyGlobal:"";return{color:(0,Hs.qD)(t?.tableTextColor)||"#000",...(0,U.qD)(i,e,o)}};(0,M.xV)(TJ.UU,"","storeengine")&&(0,o.registerBlockType)(TJ.UU,{title:(0,L.__)("Funnel Checkout","ablocks"),attributes:TJ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{}
5764 -;return t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-summary .storeengine-ajax-checkout-form__title",MJ(i),MJ(i,"Tablet"),MJ(i,"Mobile"),e(t=>MJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-summary .storeengine-ajax-checkout-form__title:hover",xJ(i),xJ(i,"Tablet"),xJ(i,"Mobile"),e(t=>xJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item-entry-left img",kJ(i),kJ(i,"Tablet"),kJ(i,"Mobile"),e(t=>kJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item h6 a",vJ(i),vJ(i,"Tablet"),vJ(i,"Mobile"),e(t=>vJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item h6 a:hover",_J(i),_J(i,"Tablet"),_J(i,"Mobile"),e(t=>_J(i,t))),
5765 -t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item__price",RJ(i),RJ(i,"Tablet"),RJ(i,"Mobile"),e(t=>RJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-summary-shortcode .storeengine-order-summary__item .storeengine-order-item-entry-right .storeengine-order-item__price .storeengine-order-item__price-regular",SJ(i),SJ(i,"Tablet"),SJ(i,"Mobile"),e(t=>SJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item__qty,\n\t\t\t {{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item__qty span",WJ(i),WJ(i,"Tablet"),WJ(i,"Mobile"),e(t=>WJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-cart-sub-total-table,\n\t\t\t {{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-cart-sub-total-table td",PJ(i),PJ(i,"Tablet"),PJ(i,"Mobile"),e(t=>PJ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s
5766 -}),e&&(0,I.jsx)(yJ,{...t}),(0,I.jsx)(HJ,{...t})]})},save:()=>null});var UJ=i(74748);function jJ(t){const{attributes:e,setAttributes:i}=t,{titleColor:o,titleColorH:a,titleTypography:n,imageWidth:s,ProductTitleTypography:r,productTitleColorH:b,productTitleColor:c,discountPriceTypography:d,discountPriceColor:u,discountPriceColorH:p,imageHeight:m,tableTextTypography:h,tableTextColorH:g,tableTextColor:f,qualityColor:y,qualityColorH:T,qualityTypography:H}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:[(0,I.jsx)(N.TextControl,{label:(0,L.__)("Offer title","ablocks"),value:e.offerTitle||"",onChange:t=>i({offerTitle:t}),placeholder:(0,L.__)("Uses the step’s configured title","ablocks")}),(0,I.jsx)(N.TextareaControl,{label:(0,L.__)("Offer description","ablocks"),value:e.offerDescription||"",onChange:t=>i({offerDescription:t}),
5767 -placeholder:(0,L.__)("Uses the step’s configured description","ablocks"),help:(0,L.__)("Leave both empty to use the offer configured on the funnel step.","ablocks")})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Layout Style","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"imageWidth",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:UJ.uf,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:UJ.vr,autoSyncRange:!0})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Style","ablocks"),children:[(0,I.jsx)(at,{label:(0,L.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ProductTitleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,
5773 +type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function KJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:ZJ.UU,attributes:e,children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-funnel-checkout",httpMethod:"POST",attributes:e})})})})}KJ.propTypes={};const JJ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},QJ=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)}),tQ=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",
5774 +isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"height",device:e})}),eQ=(t,e="")=>{const i=(0,M.Zy)(t?.ProductTitleTypography,{weight:"400"}),o=t?.ProductTitleTypographyGlobal?t?.ProductTitleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.productTitleColor),...(0,U.qD)(i,e,o)}},iQ=(t,e="")=>({color:(0,Hs.qD)(t?.productTitleColorH)}),oQ=(t,e="")=>{const i=(0,M.Zy)(t?.discountPriceTypography,{weight:"400"}),o=t?.discountPriceTypographyGlobal?t?.discountPriceTypographyGlobal:"",a=t?.discountPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.discountPriceColor),...a}},aQ=(t,e="")=>{const i=(0,M.Zy)(t?.regularPriceTypography,{weight:"400"}),o=t?.regularPriceTypographyGlobal?t?.regularPriceTypographyGlobal:"",a=t?.regularPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.regularPriceColor),...a}},lQ=(t,e="")=>{const i={};t?.qualityColor&&(i.color=(0,Hs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400"
5775 +}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,U.qD)(o,e,a):[];return{...i,...l}},nQ=(t,e="")=>{const i=(0,M.Zy)(t?.tableTextTypography,"",{weight:"400"}),o=t?.tableTextTypographyGlobal?t?.tableTextTypographyGlobal:"";return{color:(0,Hs.qD)(t?.tableTextColor)||"#000",...(0,U.qD)(i,e,o)}};(0,M.xV)(ZJ.UU,"","storeengine")&&(0,o.registerBlockType)(ZJ.UU,{title:(0,L.__)("Funnel Checkout","ablocks"),attributes:ZJ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{}
5776 +;return t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-summary .storeengine-ajax-checkout-form__title",JJ(i),JJ(i,"Tablet"),JJ(i,"Mobile"),e(t=>JJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-summary .storeengine-ajax-checkout-form__title:hover",QJ(i),QJ(i,"Tablet"),QJ(i,"Mobile"),e(t=>QJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item-entry-left img",tQ(i),tQ(i,"Tablet"),tQ(i,"Mobile"),e(t=>tQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item h6 a",eQ(i),eQ(i,"Tablet"),eQ(i,"Mobile"),e(t=>eQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item h6 a:hover",iQ(i),iQ(i,"Tablet"),iQ(i,"Mobile"),e(t=>iQ(i,t))),
5777 +t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item__price",oQ(i),oQ(i,"Tablet"),oQ(i,"Mobile"),e(t=>oQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-order-summary-shortcode .storeengine-order-summary__item .storeengine-order-item-entry-right .storeengine-order-item__price .storeengine-order-item__price-regular",aQ(i),aQ(i,"Tablet"),aQ(i,"Mobile"),e(t=>aQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item__qty,\n\t\t\t {{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item__qty span",lQ(i),lQ(i,"Tablet"),lQ(i,"Mobile"),e(t=>lQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-cart-sub-total-table,\n\t\t\t {{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-cart-sub-total-table td",nQ(i),nQ(i,"Tablet"),nQ(i,"Mobile"),e(t=>nQ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s
5778 +}),e&&(0,I.jsx)(GJ,{...t}),(0,I.jsx)(KJ,{...t})]})},save:()=>null});var sQ=i(74748);function rQ(t){const{attributes:e,setAttributes:i}=t,{titleColor:o,titleColorH:a,titleTypography:n,imageWidth:s,ProductTitleTypography:r,productTitleColorH:b,productTitleColor:c,discountPriceTypography:d,discountPriceColor:u,discountPriceColorH:p,imageHeight:m,tableTextTypography:h,tableTextColorH:g,tableTextColor:f,qualityColor:y,qualityColorH:T,qualityTypography:H}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:[(0,I.jsx)(N.TextControl,{label:(0,L.__)("Offer title","ablocks"),value:e.offerTitle||"",onChange:t=>i({offerTitle:t}),placeholder:(0,L.__)("Uses the step’s configured title","ablocks")}),(0,I.jsx)(N.TextareaControl,{label:(0,L.__)("Offer description","ablocks"),value:e.offerDescription||"",onChange:t=>i({offerDescription:t}),
5779 +placeholder:(0,L.__)("Uses the step’s configured description","ablocks"),help:(0,L.__)("Leave both empty to use the offer configured on the funnel step.","ablocks")})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Layout Style","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"imageWidth",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:sQ.uf,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:sQ.vr,autoSyncRange:!0})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Style","ablocks"),children:[(0,I.jsx)(at,{label:(0,L.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ProductTitleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,
5768 5780 I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColor",attributeValue:c,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColorH",attributeValue:b,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Order Title Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColor",attributeValue:o,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{
5769 5781 children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColorH",attributeValue:a,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Quality Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"qualityTypography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"qualityColor",attributeValue:y,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"qualityColorH",attributeValue:T,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Price Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),
5770 5782 attributeName:"discountPriceTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColor",attributeValue:u,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColorH",attributeValue:p,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Table Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"tableTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,
5771 -L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColor",attributeValue:f,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColorH",attributeValue:g,setAttributes:i})})})]})]})})})}jJ.propTypes={};const wJ={UU:"ablocks/storeengine-funnel-offer",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},offerTitle:{type:"string",default:""},offerDescription:{type:"string",default:""},titleColor:{type:"string",default:""},titleColorH:{type:"string",default:""},productTitleColor:{type:"string",default:""},productTitleColorH:{type:"string",default:""},discountPriceColor:{type:"string",default:""},discountPriceColorH:{type:"string",default:""},regularPriceColor:{type:"string",default:""},regularPriceColorH:{type:"string",default:""},qualityColorH:{type:"string",default:""},qualityColor:{type:"string",default:""},tableTextColorH:{type:"string",default:""},
5783 +L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColor",attributeValue:f,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColorH",attributeValue:g,setAttributes:i})})})]})]})})})}rQ.propTypes={};const bQ={UU:"ablocks/storeengine-funnel-offer",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},offerTitle:{type:"string",default:""},offerDescription:{type:"string",default:""},titleColor:{type:"string",default:""},titleColorH:{type:"string",default:""},productTitleColor:{type:"string",default:""},productTitleColorH:{type:"string",default:""},discountPriceColor:{type:"string",default:""},discountPriceColorH:{type:"string",default:""},regularPriceColor:{type:"string",default:""},regularPriceColorH:{type:"string",default:""},qualityColorH:{type:"string",default:""},qualityColor:{type:"string",default:""},tableTextColorH:{type:"string",default:""},
5772 5784 tableTextColor:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},ProductTitleTypographyGlobal:{type:"string",default:""},ProductTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",
5773 5785 wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},discountPriceTypographyGlobal:{type:"string",default:""},discountPriceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",
5774 5786 wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},regularPriceTypographyGlobal:{type:"string",default:""},regularPriceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},tableTextTypographyGlobal:{type:"string",default:""},tableTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",
5775 5787 letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},qualityTypographyGlobal:{type:"string",default:""},qualityTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",
@@ -5780,16 +5792,16 @@
5780 5792 imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",
5781 5793 vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",
5782 5794 xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{
5783 5795 type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},
5784 -_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function zJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:wJ.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-funnel-offer",httpMethod:"POST",attributes:e})})})})}zJ.propTypes={};const CJ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"
5785 -}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},AJ=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)}),LJ=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"height",device:e})}),DJ=(t,e="")=>{const i=(0,M.Zy)(t?.ProductTitleTypography,{weight:"400"}),o=t?.ProductTitleTypographyGlobal?t?.ProductTitleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.productTitleColor),...(0,U.qD)(i,e,o)}},NJ=(t,e="")=>({color:(0,Hs.qD)(t?.productTitleColorH)}),IJ=(t,e="")=>{const i=(0,M.Zy)(t?.discountPriceTypography,{weight:"400"}),o=t?.discountPriceTypographyGlobal?t?.discountPriceTypographyGlobal:"",a=t?.discountPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,
5786 -Hs.qD)(t?.discountPriceColor),...a}},VJ=(t,e="")=>{const i=(0,M.Zy)(t?.regularPriceTypography,{weight:"400"}),o=t?.regularPriceTypographyGlobal?t?.regularPriceTypographyGlobal:"",a=t?.regularPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.regularPriceColor),...a}},OJ=(t,e="")=>{const i={};t?.qualityColor&&(i.color=(0,Hs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400"}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,U.qD)(o,e,a):[];return{...i,...l}},YJ=(t,e="")=>{const i=(0,M.Zy)(t?.tableTextTypography,"",{weight:"400"}),o=t?.tableTextTypographyGlobal?t?.tableTextTypographyGlobal:"";return{color:(0,Hs.qD)(t?.tableTextColor)||"#000",...(0,U.qD)(i,e,o)}};function XJ(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonTypography:c,buttonWidth:d,buttonAlignment:u}=e;return(0,I.jsx)(l().Fragment,{children:(0,
5796 +_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function cQ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:bQ.UU,attributes:e,children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-funnel-offer",httpMethod:"POST",attributes:e})})})})}cQ.propTypes={};const dQ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"
5797 +}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},uQ=(t,e="")=>({color:(0,Hs.qD)(t?.titleColorH)}),pQ=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"height",device:e})}),mQ=(t,e="")=>{const i=(0,M.Zy)(t?.ProductTitleTypography,{weight:"400"}),o=t?.ProductTitleTypographyGlobal?t?.ProductTitleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.productTitleColor),...(0,U.qD)(i,e,o)}},hQ=(t,e="")=>({color:(0,Hs.qD)(t?.productTitleColorH)}),gQ=(t,e="")=>{const i=(0,M.Zy)(t?.discountPriceTypography,{weight:"400"}),o=t?.discountPriceTypographyGlobal?t?.discountPriceTypographyGlobal:"",a=t?.discountPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,
5798 +Hs.qD)(t?.discountPriceColor),...a}},fQ=(t,e="")=>{const i=(0,M.Zy)(t?.regularPriceTypography,{weight:"400"}),o=t?.regularPriceTypographyGlobal?t?.regularPriceTypographyGlobal:"",a=t?.regularPriceTypography?(0,U.qD)(i,e,o):[];return{color:(0,Hs.qD)(t?.regularPriceColor),...a}},yQ=(t,e="")=>{const i={};t?.qualityColor&&(i.color=(0,Hs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400"}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,U.qD)(o,e,a):[];return{...i,...l}},TQ=(t,e="")=>{const i=(0,M.Zy)(t?.tableTextTypography,"",{weight:"400"}),o=t?.tableTextTypographyGlobal?t?.tableTextTypographyGlobal:"";return{color:(0,Hs.qD)(t?.tableTextColor)||"#000",...(0,U.qD)(i,e,o)}};function HQ(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonTypography:c,buttonWidth:d,buttonAlignment:u}=e;return(0,I.jsx)(l().Fragment,{children:(0,
5787 5799 I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(N.TextControl,{label:(0,L.__)("Button label","ablocks"),value:e.label||"",onChange:t=>i({label:t}),placeholder:(0,L.__)("Yes, add this to my order","ablocks"),help:(0,L.__)("Leave empty to use the default label.","ablocks")})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Button Hover Effect",isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,
5788 5800 isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Color",isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Padding",isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Border",isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{
5789 -attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Box shadow",isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})]})})})}(0,M.xV)(wJ.UU,"","storeengine")&&(0,o.registerBlockType)(wJ.UU,{title:(0,L.__)("Funnel Offer","ablocks"),attributes:wJ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__title",CJ(i),CJ(i,"Tablet"),CJ(i,"Mobile"),e(t=>CJ(i,t))),
5790 -t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__title:hover",AJ(i),AJ(i,"Tablet"),AJ(i,"Mobile"),e(t=>AJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content img",LJ(i),LJ(i,"Tablet"),LJ(i,"Mobile"),e(t=>LJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title h6",DJ(i),DJ(i,"Tablet"),DJ(i,"Mobile"),e(t=>DJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title h6:hover",NJ(i),NJ(i,"Tablet"),NJ(i,"Mobile"),e(t=>NJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__price",IJ(i),IJ(i,"Tablet"),IJ(i,"Mobile"),e(t=>IJ(i,t))),
5791 -t.addClassStyles("{{WRAPPER}} .storeengine-order-summary-shortcode .storeengine-order-summary__item .storeengine-order-item-entry-right .storeengine-order-item__price .storeengine-order-item__price-regular",VJ(i),VJ(i,"Tablet"),VJ(i,"Mobile"),e(t=>VJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title p,\n\t\t\t {{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title p span",OJ(i),OJ(i,"Tablet"),OJ(i,"Mobile"),e(t=>OJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__desc,\n\t\t\t {{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__desc p",YJ(i),YJ(i,"Tablet"),YJ(i,"Mobile"),e(t=>YJ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(jJ,{...t}),(0,I.jsx)(zJ,{...t})]})},save:()=>null}),XJ.propTypes={};const BJ={
5801 +attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Box shadow",isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})]})})})}(0,M.xV)(bQ.UU,"","storeengine")&&(0,o.registerBlockType)(bQ.UU,{title:(0,L.__)("Funnel Offer","ablocks"),attributes:bQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t=2===i?.blockVersion?new A(i,l):new C(i,l),!t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__title",dQ(i),dQ(i,"Tablet"),dQ(i,"Mobile"),e(t=>dQ(i,t))),
5802 +t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__title:hover",uQ(i),uQ(i,"Tablet"),uQ(i,"Mobile"),e(t=>uQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content img",pQ(i),pQ(i,"Tablet"),pQ(i,"Mobile"),e(t=>pQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title h6",mQ(i),mQ(i,"Tablet"),mQ(i,"Mobile"),e(t=>mQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title h6:hover",hQ(i),hQ(i,"Tablet"),hQ(i,"Mobile"),e(t=>hQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__price",gQ(i),gQ(i,"Tablet"),gQ(i,"Mobile"),e(t=>gQ(i,t))),
5803 +t.addClassStyles("{{WRAPPER}} .storeengine-order-summary-shortcode .storeengine-order-summary__item .storeengine-order-item-entry-right .storeengine-order-item__price .storeengine-order-item__price-regular",fQ(i),fQ(i,"Tablet"),fQ(i,"Mobile"),e(t=>fQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title p,\n\t\t\t {{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title p span",yQ(i),yQ(i,"Tablet"),yQ(i,"Mobile"),e(t=>yQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__desc,\n\t\t\t {{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__desc p",TQ(i),TQ(i,"Tablet"),TQ(i,"Mobile"),e(t=>TQ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(rQ,{...t}),(0,I.jsx)(cQ,{...t})]})},save:()=>null}),HQ.propTypes={};const MQ={
5792 5804 UU:"ablocks/storeengine-funnel-accept",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},label:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",
5793 5805 fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",
5794 5806 topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",
5795 5807 unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},buttonWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",
@@ -5799,14 +5811,14 @@
5799 5811 imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",
5800 5812 imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",
5801 5813 scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",
5802 5814 skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",
5803 -shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function EJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:BJ.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,
5804 -I.jsx)(tW(),{block:"ablocks/storeengine-funnel-accept",httpMethod:"POST",attributes:e})})})})}EJ.propTypes={};const FJ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},qJ=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function $J(t){
5815 +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function xQ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:MQ.UU,attributes:e,children:(0,I.jsx)(rW,{children:(0,
5816 +I.jsx)(sW(),{block:"ablocks/storeengine-funnel-accept",httpMethod:"POST",attributes:e})})})})}xQ.propTypes={};const kQ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},vQ=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function _Q(t){
5805 5817 const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonTypography:c,buttonWidth:d,buttonAlignment:u}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(N.TextControl,{label:(0,L.__)("Button label","ablocks"),value:e.label||"",onChange:t=>i({label:t}),placeholder:(0,L.__)("No thanks","ablocks"),help:(0,L.__)("Leave empty to use the default label.","ablocks")})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,
5806 5818 I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Button Hover Effect","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:s,
5807 -attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})]})})})}(0,M.xV)(BJ.UU,"","storeengine")&&(0,o.registerBlockType)(BJ.UU,{title:(0,L.__)("Funnel Accept","ablocks"),attributes:BJ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5808 -;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",FJ(i),FJ(i,"Tablet"),FJ(i,"Mobile"),t.customDeviceMap(t=>FJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",qJ(i),qJ(i,"Tablet"),qJ(i,"Mobile"),t.customDeviceMap(t=>qJ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(XJ,{...t}),(0,I.jsx)(EJ,{...t})]})},save:()=>null}),$J.propTypes={};const GJ={UU:"ablocks/storeengine-funnel-decline",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},label:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",
5819 +attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})]})})})}(0,M.xV)(MQ.UU,"","storeengine")&&(0,o.registerBlockType)(MQ.UU,{title:(0,L.__)("Funnel Accept","ablocks"),attributes:MQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5820 +;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",kQ(i),kQ(i,"Tablet"),kQ(i,"Mobile"),t.customDeviceMap(t=>kQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",vQ(i),vQ(i,"Tablet"),vQ(i,"Mobile"),t.customDeviceMap(t=>vQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(HQ,{...t}),(0,I.jsx)(xQ,{...t})]})},save:()=>null}),_Q.propTypes={};const RQ={UU:"ablocks/storeengine-funnel-decline",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},label:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",
5809 5821 bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",
5810 5822 isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",
5811 5823 rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},
5812 5824 buttonWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",
@@ -5816,14 +5828,14 @@
5816 5828 imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",
5817 5829 zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",
5818 5830 rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",
5819 5831 maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,
5820 -easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function ZJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:GJ.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-funnel-decline",httpMethod:"POST",attributes:e})})})})}ZJ.propTypes={};const KJ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},JJ=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"
5821 -}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function QJ(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonTypography:c,buttonWidth:d,buttonAlignment:u}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(N.TextControl,{label:(0,L.__)("Button label","ablocks"),value:e.label||"",
5832 +easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function SQ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:RQ.UU,attributes:e,children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-funnel-decline",httpMethod:"POST",attributes:e})})})})}SQ.propTypes={};const WQ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},PQ=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"
5833 +}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function UQ(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonTypography:c,buttonWidth:d,buttonAlignment:u}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(N.TextControl,{label:(0,L.__)("Button label","ablocks"),value:e.label||"",
5822 5834 onChange:t=>i({label:t}),placeholder:(0,L.__)("Yes, add this to my order","ablocks"),help:(0,L.__)("Leave empty to use the default label.","ablocks")})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Button Hover Effect",isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Color",isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,
5823 5835 attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Padding",isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Border",isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:"Box shadow",isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,
5824 -setAttributes:i})]})]})})})}(0,M.xV)(GJ.UU,"","storeengine")&&(0,o.registerBlockType)(GJ.UU,{title:(0,L.__)("Funnel Decline","ablocks"),attributes:GJ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",KJ(i),KJ(i,"Tablet"),KJ(i,"Mobile"),t.customDeviceMap(t=>KJ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",JJ(i),JJ(i,"Tablet"),JJ(i,"Mobile"),t.customDeviceMap(t=>JJ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)($J,{...t}),(0,I.jsx)(ZJ,{...t})]})},save:()=>null}),
5825 -QJ.propTypes={};const tQ={UU:"ablocks/storeengine-funnel-continue",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},label:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",
5836 +setAttributes:i})]})]})})})}(0,M.xV)(RQ.UU,"","storeengine")&&(0,o.registerBlockType)(RQ.UU,{title:(0,L.__)("Funnel Decline","ablocks"),attributes:RQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",WQ(i),WQ(i,"Tablet"),WQ(i,"Mobile"),t.customDeviceMap(t=>WQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",PQ(i),PQ(i,"Tablet"),PQ(i,"Mobile"),t.customDeviceMap(t=>PQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(_Q,{...t}),(0,I.jsx)(SQ,{...t})]})},save:()=>null}),
5837 +UQ.propTypes={};const jQ={UU:"ablocks/storeengine-funnel-continue",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},label:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",
5826 5838 fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",
5827 5839 bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",
5828 5840 leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},buttonWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",
5829 5841 rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",
@@ -5832,13 +5844,13 @@
5832 5844 imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",
5833 5845 imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",
5834 5846 scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",
5835 5847 skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",
5836 -default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function eQ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:tQ.UU,attributes:e,children:(0,I.jsx)(eW,{
5837 -children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-funnel-continue",httpMethod:"POST",attributes:e})})})})}eQ.propTypes={};const iQ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},oQ=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function aQ(t){
5848 +default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function wQ(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:jQ.UU,attributes:e,children:(0,I.jsx)(rW,{
5849 +children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-funnel-continue",httpMethod:"POST",attributes:e})})})})}wQ.propTypes={};const zQ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},CQ=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function AQ(t){
5838 5850 const{attributes:e,setAttributes:i}=t,{iconColor:o,iconColorH:a,countColor:n,countColorH:s,countBg:r,countBgH:b,countTypography:c,padding:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{title:(0,L.__)("Mini Cart Style","ablocks"),isOpen:!0,children:[(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:d,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Icon Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"iconColor",attributeValue:o,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"iconColorH",attributeValue:a,setAttributes:i})})}),(0,
5839 5851 I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Count Typography","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"countTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Count Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"countBg",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"countColor",attributeValue:n,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!1,attributeName:"countBgH",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"countColorH",attributeValue:s,setAttributes:i})]})}),(0,I.jsx)(It,{})]})})})})}(0,
5840 -M.xV)(tQ.UU,"","storeengine")&&(0,o.registerBlockType)(tQ.UU,{title:(0,L.__)("Funnel Continue","ablocks"),attributes:tQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",iQ(i),iQ(i,"Tablet"),iQ(i,"Mobile"),t.customDeviceMap(t=>iQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",oQ(i),oQ(i,"Tablet"),oQ(i,"Mobile"),t.customDeviceMap(t=>oQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(QJ,{...t}),(0,I.jsx)(eQ,{...t})]})},save:()=>null}),aQ.propTypes={};const lQ={
5852 +M.xV)(jQ.UU,"","storeengine")&&(0,o.registerBlockType)(jQ.UU,{title:(0,L.__)("Funnel Continue","ablocks"),attributes:jQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",zQ(i),zQ(i,"Tablet"),zQ(i,"Mobile"),t.customDeviceMap(t=>zQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",CQ(i),CQ(i,"Tablet"),CQ(i,"Mobile"),t.customDeviceMap(t=>CQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(UQ,{...t}),(0,I.jsx)(wQ,{...t})]})},save:()=>null}),AQ.propTypes={};const LQ={
5841 5853 UU:"ablocks/storeengine-mini-cart",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},iconColorH:{type:"string",default:"#111"},iconColor:{type:"string",default:"#111"},countBg:{type:"string",default:"#008DFF"},countBgH:{type:"string",default:"#008DFF"},countColor:{type:"string",default:"#fff"},countColorH:{type:"string",default:"#fff"},countTypographyGlobal:{type:"string",default:""},countTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",
5842 5854 wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},
5843 5855 _width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",
5844 5856 rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",
@@ -5846,15 +5858,15 @@
5846 5858 imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",
5847 5859 imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",
5848 5860 skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",
5849 5861 yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",
5850 -shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function nQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:lQ.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-mini-cart",httpMethod:"POST",attributes:{...e,postId:i.postId,
5851 -product_id:e.product_id?e.product_id:i.postId}})})})})}nQ.propTypes={};const sQ=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)}),rQ=(t,e="")=>{const i=(0,M.Zy)(t.countTypography,{weight:"400"}),o=t.countTypographyGlobal?t.countTypographyGlobal:"";return{color:(0,Hs.qD)(t?.countColor),background:(0,Hs.qD)(t?.countBg),...(0,U.qD)(i,e,o)}},bQ=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}};(0,M.xV)(lQ.UU,"","storeengine")&&(0,o.registerBlockType)(lQ.UU,{title:(0,L.__)("Mini Cart Button","ablocks"),attributes:lQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
5852 -null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart-link svg",sQ(i),sQ(i,"Tablet"),sQ(i,"Mobile"),e(t=>sQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart",bQ(i),bQ(i,"Tablet"),bQ(i,"Mobile"),e(t=>bQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart>button.storeengine-mini-cart-link>.storeengine-min-cart-count",rQ(i),rQ(i,"Tablet"),rQ(i,"Mobile"),e(t=>rQ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(aQ,{...t}),(0,I.jsx)(nQ,{...t})]})},save:()=>null});var cQ=i(57374);function dQ(t){const{attributes:e,setAttributes:i}=t,{product_id:o,infoBoxWidth:a,boxColor:n,boxColorH:s,boxBackground:b,boxBackgroundH:c,infoBoxoxShadow:d,infoBoxBorder:u,infoBoxPadding:p,infoTypography:m,linkTypography:h,linkColor:g,linkColorH:f,infoboxAlignment:y,isCustom:T}=e,H=(0,
5862 +shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function DQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:LQ.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-mini-cart",httpMethod:"POST",attributes:{...e,postId:i.postId,
5863 +product_id:e.product_id?e.product_id:i.postId}})})})})}DQ.propTypes={};const NQ=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)}),IQ=(t,e="")=>{const i=(0,M.Zy)(t.countTypography,{weight:"400"}),o=t.countTypographyGlobal?t.countTypographyGlobal:"";return{color:(0,Hs.qD)(t?.countColor),background:(0,Hs.qD)(t?.countBg),...(0,U.qD)(i,e,o)}},VQ=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}};(0,M.xV)(LQ.UU,"","storeengine")&&(0,o.registerBlockType)(LQ.UU,{title:(0,L.__)("Mini Cart Button","ablocks"),attributes:LQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
5864 +null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart-link svg",NQ(i),NQ(i,"Tablet"),NQ(i,"Mobile"),e(t=>NQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart",VQ(i),VQ(i,"Tablet"),VQ(i,"Mobile"),e(t=>VQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart>button.storeengine-mini-cart-link>.storeengine-min-cart-count",IQ(i),IQ(i,"Tablet"),IQ(i,"Mobile"),e(t=>IQ(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(AQ,{...t}),(0,I.jsx)(DQ,{...t})]})},save:()=>null});var OQ=i(57374);function YQ(t){const{attributes:e,setAttributes:i}=t,{product_id:o,infoBoxWidth:a,boxColor:n,boxColorH:s,boxBackground:b,boxBackgroundH:c,infoBoxoxShadow:d,infoBoxBorder:u,infoBoxPadding:p,infoTypography:m,linkTypography:h,linkColor:g,linkColorH:f,infoboxAlignment:y,isCustom:T}=e,H=(0,
5853 5865 r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),M=H?H.map(t=>({label:t.title?.rendered,value:t.id})):[];M.unshift({label:(0,L.__)("Select a Product","ablocks"),value:0});const x=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("General","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Use Custom Product","ablocks"),attributeValue:T,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0,I.jsx)("i",{children:(0,L.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{options:M,label:(0,L.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i}),(0,I.jsx)(_t,{label:(0,
5854 -L.__)("Width","ablocks"),attributeName:"infoBoxWidth",attributeObjectKey:"value",attributeValue:a,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(a["valueUnit"+x]??"%")?100:1600,attributeDefaultValue:cQ.U,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"infoboxAlignment",attributeValue:y,setAttributes:i,isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Notice Typography","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"infoTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Notice Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,
5866 +L.__)("Width","ablocks"),attributeName:"infoBoxWidth",attributeObjectKey:"value",attributeValue:a,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(a["valueUnit"+x]??"%")?100:1600,attributeDefaultValue:OQ.U,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"infoboxAlignment",attributeValue:y,setAttributes:i,isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Notice Typography","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"infoTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Notice Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,
5855 5867 L.__)("Color","ablocks"),attributeValue:n,attributeName:"boxColor",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:b,attributeName:"boxBackground",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:s,attributeName:"boxColorH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:c,attributeName:"boxBackgroundH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Link Typography","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"linkTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Link Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:g,attributeName:"linkColor",setAttributes:i})}),
5856 -hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:f,attributeName:"linkColorH",setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"infoBoxPadding",attributeValue:p,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"infoBoxBorder",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box Shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box Shadow","ablocks"),attributeName:"infoBoxoxShadow",attributeValue:d,setAttributes:i})]})})})})})})}dQ.propTypes={};const uQ={UU:"ablocks/storeengine-cart-notice",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},boxColor:{type:"string",
5868 +hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:f,attributeName:"linkColorH",setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"infoBoxPadding",attributeValue:p,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"infoBoxBorder",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box Shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box Shadow","ablocks"),attributeName:"infoBoxoxShadow",attributeValue:d,setAttributes:i})]})})})})})})}YQ.propTypes={};const XQ={UU:"ablocks/storeengine-cart-notice",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},boxColor:{type:"string",
5857 5869 default:"#515a62"},boxColorH:{type:"string",default:"#515a62"},linkColor:{type:"string",default:"#101828"},linkColorH:{type:"string",default:"#101828"},boxBackground:{type:"string",default:"#e1f2ff"},boxBackgroundH:{type:"string",default:"#e1f2ff"},isCustom:{type:"boolean",default:!0},infoBoxPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},infoTypographyGlobal:{type:"string",default:""},infoTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",
5858 5870 lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},linkTypographyGlobal:{type:"string",default:""},linkTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},infoBoxoxShadow:{type:"object",default:{preset:"",
5859 5871 shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},infoBoxBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",
5860 5872 rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},infoboxAlignment:{
@@ -5865,15 +5877,15 @@
5865 5877 imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",
5866 5878 videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",
5867 5879 yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",
5868 5880 customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,
5869 -delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function pQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:uQ.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-cart-notice",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}pQ.propTypes={};const mQ=(t,e="")=>{const i=(0,M.Zy)(t?.infoBoxPadding,{unit:"px"}),o=(0,
5870 -M.Zy)(t.infoBoxBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.boxColor),background:(0,Hs.qD)(t?.boxBackground),...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e),...(0,H.qD)(t?.infoBoxoxShadow,e),...(0,Eb.qD)({attributeValue:t?.infoBoxWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})}},hQ=(t,e="")=>{const i=(0,M.Zy)(t.infoTypography,{"font-weight":"400"}),o=t.infoTypographyGlobal?t.infoTypographyGlobal:"";return{...(0,U.qD)(i,e,o)}},gQ=(t,e="")=>{const i=(0,M.Zy)(t?.linkTypography,{"font-weight":"400"}),o=t.linkTypographyGlobal?t.linkTypographyGlobal:"";return{color:(0,Hs.qD)(t?.linkColor),...(0,U.qD)(i,e,o)}},fQ=(t,e="")=>{const{infoboxAlignment:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o.width="100%",o["justify-content"]=i["value"+e]),{...o}};(0,M.xV)(uQ.UU,"","storeengine")&&(0,o.registerBlockType)(uQ.UU,{title:(0,L.__)("Cart Notice","ablocks"),attributes:uQ.uK,
5871 -icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-notice--info",mQ(i),mQ(i,"Tablet"),mQ(i,"Mobile"),t.customDeviceMap(t=>mQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-notice .storeengine-notice--message p,\n\t\t\t{{WRAPPER}} .storeengine-notice .storeengine-notice--message i",hQ(i),hQ(i,"Tablet"),hQ(i,"Mobile"),t.customDeviceMap(t=>hQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-notice a,\n\t\t\t{{WRAPPER}} .storeengine-notice button",gQ(i),gQ(i,"Tablet"),gQ(i,"Mobile"),t.customDeviceMap(t=>gQ(i,t))),
5872 -t.addClassStyles("{{WRAPPER}}.ablocks-block--storeengine-cart-notice:not(.ablocks-block-container),\n\t\t\t{{WRAPPER}}.ablocks-block--storeengine-cart-notice .ablocks-block-container",fQ(i),fQ(i,"Tablet"),fQ(i,"Mobile"),t.customDeviceMap(t=>fQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(dQ,{...t}),(0,I.jsx)(pQ,{...t})]})},save:()=>null});var yQ=i(69993);function TQ(t){const{attributes:e,setAttributes:i}=t,o=lt(),{imageWidth:a,imageHeight:n,alignment:s,imageOpacityH:b,imageOpacity:c,boxShadow:d,border:u,product_id:p,isCustom:m}=e,h=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),g=h?h.map(t=>({label:t.title?.rendered,value:t.id})):[];return g.unshift({label:(0,L.__)("Select a Product","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{initialOpen:!0,title:(0,
5881 +delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function BQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:XQ.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-cart-notice",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}BQ.propTypes={};const EQ=(t,e="")=>{const i=(0,M.Zy)(t?.infoBoxPadding,{unit:"px"}),o=(0,
5882 +M.Zy)(t.infoBoxBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.boxColor),background:(0,Hs.qD)(t?.boxBackground),...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e),...(0,H.qD)(t?.infoBoxoxShadow,e),...(0,Eb.qD)({attributeValue:t?.infoBoxWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})}},FQ=(t,e="")=>{const i=(0,M.Zy)(t.infoTypography,{"font-weight":"400"}),o=t.infoTypographyGlobal?t.infoTypographyGlobal:"";return{...(0,U.qD)(i,e,o)}},qQ=(t,e="")=>{const i=(0,M.Zy)(t?.linkTypography,{"font-weight":"400"}),o=t.linkTypographyGlobal?t.linkTypographyGlobal:"";return{color:(0,Hs.qD)(t?.linkColor),...(0,U.qD)(i,e,o)}},$Q=(t,e="")=>{const{infoboxAlignment:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o.width="100%",o["justify-content"]=i["value"+e]),{...o}};(0,M.xV)(XQ.UU,"","storeengine")&&(0,o.registerBlockType)(XQ.UU,{title:(0,L.__)("Cart Notice","ablocks"),attributes:XQ.uK,
5883 +icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-notice--info",EQ(i),EQ(i,"Tablet"),EQ(i,"Mobile"),t.customDeviceMap(t=>EQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-notice .storeengine-notice--message p,\n\t\t\t{{WRAPPER}} .storeengine-notice .storeengine-notice--message i",FQ(i),FQ(i,"Tablet"),FQ(i,"Mobile"),t.customDeviceMap(t=>FQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-notice a,\n\t\t\t{{WRAPPER}} .storeengine-notice button",qQ(i),qQ(i,"Tablet"),qQ(i,"Mobile"),t.customDeviceMap(t=>qQ(i,t))),
5884 +t.addClassStyles("{{WRAPPER}}.ablocks-block--storeengine-cart-notice:not(.ablocks-block-container),\n\t\t\t{{WRAPPER}}.ablocks-block--storeengine-cart-notice .ablocks-block-container",$Q(i),$Q(i,"Tablet"),$Q(i,"Mobile"),t.customDeviceMap(t=>$Q(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(YQ,{...t}),(0,I.jsx)(BQ,{...t})]})},save:()=>null});var GQ=i(69993);function ZQ(t){const{attributes:e,setAttributes:i}=t,o=lt(),{imageWidth:a,imageHeight:n,alignment:s,imageOpacityH:b,imageOpacity:c,boxShadow:d,border:u,product_id:p,isCustom:m}=e,h=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),g=h?h.map(t=>({label:t.title?.rendered,value:t.id})):[];return g.unshift({label:(0,L.__)("Select a Product","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{initialOpen:!0,title:(0,
5873 5885 L.__)("General","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Use Custom Product","ablocks"),attributeValue:m,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0,I.jsx)("i",{children:(0,L.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{options:g,label:(0,L.__)("Select Product","ablocks"),attributeValue:p,attributeName:"product_id",setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Image Dimensions","ablocks"),isHeader:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"imageWidth",attributeObjectKey:"value",attributeValue:a,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,
5874 -max:["vw","%"].includes(a["valueUnit"+o]??"%")?100:1600,attributeDefaultValue:yQ.C$,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"imageHeight",attributeObjectKey:"value",attributeValue:n,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vh",label:"vh"}],min:0,max:["vh","%"].includes(n["valueUnit"+o]??"%")?100:1600,attributeDefaultValue:yQ.FN,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacity",attributeValue:c,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,
5875 -L.__)("Opacity Hover","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacityH",attributeValue:b,setAttributes:i})})}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:d,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:u,setAttributes:i})]})})})})})})}TQ.propTypes={};const HQ={UU:"ablocks/storeengine-product-gallery",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},isCustom:{type:"boolean",default:!1},imageOpacityH:{type:"number",default:1},imageOpacity:{type:"number",default:1},imageWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},imageHeight:{type:"object",default:{value:100,valueTablet:"",
5886 +max:["vw","%"].includes(a["valueUnit"+o]??"%")?100:1600,attributeDefaultValue:GQ.C$,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"imageHeight",attributeObjectKey:"value",attributeValue:n,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vh",label:"vh"}],min:0,max:["vh","%"].includes(n["valueUnit"+o]??"%")?100:1600,attributeDefaultValue:GQ.FN,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacity",attributeValue:c,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,
5887 +L.__)("Opacity Hover","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacityH",attributeValue:b,setAttributes:i})})}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:d,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:u,setAttributes:i})]})})})})})})}ZQ.propTypes={};const KQ={UU:"ablocks/storeengine-product-gallery",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},isCustom:{type:"boolean",default:!1},imageOpacityH:{type:"number",default:1},imageOpacity:{type:"number",default:1},imageWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},imageHeight:{type:"object",default:{value:100,valueTablet:"",
5876 5888 valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",
5877 5889 commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",
5878 5890 topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",
5879 5891 customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,
@@ -5882,19 +5894,19 @@
5882 5894 imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",
5883 5895 playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",
5884 5896 rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",
5885 5897 maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",
5886 -ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function MQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:HQ.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-product-gallery",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}MQ.propTypes={};const xQ=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(i,e),...(0,
5887 -H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"height",device:e})}},kQ=(t,e="")=>{const{alignment:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o.width="100%",o["justify-content"]=i["value"+e]),o};(0,M.xV)(HQ.UU,"","storeengine")&&(0,o.registerBlockType)(HQ.UU,{title:(0,L.__)("Product Gallery","ablocks"),attributes:HQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5888 -;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-gallery_wrapper .storeengine-col-12 .storeengine-placeholder,\n\t\t\t{{WRAPPER}} .is-layout-constrained .storeengine-gallery_wrapper .carousel-main .flickity-slider img,\n\t\t\t{{WRAPPER}} .is-layout-constrained .storeengine-gallery_wrapper .storeengine-col-12 img",xQ(i),xQ(i,"Tablet"),xQ(i,"Mobile"),t.customDeviceMap(t=>xQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-gallery_wrapper .storeengine-row .storeengine-col-12 ",kQ(i),kQ(i,"Tablet"),kQ(i,"Mobile"),t.customDeviceMap(t=>kQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(TQ,{...t}),(0,I.jsx)(MQ,{...t})]})},save:()=>null});var vQ=i(90723);function _Q(t){
5898 +ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function JQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:KQ.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-product-gallery",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}JQ.propTypes={};const QQ=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(i,e),...(0,
5899 +H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"height",device:e})}},t1=(t,e="")=>{const{alignment:i}=t,o={};return""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o.width="100%",o["justify-content"]=i["value"+e]),o};(0,M.xV)(KQ.UU,"","storeengine")&&(0,o.registerBlockType)(KQ.UU,{title:(0,L.__)("Product Gallery","ablocks"),attributes:KQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5900 +;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-gallery_wrapper .storeengine-col-12 .storeengine-placeholder,\n\t\t\t{{WRAPPER}} .is-layout-constrained .storeengine-gallery_wrapper .carousel-main .flickity-slider img,\n\t\t\t{{WRAPPER}} .is-layout-constrained .storeengine-gallery_wrapper .storeengine-col-12 img",QQ(i),QQ(i,"Tablet"),QQ(i,"Mobile"),t.customDeviceMap(t=>QQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-gallery_wrapper .storeengine-row .storeengine-col-12 ",t1(i),t1(i,"Tablet"),t1(i,"Mobile"),t.customDeviceMap(t=>t1(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(ZQ,{...t}),(0,I.jsx)(JQ,{...t})]})},save:()=>null});var e1=i(90723);function i1(t){
5889 5901 const{attributes:e,setAttributes:i}=t,{product_id:o,titleTypography:a,titleColor:n,titleColorH:s,ProductPriceTypography:b,productPriceColorH:c,productPriceColor:d,inputWidth:u,inputTextColor:p,inputTextColorH:m,inputTextTypography:h,inputPadding:g,inputBorder:f,buttonBorder:y,buttonWidth:T,buttonPadding:H,btnTypography:M,buttonBackground:x,buttonBackgroundH:k,buttonColor:v,buttonColorH:_,AddButtonBorder:R,AddButtonWidth:S,AddButtonPadding:W,AddBtnTypography:P,AddButtonBackground:U,AddButtonBackgroundH:j,AddButtonColor:w,AddButtonColorH:z,isCustom:C}=e,A=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),N=A?A.map(t=>({label:t.title?.rendered,value:t.id})):[];N.unshift({label:(0,L.__)("Select a Product","ablocks"),value:0});const O=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("General","ablocks"),
5890 5902 children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Use Custom Product","ablocks"),attributeValue:C,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0,I.jsx)("i",{children:(0,L.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{options:N,label:(0,L.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Product Price","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:d,attributeName:"productPriceColor",setAttributes:i}),
5891 5903 hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeValue:c,attributeName:"productPriceColorH",setAttributes:i})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ProductPriceTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:n,attributeName:"titleColor",setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeValue:s,attributeName:"titleColorH",setAttributes:i})})]})})}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("Input Box","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{
5892 -value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(u["valueUnit"+O]??"%")?100:1600,attributeDefaultValue:vQ.DK,autoSyncRange:!0})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Typography","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"inputTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:p,attributeName:"inputTextColor",setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeValue:m,attributeName:"inputTextColorH",setAttributes:i})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"inputPadding",attributeValue:g,setAttributes:i}),(0,
5893 -I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"inputBorder",attributeValue:f,setAttributes:i})]})})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Style","ablocks"),children:[(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:T,hasUnit:!0,setAttributes:i,attributeDefaultValue:vQ.UM,autoSyncRange:!0})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"btnTypography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeValue:v,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
5904 +value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(u["valueUnit"+O]??"%")?100:1600,attributeDefaultValue:e1.DK,autoSyncRange:!0})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Typography","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"inputTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:p,attributeName:"inputTextColor",setAttributes:i}),hover:(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeValue:m,attributeName:"inputTextColorH",setAttributes:i})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"inputPadding",attributeValue:g,setAttributes:i}),(0,
5905 +I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"inputBorder",attributeValue:f,setAttributes:i})]})})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Style","ablocks"),children:[(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:T,hasUnit:!0,setAttributes:i,attributeDefaultValue:e1.UM,autoSyncRange:!0})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"btnTypography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeValue:v,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
5894 5906 L.__)("Background","ablocks"),attributeValue:x,attributeName:"buttonBackground",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover","ablocks"),attributeValue:_,attributeName:"buttonColorH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:k,attributeName:"buttonBackgroundH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"buttonPadding",attributeValue:H,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:y,setAttributes:i})]})}),(0,I.jsx)(at,{label:(0,L.__)("Add to cart Button","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,
5895 -isInline:!1,isResponsive:!0,attributeName:"AddButtonWidth",attributeValue:S,hasUnit:!0,setAttributes:i,attributeDefaultValue:vQ.D3,autoSyncRange:!0})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"AddBtnTypography",attributeValue:P,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeValue:w,attributeName:"AddButtonColor",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:U,attributeName:"AddButtonBackground",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover","ablocks"),attributeValue:z,attributeName:"AddButtonColorH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:j,
5896 -attributeName:"AddButtonBackgroundH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"AddButtonPadding",attributeValue:W,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"AddButtonBorder",attributeValue:R,setAttributes:i})]})})]})]})})})}_Q.propTypes={};const RQ={UU:"ablocks/storeengine-product-summary",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},isCustom:{type:"boolean",default:!1},titleColor:{type:"string",default:"#111"},titleColorH:{type:"string",default:"#111"},productPriceColor:{type:"string",default:"#111"},productPriceColorH:{type:"string",default:"#111"},inputTextColor:{type:"string",default:"#111"},inputTextColorH:{type:"string",default:"#111"},buttonBackground:{
5907 +isInline:!1,isResponsive:!0,attributeName:"AddButtonWidth",attributeValue:S,hasUnit:!0,setAttributes:i,attributeDefaultValue:e1.D3,autoSyncRange:!0})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"AddBtnTypography",attributeValue:P,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeValue:w,attributeName:"AddButtonColor",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:U,attributeName:"AddButtonBackground",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover","ablocks"),attributeValue:z,attributeName:"AddButtonColorH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:j,
5908 +attributeName:"AddButtonBackgroundH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"AddButtonPadding",attributeValue:W,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"AddButtonBorder",attributeValue:R,setAttributes:i})]})})]})]})})})}i1.propTypes={};const o1={UU:"ablocks/storeengine-product-summary",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},isCustom:{type:"boolean",default:!1},titleColor:{type:"string",default:"#111"},titleColorH:{type:"string",default:"#111"},productPriceColor:{type:"string",default:"#111"},productPriceColorH:{type:"string",default:"#111"},inputTextColor:{type:"string",default:"#111"},inputTextColorH:{type:"string",default:"#111"},buttonBackground:{
5897 5909 type:"string",default:"#008DFF"},buttonBackgroundH:{type:"string",default:"#008DFF"},buttonColor:{type:"string",default:"#fff"},buttonColorH:{type:"string",default:"#fff"},AddButtonColor:{type:"string",default:"#111"},AddButtonColorH:{type:"string",default:"#111"},AddButtonBackground:{type:"string",default:"#fff"},AddButtonBackgroundH:{type:"string",default:"#fff"},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",
5898 5910 wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},ProductPriceTypographyGlobal:{type:"string",default:""},ProductPriceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},inputTextTypographyGlobal:{type:"string",default:""},inputTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",
5899 5911 wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},btnTypographyGlobal:{type:"string",default:""},btnTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",
5900 5912 wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},AddBtnTypographyGlobal:{type:"string",default:""},AddBtnTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},inputPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
@@ -5911,15 +5923,15 @@
5911 5923 imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",
5912 5924 imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",
5913 5925 scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,
5914 5926 xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",
5915 -blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function SQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:RQ.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{
5916 -block:"ablocks/storeengine-product-summary",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}SQ.propTypes={};const WQ=(t,e="")=>{const i={};i.color=t?.buttonColor??"#fff",i.background=t?.buttonBackground??"#008DFF";const o=(0,M.Zy)(t.btnTypography,{"font-weight":"400"}),a=t?.btnTypographyGlobal?t?.btnTypographyGlobal:"",l=(0,M.Zy)(t?.buttonPadding,{unit:"px"}),n=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"});return{...{...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})},...i,...(0,U.qD)(o,e,a),...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t?.boxShadow,e)}},PQ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{"font-weight":"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.titleColor)}},UQ=(t,e="")=>{const i=(0,M.Zy)(t?.ProductPriceTypography,{
5917 -"font-weight":"400"}),o=t?.ProductPriceTypographyGlobal?t?.ProductPriceTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.productPriceColor)}},jQ=(t,e="")=>{const i=(0,M.Zy)(t?.inputTextTypography,{"font-weight":"400"}),o=t?.inputTextTypographyGlobal?t?.inputTextTypographyGlobal:"",a=(0,M.Zy)(t?.inputPadding,{unit:"px"}),l=(0,M.Zy)(t.inputBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,c.qD)(a,"padding",e),...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.inputTextColor),...(0,y.qD)(l,e),...(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}};function wQ(t){const{attributes:e,setAttributes:i}=t,{product_id:o,titleTypography:a,titleColor:n,titleColorH:s,border:b,descriptionColor:c,descriptionColorH:d,descriptionTypography:u,isCustom:p}=e,m=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),h=m?m.map(t=>({
5927 +blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function a1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:o1.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{
5928 +block:"ablocks/storeengine-product-summary",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}a1.propTypes={};const l1=(t,e="")=>{const i={};i.color=t?.buttonColor??"#fff",i.background=t?.buttonBackground??"#008DFF";const o=(0,M.Zy)(t.btnTypography,{"font-weight":"400"}),a=t?.btnTypographyGlobal?t?.btnTypographyGlobal:"",l=(0,M.Zy)(t?.buttonPadding,{unit:"px"}),n=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"});return{...{...(0,Eb.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})},...i,...(0,U.qD)(o,e,a),...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t?.boxShadow,e)}},n1=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{"font-weight":"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.titleColor)}},s1=(t,e="")=>{const i=(0,M.Zy)(t?.ProductPriceTypography,{
5929 +"font-weight":"400"}),o=t?.ProductPriceTypographyGlobal?t?.ProductPriceTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.productPriceColor)}},r1=(t,e="")=>{const i=(0,M.Zy)(t?.inputTextTypography,{"font-weight":"400"}),o=t?.inputTextTypographyGlobal?t?.inputTextTypographyGlobal:"",a=(0,M.Zy)(t?.inputPadding,{unit:"px"}),l=(0,M.Zy)(t.inputBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,c.qD)(a,"padding",e),...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.inputTextColor),...(0,y.qD)(l,e),...(0,Eb.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}};function b1(t){const{attributes:e,setAttributes:i}=t,{product_id:o,titleTypography:a,titleColor:n,titleColorH:s,border:b,descriptionColor:c,descriptionColorH:d,descriptionTypography:u,isCustom:p}=e,m=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),h=m?m.map(t=>({
5918 5930 label:t.title?.rendered,value:t.id})):[];return h.unshift({label:(0,L.__)("Select a Product","ablocks"),value:0}),lt(),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("General","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Use Custom Product","ablocks"),attributeValue:p,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0,I.jsx)("i",{children:(0,L.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{options:h,label:(0,L.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Title Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{
5919 5931 label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:n,attributeName:"titleColor",setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover","ablocks"),attributeValue:s,attributeName:"titleColorH",setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Description Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,
5920 -L.__)("Color","ablocks"),attributeValue:c,attributeName:"descriptionColor",setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover","ablocks"),attributeValue:d,attributeName:"descriptionColorH",setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:b,setAttributes:i})]})})})})})})}(0,M.xV)(RQ.UU,"","storeengine")&&(0,o.registerBlockType)(RQ.UU,{title:(0,L.__)("Product Summary","ablocks"),attributes:RQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5921 -;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-single__title",PQ(i),PQ(i,"Tablet"),PQ(i,"Mobile"),t.customDeviceMap(t=>PQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-simple-price .storeengine-price",UQ(i),UQ(i,"Tablet"),UQ(i,"Mobile"),t.customDeviceMap(t=>UQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-quantity input[type=number]",jQ(i),jQ(i,"Tablet"),jQ(i,"Mobile"),t.customDeviceMap(t=>jQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-btn--direct-checkout",WQ(i),WQ(i,"Tablet"),WQ(i,"Mobile"),t.customDeviceMap(t=>WQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(_Q,{...t}),(0,I.jsx)(SQ,{...t})]})},save:()=>null}),wQ.propTypes={};const zQ={UU:"ablocks/storeengine-product-description",uK:{block_id:{type:"string",
5932 +L.__)("Color","ablocks"),attributeValue:c,attributeName:"descriptionColor",setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Text Hover","ablocks"),attributeValue:d,attributeName:"descriptionColorH",setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:b,setAttributes:i})]})})})})})})}(0,M.xV)(o1.UU,"","storeengine")&&(0,o.registerBlockType)(o1.UU,{title:(0,L.__)("Product Summary","ablocks"),attributes:o1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
5933 +;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-single__title",n1(i),n1(i,"Tablet"),n1(i,"Mobile"),t.customDeviceMap(t=>n1(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-simple-price .storeengine-price",s1(i),s1(i,"Tablet"),s1(i,"Mobile"),t.customDeviceMap(t=>s1(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-quantity input[type=number]",r1(i),r1(i,"Tablet"),r1(i,"Mobile"),t.customDeviceMap(t=>r1(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-btn--direct-checkout",l1(i),l1(i,"Tablet"),l1(i,"Mobile"),t.customDeviceMap(t=>l1(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(i1,{...t}),(0,I.jsx)(a1,{...t})]})},save:()=>null}),b1.propTypes={};const c1={UU:"ablocks/storeengine-product-description",uK:{block_id:{type:"string",
5922 5934 default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},titleColor:{type:"string",default:"#111"},titleColorH:{type:"string",default:"#111"},descriptionColor:{type:"string",default:"#111"},descriptionColorH:{type:"string",default:"#111"},isCustom:{type:"boolean",default:!1},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},
5923 5935 descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",
5924 5936 bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,
5925 5937 isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",
@@ -5929,20 +5941,20 @@
5929 5941 imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",
5930 5942 imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",
5931 5943 scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,
5932 5944 xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",
5933 -blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function CQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:zQ.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{
5934 -block:"ablocks/storeengine-product-description",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}CQ.propTypes={};const AQ=(t,e="")=>{const i=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"",o=(0,M.Zy)(t?.titleTypography,{"font-weight":"400"}),a=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{...(0,U.qD)(o,e,i),color:(0,Hs.qD)(t?.titleColor),...(0,y.qD)(a,e)}},LQ=(t,e="")=>{const i=t?.descriptionTypographyGlobal?t?.descriptionTypographyGlobal:"",o=(0,M.Zy)(t?.descriptionTypography,{"font-weight":"400"});return{...(0,U.qD)(o,e,i),color:(0,Hs.qD)(t?.descriptionColor)}};(0,M.xV)(zQ.UU,"","storeengine")&&(0,o.registerBlockType)(zQ.UU,{title:(0,L.__)("Product Description","ablocks"),attributes:zQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{
5935 -n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-product-single__content-item h2",AQ(i),AQ(i,"Tablet"),AQ(i,"Mobile"),t.customDeviceMap(t=>AQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-product-single__content-item p",LQ(i),LQ(i,"Tablet"),LQ(i,"Mobile"),t.customDeviceMap(t=>LQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(wQ,{...t}),(0,I.jsx)(CQ,{...t})]})},save:()=>null});var DQ=i(62511);function NQ(t){
5945 +blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function d1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:c1.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{
5946 +block:"ablocks/storeengine-product-description",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}d1.propTypes={};const u1=(t,e="")=>{const i=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"",o=(0,M.Zy)(t?.titleTypography,{"font-weight":"400"}),a=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{...(0,U.qD)(o,e,i),color:(0,Hs.qD)(t?.titleColor),...(0,y.qD)(a,e)}},p1=(t,e="")=>{const i=t?.descriptionTypographyGlobal?t?.descriptionTypographyGlobal:"",o=(0,M.Zy)(t?.descriptionTypography,{"font-weight":"400"});return{...(0,U.qD)(o,e,i),color:(0,Hs.qD)(t?.descriptionColor)}};(0,M.xV)(c1.UU,"","storeengine")&&(0,o.registerBlockType)(c1.UU,{title:(0,L.__)("Product Description","ablocks"),attributes:c1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{
5947 +n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-product-single__content-item h2",u1(i),u1(i,"Tablet"),u1(i,"Mobile"),t.customDeviceMap(t=>u1(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-product-single__content-item p",p1(i),p1(i,"Tablet"),p1(i,"Mobile"),t.customDeviceMap(t=>p1(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(b1,{...t}),(0,I.jsx)(d1,{...t})]})},save:()=>null});var m1=i(62511);function h1(t){
5936 5948 const{attributes:e,setAttributes:i}=t,{product_id:o,heading_color:a,heading_hover_color:n,padding:s,boxShadow:b,border:c,section_bg:d,section_bg_hover:u,avg_typography:p,avg_color:m,avg_color_hover:h,rating_color:g,rating_color_hover:f,rating_size:y,section_height:T,section_width:H,total_typography:M,total_rating_color:x,total_rating_hover:k,listColorH:v,listColor:_,listTypography:R,startSize:S,starColorH:W,starColor:P,fillBg:U,fillBgH:j,fillABg:w,fillABgH:z,isCustom:C}=e,A=lt(),N=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),O=N?N.map(t=>({label:t.title?.rendered,value:t.id})):[];return O.unshift({label:(0,L.__)("Select a Product","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Heading Style Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{
5937 5949 label:(0,L.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Use Custom Product","ablocks"),attributeValue:C,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0,I.jsx)("i",{children:(0,L.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{options:O,label:(0,L.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"heading_color",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"heading_hover_color",attributeValue:n,setAttributes:i})})})})})}),(0,I.jsxs)(V,{title:(0,L.__)("Rating Section","ablocks"),initialOpen:!1,children:[(0,I.jsx)(at,{label:(0,
5938 5950 L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,attributeName:"section_bg",attributeValue:d,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"section_bg_hover",attributeValue:u,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:s,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Boz Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:b,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",
5939 -attributeValue:c,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Average Rating","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Rating Icon Size","ablocks"),min:0,step:1,max:200,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:y,attributeName:"rating_size",setAttributes:i,attributeDefaultValue:DQ.Dz}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"section_width",attributeObjectKey:"value",attributeValue:H,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(H["valueUnit"+A]??"%")?100:1600,attributeDefaultValue:DQ.sj,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"section_height",attributeObjectKey:"value",attributeValue:T,setAttributes:i,isInline:!1,hasUnit:!0,
5940 -attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:["vw","vh"].includes(T["valueUnit"+A]??"vh")?100:1600,attributeDefaultValue:DQ.r6,autoSyncRange:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Rating Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"rating_color",attributeValue:g,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"rating_color_hover",attributeValue:f,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Typography","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"avg_typography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,
5951 +attributeValue:c,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Average Rating","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Rating Icon Size","ablocks"),min:0,step:1,max:200,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:y,attributeName:"rating_size",setAttributes:i,attributeDefaultValue:m1.Dz}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"section_width",attributeObjectKey:"value",attributeValue:H,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(H["valueUnit"+A]??"%")?100:1600,attributeDefaultValue:m1.sj,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"section_height",attributeObjectKey:"value",attributeValue:T,setAttributes:i,isInline:!1,hasUnit:!0,
5952 +attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:["vw","vh"].includes(T["valueUnit"+A]??"vh")?100:1600,attributeDefaultValue:m1.r6,autoSyncRange:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Rating Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"rating_color",attributeValue:g,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"rating_color_hover",attributeValue:f,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Typography","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"avg_typography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,
5941 5953 I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"avg_color",attributeValue:m,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"avg_color_hover",attributeValue:h,setAttributes:i})})})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Rating Text","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"total_typography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"total_rating_color",attributeValue:x,setAttributes:i})}),hover:(0,
5942 5954 I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"total_rating_hover",attributeValue:k,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Rating Fill Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"fillBg",attributeValue:U,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"fillBgH",attributeValue:j,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Rating Active Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
5943 -isResponsive:!1,attributeName:"fillABg",attributeValue:w,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"fillABgH",attributeValue:z,setAttributes:i})})})]}),(0,I.jsx)(V,{title:(0,L.__)("Feedback Overview","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:500,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:S,attributeName:"startSize",setAttributes:i,attributeDefaultValue:DQ.Dz}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:_,
5944 -setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"listColorH",attributeValue:v,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"starColor",attributeValue:P,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"starColorH",attributeValue:W,setAttributes:i})})})]})})})]})})})}NQ.propTypes={};const IQ={UU:"ablocks/storeengine-product-review",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},heading_color:{type:"string",default:"#111"},heading_hover_color:{type:"string",default:"#111"},section_bg_hover:{type:"string",default:"#FFF"},section_bg:{
5955 +isResponsive:!1,attributeName:"fillABg",attributeValue:w,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"fillABgH",attributeValue:z,setAttributes:i})})})]}),(0,I.jsx)(V,{title:(0,L.__)("Feedback Overview","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:500,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:S,attributeName:"startSize",setAttributes:i,attributeDefaultValue:m1.Dz}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:_,
5956 +setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"listColorH",attributeValue:v,setAttributes:i})})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,attributeName:"starColor",attributeValue:P,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"starColorH",attributeValue:W,setAttributes:i})})})]})})})]})})})}h1.propTypes={};const g1={UU:"ablocks/storeengine-product-review",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},heading_color:{type:"string",default:"#111"},heading_hover_color:{type:"string",default:"#111"},section_bg_hover:{type:"string",default:"#FFF"},section_bg:{
5945 5957 type:"string",default:"#FFF"},avg_color:{type:"string",default:"#111"},avg_color_hover:{type:"string",default:"#111"},rating_color_hover:{type:"string",default:"#f4c150"},rating_color:{type:"string",default:"#f4c150"},total_rating_color:{type:"string",default:"#111"},total_rating_hover:{type:"string",default:"#111"},listColor:{type:"string",default:"#999"},listColorH:{type:"string",default:"#999"},starColorH:{type:"string",default:"#f4c150"},starColor:{type:"string",default:"#f4c150"},fillBg:{type:"string",default:"#e7e7e7"},fillBgH:{type:"string",default:"#e7e7e7"},fillABg:{type:"string",default:"#f4c150"},fillABgH:{type:"string",default:"#f4c150"},isCustom:{type:"boolean",default:!1},heading_typographyGlobal:{type:"string",default:""},heading_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",
5946 5958 fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",
5947 5959 wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},avg_typographyGlobal:{type:"string",default:""},avg_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},total_typographyGlobal:{type:"string",default:""},total_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",
5948 5960 wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",
@@ -5955,20 +5967,20 @@
5955 5967 imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",
5956 5968 externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",
5957 5969 xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{
5958 5970 mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{
5959 -type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function VQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:IQ.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/storeengine-product-review",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}VQ.propTypes={};const OQ=(t,e="")=>{const i=(0,
5960 -M.Zy)(t?.heading_typography,{weight:"400"}),o=t?.heading_typographyGlobal?t?.heading_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.heading_color)}},YQ=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.section_bg)||"#fff",...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.section_width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.section_height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"height",device:e})}},XQ=(t,e="")=>{const i=(0,M.Zy)(t?.avg_typography,{weight:"400"}),o=t?.avg_typographyGlobal?t?.avg_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.avg_color)}},BQ=(t,e="")=>({color:(0,Hs.qD)(t?.rating_color),...(0,Eb.qD)({
5961 -attributeValue:t?.rating_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),EQ=(t,e="")=>{const i=(0,M.Zy)(t?.total_typography,{weight:"400"}),o=t?.total_typographyGlobal?t?.total_typographyGlobal:"";return{color:(0,Hs.qD)(t?.total_rating_color),...(0,U.qD)(i,e,o)}},FQ=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography,{weight:"400"}),o=t?.listTypographyGlobal?t?.listTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.listColor)}},qQ=(t,e="")=>({color:(0,Hs.qD)(t?.starColor),...(0,Eb.qD)({attributeValue:t?.startSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:12,unitDefaultValue:"px",property:"font-size",device:e})}),$Q=(t,e="")=>({background:(0,Hs.qD)(t?.fillBg)||"#e7e7e7"});(0,M.xV)(IQ.UU,"","storeengine")&&(0,o.registerBlockType)(IQ.UU,{title:(0,L.__)("Product Review","ablocks"),attributes:IQ.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",
5962 -src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings",YQ(i),YQ(i,"Tablet"),YQ(i,"Mobile"),t.customDeviceMap(t=>YQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item h2",OQ(i),OQ(i,"Tablet"),OQ(i,"Mobile"),t.customDeviceMap(t=>OQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-rating",XQ(i),XQ(i,"Tablet"),XQ(i,"Mobile"),t.customDeviceMap(t=>XQ(i,t))),
5963 -t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-rating-html .storeengine-icon",BQ(i),BQ(i,"Tablet"),BQ(i,"Mobile"),t.customDeviceMap(t=>BQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-review",EQ(i),EQ(i,"Tablet"),EQ(i,"Mobile"),t.customDeviceMap(t=>EQ(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-fill",$Q(i),$Q(i,"Tablet"),$Q(i,"Mobile"),t.customDeviceMap(t=>$Q(i,t))),
5964 -t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-fill,\n\t\t\t{{WEAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-label span,\n\t\t\t{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-label,\n\t\t\t{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-col",FQ(i),FQ(i,"Tablet"),FQ(i,"Mobile"),t.customDeviceMap(t=>FQ(i,t))),
5965 -t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-icon",qQ(i),qQ(i,"Tablet"),qQ(i,"Mobile"),t.customDeviceMap(t=>qQ(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(NQ,{...t}),(0,I.jsx)(VQ,{...t})]})},save:()=>null});const GQ=t=>{const{attributes:e,setAttributes:i}=t,{alignment:o,text:a,pathType:n,isShowIcon:s,strokeColor:r,link:b,iconSvgPath:c,textColorH:d,typography:u,textColor:p,textStrokeShow:m,strokeTextColor:h,textShadow:g,iconSize:f,strokeWidth:y,offsetControl:T,rotate:H,textStroke:M,iconClass:x}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-text-path-block/",children:(0,I.jsx)(V,{title:(0,L.__)("Text Path","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,
5971 +type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function f1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:g1.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/storeengine-product-review",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}f1.propTypes={};const y1=(t,e="")=>{const i=(0,
5972 +M.Zy)(t?.heading_typography,{weight:"400"}),o=t?.heading_typographyGlobal?t?.heading_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.heading_color)}},T1=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.section_bg)||"#fff",...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.section_width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.section_height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"height",device:e})}},H1=(t,e="")=>{const i=(0,M.Zy)(t?.avg_typography,{weight:"400"}),o=t?.avg_typographyGlobal?t?.avg_typographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.avg_color)}},M1=(t,e="")=>({color:(0,Hs.qD)(t?.rating_color),...(0,Eb.qD)({
5973 +attributeValue:t?.rating_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),x1=(t,e="")=>{const i=(0,M.Zy)(t?.total_typography,{weight:"400"}),o=t?.total_typographyGlobal?t?.total_typographyGlobal:"";return{color:(0,Hs.qD)(t?.total_rating_color),...(0,U.qD)(i,e,o)}},k1=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography,{weight:"400"}),o=t?.listTypographyGlobal?t?.listTypographyGlobal:"";return{...(0,U.qD)(i,e,o),color:(0,Hs.qD)(t?.listColor)}},v1=(t,e="")=>({color:(0,Hs.qD)(t?.starColor),...(0,Eb.qD)({attributeValue:t?.startSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:12,unitDefaultValue:"px",property:"font-size",device:e})}),_1=(t,e="")=>({background:(0,Hs.qD)(t?.fillBg)||"#e7e7e7"});(0,M.xV)(g1.UU,"","storeengine")&&(0,o.registerBlockType)(g1.UU,{title:(0,L.__)("Product Review","ablocks"),attributes:g1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",
5974 +src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings",T1(i),T1(i,"Tablet"),T1(i,"Mobile"),t.customDeviceMap(t=>T1(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item h2",y1(i),y1(i,"Tablet"),y1(i,"Mobile"),t.customDeviceMap(t=>y1(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-rating",H1(i),H1(i,"Tablet"),H1(i,"Mobile"),t.customDeviceMap(t=>H1(i,t))),
5975 +t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-rating-html .storeengine-icon",M1(i),M1(i,"Tablet"),M1(i,"Mobile"),t.customDeviceMap(t=>M1(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-review",x1(i),x1(i,"Tablet"),x1(i,"Mobile"),t.customDeviceMap(t=>x1(i,t))),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-fill",_1(i),_1(i,"Tablet"),_1(i,"Mobile"),t.customDeviceMap(t=>_1(i,t))),
5976 +t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-fill,\n\t\t\t{{WEAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-label span,\n\t\t\t{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-label,\n\t\t\t{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-col",k1(i),k1(i,"Tablet"),k1(i,"Mobile"),t.customDeviceMap(t=>k1(i,t))),
5977 +t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-icon",v1(i),v1(i,"Tablet"),v1(i,"Mobile"),t.customDeviceMap(t=>v1(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(h1,{...t}),(0,I.jsx)(f1,{...t})]})},save:()=>null});const R1=t=>{const{attributes:e,setAttributes:i}=t,{alignment:o,text:a,pathType:n,isShowIcon:s,strokeColor:r,link:b,iconSvgPath:c,textColorH:d,typography:u,textColor:p,textStrokeShow:m,strokeTextColor:h,textShadow:g,iconSize:f,strokeWidth:y,offsetControl:T,rotate:H,textStroke:M,iconClass:x}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-text-path-block/",children:(0,I.jsx)(V,{title:(0,L.__)("Text Path","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,
5966 5978 I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"text",attributeValue:a,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Path Type","ablocks"),options:[{label:(0,L.__)("Wave","ablocks"),value:"wave"},{label:(0,L.__)("Arc","ablocks"),value:"arc"},{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Line","ablocks"),value:"line"},{label:(0,L.__)("Oval","ablocks"),value:"oval"},{label:(0,L.__)("Spiral","ablocks"),value:"spiral"},{label:(0,L.__)("Custom","ablocks"),value:"custom"}],isSearch:!0,attributeName:"pathType",attributeValue:n,setAttributes:i,onChange:t=>i({pathType:t})}),"custom"===n&&(0,I.jsx)(Yd,{label:(0,L.__)("Icon Upload","ablocks"),attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Path Size","ablocks"),min:0,max:1e3,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:f,setAttributes:i,
5967 5979 attributeObjectKey:"iconSize"}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:b,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:s,isResponsive:!1,attributeName:"isShowIcon",setAttributes:i}),s&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"strokeColor",attributeValue:r,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Thikness","ablocks"),min:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"strokeWidth",attributeValue:y,setAttributes:i,attributeObjectKey:"strokeWidth"})]}),(0,I.jsx)(_t,{label:(0,L.__)("Staring Points","ablocks"),min:0,max:500,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"offsetControl",attributeValue:T,setAttributes:i,attributeObjectKey:"offsetControl"}),(0,
5968 5980 I.jsx)(_t,{label:(0,L.__)("Rotate","ablocks"),min:0,max:360,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"rotate",attributeValue:H,setAttributes:i,attributeObjectKey:"rotate"}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:p||"#000000",setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:d,attributeName:"textColorH",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.transition||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:g,setAttributes:i,isResponsive:!1}),(0,
5969 -I.jsx)(Ot,{label:(0,L.__)("Text Stroke","ablocks"),attributeValue:m,isResponsive:!1,attributeName:"textStrokeShow",setAttributes:i}),m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Text Stroke","ablocks"),min:0,max:10,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"textStroke",attributeValue:M,setAttributes:i,attributeObjectKey:"textStroke"}),(0,I.jsx)(Ws,{label:(0,L.__)("Stroke Color","ablocks"),attributeName:"strokeTextColor",attributeValue:h,setAttributes:i})]})]})})})})})})},ZQ=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],KQ=t=>{switch(t){case"wave":return"M0,42.2494C62.5,42.2494,62.5,0.25,125,0.25s62.5,41.9994,125,41.9994 M-41.6693,49.25 M-208.3307,-6.75";case"arc":return"M.25,125.25a125,125,0,0,1,250,0";case"circle":
5970 -return"M.25,125.25a125,125,0,1,1,125,125,125,125,0,0,1-125-125";case"line":return"M 0 27 l 280 -22";case"oval":return"M.25,62.875C.25,28.2882,56.2144.25,125.25.25s125,28.0382,125,62.625-55.9644,62.625-125,62.625S.25,97.4619.25,62.875";case"spiral":return"M.1848,49.0219a149.3489,149.3489,0,0,1,210.9824-9.8266,119.479,119.479,0,0,1,7.8613,168.786A95.5831,95.5831,0,0,1,84,214.27a76.4666,76.4666,0,0,1-5.0312-108.023";default:return""}},JQ=t=>{switch(t){case"wave":case"line":return 45;case"arc":case"oval":return 150;case"circle":case"spiral":return 250;default:return 100}},QQ={UU:"ablocks/text-path",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Add Your Curvy Text Here"},pathType:{type:"string",default:"wave"},isShowIcon:{type:"boolean",default:!0},strokeColor:{type:"string",default:"blue"},textColor:{type:"string",default:"black",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},textStrokeShow:{type:"boolean",
5981 +I.jsx)(Ot,{label:(0,L.__)("Text Stroke","ablocks"),attributeValue:m,isResponsive:!1,attributeName:"textStrokeShow",setAttributes:i}),m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Text Stroke","ablocks"),min:0,max:10,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"textStroke",attributeValue:M,setAttributes:i,attributeObjectKey:"textStroke"}),(0,I.jsx)(Ws,{label:(0,L.__)("Stroke Color","ablocks"),attributeName:"strokeTextColor",attributeValue:h,setAttributes:i})]})]})})})})})})},S1=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],W1=t=>{switch(t){case"wave":return"M0,42.2494C62.5,42.2494,62.5,0.25,125,0.25s62.5,41.9994,125,41.9994 M-41.6693,49.25 M-208.3307,-6.75";case"arc":return"M.25,125.25a125,125,0,0,1,250,0";case"circle":
5982 +return"M.25,125.25a125,125,0,1,1,125,125,125,125,0,0,1-125-125";case"line":return"M 0 27 l 280 -22";case"oval":return"M.25,62.875C.25,28.2882,56.2144.25,125.25.25s125,28.0382,125,62.625-55.9644,62.625-125,62.625S.25,97.4619.25,62.875";case"spiral":return"M.1848,49.0219a149.3489,149.3489,0,0,1,210.9824-9.8266,119.479,119.479,0,0,1,7.8613,168.786A95.5831,95.5831,0,0,1,84,214.27a76.4666,76.4666,0,0,1-5.0312-108.023";default:return""}},P1=t=>{switch(t){case"wave":case"line":return 45;case"arc":case"oval":return 150;case"circle":case"spiral":return 250;default:return 100}},U1={UU:"ablocks/text-path",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Add Your Curvy Text Here"},pathType:{type:"string",default:"wave"},isShowIcon:{type:"boolean",default:!0},strokeColor:{type:"string",default:"blue"},textColor:{type:"string",default:"black",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},textStrokeShow:{type:"boolean",
5971 5983 default:!1},textStroke:{type:"number",default:0},strokeTextColor:{type:"string",default:"black",copyStyle:!0},offsetControl:{type:"number",default:0},transition:{type:"number",default:1,copyStyle:!0},strokeWidth:{type:"number",default:1},rotate:{type:"number",default:0,copyStyle:!0},iconSize:{type:"number",default:250},iconSvgPath:{type:"string",default:""},iconSvgViewBox:{type:"string",default:""},iconClass:{type:"string",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},typographyGlobal:{type:"string",default:""},typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",
5972 5984 letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",
5973 5985 unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",
5974 5986 topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},
@@ -5976,12 +5988,12 @@
5976 5988 imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",
5977 5989 imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",
5978 5990 skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",
5979 5991 xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",
5980 -color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},t1=t=>{
5981 -const{attributes:e,setAttributes:i}=t,{alignment:o,block_id:a,text:n,pathType:s,isShowIcon:r,link:b,textColor:c,offsetControl:d,strokeWidth:u,iconSvgPath:p,textStroke:m,textStrokeShow:h,strokeTextColor:g,iconSvgViewBox:f}=e,{linkTarget:y,noFollow:T,keyValue:H,href:M}=b||{};let x={};return y&&(x.target="_blank"),x.rel=T?y?"nofollow noreferrer noopener":"nofollow":"noopener",H&&(x={...x,...(0,wb.jM)(H)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i,options:ZQ})}),(0,I.jsx)(Yb.A,{blockId:a,name:QQ.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ablocks-path-text-path",height:JQ(s),viewBox:"custom"===s?`${f}`:`0 0 250 ${JQ(s)}`,children:[(0,I.jsx)("path",{id:`text-path-${a}`,d:"custom"===s?p:KQ(s),fill:"none",strokeWidth:u,className:"ablocks-text-path-svg",stroke:r?(0,
5982 -Hs.qD)(e?.strokeColor):"transparent"}),M?(0,I.jsx)("a",{...x,children:(0,I.jsx)("text",{strokeWidth:h?m:0,stroke:(0,Hs.qD)(e?.strokeTextColor)||(0,Hs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,I.jsx)("textPath",{href:`#text-path-${a}`,startOffset:d,className:"ablocks-text-path-text",fill:(0,Hs.qD)(e?.textColor)||(0,Hs.qD)(e?.textColorH),children:n})})}):(0,I.jsx)("text",{strokeWidth:h?m:0,stroke:(0,Hs.qD)(e?.strokeTextColor)||(0,Hs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,I.jsx)("textPath",{href:`#text-path-${a}`,startOffset:d,className:"ablocks-text-path-text",fill:(0,Hs.qD)(e?.textColor)||(0,Hs.qD)(e?.textColorH),children:n})})]})})]})},e1=(t,e="")=>{const{alignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},i1=(t,e="")=>{const i=(0,M.Zy)(t.typography,{"font-weight":"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a=(0,M.Zy)(t.textStroke,{strokeWidthUnit:"px"});return{...(0,U.qD)(i,e,o),
5983 -...(0,Mc.qD)(a,e),...(0,fc.qD)(t?.textShadow)}},o1=t=>({transform:`rotate(${t?.rotate}deg)`,"--width":`${t?.iconSize}px`}),a1=(t,e="")=>({...{fill:(0,Hs.qD)(t?.textColorH),...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})}}),l1={UU:"ablocks/text-path",uK:{block_id:{type:"string",default:""},text:{type:"string",default:"Add Your Curvy Text Here"},pathType:{type:"string",default:"wave"},isShowIcon:{type:"boolean",default:!0},strokeColor:{type:"string",default:"blue"},textColor:{type:"string",default:"black",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},textStrokeShow:{type:"boolean",default:!1},textStroke:{type:"number",default:0},strokeTextColor:{type:"string",default:"black",copyStyle:!0},offsetControl:{type:"number",default:0},transition:{type:"number",default:1,copyStyle:!0},strokeWidth:{type:"number",default:1},rotate:{type:"number",default:0,copyStyle:!0},iconSize:{
5992 +color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},j1=t=>{
5993 +const{attributes:e,setAttributes:i}=t,{alignment:o,block_id:a,text:n,pathType:s,isShowIcon:r,link:b,textColor:c,offsetControl:d,strokeWidth:u,iconSvgPath:p,textStroke:m,textStrokeShow:h,strokeTextColor:g,iconSvgViewBox:f}=e,{linkTarget:y,noFollow:T,keyValue:H,href:M}=b||{};let x={};return y&&(x.target="_blank"),x.rel=T?y?"nofollow noreferrer noopener":"nofollow":"noopener",H&&(x={...x,...(0,wb.jM)(H)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i,options:S1})}),(0,I.jsx)(Yb.A,{blockId:a,name:U1.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ablocks-path-text-path",height:P1(s),viewBox:"custom"===s?`${f}`:`0 0 250 ${P1(s)}`,children:[(0,I.jsx)("path",{id:`text-path-${a}`,d:"custom"===s?p:W1(s),fill:"none",strokeWidth:u,className:"ablocks-text-path-svg",stroke:r?(0,
5994 +Hs.qD)(e?.strokeColor):"transparent"}),M?(0,I.jsx)("a",{...x,children:(0,I.jsx)("text",{strokeWidth:h?m:0,stroke:(0,Hs.qD)(e?.strokeTextColor)||(0,Hs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,I.jsx)("textPath",{href:`#text-path-${a}`,startOffset:d,className:"ablocks-text-path-text",fill:(0,Hs.qD)(e?.textColor)||(0,Hs.qD)(e?.textColorH),children:n})})}):(0,I.jsx)("text",{strokeWidth:h?m:0,stroke:(0,Hs.qD)(e?.strokeTextColor)||(0,Hs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,I.jsx)("textPath",{href:`#text-path-${a}`,startOffset:d,className:"ablocks-text-path-text",fill:(0,Hs.qD)(e?.textColor)||(0,Hs.qD)(e?.textColorH),children:n})})]})})]})},w1=(t,e="")=>{const{alignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},z1=(t,e="")=>{const i=(0,M.Zy)(t.typography,{"font-weight":"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a=(0,M.Zy)(t.textStroke,{strokeWidthUnit:"px"});return{...(0,U.qD)(i,e,o),
5995 +...(0,Mc.qD)(a,e),...(0,fc.qD)(t?.textShadow)}},C1=t=>({transform:`rotate(${t?.rotate}deg)`,"--width":`${t?.iconSize}px`}),A1=(t,e="")=>({...{fill:(0,Hs.qD)(t?.textColorH),...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})}}),L1={UU:"ablocks/text-path",uK:{block_id:{type:"string",default:""},text:{type:"string",default:"Add Your Curvy Text Here"},pathType:{type:"string",default:"wave"},isShowIcon:{type:"boolean",default:!0},strokeColor:{type:"string",default:"blue"},textColor:{type:"string",default:"black",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},textStrokeShow:{type:"boolean",default:!1},textStroke:{type:"number",default:0},strokeTextColor:{type:"string",default:"black",copyStyle:!0},offsetControl:{type:"number",default:0},transition:{type:"number",default:1,copyStyle:!0},strokeWidth:{type:"number",default:1},rotate:{type:"number",default:0,copyStyle:!0},iconSize:{
5984 5996 type:"number",default:250},iconSvgPath:{type:"string",default:""},iconSvgViewBox:{type:"string",default:""},iconClass:{type:"string",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",
5985 5997 linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",
5986 5998 borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",
5987 5999 topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",
@@ -5988,17 +6000,17 @@
5988 6000 vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",
5989 6001 imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",
5990 6002 zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",
5991 6003 rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",
5992 -maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function n1(t){
6004 +maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function D1(t){
5993 6005 const{attributes:e,setAttributes:i}=t,{id:o,bookmark_text:a,bookmarked_text:n,buttonBorder:s,padding:r,buttonBackground:b,buttonBackgroundH:c,buttonColor:d,buttonColorH:u,buttonTypography:p,buttonAlignment:m,badgeSize:h}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:[(0,I.jsx)(Kl,{label:(0,L.__)("Bookmark Text","ablocks"),attributeName:"bookmark_text",attributeValue:a,setAttributes:i,disableDynamicContent:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("Bookmarked Text","ablocks"),attributeName:"bookmarked_text",attributeValue:n,setAttributes:i,disableDynamicContent:!1})]}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("Button Style","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:m,setAttributes:i,options:[{label:(0,
5994 6006 L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:s,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e
5995 6007 }),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:b,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:d,attributeName:"buttonColor",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:c,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:u,attributeName:"buttonColorH",setAttributes:i})]})})]})})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Badge Style","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Badge Size","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeName:"badgeSize",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Fill Color","ablocks"),attributeValue:e?.badgeFillColor,
5996 -attributeName:"badgeFillColor",setAttributes:i})]})]})})})}(0,o.registerBlockType)(QQ.UU,{title:(0,L.__)("Text Path","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--text-path"}),attributes:QQ.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,block_id:l,clientId:n}=t;(0,a.useEffect)(()=>{l&&l===n||o({block_id:n}),i?.blockVersion||o({blockVersion:2})},[l,n]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,n)):t=new A(i,n):t=2===i?.blockVersion?new A(i,n):new C(i,n),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}.ablocks-block--text-path .ablocks-block-container",e1(i),e1(i,"Tablet"),e1(i,"Mobile"),e(t=>e1(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-text-path-text",i1(i),i1(i,"Tablet"),i1(i,"Mobile"),e(t=>i1(i,t))),
5997 -t.addClassStyles("{{WRAPPER}} .ablocks-text-path-text:hover",a1(i),a1(i,"Tablet"),a1(i,"Mobile"),e(t=>a1(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-path-text-path",o1(i),o1(i),o1(i),e(t=>o1(i))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(GQ,{...t}),(0,I.jsx)(t1,{...t})]})},save:t=>{const{attributes:e}=t,{block_id:i,text:o,pathType:a,isShowIcon:n,link:s,offsetControl:r,strokeWidth:b,iconSvgPath:c,textStroke:d,textStrokeShow:u,iconSvgViewBox:p}=e,{linkTarget:m,noFollow:h,keyValue:g,href:f}=s||{};let y={};return f&&(y.href=f),m&&(y.target="_blank"),y.rel=h?m?"nofollow noreferrer noopener":"nofollow":"noopener",g&&(y={...y,...(0,wb.jM)(g)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:QQ.UU,attributes:e,children:(0,I.jsxs)("svg",{className:"ablocks-path-text-path",height:JQ(a),viewBox:"custom"===a?`${p}`:`0 0 250 ${JQ(a)}`,children:[(0,I.jsx)("path",{id:`text-path-${i}`,d:"custom"===a?c:KQ(a),fill:"none",
5998 -strokeWidth:b,className:"ablocks-text-path-svg",stroke:n?(0,Hs.qD)(e?.strokeColor):"transparent"}),f?(0,I.jsx)("a",{...y,children:(0,I.jsx)("text",{strokeWidth:u?d:0,stroke:(0,Hs.qD)(e?.strokeTextColor)||(0,Hs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,I.jsx)("textPath",{className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:r,fill:(0,Hs.qD)(e?.textColor)||(0,Hs.qD)(e?.textColorH),children:o})})}):(0,I.jsx)("text",{strokeWidth:u?d:0,stroke:(0,Hs.qD)(e?.strokeTextColor)||(0,Hs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,I.jsx)("textPath",{className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:r,fill:(0,Hs.qD)(e?.textColor)||(0,Hs.qD)(e?.textColorH),children:o})})]})})})},deprecated:[{attributes:l1.uK,save:t=>{
5999 -const{attributes:e}=t,{block_id:i,text:o,pathType:a,isShowIcon:n,strokeColor:s,link:r,textColor:b,offsetControl:c,strokeWidth:d,iconSvgPath:u,textColorH:p,textStroke:m,textStrokeShow:h,strokeTextColor:g,iconSvgViewBox:f}=e,{linkTarget:y,noFollow:T,keyValue:H,href:M}=r||{};let x={};return M&&(x.href=M),y&&(x.target="_blank"),x.rel=T?y?"nofollow noreferrer noopener":"nofollow":"noopener",H&&(x={...x,...(0,wb.jM)(H)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:l1.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-text-path",children:(0,I.jsxs)("svg",{className:"ablocks-path-text-path",height:JQ(a),viewBox:"custom"===a?`${f}`:`0 0 250 ${JQ(a)}`,children:[(0,I.jsx)("path",{id:`text-path-${i}`,d:"custom"===a?u:KQ(a),fill:"none",strokeWidth:d,className:"ablocks-text-path-svg",stroke:n?s:"transparent"}),M?(0,I.jsx)("a",{...x,children:(0,I.jsx)("text",{strokeWidth:h?m:0,stroke:g||b,children:(0,I.jsx)("textPath",{className:"ablocks-text-path-text",
6000 -href:`#text-path-${i}`,startOffset:c,fill:b||p,children:o})})}):(0,I.jsx)("text",{strokeWidth:h?m:0,stroke:g||b,children:(0,I.jsx)("textPath",{className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:c,fill:b||p,children:o})})]})})})})}}]}),n1.propTypes={};const s1={UU:"ablocks/ecm-bookmark-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},id:{type:"number"},bookmark_text:{type:"string",default:""},bookmarked_text:{type:"string",default:""},buttonColor:{type:"string",default:"#ffffff"},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:"#ea580c"},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",
6008 +attributeName:"badgeFillColor",setAttributes:i})]})]})})})}(0,o.registerBlockType)(U1.UU,{title:(0,L.__)("Text Path","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--text-path"}),attributes:U1.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,block_id:l,clientId:n}=t;(0,a.useEffect)(()=>{l&&l===n||o({block_id:n}),i?.blockVersion||o({blockVersion:2})},[l,n]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,n)):t=new A(i,n):t=2===i?.blockVersion?new A(i,n):new C(i,n),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}.ablocks-block--text-path .ablocks-block-container",w1(i),w1(i,"Tablet"),w1(i,"Mobile"),e(t=>w1(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-text-path-text",z1(i),z1(i,"Tablet"),z1(i,"Mobile"),e(t=>z1(i,t))),
6009 +t.addClassStyles("{{WRAPPER}} .ablocks-text-path-text:hover",A1(i),A1(i,"Tablet"),A1(i,"Mobile"),e(t=>A1(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-path-text-path",C1(i),C1(i),C1(i),e(t=>C1(i))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(R1,{...t}),(0,I.jsx)(j1,{...t})]})},save:t=>{const{attributes:e}=t,{block_id:i,text:o,pathType:a,isShowIcon:n,link:s,offsetControl:r,strokeWidth:b,iconSvgPath:c,textStroke:d,textStrokeShow:u,iconSvgViewBox:p}=e,{linkTarget:m,noFollow:h,keyValue:g,href:f}=s||{};let y={};return f&&(y.href=f),m&&(y.target="_blank"),y.rel=h?m?"nofollow noreferrer noopener":"nofollow":"noopener",g&&(y={...y,...(0,wb.jM)(g)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:U1.UU,attributes:e,children:(0,I.jsxs)("svg",{className:"ablocks-path-text-path",height:P1(a),viewBox:"custom"===a?`${p}`:`0 0 250 ${P1(a)}`,children:[(0,I.jsx)("path",{id:`text-path-${i}`,d:"custom"===a?c:W1(a),fill:"none",
6010 +strokeWidth:b,className:"ablocks-text-path-svg",stroke:n?(0,Hs.qD)(e?.strokeColor):"transparent"}),f?(0,I.jsx)("a",{...y,children:(0,I.jsx)("text",{strokeWidth:u?d:0,stroke:(0,Hs.qD)(e?.strokeTextColor)||(0,Hs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,I.jsx)("textPath",{className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:r,fill:(0,Hs.qD)(e?.textColor)||(0,Hs.qD)(e?.textColorH),children:o})})}):(0,I.jsx)("text",{strokeWidth:u?d:0,stroke:(0,Hs.qD)(e?.strokeTextColor)||(0,Hs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,I.jsx)("textPath",{className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:r,fill:(0,Hs.qD)(e?.textColor)||(0,Hs.qD)(e?.textColorH),children:o})})]})})})},deprecated:[{attributes:L1.uK,save:t=>{
6011 +const{attributes:e}=t,{block_id:i,text:o,pathType:a,isShowIcon:n,strokeColor:s,link:r,textColor:b,offsetControl:c,strokeWidth:d,iconSvgPath:u,textColorH:p,textStroke:m,textStrokeShow:h,strokeTextColor:g,iconSvgViewBox:f}=e,{linkTarget:y,noFollow:T,keyValue:H,href:M}=r||{};let x={};return M&&(x.href=M),y&&(x.target="_blank"),x.rel=T?y?"nofollow noreferrer noopener":"nofollow":"noopener",H&&(x={...x,...(0,wb.jM)(H)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:L1.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-text-path",children:(0,I.jsxs)("svg",{className:"ablocks-path-text-path",height:P1(a),viewBox:"custom"===a?`${f}`:`0 0 250 ${P1(a)}`,children:[(0,I.jsx)("path",{id:`text-path-${i}`,d:"custom"===a?u:W1(a),fill:"none",strokeWidth:d,className:"ablocks-text-path-svg",stroke:n?s:"transparent"}),M?(0,I.jsx)("a",{...x,children:(0,I.jsx)("text",{strokeWidth:h?m:0,stroke:g||b,children:(0,I.jsx)("textPath",{className:"ablocks-text-path-text",
6012 +href:`#text-path-${i}`,startOffset:c,fill:b||p,children:o})})}):(0,I.jsx)("text",{strokeWidth:h?m:0,stroke:g||b,children:(0,I.jsx)("textPath",{className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:c,fill:b||p,children:o})})]})})})})}}]}),D1.propTypes={};const N1={UU:"ablocks/ecm-bookmark-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},id:{type:"number"},bookmark_text:{type:"string",default:""},bookmarked_text:{type:"string",default:""},buttonColor:{type:"string",default:"#ffffff"},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:"#ea580c"},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",
6001 6013 bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",
6002 6014 leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",
6003 6015 unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},badgeSize:{type:"object",default:{value:30,valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",
6004 6016 top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",
@@ -6008,14 +6020,14 @@
6008 6020 imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,
6009 6021 rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",
6010 6022 offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",
6011 6023 xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{
6012 -type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function r1(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:s1.UU,attributes:e,typography:[{fontFamily:e.buttonTypography?.fontFamily,weight:e.buttonTypography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-bookmark-button",httpMethod:"POST",attributes:e})})})})}r1.propTypes={};const b1=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["align-items"]=i[`value${e}`]),i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},c1=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"
6013 -}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e)}},d1=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColorH),background:(0,Hs.qD)(t?.buttonBackgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},u1=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"width",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"height",unitDefaultValue:"px",device:e})}),p1=(t,e="")=>{const i=(0,
6014 -Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function m1(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonWidth:c,buttonAlignment:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"bandageHeight",attributeValue:e?.bandageHeight??0,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:d,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{
6024 +type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function I1(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:N1.UU,attributes:e,typography:[{fontFamily:e.buttonTypography?.fontFamily,weight:e.buttonTypography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-bookmark-button",httpMethod:"POST",attributes:e})})})})}I1.propTypes={};const V1=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["align-items"]=i[`value${e}`]),i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},O1=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"
6025 +}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e)}},Y1=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColorH),background:(0,Hs.qD)(t?.buttonBackgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},X1=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"width",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"height",unitDefaultValue:"px",device:e})}),B1=(t,e="")=>{const i=(0,
6026 +Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function E1(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackground:n,buttonBackgroundH:s,buttonColor:r,buttonColorH:b,buttonWidth:c,buttonAlignment:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"bandageHeight",attributeValue:e?.bandageHeight??0,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:d,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{
6015 6027 label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Badge Fill Color","ablocks"),attributeValue:e?.badgeFillColor,attributeName:"badgeFillColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,
6016 -I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o||{},setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(s1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(s1.UU,{title:(0,L.__)("Bookmark Button","ablocks"),attributes:s1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
6017 -null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block--ecm-bookmark-button",b1(i),b1(i,"Tablet"),b1(i,"Mobile"),t.customDeviceMap(t=>b1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button",c1(i),c1(i,"Tablet"),c1(i,"Mobile"),t.customDeviceMap(t=>c1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button:hover",d1(i),d1(i,"Tablet"),d1(i,"Mobile"),t.customDeviceMap(t=>d1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button svg",u1(i),u1(i,"Tablet"),u1(i,"Mobile"),t.customDeviceMap(t=>u1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button svg path",p1(i),p1(i),p1(i)),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(n1,{...t}),(0,I.jsx)(r1,{...t})]})},save:()=>null}),m1.propTypes={};const h1={UU:"ablocks/ecm-bookmark-badge",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},id:{type:"number"},buttonColor:{type:"string",default:""},
6028 +I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o||{},setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(N1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(N1.UU,{title:(0,L.__)("Bookmark Button","ablocks"),attributes:N1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),
6029 +null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block--ecm-bookmark-button",V1(i),V1(i,"Tablet"),V1(i,"Mobile"),t.customDeviceMap(t=>V1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button",O1(i),O1(i,"Tablet"),O1(i,"Mobile"),t.customDeviceMap(t=>O1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button:hover",Y1(i),Y1(i,"Tablet"),Y1(i,"Mobile"),t.customDeviceMap(t=>Y1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button svg",X1(i),X1(i,"Tablet"),X1(i,"Mobile"),t.customDeviceMap(t=>X1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button svg path",B1(i),B1(i),B1(i)),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(D1,{...t}),(0,I.jsx)(I1,{...t})]})},save:()=>null}),E1.propTypes={};const F1={UU:"ablocks/ecm-bookmark-badge",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},id:{type:"number"},buttonColor:{type:"string",default:""},
6018 6030 buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,
6019 6031 isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",
6020 6032 topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},bandageHeight:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",
6021 6033 bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",
@@ -6025,15 +6037,15 @@
6025 6037 imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",
6026 6038 offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",
6027 6039 offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",
6028 6040 yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},
6029 -_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function g1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:h1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-bookmark-badge",httpMethod:"POST",attributes:e})})})})}g1.propTypes={};const f1=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},y1=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"height",
6030 -unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"width",unitDefaultValue:"px",device:e})}},T1=(t,e="")=>{const i={};i.color=t?.buttonColorH??"",i.background=t?.buttonBackgroundH??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColorH),background:(0,Hs.qD)(t?.buttonBackgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},H1=(t,e="")=>{const i=(0,Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function M1(t){const{attributes:e,setAttributes:i}=t,{listWidth:o,listAlignment:a,listBackground:n,listPadding:s,listBorder:r,listBoxShadow:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,
6041 +_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function q1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:F1.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-bookmark-badge",httpMethod:"POST",attributes:e})})})})}q1.propTypes={};const $1=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},G1=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"height",
6042 +unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"width",unitDefaultValue:"px",device:e})}},Z1=(t,e="")=>{const i={};i.color=t?.buttonColorH??"",i.background=t?.buttonBackgroundH??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColorH),background:(0,Hs.qD)(t?.buttonBackgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},K1=(t,e="")=>{const i=(0,Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function J1(t){const{attributes:e,setAttributes:i}=t,{listWidth:o,listAlignment:a,listBackground:n,listPadding:s,listBorder:r,listBoxShadow:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,
6031 6043 L.__)("Width","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"listWidth",attributeValue:o,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"listAlignment",attributeValue:a,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("List Padding","ablocks"),isResponsive:!0,attributeName:"listPadding",attributeValue:s,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"listBorder",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{
6032 6044 label:(0,L.__)("Box shadow","ablocks"),attributeName:"listBoxShadow",attributeValue:b,setAttributes:i})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,attributeName:"listBackground",setAttributes:i})})})}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content Title","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:e?.titleColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:e?.titleTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:e?.titleTextShadow,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:e?.titleTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,I.jsx)(V,{
6033 6045 initialOpen:!0,title:(0,L.__)("Content Descriptions","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"desColor",attributeValue:e?.desColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"desTypography",attributeValue:e?.desTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"desTextShadow",attributeValue:e?.desTextShadow,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:e?.desTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Not Found Text","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"notFoundAlignment",attributeValue:e?.notFoundAlignment,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),
6034 -value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}],isInline:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"notFoundColor",attributeValue:e?.notFoundColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"notFoundTypography",attributeValue:e?.notFoundTypography,setAttributes:i,isResponsive:!0,attributes:e})]})})]})})})}(0,M.xV)(h1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(h1.UU,{title:(0,L.__)("Bookmark Badge","ablocks"),attributes:h1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
6035 -;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark",f1(i),f1(i,"Tablet"),f1(i,"Mobile"),t.customDeviceMap(t=>f1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg",y1(i),y1(i,"Tablet"),y1(i,"Mobile"),t.customDeviceMap(t=>y1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg path",H1(i),H1(i),H1(i)),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg:hover",T1(i),T1(i,"Tablet"),T1(i,"Mobile"),t.customDeviceMap(t=>T1(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(m1,{...t}),(0,I.jsx)(g1,{...t})]})},save:()=>null}),i(38652),M1.propTypes={};const x1={UU:"ablocks/ecm-bookmark-list",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},not_found_text:{type:"string",
6046 +value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}],isInline:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"notFoundColor",attributeValue:e?.notFoundColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"notFoundTypography",attributeValue:e?.notFoundTypography,setAttributes:i,isResponsive:!0,attributes:e})]})})]})})})}(0,M.xV)(F1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(F1.UU,{title:(0,L.__)("Bookmark Badge","ablocks"),attributes:F1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
6047 +;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark",$1(i),$1(i,"Tablet"),$1(i,"Mobile"),t.customDeviceMap(t=>$1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg",G1(i),G1(i,"Tablet"),G1(i,"Mobile"),t.customDeviceMap(t=>G1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg path",K1(i),K1(i),K1(i)),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg:hover",Z1(i),Z1(i,"Tablet"),Z1(i,"Mobile"),t.customDeviceMap(t=>Z1(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(E1,{...t}),(0,I.jsx)(q1,{...t})]})},save:()=>null}),i(38652),J1.propTypes={};const Q1={UU:"ablocks/ecm-bookmark-list",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},not_found_text:{type:"string",
6036 6048 default:"Custom message when no bookmarks exist"},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},notFoundColor:{type:"string",default:""},listWidth:{type:"object",default:{value:33,valueTablet:"",valueMobile:""}},listAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},notFoundAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},listPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},listBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",
6037 6049 topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",
6038 6050 leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},listBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",
6039 6051 letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},notFoundTypographyGlobal:{type:"string",default:""},notFoundTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",
@@ -6045,14 +6057,14 @@
6045 6057 imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",
6046 6058 transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",
6047 6059 flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",
6048 6060 yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",
6049 -blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function k1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:x1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-bookmark-list",httpMethod:"POST",attributes:e})})})})}k1.propTypes={};const v1=(t,e="")=>{const i={}
6050 -;i.background=t?.listBackground??"";const o=(0,M.Zy)(t.listBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.listPadding,{unit:"px"});return{...i,...(0,Eb.qD)({attributeValue:t?.listWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:33,property:"width",unitDefaultValue:"%",device:e}),background:(0,Hs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},_1=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.listBoxShadow,e)}},R1=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},S1=(t,e="")=>{const i={};i.color=t?.titleColor??"";const o=(0,M.Zy)(t.titleTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.titleTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,
6051 -fc.qD)(t?.titleTextShadow)}},W1=(t,e="")=>{const i={};i.color=t?.desColor??"";const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.desTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.desColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.desTextShadow)}},P1=(t,e="")=>{const{notFoundAlignment:i}=t,o={};o.color=t?.notFoundColor??"";const a=(0,M.Zy)(t.notFoundTypography,{weight:"400"}),l=t.typographyGlobal?t.typographyGlobal:"";return i&&i[`value${e}`]&&(o["text-align"]=i[`value${e}`]),{...o,color:(0,Hs.qD)(t?.notFoundColor),...(0,U.qD)(a,e,l)}};function U1(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackgroundH:n,buttonColorH:s,countAlignment:r,show_label:b,show_icon:c,label_single:d,label_plural:u,wrapper_class:p}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,
6061 +blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function t0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:Q1.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-bookmark-list",httpMethod:"POST",attributes:e})})})})}t0.propTypes={};const e0=(t,e="")=>{const i={}
6062 +;i.background=t?.listBackground??"";const o=(0,M.Zy)(t.listBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.listPadding,{unit:"px"});return{...i,...(0,Eb.qD)({attributeValue:t?.listWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:33,property:"width",unitDefaultValue:"%",device:e}),background:(0,Hs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},i0=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.listBoxShadow,e)}},o0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},a0=(t,e="")=>{const i={};i.color=t?.titleColor??"";const o=(0,M.Zy)(t.titleTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.titleTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,
6063 +fc.qD)(t?.titleTextShadow)}},l0=(t,e="")=>{const i={};i.color=t?.desColor??"";const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.desTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.desColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.desTextShadow)}},n0=(t,e="")=>{const{notFoundAlignment:i}=t,o={};o.color=t?.notFoundColor??"";const a=(0,M.Zy)(t.notFoundTypography,{weight:"400"}),l=t.typographyGlobal?t.typographyGlobal:"";return i&&i[`value${e}`]&&(o["text-align"]=i[`value${e}`]),{...o,color:(0,Hs.qD)(t?.notFoundColor),...(0,U.qD)(a,e,l)}};function s0(t){const{attributes:e,setAttributes:i}=t,{buttonBorder:o,padding:a,buttonBackgroundH:n,buttonColorH:s,countAlignment:r,show_label:b,show_icon:c,label_single:d,label_plural:u,wrapper_class:p}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,
6052 6064 title:(0,L.__)("Content Setting","ablocks"),children:[(0,I.jsx)(Kl,{label:(0,L.__)("Wrapper Class","ablocks"),attributeName:"wrapper_class",attributeValue:p,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeName:"show_icon",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Label","ablocks"),attributeName:"show_label",attributeValue:b,setAttributes:i,isResponsive:!1}),b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Label (Single)","ablocks"),attributeName:"label_single",attributeValue:d,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Label (Plural)","ablocks"),attributeName:"label_plural",attributeValue:u,setAttributes:i})]})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Count Setting","ablocks"),children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"countAlignment",attributeValue:r,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",
6053 -icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:e?.numberColor,attributeName:"numberColor",setAttributes:i})})]})]})})})}(0,M.xV)(x1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(x1.UU,{title:(0,L.__)("Bookmark List","ablocks"),attributes:x1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),
6054 -t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-item",v1(i),v1(i,"Tablet"),v1(i,"Mobile"),t.customDeviceMap(t=>v1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-item:hover",_1(i),_1(i,"Tablet"),_1(i,"Mobile"),t.customDeviceMap(t=>_1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list",R1(i),R1(i,"Tablet"),R1(i,"Mobile"),t.customDeviceMap(t=>R1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-title",S1(i),S1(i,"Tablet"),S1(i,"Mobile"),t.customDeviceMap(t=>S1(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-date",W1(i),W1(i,"Tablet"),W1(i,"Mobile"),t.customDeviceMap(t=>W1(i,t))),t.addClassStyles("{{WRAPPER}}",P1(i),P1(i,"Tablet"),P1(i,"Mobile"),t.customDeviceMap(t=>P1(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(M1,{...t}),(0,I.jsx)(k1,{...t})]})},save:()=>null}),U1.propTypes={};const j1={UU:"ablocks/ecm-bookmark-count",uK:{
6065 +icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:e?.numberColor,attributeName:"numberColor",setAttributes:i})})]})]})})})}(0,M.xV)(Q1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(Q1.UU,{title:(0,L.__)("Bookmark List","ablocks"),attributes:Q1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),
6066 +t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-item",e0(i),e0(i,"Tablet"),e0(i,"Mobile"),t.customDeviceMap(t=>e0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-item:hover",i0(i),i0(i,"Tablet"),i0(i,"Mobile"),t.customDeviceMap(t=>i0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list",o0(i),o0(i,"Tablet"),o0(i,"Mobile"),t.customDeviceMap(t=>o0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-title",a0(i),a0(i,"Tablet"),a0(i,"Mobile"),t.customDeviceMap(t=>a0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-date",l0(i),l0(i,"Tablet"),l0(i,"Mobile"),t.customDeviceMap(t=>l0(i,t))),t.addClassStyles("{{WRAPPER}}",n0(i),n0(i,"Tablet"),n0(i,"Mobile"),t.customDeviceMap(t=>n0(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(J1,{...t}),(0,I.jsx)(t0,{...t})]})},save:()=>null}),s0.propTypes={};const r0={UU:"ablocks/ecm-bookmark-count",uK:{
6055 6067 block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},show_label:{type:"boolean",default:!0},show_icon:{type:"boolean",default:!0},label_single:{type:"string",default:"Bookmark"},label_plural:{type:"string",default:"Bookmarks"},wrapper_class:{type:"string",default:"wrapper"},numberColor:{type:"string",default:""},countAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",
6056 6068 topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",
6057 6069 rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",
6058 6070 unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",
@@ -6059,31 +6071,31 @@
6059 6071 imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",
6060 6072 imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",
6061 6073 scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",
6062 6074 flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",
6063 -shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function w1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:j1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,
6064 -I.jsx)(tW(),{block:"ablocks/ecm-bookmark-count",httpMethod:"POST",attributes:e})})})})}w1.propTypes={};const z1=(t,e="")=>{const{countAlignment:i={}}=t,o={display:"flex"};return i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},C1=(t,e="")=>{const i={};i.color=t?.numberColor??"",i.background=t?.countBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.numberColor),background:(0,Hs.qD)(t?.countBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"height",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"width",unitDefaultValue:"px",device:e})}};function A1(t){
6075 +shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function b0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:r0.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,
6076 +I.jsx)(sW(),{block:"ablocks/ecm-bookmark-count",httpMethod:"POST",attributes:e})})})})}b0.propTypes={};const c0=(t,e="")=>{const{countAlignment:i={}}=t,o={display:"flex"};return i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},d0=(t,e="")=>{const i={};i.color=t?.numberColor??"",i.background=t?.countBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.numberColor),background:(0,Hs.qD)(t?.countBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"height",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"width",unitDefaultValue:"px",device:e})}};function u0(t){
6065 6077 const{attributes:e,setAttributes:i}=t,{reactionUlStyle:o,reactionAlignment:a,reacTitleTypography:n,reacListTypography:s,textShadow:r,textStroke:b,gap:c,reacTitleColor:d,reacListColor:u,nobookmarksColor:p,nobookmarksTypography:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Reaction List Title","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"reactionAlignment",options:[{value:"start",label:(0,L.__)("start","ablocks"),icon:"align-left"},{value:"center",label:(0,L.__)("Center","ablocks"),icon:"align-center"},{value:"end",label:(0,L.__)("end","ablocks"),icon:"align-right"}],attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("List Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"Disc"},{label:(0,L.__)("Circle","ablocks"),
6066 6078 value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"},{label:(0,L.__)("Decimal","ablocks"),value:"decimal"},{label:(0,L.__)("Decimal Leading Zero","ablocks"),value:"decimal-leading-zero"},{label:(0,L.__)("Lower Alpha","ablocks"),value:"lower-alpha"},{label:(0,L.__)("Upper Alpha","ablocks"),value:"upper-alpha"},{label:(0,L.__)("Lower Roman","ablocks"),value:"lower-roman"},{label:(0,L.__)("Upper Roman","ablocks"),value:"upper-roman"},{label:(0,L.__)("None","ablocks"),value:"none"}],isSearch:!0,attributeName:"reactionUlStyle",attributeValue:o,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"reacTitleColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"reacTitleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("Reaction List Style","ablocks"),children:(0,
6067 -I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"reacListColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"reacListTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e})]})}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("No bookmarks exist Style","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"nobookmarksColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"nobookmarksTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e})]})})]})})})}(0,M.xV)(j1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(j1.UU,{title:(0,L.__)("Bookmark Count","ablocks"),attributes:j1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){
6068 -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}} .ablocks-block--ecm-bookmark-count",z1(i),z1(i,"Tablet"),z1(i,"Mobile"),t.customDeviceMap(t=>z1(i,t)));const e=i?.wrapper_class||"wrapper";return t.addClassStyles(`{{WRAPPER}} .${e}`,C1(i),C1(i,"Tablet"),C1(i,"Mobile"),t.customDeviceMap(t=>C1(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(U1,{...t}),(0,I.jsx)(w1,{...t})]})},save:()=>null}),i(6035),A1.propTypes={};const L1={UU:"ablocks/ecm-reaction-list",uK:{reactionAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},reacTitleTypographyGlobal:{type:"string",default:""},
6069 -reacTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},reacListTypographyGlobal:{type:"string",default:""},reacListTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",
6070 -fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},nobookmarksTypographyGlobal:{type:"string",default:""},nobookmarksTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},
6071 -textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},not_found_text:{type:"string",default:"Custom message when no bookmarks exist"},reactionUlStyle:{type:"string",default:""},reacTitleColor:{type:"string",default:"#000000"},reacListColor:{type:"string",default:"#000000"},nobookmarksColor:{type:"string",default:"#000000"},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,
6072 -isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,
6073 -isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",
6074 -topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",
6075 -imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",
6076 -imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",
6077 -offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",
6078 -scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{
6079 -animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function D1(t){
6080 -const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:L1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-reaction-list",httpMethod:"POST",attributes:e})})})})}D1.propTypes={};const N1=(t,e="")=>{const i=(0,M.Zy)(t.reacTitleTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.reacTitleColor),...(0,U.qD)(i,e)}},I1=(t,e="")=>{const i=(0,M.Zy)(t.reacTitleTypography,{weight:"400"}),o=t.reactionUlStyle?t.reactionUlStyle:"disc";return{color:(0,Hs.qD)(t?.reacTitleColor),...(0,U.qD)(i,e),"list-style-type":o,...(0,Zt.qD)(t?.reactionAlignment,"text-align",e)}},V1=(t,e="")=>{const i=(0,M.Zy)(t.reacListTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.reacListColor),...(0,U.qD)(i,e)}},O1=(t,e="")=>{const i=(0,M.Zy)(t.nobookmarksTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.nobookmarksColor),flexDirection:"column",...(0,U.qD)(i,e),...(0,Zt.qD)(t?.reactionAlignment,"align-items",e)}
6081 -};(0,M.xV)(L1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(L1.UU,{title:(0,L.__)("Reaction List","ablocks"),attributes:L1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),t?(t.addClassStyles("{{WRAPPER}}"),t.addClassStyles("{{WRAPPER}} p.ecm-shortcode--reaction__list-title",N1(i),N1(i,"Tablet"),N1(i,"Mobile"),t.customDeviceMap(t=>N1(i,t))),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--reaction__list",I1(i),I1(i,"Tablet"),I1(i,"Mobile"),t.customDeviceMap(t=>I1(i,t))),t.addClassStyles("{{WRAPPER}} p.ecm-shortcode--reaction__list-meta",V1(i),V1(i,"Tablet"),V1(i,"Mobile"),t.customDeviceMap(t=>V1(i,t))),
6082 -t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction",O1(i),O1(i,"Tablet"),O1(i,"Mobile"),t.customDeviceMap(t=>O1(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(A1,{...t}),(0,I.jsx)(D1,{...t})]})},save:()=>null});var Y1=i(64608);function X1(t){const{attributes:e,setAttributes:i}=t,{justificationAlign:o,titleTypography:a,activeTitleTypography:n,iconSize:s,itemGap:r,showTitle:b,border:c,activeBorder:d,fillColor:u,iconColor:p,titleColor:m,bgColor:h,activeFillColor:g,activeIconColor:f,activeTitleColor:y,activeBGColor:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Reaction","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"justificationAlign",attributeValue:o,setAttributes:i,options:[{label:(0,
6083 -L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Title","ablocks"),attributeValue:b,setAttributes:i,attributeName:"showTitle",isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"iconSize",attributeValue:s,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:Y1.u2}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"itemGap",attributeValue:r,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:Y1.nO})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
6079 +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"reacListColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"reacListTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e})]})}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("No bookmarks exist Style","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"nobookmarksColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"nobookmarksTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e})]})})]})})})}(0,M.xV)(r0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(r0.UU,{title:(0,L.__)("Bookmark Count","ablocks"),attributes:r0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){
6080 +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}} .ablocks-block--ecm-bookmark-count",c0(i),c0(i,"Tablet"),c0(i,"Mobile"),t.customDeviceMap(t=>c0(i,t)));const e=String(i?.wrapper_class||"").replace(/%[a-fA-F0-9]{2}/g,"").replace(/[^A-Za-z0-9_-]/g,"")||"wrapper";return t.addClassStyles(`{{WRAPPER}} .${e}`,d0(i),d0(i,"Tablet"),d0(i,"Mobile"),t.customDeviceMap(t=>d0(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(s0,{...t}),(0,I.jsx)(b0,{...t})]})},save:()=>null}),i(6035),u0.propTypes={};const p0={UU:"ablocks/ecm-reaction-list",uK:{reactionAlignment:{type:"object",default:{value:"left",valueTablet:"",
6081 +valueMobile:""}},reacTitleTypographyGlobal:{type:"string",default:""},reacTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},reacListTypographyGlobal:{type:"string",default:""},reacListTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",
6082 +fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},nobookmarksTypographyGlobal:{type:"string",default:""},nobookmarksTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",
6083 +wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},not_found_text:{type:"string",default:"Custom message when no bookmarks exist"},reactionUlStyle:{type:"string",default:""},reacTitleColor:{type:"string",default:"#000000"},reacListColor:{type:"string",default:"#000000"},nobookmarksColor:{type:"string",default:"#000000"},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",
6084 +leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",
6085 +unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",
6086 +topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",
6087 +imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",
6088 +imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",
6089 +offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",
6090 +scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",
6091 +yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{
6092 +type:"array",default:[],items:{type:"object"}}}};function m0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:p0.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-reaction-list",httpMethod:"POST",attributes:e})})})})}m0.propTypes={};const h0=(t,e="")=>{const i=(0,M.Zy)(t.reacTitleTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.reacTitleColor),...(0,U.qD)(i,e)}},g0=(t,e="")=>{const i=(0,M.Zy)(t.reacTitleTypography,{weight:"400"}),o=t.reactionUlStyle?t.reactionUlStyle:"disc";return{color:(0,Hs.qD)(t?.reacTitleColor),...(0,U.qD)(i,e),"list-style-type":o,...(0,Zt.qD)(t?.reactionAlignment,"text-align",e)}},f0=(t,e="")=>{const i=(0,M.Zy)(t.reacListTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.reacListColor),...(0,U.qD)(i,e)}},y0=(t,e="")=>{const i=(0,M.Zy)(t.nobookmarksTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.nobookmarksColor),flexDirection:"column",
6093 +...(0,U.qD)(i,e),...(0,Zt.qD)(t?.reactionAlignment,"align-items",e)}};(0,M.xV)(p0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(p0.UU,{title:(0,L.__)("Reaction List","ablocks"),attributes:p0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),t?(t.addClassStyles("{{WRAPPER}}"),t.addClassStyles("{{WRAPPER}} p.ecm-shortcode--reaction__list-title",h0(i),h0(i,"Tablet"),h0(i,"Mobile"),t.customDeviceMap(t=>h0(i,t))),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--reaction__list",g0(i),g0(i,"Tablet"),g0(i,"Mobile"),t.customDeviceMap(t=>g0(i,t))),t.addClassStyles("{{WRAPPER}} p.ecm-shortcode--reaction__list-meta",f0(i),f0(i,"Tablet"),f0(i,"Mobile"),t.customDeviceMap(t=>f0(i,t))),
6094 +t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction",y0(i),y0(i,"Tablet"),y0(i,"Mobile"),t.customDeviceMap(t=>y0(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(u0,{...t}),(0,I.jsx)(m0,{...t})]})},save:()=>null});var T0=i(64608);function H0(t){const{attributes:e,setAttributes:i}=t,{justificationAlign:o,titleTypography:a,activeTitleTypography:n,iconSize:s,itemGap:r,showTitle:b,border:c,activeBorder:d,fillColor:u,iconColor:p,titleColor:m,bgColor:h,activeFillColor:g,activeIconColor:f,activeTitleColor:y,activeBGColor:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Reaction","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"justificationAlign",attributeValue:o,setAttributes:i,options:[{label:(0,
6095 +L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Title","ablocks"),attributeValue:b,setAttributes:i,attributeName:"showTitle",isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"iconSize",attributeValue:s,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:T0.u2}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"itemGap",attributeValue:r,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:T0.nO})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),
6084 6096 attributeName:"titleColor",attributeValue:m,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("BG Color","ablocks"),attributeName:"bgColor",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon BG Color","ablocks"),attributeName:"iconColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Fill Color","ablocks"),attributeName:"fillColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:c,setAttributes:i})]})})}),(0,I.jsx)(V,{initialOpen:!1,title:(0,L.__)("Active Reaction Style","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Title Color","ablocks"),attributeName:"activeTitleColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
6085 -L.__)("active BG Color","ablocks"),attributeName:"activeBGColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Fill Color","ablocks"),attributeName:"activeFillColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"activeIconColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"activeTitleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activeBorder",attributeValue:d,setAttributes:i})]})})]})})})}(0,L.__)("Flex Start","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Flex End","ablocks"),(0,L.__)("Space Between","ablocks"),(0,L.__)("Space Around","ablocks"),(0,L.__)("Space Evenly","ablocks"),X1.propTypes={};const B1={UU:"ablocks/ecm-reaction",uK:{justificationAlign:{type:"object",default:{value:"center",valueTablet:"",
6097 +L.__)("active BG Color","ablocks"),attributeName:"activeBGColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Fill Color","ablocks"),attributeName:"activeFillColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"activeIconColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"activeTitleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activeBorder",attributeValue:d,setAttributes:i})]})})]})})})}(0,L.__)("Flex Start","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Flex End","ablocks"),(0,L.__)("Space Between","ablocks"),(0,L.__)("Space Around","ablocks"),(0,L.__)("Space Evenly","ablocks"),H0.propTypes={};const M0={UU:"ablocks/ecm-reaction",uK:{justificationAlign:{type:"object",default:{value:"center",valueTablet:"",
6086 6098 valueMobile:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",
6087 6099 commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},activeBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",
6088 6100 commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",
6089 6101 bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",
@@ -6096,16 +6108,16 @@
6096 6108 imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",
6097 6109 rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",
6098 6110 rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",
6099 6111 scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",
6100 -default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function E1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:B1.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-reaction",httpMethod:"POST",attributes:e})})})})}E1.propTypes={};const F1=(t,e="")=>({...{...(0,Eb.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",property:"gap",device:e})},...(0,Zt.qD)(t?.justificationAlign,"justify-content",e)}),q1=(t,e="")=>{const i={};return t.showTitle&&(i.display="block"),{...i}},$1=(t,e="")=>({...{...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,
6101 -defaultValue:20,unitDefaultValue:"px",property:"height",device:e}),...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",property:"width",device:e})}}),G1=(t,e="")=>({fill:`${(0,Hs.qD)(t?.fillColor)} !important`,stroke:`${(0,Hs.qD)(t?.iconColor)} !important`}),Z1=(t,e="")=>({fill:`${(0,Hs.qD)(t?.activeFillColor)} !important`,stroke:`${(0,Hs.qD)(t?.activeIconColor)} !important`}),K1=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"",a=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.bgColor),color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e)}},J1=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,Eb.qD)({attributeValue:t?.transition,defaultValue:10,unitDefaultValue:"s",property:"transition-duration"}),...(0,y.a9)(i,e)}},Q1=(t,e="")=>{const i=(0,
6102 -M.Zy)(t.activeTitleTypography,{weight:"400"}),o=t.activeTitleTypographyGlobal?t.activeTitleTypographyGlobal:"",a=(0,M.Zy)(t.activeBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.activeBGColor),color:(0,Hs.qD)(t?.activeTitleColor),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e)}},t0=(t,e="")=>{const i=(0,M.Zy)(t.activeBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,Eb.qD)({attributeValue:t?.transition,defaultValue:10,unitDefaultValue:"s",property:"transition-duration"}),...(0,y.a9)(i,e)}};function e0(t){const{attributes:e,setAttributes:i}=t,{text:o,padding:a,buttonBackgroundH:n,buttonColorH:s,buttonBorder:r,buttonBackground:b,buttonColor:c,buttonTypography:d,buttonAlignment:u,badgeSize:p}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(Kl,{label:(0,L.__)("Upvote Text","ablocks"),attributeName:"text",
6112 +default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function x0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:M0.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-reaction",httpMethod:"POST",attributes:e})})})})}x0.propTypes={};const k0=(t,e="")=>({...{...(0,Eb.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",property:"gap",device:e})},...(0,Zt.qD)(t?.justificationAlign,"justify-content",e)}),v0=(t,e="")=>{const i={};return t.showTitle&&(i.display="block"),{...i}},_0=(t,e="")=>({...{...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,
6113 +defaultValue:20,unitDefaultValue:"px",property:"height",device:e}),...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",property:"width",device:e})}}),R0=(t,e="")=>({fill:`${(0,Hs.qD)(t?.fillColor)} !important`,stroke:`${(0,Hs.qD)(t?.iconColor)} !important`}),S0=(t,e="")=>({fill:`${(0,Hs.qD)(t?.activeFillColor)} !important`,stroke:`${(0,Hs.qD)(t?.activeIconColor)} !important`}),W0=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"",a=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.bgColor),color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e)}},P0=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,Eb.qD)({attributeValue:t?.transition,defaultValue:10,unitDefaultValue:"s",property:"transition-duration"}),...(0,y.a9)(i,e)}},U0=(t,e="")=>{const i=(0,
6114 +M.Zy)(t.activeTitleTypography,{weight:"400"}),o=t.activeTitleTypographyGlobal?t.activeTitleTypographyGlobal:"",a=(0,M.Zy)(t.activeBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.activeBGColor),color:(0,Hs.qD)(t?.activeTitleColor),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e)}},j0=(t,e="")=>{const i=(0,M.Zy)(t.activeBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,Eb.qD)({attributeValue:t?.transition,defaultValue:10,unitDefaultValue:"s",property:"transition-duration"}),...(0,y.a9)(i,e)}};function w0(t){const{attributes:e,setAttributes:i}=t,{text:o,padding:a,buttonBackgroundH:n,buttonColorH:s,buttonBorder:r,buttonBackground:b,buttonColor:c,buttonTypography:d,buttonAlignment:u,badgeSize:p}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(Kl,{label:(0,L.__)("Upvote Text","ablocks"),attributeName:"text",
6103 6115 attributeValue:o,setAttributes:i,disableDynamicContent:!1})}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Upvote Button Style","ablocks"),children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:b,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:c,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,
6104 6116 L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:n,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:s,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Badge Style","ablocks"),children:[(0,I.jsx)(_t,{label:(0,L.__)("Badge Size","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeName:"badgeSize",
6105 -attributeValue:p||0,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Fill Color","ablocks"),attributeValue:e?.badgeFillColor,attributeName:"badgeFillColor",setAttributes:i})]})]})})})}(0,M.xV)(B1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(B1.UU,{title:(0,L.__)("Reaction","ablocks"),attributes:B1.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),t?(t.addClassStyles("{{WRAPPER}}"),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--reaction",F1(i),F1(i,"Tablet"),F1(i,"Mobile"),t.customDeviceMap(t=>F1(i,t))),t.addClassStyles("{{WRAPPER}} span.ecm-shortcode--reaction__label.ecm--hidden",q1(i),q1(i,"Tablet"),q1(i,"Mobile")),
6106 -t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction__icon svg",$1(i),$1(i,"Tablet"),$1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction__icon svg path",G1(i),G1(i,"Tablet"),G1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--reaction__button--active div.ecm-shortcode--reaction__icon svg path",Z1(i),Z1(i,"Tablet"),Z1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button",K1(i),K1(i,"Tablet"),K1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button:hover",J1(i),J1(i,"Tablet"),J1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button.ecm-shortcode--reaction__button--active",Q1(i),Q1(i,"Tablet"),Q1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button.ecm-shortcode--reaction__button--active:hover",t0(i),t0(i,"Tablet"),t0(i,"Mobile")),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,
6107 -I.jsx)(X1,{...t}),(0,I.jsx)(E1,{...t})]})},save:()=>null}),e0.propTypes={};const i0={UU:"ablocks/ecm-upvote",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},text:{type:"string",default:""},buttonColor:{type:"string",default:"#ffffff"},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:"#ea580c"},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",
6117 +attributeValue:p||0,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Fill Color","ablocks"),attributeValue:e?.badgeFillColor,attributeName:"badgeFillColor",setAttributes:i})]})]})})})}(0,M.xV)(M0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(M0.UU,{title:(0,L.__)("Reaction","ablocks"),attributes:M0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),t?(t.addClassStyles("{{WRAPPER}}"),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--reaction",k0(i),k0(i,"Tablet"),k0(i,"Mobile"),t.customDeviceMap(t=>k0(i,t))),t.addClassStyles("{{WRAPPER}} span.ecm-shortcode--reaction__label.ecm--hidden",v0(i),v0(i,"Tablet"),v0(i,"Mobile")),
6118 +t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction__icon svg",_0(i),_0(i,"Tablet"),_0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction__icon svg path",R0(i),R0(i,"Tablet"),R0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--reaction__button--active div.ecm-shortcode--reaction__icon svg path",S0(i),S0(i,"Tablet"),S0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button",W0(i),W0(i,"Tablet"),W0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button:hover",P0(i),P0(i,"Tablet"),P0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button.ecm-shortcode--reaction__button--active",U0(i),U0(i,"Tablet"),U0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button.ecm-shortcode--reaction__button--active:hover",j0(i),j0(i,"Tablet"),j0(i,"Mobile")),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,
6119 +I.jsx)(H0,{...t}),(0,I.jsx)(x0,{...t})]})},save:()=>null}),w0.propTypes={};const z0={UU:"ablocks/ecm-upvote",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},text:{type:"string",default:""},buttonColor:{type:"string",default:"#ffffff"},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:"#ea580c"},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",
6108 6120 topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",
6109 6121 leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},badgeSize:{type:"object",default:{value:30,valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,
6110 6122 isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",
6111 6123 commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",
@@ -6114,14 +6126,14 @@
6114 6126 imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",
6115 6127 rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",
6116 6128 rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",
6117 6129 scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",
6118 -default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function o0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:i0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-upvote",httpMethod:"POST",attributes:e})})})})}o0.propTypes={};const a0=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex","flex-direction":"column"};return i[`value${e}`]&&(o["align-items"]=i[`value${e}`]),o},l0=(t,e="")=>{const i={display:"flex","justify-content":"center","align-items":"center",gap:"10px"};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.padding,{unit:"px"})
6119 -;return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e)}},n0=(t,e="")=>{const i={};t?.buttonColorH&&(i.color=(0,Hs.qD)(t.buttonColorH)),t?.buttonBackgroundH&&(i.background=(0,Hs.qD)(t.buttonBackgroundH));const o=(0,M.Zy)(t?.buttonBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},s0=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"width",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"height",unitDefaultValue:"px",device:e})}),r0=(t,e="")=>{const i=(0,Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function b0(t){
6130 +default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function C0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:z0.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-upvote",httpMethod:"POST",attributes:e})})})})}C0.propTypes={};const A0=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex","flex-direction":"column"};return i[`value${e}`]&&(o["align-items"]=i[`value${e}`]),o},L0=(t,e="")=>{const i={display:"flex","justify-content":"center","align-items":"center",gap:"10px"};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.padding,{unit:"px"})
6131 +;return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e)}},D0=(t,e="")=>{const i={};t?.buttonColorH&&(i.color=(0,Hs.qD)(t.buttonColorH)),t?.buttonBackgroundH&&(i.background=(0,Hs.qD)(t.buttonBackgroundH));const o=(0,M.Zy)(t?.buttonBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},N0=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"width",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"height",unitDefaultValue:"px",device:e})}),I0=(t,e="")=>{const i=(0,Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function V0(t){
6120 6132 const{attributes:e,setAttributes:i}=t,{upvoteBorder:o,padding:a,upvoteBackgroundH:n,upvoteColorH:s,countAlignment:r,show_label:b,show_icon:c,label_single:d,label_plural:u,wrapper_class:p}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Content Setting","ablocks"),children:[(0,I.jsx)(Kl,{label:(0,L.__)("Wrapper Class","ablocks"),attributeName:"wrapper_class",attributeValue:p,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeName:"show_icon",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Label","ablocks"),attributeName:"show_label",attributeValue:b,setAttributes:i,isResponsive:!1}),b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Label (Single)","ablocks"),attributeName:"label_single",attributeValue:d,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,
6121 -L.__)("Label (Plural)","ablocks"),attributeName:"label_plural",attributeValue:u,setAttributes:i})]})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Upvote Count Setting","ablocks"),children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"countAlignment",attributeValue:r,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:e?.upvoteNumberColor,attributeName:"upvoteNumberColor",setAttributes:i})})]})]})})})}(0,M.xV)(i0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(i0.UU,{title:(0,L.__)("Upvote","ablocks"),attributes:i0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",
6122 -src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote",a0(i),a0(i,"Tablet"),a0(i,"Mobile"),t.customDeviceMap(t=>a0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn",l0(i),l0(i,"Tablet"),l0(i,"Mobile"),t.customDeviceMap(t=>l0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn:hover",n0(i),n0(i,"Tablet"),n0(i,"Mobile"),t.customDeviceMap(t=>n0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg",s0(i),s0(i,"Tablet"),s0(i,"Mobile"),t.customDeviceMap(t=>s0(i,t))),
6123 -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg path",r0(i),r0(i),r0(i)),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(e0,{...t}),(0,I.jsx)(o0,{...t})]})},save:()=>null}),b0.propTypes={};const c0={UU:"ablocks/ecm-upvote-count",uK:{justificationAlign:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",
6133 +L.__)("Label (Plural)","ablocks"),attributeName:"label_plural",attributeValue:u,setAttributes:i})]})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Upvote Count Setting","ablocks"),children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"countAlignment",attributeValue:r,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:e?.upvoteNumberColor,attributeName:"upvoteNumberColor",setAttributes:i})})]})]})})})}(0,M.xV)(z0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(z0.UU,{title:(0,L.__)("Upvote","ablocks"),attributes:z0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",
6134 +src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote",A0(i),A0(i,"Tablet"),A0(i,"Mobile"),t.customDeviceMap(t=>A0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn",L0(i),L0(i,"Tablet"),L0(i,"Mobile"),t.customDeviceMap(t=>L0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn:hover",D0(i),D0(i,"Tablet"),D0(i,"Mobile"),t.customDeviceMap(t=>D0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg",N0(i),N0(i,"Tablet"),N0(i,"Mobile"),t.customDeviceMap(t=>N0(i,t))),
6135 +t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg path",I0(i),I0(i),I0(i)),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(w0,{...t}),(0,I.jsx)(C0,{...t})]})},save:()=>null}),V0.propTypes={};const O0={UU:"ablocks/ecm-upvote-count",uK:{justificationAlign:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",
6124 6136 commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",
6125 6137 leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},activeBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",
6126 6138 bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},titleTypographyGlobal:{type:"string",default:""},
6127 6139 titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},activeTitleTypographyGlobal:{type:"string",default:""},activeTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",
@@ -6134,33 +6146,33 @@
6134 6146 imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",
6135 6147 offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",
6136 6148 offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",
6137 6149 yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{
6138 -type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function d0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:c0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-upvote-count",httpMethod:"POST",attributes:e})})})})}d0.propTypes={};const u0=(t,e="")=>{const{countAlignment:i={}}=t,o={display:"flex"};return i?.[`value${e}`]&&(o["align-items"]=i[`value${e}`]),i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},p0=(t,e="")=>{const i={};return i.color=t?.upvoteNumberColor??"",{...i,color:(0,Hs.qD)(t?.upvoteNumberColor)}};function m0(t){const{attributes:e,setAttributes:i}=t,{listWidth:o,listAlignment:a,listBackground:n,listPadding:s,listBorder:r,listBoxShadow:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,
6150 +type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function Y0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:O0.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-upvote-count",httpMethod:"POST",attributes:e})})})})}Y0.propTypes={};const X0=(t,e="")=>{const{countAlignment:i={}}=t,o={display:"flex"};return i?.[`value${e}`]&&(o["align-items"]=i[`value${e}`]),i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},B0=(t,e="")=>{const i={};return i.color=t?.upvoteNumberColor??"",{...i,color:(0,Hs.qD)(t?.upvoteNumberColor)}};function E0(t){const{attributes:e,setAttributes:i}=t,{listWidth:o,listAlignment:a,listBackground:n,listPadding:s,listBorder:r,listBoxShadow:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,
6139 6151 title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("List Style","ablocks"),attributeName:"listStyle",attributeValue:e?.listStyle,setAttributes:i,options:[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Disc","ablocks"),value:"disc"},{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"listWidth",attributeValue:o,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"listAlignment",attributeValue:a,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,
6140 6152 L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("List Padding","ablocks"),isResponsive:!0,attributeName:"listPadding",attributeValue:s,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"listBorder",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"listBoxShadow",attributeValue:b,setAttributes:i})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,attributeName:"listBackground",setAttributes:i})})})}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content Title","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:e?.titleColor,setAttributes:i}),(0,I.jsx)(wc,{
6141 6153 label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:e?.titleTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:e?.titleTextShadow,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:e?.titleTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content Descriptions","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"desColor",attributeValue:e?.desColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"desTypography",attributeValue:e?.desTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"desTextShadow",attributeValue:e?.desTextShadow,setAttributes:i,
6142 -isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:e?.desTextStroke||"",setAttributes:i,isResponsive:!0})]})})]})})})}(0,M.xV)(c0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(c0.UU,{title:(0,L.__)("Upvote Count","ablocks"),attributes:c0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}}.ablocks-block--ecm-upvote-count",u0(i),u0(i,"Tablet"),u0(i,"Mobile"),t.customDeviceMap(t=>u0(i,t)));const e=i?.wrapper_class||"upvote-count-wrapper"
6143 -;return t.addClassStyles(`{{WRAPPER}} .${e}`,p0(i),p0(i,"Tablet"),p0(i,"Mobile"),t.customDeviceMap(t=>p0(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(b0,{...t}),(0,I.jsx)(d0,{...t})]})},save:()=>null}),i(11053),m0.propTypes={};const h0={UU:"ablocks/ecm-upvote-list",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},not_found_text:{type:"string",default:""},listStyle:{type:"string",default:"disc"},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},listWidth:{type:"object",default:{value:33,valueTablet:"",valueMobile:""}},listAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},listPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",
6144 -leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},listBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",
6145 -unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},listBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",
6146 -color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",
6147 -strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},desTypographyGlobal:{type:"string",default:""},desTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},desTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},desTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",
6148 -strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",
6149 -isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",
6150 -rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}
6151 -},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",
6152 -imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{
6153 -type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",
6154 -rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",
6155 -scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,
6156 -startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function g0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:h0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-upvote-list",httpMethod:"POST",attributes:e})})})})}g0.propTypes={};const f0=(t,e="")=>{const i={};i.background=t?.listBackground??"";const o=(0,M.Zy)(t.listBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.listPadding,{unit:"px"});return{...i,...(0,Eb.qD)({attributeValue:t?.listWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:33,property:"width",unitDefaultValue:"%",device:e}),
6157 -background:(0,Hs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},y0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},T0=(t,e="")=>{const i={};i.color=t?.titleColor??"";const o=(0,M.Zy)(t.titleTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.titleTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.titleTextShadow)}},H0=(t,e="")=>{const i={};i.color=t?.desColor??"";const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.desTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.desColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.desTextShadow)}},M0=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.listBoxShadow,e)}
6158 -},x0=(t,e="")=>{const i={};return i["list-style"]=t?.listStyle??"disc",{...i}};function k0(t){const{attributes:e,setAttributes:i}=t,{text:o,buttonBorder:a,padding:n,buttonBackground:s,buttonBackgroundH:r,buttonColor:b,buttonColorH:c,buttonTypography:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:[(0,I.jsx)(Kl,{label:(0,L.__)("Claim Button Text","ablocks"),attributeName:"text",attributeValue:o,setAttributes:i,disableDynamicContent:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"listAlignment",attributeValue:e?.listAlignment,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,
6159 -L.__)("Button Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:s,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:b,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:n||{},setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:r,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,
6160 -L.__)("Color Hover","ablocks"),attributeValue:c,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:a||{},setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Pending Badge","ablocks"),children:[(0,I.jsx)(Ws,{label:(0,L.__)("Fill Color","ablocks"),attributeValue:e?.pendingBadgeFillColor,attributeName:"pendingBadgeFillColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"pendingBadgeSize",attributeValue:e?.pendingBadgeSize||0,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,
6161 -L.__)("Confirmation Badge","ablocks"),children:[(0,I.jsx)(Ws,{label:(0,L.__)("Fill Color","ablocks"),attributeValue:e?.confirmationBandageFillColor,attributeName:"confirmationBandageFillColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"confirmationBandageSize",attributeValue:e?.confirmationBandageSize||0,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1})]})]})})})}(0,M.xV)(h0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(h0.UU,{title:(0,L.__)("Upvote List","ablocks"),attributes:h0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),
6162 -t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-item",f0(i),f0(i,"Tablet"),f0(i,"Mobile"),t.customDeviceMap(t=>f0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list",y0(i),y0(i,"Tablet"),y0(i,"Mobile"),t.customDeviceMap(t=>y0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-title",T0(i),T0(i,"Tablet"),T0(i,"Mobile"),t.customDeviceMap(t=>T0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-date",H0(i),H0(i,"Tablet"),H0(i,"Mobile"),t.customDeviceMap(t=>H0(i,t))),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--upvote__list",x0(i),x0(i,"Tablet"),x0(i,"Mobile"),t.customDeviceMap(t=>x0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-item:hover",M0(i),M0(i,"Tablet"),M0(i,"Mobile"),t.customDeviceMap(t=>M0(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(m0,{...t}),(0,I.jsx)(g0,{...t})]})},save:()=>null}),k0.propTypes={};const v0={
6154 +isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:e?.desTextStroke||"",setAttributes:i,isResponsive:!0})]})})]})})})}(0,M.xV)(O0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(O0.UU,{title:(0,L.__)("Upvote Count","ablocks"),attributes:O0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}}.ablocks-block--ecm-upvote-count",X0(i),X0(i,"Tablet"),X0(i,"Mobile"),t.customDeviceMap(t=>X0(i,t)))
6155 +;const e=String(i?.wrapper_class||"").replace(/%[a-fA-F0-9]{2}/g,"").replace(/[^A-Za-z0-9_-]/g,"")||"upvote-count-wrapper";return t.addClassStyles(`{{WRAPPER}} .${e}`,B0(i),B0(i,"Tablet"),B0(i,"Mobile"),t.customDeviceMap(t=>B0(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(V0,{...t}),(0,I.jsx)(Y0,{...t})]})},save:()=>null}),i(11053),E0.propTypes={};const F0={UU:"ablocks/ecm-upvote-list",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},not_found_text:{type:"string",default:""},listStyle:{type:"string",default:"disc"},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},listWidth:{type:"object",default:{value:33,valueTablet:"",valueMobile:""}},listAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},listPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,
6156 +common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},listBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",
6157 +topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},
6158 +listBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",
6159 +vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},desTypographyGlobal:{type:"string",default:""},desTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},desTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},desTextStroke:{type:"object",default:{strokeWidth:"",
6160 +strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",
6161 +default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",
6162 +topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",
6163 +vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",
6164 +imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},
6165 +_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,
6166 +rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",
6167 +maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,
6168 +yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function q0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:F0.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-upvote-list",httpMethod:"POST",attributes:e})})})})}q0.propTypes={};const $0=(t,e="")=>{const i={};i.background=t?.listBackground??"";const o=(0,M.Zy)(t.listBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.listPadding,{unit:"px"});return{...i,...(0,Eb.qD)({attributeValue:t?.listWidth,attributeObjectKey:"value",
6169 +isResponsive:!0,hasUnit:!0,defaultValue:33,property:"width",unitDefaultValue:"%",device:e}),background:(0,Hs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},G0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},Z0=(t,e="")=>{const i={};i.color=t?.titleColor??"";const o=(0,M.Zy)(t.titleTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.titleTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.titleTextShadow)}},K0=(t,e="")=>{const i={};i.color=t?.desColor??"";const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.desTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.desColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.desTextShadow)}},J0=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{
6170 +unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.listBoxShadow,e)}},Q0=(t,e="")=>{const i={};return i["list-style"]=t?.listStyle??"disc",{...i}};function t2(t){const{attributes:e,setAttributes:i}=t,{text:o,buttonBorder:a,padding:n,buttonBackground:s,buttonBackgroundH:r,buttonColor:b,buttonColorH:c,buttonTypography:d}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:[(0,I.jsx)(Kl,{label:(0,L.__)("Claim Button Text","ablocks"),attributeName:"text",attributeValue:o,setAttributes:i,disableDynamicContent:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"listAlignment",attributeValue:e?.listAlignment,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),
6171 +value:"flex-end",icon:"right"}],isInline:!1})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Button Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:s,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:b,attributeName:"buttonColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:n||{},setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),
6172 +attributeValue:r,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:c,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:a||{},setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Pending Badge","ablocks"),children:[(0,I.jsx)(Ws,{label:(0,L.__)("Fill Color","ablocks"),attributeValue:e?.pendingBadgeFillColor,attributeName:"pendingBadgeFillColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"pendingBadgeSize",attributeValue:e?.pendingBadgeSize||0,setAttributes:i,isResponsive:!0,
6173 +hasUnit:!0,isInline:!1})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Confirmation Badge","ablocks"),children:[(0,I.jsx)(Ws,{label:(0,L.__)("Fill Color","ablocks"),attributeValue:e?.confirmationBandageFillColor,attributeName:"confirmationBandageFillColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"confirmationBandageSize",attributeValue:e?.confirmationBandageSize||0,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1})]})]})})})}(0,M.xV)(F0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(F0.UU,{title:(0,L.__)("Upvote List","ablocks"),attributes:F0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),
6174 +t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-item",$0(i),$0(i,"Tablet"),$0(i,"Mobile"),t.customDeviceMap(t=>$0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list",G0(i),G0(i,"Tablet"),G0(i,"Mobile"),t.customDeviceMap(t=>G0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-title",Z0(i),Z0(i,"Tablet"),Z0(i,"Mobile"),t.customDeviceMap(t=>Z0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-date",K0(i),K0(i,"Tablet"),K0(i,"Mobile"),t.customDeviceMap(t=>K0(i,t))),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--upvote__list",Q0(i),Q0(i,"Tablet"),Q0(i,"Mobile"),t.customDeviceMap(t=>Q0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-item:hover",J0(i),J0(i,"Tablet"),J0(i,"Mobile"),t.customDeviceMap(t=>J0(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(E0,{...t}),(0,I.jsx)(q0,{...t})]})},save:()=>null}),t2.propTypes={};const e2={
6163 6175 UU:"ablocks/ecm-claim-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},post_id:{type:"number"},text:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},pendingBadgeFillColor:{type:"string",default:"#FFFF00"},confirmationBandageFillColor:{type:"string",default:"#008000 "},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",
6164 6176 letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,
6165 6177 commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",
6166 6178 bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},listAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},pendingBadgeSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},confirmationBandageSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",
@@ -6171,15 +6183,15 @@
6171 6183 imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",
6172 6184 rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",
6173 6185 offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",
6174 6186 xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},
6175 -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function _0(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:v0.UU,attributes:e,typography:[{fontFamily:e.buttonTypography?.fontFamily,weight:e.buttonTypography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-claim-button",httpMethod:"POST",attributes:e})})})})}_0.propTypes={},i(45352);const R0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex","align-items":"flex-start"};return i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},S0=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,
6176 -Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e)}},W0=(t,e,i,o=!1)=>({fill:(0,Hs.qD)(t),...o?{background:"transparent"}:{},...(0,Eb.qD)({attributeValue:e,attribute_object_key:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,unitDefaultValue:"px",property:"height",device:i}),...(0,Eb.qD)({attributeValue:e,attribute_object_key:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,unitDefaultValue:"px",property:"width",device:i})}),P0=(t,e="")=>W0(t?.pendingBadgeFillColor,t?.pendingBadgeSize,e),U0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex","align-items":"center"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},j0=(t,e="")=>W0(t?.confirmationBandageFillColor,t?.confirmationBandageSize,e,!0);function w0(t){
6187 +_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function i2(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:i,name:e2.UU,attributes:e,typography:[{fontFamily:e.buttonTypography?.fontFamily,weight:e.buttonTypography?.weight}],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-claim-button",httpMethod:"POST",attributes:e})})})})}i2.propTypes={},i(45352);const o2=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex","align-items":"flex-start"};return i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},a2=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400"}),a=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,
6188 +Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e)}},l2=(t,e,i,o=!1)=>({fill:(0,Hs.qD)(t),...o?{background:"transparent"}:{},...(0,Eb.qD)({attributeValue:e,attribute_object_key:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,unitDefaultValue:"px",property:"height",device:i}),...(0,Eb.qD)({attributeValue:e,attribute_object_key:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,unitDefaultValue:"px",property:"width",device:i})}),n2=(t,e="")=>l2(t?.pendingBadgeFillColor,t?.pendingBadgeSize,e),s2=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex","align-items":"center"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},r2=(t,e="")=>l2(t?.confirmationBandageFillColor,t?.confirmationBandageSize,e,!0);function b2(t){
6177 6189 const{attributes:e,setAttributes:i}=t,{buttonBorder:o,text:a,padding:n,buttonBackground:s,buttonBackgroundH:r,buttonColor:b,buttonColorH:c,buttonWidth:d,textColor:u,buttonAlignment:p,textTypography:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Button Setting","ablocks"),children:[(0,I.jsx)(Kl,{label:(0,L.__)("Badge Text","ablocks"),attributeName:"text",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Badge Fill Color","ablocks"),attributeValue:e?.badgeFillColor,attributeName:"badgeFillColor",setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Text Typo","ablocks"),attributeName:"textTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(_t,{label:(0,L.__)("Text Gap","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"textGap",attributeValue:e?.textGap??0,hasUnit:!0,setAttributes:i}),(0,
6178 6190 I.jsx)(_t,{label:(0,L.__)("Badge Icon Size","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"bandageHeight",attributeValue:e?.bandageHeight??0,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:p,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Badge Background","ablocks"),attributeValue:s,attributeName:"buttonBackground",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeValue:u,attributeName:"textColor",setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,
6179 -isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:n,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:r,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:c,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o||{},setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(v0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(v0.UU,{title:(0,L.__)("Claim Button","ablocks"),attributes:v0.uK,icon:(0,
6180 -I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim",R0(i),R0(i,"Tablet"),R0(i,"Mobile"),t.customDeviceMap(t=>R0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim button",S0(i),S0(i,"Tablet"),S0(i,"Mobile"),t.customDeviceMap(t=>S0(i,t))),[".ecm-shortcode--tooltip",".ecm-shortcode--tooltip svg",".ecm-shortcode--tooltip svg path"].forEach(e=>{t.addClassStyles(`{{WRAPPER}} ${e}`,P0(i),P0(i,"Tablet"),P0(i,"Mobile"),t.customDeviceMap(t=>P0(i,t)))}),
6181 -t.addClassStyles("{{WRAPPER}} .ablocks-block-container",U0(i),U0(i,"Tablet"),U0(i,"Mobile"),t.customDeviceMap(t=>U0(i,t))),[".ecm-shortcode--claim__message",".ecm-shortcode--claim__message svg",".ecm-shortcode--claim__message svg path"].forEach(e=>{t.addClassStyles(`{{WRAPPER}} ${e}`,j0(i),j0(i,"Tablet"),j0(i,"Mobile"),t.customDeviceMap(t=>j0(i,t)))}),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(k0,{...t}),(0,I.jsx)(_0,{...t})]})},save:()=>null}),w0.propTypes={};const z0={UU:"ablocks/ecm-claim-badge",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},post_id:{type:"number"},text:{type:"string",default:""},textColor:{type:"string",default:"#b300ef"},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},padding:{type:"object",default:{
6191 +isResponsive:!1}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:n,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),attributeValue:r,attributeName:"buttonBackgroundH",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Hover","ablocks"),attributeValue:c,attributeName:"buttonColorH",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:o||{},setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(e2.UU,"","easy_content_manager")&&(0,o.registerBlockType)(e2.UU,{title:(0,L.__)("Claim Button","ablocks"),attributes:e2.uK,icon:(0,
6192 +I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim",o2(i),o2(i,"Tablet"),o2(i,"Mobile"),t.customDeviceMap(t=>o2(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim button",a2(i),a2(i,"Tablet"),a2(i,"Mobile"),t.customDeviceMap(t=>a2(i,t))),[".ecm-shortcode--tooltip",".ecm-shortcode--tooltip svg",".ecm-shortcode--tooltip svg path"].forEach(e=>{t.addClassStyles(`{{WRAPPER}} ${e}`,n2(i),n2(i,"Tablet"),n2(i,"Mobile"),t.customDeviceMap(t=>n2(i,t)))}),
6193 +t.addClassStyles("{{WRAPPER}} .ablocks-block-container",s2(i),s2(i,"Tablet"),s2(i,"Mobile"),t.customDeviceMap(t=>s2(i,t))),[".ecm-shortcode--claim__message",".ecm-shortcode--claim__message svg",".ecm-shortcode--claim__message svg path"].forEach(e=>{t.addClassStyles(`{{WRAPPER}} ${e}`,r2(i),r2(i,"Tablet"),r2(i,"Mobile"),t.customDeviceMap(t=>r2(i,t)))}),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(t2,{...t}),(0,I.jsx)(i2,{...t})]})},save:()=>null}),b2.propTypes={};const c2={UU:"ablocks/ecm-claim-badge",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},post_id:{type:"number"},text:{type:"string",default:""},textColor:{type:"string",default:"#b300ef"},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},badgeFillColor:{type:"string",default:""},padding:{type:"object",default:{
6182 6194 isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",
6183 6195 bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",
6184 6196 unitRadiusHMobile:"",transitionDuration:""}},buttonAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},textTypographyGlobal:{type:"string",default:""},textTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",
6185 6197 blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},bandageHeight:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},textGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",
@@ -6189,17 +6201,17 @@
6189 6201 imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",
6190 6202 videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,
6191 6203 flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",
6192 6204 yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",
6193 -blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function C0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:z0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-claim-badge",httpMethod:"POST",attributes:e})})})})}C0.propTypes={};const A0=(t,e="")=>{
6194 -const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{display:"flex","align-items":"center",...o,...(0,Eb.qD)({attributeValue:t?.textGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"gap",unitDefaultValue:"px",device:e})}},L0=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"height",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"width",unitDefaultValue:"px",device:e})}},D0=(t,e="")=>{
6195 -const i=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.buttonColorH),background:(0,Hs.qD)(t?.buttonBackgroundH),...(0,y.a9)(i,e),...(0,H.a9)(t?.boxShadow,e)}},N0=(t,e="")=>{const i={},o=(0,M.Zy)(t?.textTypography,{weight:"400"}),a=t.textTypographyGlobal?t.textTypographyGlobal:"";return i.color=t?.textColor??"",{...i,color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(o,e,a)}},I0=(t,e="")=>{const i=(0,Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function V0(t){const{attributes:e,setAttributes:i}=t,{listWidth:o,listAlignment:a,listBackground:n,listPadding:s,listBorder:r,listBoxShadow:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Not Found Text","ablocks"),attributeName:"not_found_text",
6205 +blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function d2(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:c2.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-claim-badge",httpMethod:"POST",attributes:e})})})})}d2.propTypes={};const u2=(t,e="")=>{
6206 +const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{display:"flex","align-items":"center",...o,...(0,Eb.qD)({attributeValue:t?.textGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"gap",unitDefaultValue:"px",device:e})}},p2=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,Hs.qD)(t?.buttonColor),background:(0,Hs.qD)(t?.buttonBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"height",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"width",unitDefaultValue:"px",device:e})}},m2=(t,e="")=>{
6207 +const i=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.buttonColorH),background:(0,Hs.qD)(t?.buttonBackgroundH),...(0,y.a9)(i,e),...(0,H.a9)(t?.boxShadow,e)}},h2=(t,e="")=>{const i={},o=(0,M.Zy)(t?.textTypography,{weight:"400"}),a=t.textTypographyGlobal?t.textTypographyGlobal:"";return i.color=t?.textColor??"",{...i,color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(o,e,a)}},g2=(t,e="")=>{const i=(0,Hs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function f2(t){const{attributes:e,setAttributes:i}=t,{listWidth:o,listAlignment:a,listBackground:n,listPadding:s,listBorder:r,listBoxShadow:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Not Found Text","ablocks"),attributeName:"not_found_text",
6196 6208 attributeValue:e?.not_found_text,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("List Style","ablocks"),attributeName:"listStyle",attributeValue:e?.listStyle,setAttributes:i,options:[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Disc","ablocks"),value:"disc"},{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"listWidth",attributeValue:o,hasUnit:!0,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"listAlignment",attributeValue:a,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(xt,{
6197 6209 label:(0,L.__)("List Padding","ablocks"),isResponsive:!0,attributeName:"listPadding",attributeValue:s,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"listBorder",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"listBoxShadow",attributeValue:b,setAttributes:i})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeValue:n,attributeName:"listBackground",setAttributes:i})})})}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content Title","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:e?.titleColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",
6198 6210 attributeValue:e?.titleTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:e?.titleTextShadow,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:e?.titleTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Content Descriptions","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"desColor",attributeValue:e?.desColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"desTypography",attributeValue:e?.desTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"desTextShadow",attributeValue:e?.desTextShadow,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,
6199 -L.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:e?.desTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Not Found Text","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"notFoundAlignment",attributeValue:e?.notFoundAlignment,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}],isInline:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"notFoundColor",attributeValue:e?.notFoundColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"notFoundTypography",attributeValue:e?.notFoundTypography,setAttributes:i,isResponsive:!0,attributes:e})]})})]})})})}(0,M.xV)(z0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(z0.UU,{title:(0,
6200 -L.__)("Claim Badge","ablocks"),attributes:z0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge",A0(i),A0(i,"Tablet"),A0(i,"Mobile"),t.customDeviceMap(t=>A0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge",A0(i),A0(i,"Tablet"),A0(i,"Mobile"),t.customDeviceMap(t=>A0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge__badge-text",N0(i),N0(i,"Tablet"),N0(i,"Mobile"),t.customDeviceMap(t=>N0(i,t))),
6201 -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge svg",L0(i),L0(i,"Tablet"),L0(i,"Mobile"),t.customDeviceMap(t=>L0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge:hover svg",D0(i),D0(i,"Tablet"),D0(i,"Mobile"),t.customDeviceMap(t=>D0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge svg path",I0(i),I0(i),I0(i)),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(w0,{...t}),(0,I.jsx)(C0,{...t})]})},save:()=>null}),i(93240),V0.propTypes={};const O0={UU:"ablocks/ecm-claim-list",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},status:{type:"string",default:""},not_found_text:{type:"string",default:""},listStyle:{type:"string",default:"disc"},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},notFoundColor:{type:"string",default:""},listWidth:{type:"object",default:{value:33,
6211 +L.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:e?.desTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Not Found Text","ablocks"),children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"notFoundAlignment",attributeValue:e?.notFoundAlignment,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}],isInline:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"notFoundColor",attributeValue:e?.notFoundColor,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"notFoundTypography",attributeValue:e?.notFoundTypography,setAttributes:i,isResponsive:!0,attributes:e})]})})]})})})}(0,M.xV)(c2.UU,"","easy_content_manager")&&(0,o.registerBlockType)(c2.UU,{title:(0,
6212 +L.__)("Claim Badge","ablocks"),attributes:c2.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge",u2(i),u2(i,"Tablet"),u2(i,"Mobile"),t.customDeviceMap(t=>u2(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge",u2(i),u2(i,"Tablet"),u2(i,"Mobile"),t.customDeviceMap(t=>u2(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge__badge-text",h2(i),h2(i,"Tablet"),h2(i,"Mobile"),t.customDeviceMap(t=>h2(i,t))),
6213 +t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge svg",p2(i),p2(i,"Tablet"),p2(i,"Mobile"),t.customDeviceMap(t=>p2(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge:hover svg",m2(i),m2(i,"Tablet"),m2(i,"Mobile"),t.customDeviceMap(t=>m2(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge svg path",g2(i),g2(i),g2(i)),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(b2,{...t}),(0,I.jsx)(d2,{...t})]})},save:()=>null}),i(93240),f2.propTypes={};const y2={UU:"ablocks/ecm-claim-list",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},status:{type:"string",default:""},not_found_text:{type:"string",default:""},listStyle:{type:"string",default:"disc"},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},notFoundColor:{type:"string",default:""},listWidth:{type:"object",default:{value:33,
6202 6214 valueTablet:"",valueMobile:""}},listAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},notFoundAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},listPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},listBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",
6203 6215 unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",
6204 6216 bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},listBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",
6205 6217 lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},notFoundTypographyGlobal:{type:"string",default:""},notFoundTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},
@@ -6211,14 +6223,14 @@
6211 6223 imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},
6212 6224 _zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,
6213 6225 rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",
6214 6226 maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,
6215 -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function Y0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:O0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-claim-list",httpMethod:"POST",attributes:e})})})})}Y0.propTypes={};const X0=(t,e="")=>{const i={};i.background=t?.listBackground??"";const o=(0,M.Zy)(t.listBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.listPadding,{unit:"px"});return{...i,...(0,Eb.qD)({attributeValue:t?.listWidth,attributeObjectKey:"value",
6216 -isResponsive:!0,hasUnit:!0,defaultValue:33,property:"width",unitDefaultValue:"%",device:e}),background:(0,Hs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},B0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},E0=(t,e="")=>{const i={};i.color=t?.titleColor??"";const o=(0,M.Zy)(t.titleTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.titleTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.titleTextShadow)}},F0=(t,e="")=>{const i={};i.color=t?.desColor??"";const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.desTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.desColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.desTextShadow)}},q0=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{
6217 -unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.listBoxShadow,e)}},$0=(t,e="")=>{const i={};return i["list-style"]=t?.listStyle??"disc",{...i}},G0=(t,e="")=>{const{notFoundAlignment:i}=t,o={};o.color=t?.notFoundColor??"";const a=(0,M.Zy)(t.notFoundTypography,{weight:"400"}),l=t.typographyGlobal?t.typographyGlobal:"";return i[`value${e}`]&&(o["text-align"]=i[`value${e}`]),{...o,color:(0,Hs.qD)(t?.notFoundColor),...(0,U.qD)(a,e,l)}};function Z0(t){const{attributes:e,setAttributes:i}=t,{upvoteBorder:o,padding:a,upvoteBackgroundH:n,upvoteColorH:s,countAlignment:r,show_label:b,show_icon:c,label_single:d,label_plural:u,wrapper_class:p}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Content Setting","ablocks"),children:[(0,I.jsx)(Kl,{label:(0,L.__)("Wrapper Class","ablocks"),attributeName:"wrapper_class",attributeValue:p,setAttributes:i
6227 +yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function T2(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{blockId:o,name:y2.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-claim-list",httpMethod:"POST",attributes:e})})})})}T2.propTypes={};const H2=(t,e="")=>{const i={};i.background=t?.listBackground??"";const o=(0,M.Zy)(t.listBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t?.listPadding,{unit:"px"});return{...i,...(0,Eb.qD)({attributeValue:t?.listWidth,attributeObjectKey:"value",
6228 +isResponsive:!0,hasUnit:!0,defaultValue:33,property:"width",unitDefaultValue:"%",device:e}),background:(0,Hs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},M2=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},x2=(t,e="")=>{const i={};i.color=t?.titleColor??"";const o=(0,M.Zy)(t.titleTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.titleTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.titleTextShadow)}},k2=(t,e="")=>{const i={};i.color=t?.desColor??"";const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"",l=(0,M.Zy)(t.desTextStroke,{strokeWidthUnit:"px"});return{...i,color:(0,Hs.qD)(t?.desColor),...(0,U.qD)(o,e,a),...(0,Mc.qD)(l,e),...(0,fc.qD)(t?.desTextShadow)}},v2=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{
6229 +unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.listBoxShadow,e)}},_2=(t,e="")=>{const i={};return i["list-style"]=t?.listStyle??"disc",{...i}},R2=(t,e="")=>{const{notFoundAlignment:i}=t,o={};o.color=t?.notFoundColor??"";const a=(0,M.Zy)(t.notFoundTypography,{weight:"400"}),l=t.typographyGlobal?t.typographyGlobal:"";return i[`value${e}`]&&(o["text-align"]=i[`value${e}`]),{...o,color:(0,Hs.qD)(t?.notFoundColor),...(0,U.qD)(a,e,l)}};function S2(t){const{attributes:e,setAttributes:i}=t,{upvoteBorder:o,padding:a,upvoteBackgroundH:n,upvoteColorH:s,countAlignment:r,show_label:b,show_icon:c,label_single:d,label_plural:u,wrapper_class:p}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Content Setting","ablocks"),children:[(0,I.jsx)(Kl,{label:(0,L.__)("Wrapper Class","ablocks"),attributeName:"wrapper_class",attributeValue:p,setAttributes:i
6218 6230 }),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeName:"show_icon",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Label","ablocks"),attributeName:"show_label",attributeValue:b,setAttributes:i,isResponsive:!1}),b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Label (Single)","ablocks"),attributeName:"label_single",attributeValue:d,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Label (Plural)","ablocks"),attributeName:"label_plural",attributeValue:u,setAttributes:i})]})]}),(0,I.jsxs)(V,{initialOpen:!1,title:(0,L.__)("Claim Count Setting","ablocks"),children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"countAlignment",attributeValue:r,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),(0,
6219 -I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:e?.upvoteNumberColor,attributeName:"upvoteNumberColor",setAttributes:i})})]})]})})})}(0,M.xV)(O0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(O0.UU,{title:(0,L.__)("Claim List","ablocks"),attributes:O0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-item",X0(i),X0(i,"Tablet"),X0(i,"Mobile"),t.customDeviceMap(t=>X0(i,t))),
6220 -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list",B0(i),B0(i,"Tablet"),B0(i,"Mobile"),t.customDeviceMap(t=>B0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-title",E0(i),E0(i,"Tablet"),E0(i,"Mobile"),t.customDeviceMap(t=>E0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-date",F0(i),F0(i,"Tablet"),F0(i,"Mobile"),t.customDeviceMap(t=>F0(i,t))),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--claim__list",$0(i),$0(i,"Tablet"),$0(i,"Mobile"),t.customDeviceMap(t=>$0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-item:hover",q0(i),q0(i,"Tablet"),q0(i,"Mobile"),t.customDeviceMap(t=>q0(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__not-found",G0(i),G0(i,"Tablet"),G0(i,"Mobile"),t.customDeviceMap(t=>G0(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(V0,{...t}),(0,I.jsx)(Y0,{...t})]})},save:()=>null}),Z0.propTypes={};const K0={
6231 +I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:e?.upvoteNumberColor,attributeName:"upvoteNumberColor",setAttributes:i})})]})]})})})}(0,M.xV)(y2.UU,"","easy_content_manager")&&(0,o.registerBlockType)(y2.UU,{title:(0,L.__)("Claim List","ablocks"),attributes:y2.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t=2===i?.blockVersion?new A(i,l):new C(i,l),t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-item",H2(i),H2(i,"Tablet"),H2(i,"Mobile"),t.customDeviceMap(t=>H2(i,t))),
6232 +t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list",M2(i),M2(i,"Tablet"),M2(i,"Mobile"),t.customDeviceMap(t=>M2(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-title",x2(i),x2(i,"Tablet"),x2(i,"Mobile"),t.customDeviceMap(t=>x2(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-date",k2(i),k2(i,"Tablet"),k2(i,"Mobile"),t.customDeviceMap(t=>k2(i,t))),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--claim__list",_2(i),_2(i,"Tablet"),_2(i,"Mobile"),t.customDeviceMap(t=>_2(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-item:hover",v2(i),v2(i,"Tablet"),v2(i,"Mobile"),t.customDeviceMap(t=>v2(i,t))),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__not-found",R2(i),R2(i,"Tablet"),R2(i,"Mobile"),t.customDeviceMap(t=>R2(i,t))),t.generateCSS()):""},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(f2,{...t}),(0,I.jsx)(T2,{...t})]})},save:()=>null}),S2.propTypes={};const W2={
6221 6233 UU:"ablocks/ecm-claim-count",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number"},status:{type:"string",default:""},show_label:{type:"boolean",default:!0},show_icon:{type:"boolean",default:!0},label_single:{type:"string",default:"upvote"},label_plural:{type:"string",default:"upvotes"},wrapper_class:{type:"string",default:"claim-count-wrapper"},upvoteNumberColor:{type:"string",default:""},countAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",
6222 6234 topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",
6223 6235 topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",
6224 6236 rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",
@@ -6225,133 +6237,133 @@
6225 6237 imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",
6226 6238 imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,
6227 6239 scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",
6228 6240 skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",
6229 -animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function J0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{
6230 -blockId:o,name:K0.UU,attributes:e,typography:[],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/ecm-claim-count",httpMethod:"POST",attributes:e})})})})}J0.propTypes={};const Q0=(t,e="")=>{const{countAlignment:i={}}=t,o={display:"flex"};return i?.[`value${e}`]&&(o["align-items"]=i[`value${e}`]),i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},t2=(t,e="")=>{const i={};return i.color=t?.upvoteNumberColor??"",{...i,color:(0,Hs.qD)(t?.upvoteNumberColor)}};(0,M.xV)(K0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(K0.UU,{title:(0,L.__)("Claim Count","ablocks"),attributes:K0.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
6231 -;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}}.ablocks-block--ecm-claim-count",Q0(i),Q0(i,"Tablet"),Q0(i,"Mobile"),t.customDeviceMap(t=>Q0(i,t)));const e=i?.wrapper_class||"claim-count-wrapper";return t.addClassStyles(`{{WRAPPER}} .${e}`,t2(i),t2(i,"Tablet"),t2(i,"Mobile"),t.customDeviceMap(t=>t2(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Z0,{...t}),(0,I.jsx)(J0,{...t})]})},save:()=>null});const e2=window.wp.richText,i2=()=>{},o2=[{label:(0,L.__)("Post","ablocks"),value:"post",options:[{label:(0,L.__)("Post Custom Field","ablocks"),value:"post-custom-field"},{label:(0,L.__)("Post Date","ablocks"),value:"post-date"},{label:(0,L.__)("Post Excerpt","ablocks"),value:"post-excerpt"},{label:(0,L.__)("Post ID","ablocks"),value:"post-id"},{label:(0,
6232 -L.__)("Post Terms","ablocks"),value:"post-terms"},{label:(0,L.__)("Post Time","ablocks"),value:"post-time"},{label:(0,L.__)("Post Title","ablocks"),value:"post-title"}]},{label:(0,L.__)("Featured Image Data","ablocks"),value:"featured-image-media",options:[{label:(0,L.__)("Featured Image Title","ablocks"),value:"featured-image-title"},{label:(0,L.__)("Featured Image Alt","ablocks"),value:"featured-image-alt"},{label:(0,L.__)("Featured Image Caption","ablocks"),value:"featured-image-caption"},{label:(0,L.__)("Featured Image Description","ablocks"),value:"featured-image-description"},{label:(0,L.__)("Featured Image File URL","ablocks"),value:"featured-image-file-url"},{label:(0,L.__)("Featured Image Attachment URL","ablocks"),value:"featured-image-attachment-url"}]},{label:(0,L.__)("Author","ablocks"),value:"author",options:[{label:(0,L.__)("Author Name","ablocks"),value:"author-name"},{label:(0,L.__)("Author ID","ablocks"),value:"author-id"},{label:(0,
6233 -L.__)("Author Posts Count","ablocks"),value:"author-posts-count"},{label:(0,L.__)("Author Posts URL","ablocks"),value:"author-posts-url"},{label:(0,L.__)("Author Profile Picture URL","ablocks"),value:"author-profile-picture-url"},{label:(0,L.__)("Author Bio","ablocks"),value:"author-bio"},{label:(0,L.__)("Author Email","ablocks"),value:"author-email"},{label:(0,L.__)("Author Website","ablocks"),value:"author-website"},{label:(0,L.__)("Author Meta","ablocks"),value:"author-meta"},{label:(0,L.__)("Author First Name","ablocks"),value:"author-first-name"},{label:(0,L.__)("Author Last Name","ablocks"),value:"author-last-name"}]},{label:(0,L.__)("Comments","ablocks"),value:"comments",options:[{label:(0,L.__)("Comments Number","ablocks"),value:"comments-number"}]}],a2=[{label:(0,L.__)("Post Published","ablocks"),value:"post_published"},{label:(0,L.__)("Post Modified","ablocks"),value:"post_modified"}],l2=Date.now(),n2=[{value:"",label:(0,L.__)("default","ablocks")},{value:"F j, Y",label:(0,
6234 -M.r6)(l2,"F j, Y")},{value:"Y-m-d",label:(0,M.r6)(l2,"Y-m-d")},{value:"m/d/Y",label:(0,M.r6)(l2,"m/d/Y")},{value:"d/m/Y",label:(0,M.r6)(l2,"d/m/Y")},{value:"custom",label:(0,L.__)("custom","ablocks")}],s2=[{value:"",label:(0,L.__)("default","ablocks")},{value:"g:i a",label:(0,M.r6)(l2,"g:i a")},{value:"g:i A",label:(0,M.r6)(l2,"g:i A")},{value:"H:i",label:(0,M.r6)(l2,"H:i")},{value:"custom",label:(0,L.__)("Custom","ablocks")}],r2=t=>{const{attributeName:e,attributeValue:i,setAttributes:o,isForTime:a}=t,{source:l,dateTimeType:n,dateTimeFormat:s,customDateTimeFormat:r,group_item:b,DateFormatOfCurrentDateTime:c,customFormatOfCurrentDateTime:d,TimeFormatOfCurrentDateTime:u}=i;let p="post-time"===b,m=s2,h=s,g=r,f="dateTimeFormat",y="customDateTimeFormat";const T="current-date-time"===l;T&&(p=a,g=d,y="customFormatOfCurrentDateTime",p?(h=u,f="TimeFormatOfCurrentDateTime",m=[...s2],m.pop()):(h=c,f="DateFormatOfCurrentDateTime"));const H=p?m:n2,M=T?p?(0,L.__)("Time Format","ablocks"):(0,
6235 -L.__)("Date Format","ablocks"):(0,L.__)("Format","ablocks");return(0,I.jsxs)(I.Fragment,{children:[!T&&(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),isResponsive:!1,options:a2,attributeValue:n,onChangeHandler:t=>o({[e]:{...i,dateTimeType:t}})}),(0,I.jsx)(Ut,{label:M,isResponsive:!1,options:H,attributeValue:h,onChangeHandler:t=>o({[e]:{...i,[f]:t}})}),"custom"===h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Custom Format","ablocks"),attributeValue:g,disableDynamicContent:!0,onChangeHandler:t=>{o({[e]:{...i,[y]:t}})}}),(0,I.jsx)("a",{href:"https://wordpress.org/documentation/article/customize-date-and-time-format/",className:"ablocks-settings-help-link ablocks-settings-help-link-date-time-doc",target:"_blank",rel:"noreferrer",children:(0,L.__)("Documentation on date and time formatting","ablocks")})]})]})},b2="ablocks/dynamic-content-store",c2=t=>{
6236 -const{attributeName:e,attributeValue:i,setAttributes:o,context:l}=t,{metaKey:n,source_type:s}=i,b=l?.postType?l?.postType:s||(0,r.select)("core/editor").getCurrentPostType(),c=(0,r.useSelect)(t=>t(b2).getMetaFields()?.[b],[b]),d=c?.data,u=!d&&!!c?.isRequestBeingProcessed,p=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!b||d||u||p.current===b)return;p.current=b,(0,r.dispatch)(b2).setMetaFields({[b]:{isRequestBeingProcessed:!0}});const t={isRequestBeingProcessed:!1},e=()=>(0,r.dispatch)(b2).setMetaFields({[b]:t});(0,M.In)({action:"ablocks/get_all_meta_keys_for_post_type",post_type:b}).then(i=>{i?.data?.success&&(t.data=i.data.data),e()},e)},[b,d,u]);const m=(0,a.useMemo)(()=>(d||[]).map(t=>({label:t,value:t})),[d]),h=n&&m.find(t=>t.value===n)||null,g=t=>o({[e]:{...i,metaKey:t||""}});return u?(0,I.jsx)(N.Spinner,{}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-dynamic-tags-react-select-wrapper",children:[(0,I.jsx)(at,{label:(0,L.__)("Key","ablocks"),isResponsive:!1
6237 -}),(0,I.jsx)(Wl,{className:"ablocks-dynamic-tags-react-select",isSearchable:!0,isClearable:!0,placeholder:(0,L.__)("Select key","ablocks"),noOptionsMessage:()=>(0,L.__)("No keys found","ablocks"),options:m,value:h,onChange:t=>g(t?.value)})]}),!h&&(0,I.jsx)(Kl,{label:(0,L.__)("Custom Key","ablocks"),attributeValue:n,onChangeHandler:g})]})},d2=()=>{},u2=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(void 0),{attributeName:n,attributeValue:s,setAttributes:b}=t,{taxonomy:c,termsSeparator:d,source_type:u}=s,p=u||(0,r.select)("core/editor").getCurrentPostType(),m=(0,a.useCallback)(t=>{t&&i([{label:"",value:void 0},...t||[]])},[p]),h=(0,a.useCallback)(t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({[p]:t}),m(t.data),l(!1)},[m]);return(0,a.useEffect)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getTaxonomies();if(t?.[p]?.data)m(t[p].data);else if(!t?.[p]?.isRequestBeingProcessed){(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({[p]:{
6238 -isRequestBeingProcessed:!0}}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_taxonomies_data",post_type:p}).then(e=>{e?.data?.success&&(t.data=e.data.data),h(t)},e=>{h(t),console.log("error fetching taxonomies",{e})})}},[h]),(0,a.useEffect)(()=>{if(!(e||[]).some(t=>"post_tag"===t.value))return d2;c||b({dynamicContentAttribute:{...s,taxonomy:"post_tag"}})},[c,e]),o?(0,I.jsx)(N.Spinner,{}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Taxonomy","ablocks"),isResponsive:!1,options:e||[],attributeValue:c,onChangeHandler:t=>b({[n]:{...s,taxonomy:t||""}})}),(0,I.jsx)(Kl,{label:(0,L.__)("Separator","ablocks"),attributeValue:d,onChangeHandler:t=>{b({[n]:{...s,termsSeparator:t}})}})]})};let p2;const m2=t=>{const{attributeValue:e,setAttributes:i,attributeName:o}=t,[l,n]=(0,a.useState)((0,r.select)("ablocks/dynamic-content-store").getRecentPosts()||[]),[s,b]=(0,a.useState)(!1),[c,d]=(0,a.useState)(""),[u,p]=(0,
6239 -a.useState)(""),{source_id:m,source_type:h}=e,{record:g,isResolving:f}=(0,zl.useEntityRecord)("postType",h,m);(0,a.useEffect)(()=>{const t=setTimeout(()=>{p(c)},800);return()=>clearTimeout(t)},[c]);const y=(0,a.useCallback)(async()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getRecentPosts();if(u){if(l.some(t=>t.label.toLowerCase().includes(u.toLowerCase())))return!1}else if(l.length>0||t)return!1;if(p2===u)return!1;p2=u,b(!0),(0,M.In)({action:"ablocks/search_posts",query:encodeURIComponent(u)}).then(t=>{if(t?.data?.success){const e=[...l],i=(t.data.data||[]).filter(t=>{const i=e.findIndex(e=>e.value==t.ID);return-1===i||(e.splice(i,1),!1)}).map(t=>({value:t.ID,label:(0,Cl.decodeEntities)(t.post_title),post_type:t.post_type})),o=[...e,...i];""===u&&(0,r.dispatch)("ablocks/dynamic-content-store").setRecentPosts(o),(0,r.dispatch)("ablocks/dynamic-content-store").setRecentPosts(o),n(o)}b(!1)},t=>{console.log("error searching post",{e:t}),b(!1)})},[u,l]);(0,a.useEffect)(()=>{
6240 -y()},[y]);const T=g?{value:String(g.id),label:(0,Cl.decodeEntities)(g.title?.rendered||""),post_type:g.type}:null;return(0,I.jsxs)("div",{className:"dynamic-post-type-search",children:[(0,I.jsx)(at,{label:(0,L.__)("Search Posts","ablocks"),isResponsive:!1}),(0,I.jsx)(Wl,{value:T,className:"dynamic-post-type-select",isSearchable:!0,isLoading:s||f,placeholder:(0,L.__)("Search Posts…","ablocks"),onInputChange:d,onChange:t=>{const a={[o]:{...e,source_id:t?t.value:"",source_type:t?t.post_type:""}};i(a)},options:l,menuClassName:"ablocks-post-search-menu",formatOptionLabel:Al,noOptionsMessage:()=>(0,I.jsx)("span",{className:"ablocks-post-search-message",children:(0,L.__)("No posts found","ablocks")}),loadingMessage:()=>(0,I.jsx)("span",{className:"ablocks-post-search-message",children:(0,L.__)("Searching…","ablocks")}),filterOption:(t,e)=>t.data.label.toLowerCase().includes(e.toLowerCase())})]})},h2=[{label:(0,L.__)("Current","ablocks"),value:"current"},{label:(0,L.__)("Post Type","ablocks"),
6241 -value:"post-type"},{label:(0,L.__)("Site Tagline","ablocks"),value:"site-tagline"},{label:(0,L.__)("Site Title","ablocks"),value:"site-title"},{label:(0,L.__)("Current Date Time","ablocks"),value:"current-date-time"}],g2=t=>{const{attributeName:e,attributeValue:i,setAttributes:o,context:l}=t,{group_item:n,excerptWords:s,source:r,source_id:b,includeContext:c,archiveMetaKey:d,authorMetaKey:u,DateFormatOfCurrentDateTime:p}=i;return(0,a.useEffect)(()=>{r||o({[e]:{...i,source:"current"}})},[r,e,i,o]),(0,I.jsxs)("div",{className:"ablocks-react-select-control-wrapper",children:[(0,I.jsx)(Ut,{label:(0,L.__)("Data Source","ablocks"),isResponsive:!1,options:h2,attributeValue:r,onChangeHandler:t=>o({[e]:{...i,source:t}})}),("current"===r||"post-type"===r)&&(0,I.jsxs)(I.Fragment,{children:["post-type"===r&&(0,I.jsx)(m2,{...t}),(0,I.jsxs)("div",{className:"ablocks-dynamic-tags-react-select-wrapper",children:[(0,I.jsx)(at,{label:(0,L.__)("Dynamic Tag","ablocks"),isResponsive:!1}),(0,I.jsx)(Wl,{
6242 -className:"ablocks-dynamic-tags-react-select",isSearchable:!0,placeholder:(0,L.__)("Dynamic Tags","ablocks"),options:o2,value:(t=>{let e=null;for(const i of o2){const o=i.options.find(e=>e.value===t);if(o){e=o;break}}return e})(i.group_item),onChange:t=>{let a=null;for(const e of o2)if(e.options.find(e=>e.value===t?.value)){a=e;break}const l={[e]:{...i,group:a?.value,group_item:t?.value}};o(l)}})]}),(()=>{if("post-type"===r&&!b)return(0,I.jsx)(I.Fragment,{});switch(n){case"post-custom-field":return(0,I.jsx)(c2,{...t,context:l});case"post-date":case"post-time":return(0,I.jsx)(r2,{...t});case"post-excerpt":return(0,I.jsx)(_t,{label:(0,L.__)("Max Number Of Words","ablocks"),min:1,max:100,step:1,isInline:!1,isResponsive:!1,attributeValue:s,onChangeHandler:t=>{o({[e]:{...i,excerptWords:t}})}});case"post-terms":return(0,I.jsx)(u2,{...t});case"author-meta":return(0,I.jsx)(Kl,{label:(0,L.__)("Meta Key","ablocks"),attributeValue:u,onChangeHandler:t=>{o({[e]:{...i,authorMetaKey:t}})}})}})()]
6243 -}),(()=>{switch(r){case"current-date-time":return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(r2,{...t}),"custom"!==p&&(0,I.jsx)(r2,{...t,isForTime:!0})]});case"archive-title":return(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Include Context","ablocks"),attributeValue:c,onChangeHandler:t=>{o({[e]:{...i,includeContext:t}})}});case"archive-meta":return(0,I.jsx)(Kl,{label:(0,L.__)("Key","ablocks"),attributeValue:d,onChangeHandler:t=>{o({[e]:{...i,archiveMetaKey:t||""}})}})}})(),(0,I.jsx)(Kl,{label:(0,L.__)("Fallback","ablocks"),attributeValue:i.fallback,disableDynamicContent:!0,onChangeHandler:t=>{o({[e]:{...i,fallback:t}})}})]})},f2={source:"current",source_type:"",source_id:"",group_item:"",fallback:"",excerptWords:"",dateTimeType:"",dateTimeFormat:"",customDateTimeFormat:"",taxonomy:"",termsSeparator:", ",metaKey:"",includeContext:"",archiveMetaKey:""},y2=t=>{
6244 -const{onClose:e,onApply:i,settings:o,setSettings:l,isProcessingData:n,value:s,isActive:r}=t,{source:b,source_id:c,group_item:d}=o,[u,p]=(0,a.useState)(!1),m=(0,a.useCallback)(()=>s.activeFormats.find(t=>"ablocks/dynamic-content"===t.type)?.attributes||{},[s.start,s.end]);return(0,a.useEffect)(()=>{const{source:t="",field:e=""}=m(),i={...f2};if(i.source=t,"current-date-time"===t){const t=e.split("|");i.TimeFormatOfCurrentDateTime=t?.[0]||"",i.DateFormatOfCurrentDateTime=t?.[1]||"",i.customFormatOfCurrentDateTime=t?.[2]||"",i.fallback=t?.[3]||""}else{const o=t.match(/^(current|post-type)/i);if(o){const e=o[0];if(i.source=e,"post-type"===e){const[,e,o]=t.split("|");e&&(i.source_type=e),o&&(i.source_id=o)}}const[a,l,...n]=e.split("|");if(i.group_item=a||"",i.fallback=l||"",!t||o)switch(a){case"post-custom-field":i.metaKey=n[0]||"";break;case"post-date":case"post-time":i.dateTimeType=n[0]||"",i.dateTimeFormat=n[1]||"",i.customDateTimeFormat=n[2]||"";break;case"post-excerpt":
6245 -i.excerptWords=n[0]?parseInt(n[0]):"";break;case"post-terms":i.taxonomy=n[0]||"",i.termsSeparator=n[1]||""}}return l({dynamicContentAttribute:i}),()=>{l({dynamicContentAttribute:f2})}},[m]),(0,a.useEffect)(()=>{const t=b.match(/^(current|post-type)/i);if(!b||t&&!b.includes("current-")){const e=t?.[0];let i=!1;i="post-type"===e?!(c&&d):!d,p(i)}else p(!1)},[b,c,d]),(0,I.jsxs)(N.Popover,{className:"ablocks-richtext-dynamic-content--settings-popover",onClose:e,children:[n?(0,I.jsx)(N.Spinner,{}):(0,I.jsx)(g2,{settings:o,setSettings:l,attributeName:"dynamicContentAttribute",attributeValue:o,setAttributes:l}),!u&&(0,I.jsx)(N.Button,{isPrimary:!0,onClick:()=>{i()},children:r?(0,L.__)("Update","ablocks"):(0,L.__)("Apply","ablocks")})]})};(0,e2.registerFormatType)("ablocks/dynamic-content",{title:(0,L.__)("Dynamic Content","ablocks"),tagName:"span",className:"ablocks-richtext-dynamic-content",edit:t=>{const{isActive:e,onChange:i,value:o}=t,[l,n]=(0,a.useState)(!1),[s,b]=(0,a.useState)({
6246 -dynamicContentAttribute:f2}),{data:c,isProcessingData:d}=(({attributes:t})=>{const[e,i]=(0,a.useState)(null),[o,l]=(0,a.useState)(!1),{dynamicContentAttribute:n}=t,{source:s,source_type:b,source_id:c,group_item:d,fallback:u,excerptWords:p,taxonomy:m,termsSeparator:h,metaKey:g,includeContext:f,dateTimeType:y,dateTimeFormat:T,customDateTimeFormat:H,archiveMetaKey:x,authorMetaKey:k,DateFormatOfCurrentDateTime:v,customFormatOfCurrentDateTime:_,TimeFormatOfCurrentDateTime:R}=n||{},S=(0,r.select)("core/editor").getCurrentPostId(),W=(0,r.select)("core/editor").getCurrentPostType(),P="post-type"===s||"current"===s?"postType":s,U=b||W,j=c||S,{record:w,isResolving:z,hasResolved:C}=(0,zl.useEntityRecord)(P,U,j),A=(0,a.useCallback)(t=>{i(t?`${t}`:u)},[u]),D=(0,a.useCallback)(t=>{const e=(t||[]).map(t=>t.name).join(h);A(e)},[A,h]),N=(0,a.useCallback)(()=>{if(!m)return i2;const t=(0,r.select)("ablocks/dynamic-content-store").getPostTermsRelations(),e=t?.[j]?.[m];if(e)return D(e),i2;l(!0),(0,M.In)({
6247 -action:"ablocks/get_terms_for_post",post_id:j,taxonomy:m}).then(t=>{const e=t?.data?.data;(0,r.dispatch)("ablocks/dynamic-content-store").setPostTermsRelations(j,m,e),D(e),l(!1)},t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({isRequestBeingProcessed:!1}),l(!1)})},[m,j,D]),I=(0,a.useCallback)(()=>{if(!g)return A(!1),i2;const t=(0,r.select)("ablocks/dynamic-content-store").getPostMetaRelations(),e=t?.[j]?.[g],i=e?.value;return i||""===i?(A(i),i2):(l(!0),e?.isRequestBeingProcessed?i2:((0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[g]:{isRequestBeingProcessed:!0}}),void(0,M.In)({action:"ablocks/get_post_meta",post_id:j,meta_key:g}).then(t=>{const e=t?.data?.data;A(e),(0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[g]:{value:e,isRequestBeingProcessed:!1}}),l(!1)},t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[g]:{value:"",isRequestBeingProcessed:!1}}),l(!1),
6241 +animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function P2(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sP,{
6242 +blockId:o,name:W2.UU,attributes:e,typography:[],children:(0,I.jsx)(rW,{children:(0,I.jsx)(sW(),{block:"ablocks/ecm-claim-count",httpMethod:"POST",attributes:e})})})})}P2.propTypes={};const U2=(t,e="")=>{const{countAlignment:i={}}=t,o={display:"flex"};return i?.[`value${e}`]&&(o["align-items"]=i[`value${e}`]),i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},j2=(t,e="")=>{const i={};return i.color=t?.upvoteNumberColor??"",{...i,color:(0,Hs.qD)(t?.upvoteNumberColor)}};(0,M.xV)(W2.UU,"","easy_content_manager")&&(0,o.registerBlockType)(W2.UU,{title:(0,L.__)("Claim Count","ablocks"),attributes:W2.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null
6243 +;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}}.ablocks-block--ecm-claim-count",U2(i),U2(i,"Tablet"),U2(i,"Mobile"),t.customDeviceMap(t=>U2(i,t)));const e=String(i?.wrapper_class||"").replace(/%[a-fA-F0-9]{2}/g,"").replace(/[^A-Za-z0-9_-]/g,"")||"claim-count-wrapper";return t.addClassStyles(`{{WRAPPER}} .${e}`,j2(i),j2(i,"Tablet"),j2(i,"Mobile"),t.customDeviceMap(t=>j2(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(S2,{...t}),(0,I.jsx)(P2,{...t})]})},save:()=>null});const w2=window.wp.richText,z2=()=>{},C2=[{label:(0,L.__)("Post","ablocks"),value:"post",options:[{label:(0,L.__)("Post Custom Field","ablocks"),value:"post-custom-field"},{label:(0,L.__)("Post Date","ablocks"),value:"post-date"},{label:(0,L.__)("Post Excerpt","ablocks"),value:"post-excerpt"},{label:(0,
6244 +L.__)("Post ID","ablocks"),value:"post-id"},{label:(0,L.__)("Post Terms","ablocks"),value:"post-terms"},{label:(0,L.__)("Post Time","ablocks"),value:"post-time"},{label:(0,L.__)("Post Title","ablocks"),value:"post-title"}]},{label:(0,L.__)("Featured Image Data","ablocks"),value:"featured-image-media",options:[{label:(0,L.__)("Featured Image Title","ablocks"),value:"featured-image-title"},{label:(0,L.__)("Featured Image Alt","ablocks"),value:"featured-image-alt"},{label:(0,L.__)("Featured Image Caption","ablocks"),value:"featured-image-caption"},{label:(0,L.__)("Featured Image Description","ablocks"),value:"featured-image-description"},{label:(0,L.__)("Featured Image File URL","ablocks"),value:"featured-image-file-url"},{label:(0,L.__)("Featured Image Attachment URL","ablocks"),value:"featured-image-attachment-url"}]},{label:(0,L.__)("Author","ablocks"),value:"author",options:[{label:(0,L.__)("Author Name","ablocks"),value:"author-name"},{label:(0,L.__)("Author ID","ablocks"),
6245 +value:"author-id"},{label:(0,L.__)("Author Posts Count","ablocks"),value:"author-posts-count"},{label:(0,L.__)("Author Posts URL","ablocks"),value:"author-posts-url"},{label:(0,L.__)("Author Profile Picture URL","ablocks"),value:"author-profile-picture-url"},{label:(0,L.__)("Author Bio","ablocks"),value:"author-bio"},{label:(0,L.__)("Author Email","ablocks"),value:"author-email"},{label:(0,L.__)("Author Website","ablocks"),value:"author-website"},{label:(0,L.__)("Author Meta","ablocks"),value:"author-meta"},{label:(0,L.__)("Author First Name","ablocks"),value:"author-first-name"},{label:(0,L.__)("Author Last Name","ablocks"),value:"author-last-name"}]},{label:(0,L.__)("Comments","ablocks"),value:"comments",options:[{label:(0,L.__)("Comments Number","ablocks"),value:"comments-number"}]}],A2=[{label:(0,L.__)("Post Published","ablocks"),value:"post_published"},{label:(0,L.__)("Post Modified","ablocks"),value:"post_modified"}],L2=Date.now(),D2=[{value:"",label:(0,L.__)("default","ablocks")
6246 +},{value:"F j, Y",label:(0,M.r6)(L2,"F j, Y")},{value:"Y-m-d",label:(0,M.r6)(L2,"Y-m-d")},{value:"m/d/Y",label:(0,M.r6)(L2,"m/d/Y")},{value:"d/m/Y",label:(0,M.r6)(L2,"d/m/Y")},{value:"custom",label:(0,L.__)("custom","ablocks")}],N2=[{value:"",label:(0,L.__)("default","ablocks")},{value:"g:i a",label:(0,M.r6)(L2,"g:i a")},{value:"g:i A",label:(0,M.r6)(L2,"g:i A")},{value:"H:i",label:(0,M.r6)(L2,"H:i")},{value:"custom",label:(0,L.__)("Custom","ablocks")}],I2=t=>{const{attributeName:e,attributeValue:i,setAttributes:o,isForTime:a}=t,{source:l,dateTimeType:n,dateTimeFormat:s,customDateTimeFormat:r,group_item:b,DateFormatOfCurrentDateTime:c,customFormatOfCurrentDateTime:d,TimeFormatOfCurrentDateTime:u}=i;let p="post-time"===b,m=N2,h=s,g=r,f="dateTimeFormat",y="customDateTimeFormat";const T="current-date-time"===l;T&&(p=a,g=d,y="customFormatOfCurrentDateTime",p?(h=u,f="TimeFormatOfCurrentDateTime",m=[...N2],m.pop()):(h=c,f="DateFormatOfCurrentDateTime"));const H=p?m:D2,M=T?p?(0,
6247 +L.__)("Time Format","ablocks"):(0,L.__)("Date Format","ablocks"):(0,L.__)("Format","ablocks");return(0,I.jsxs)(I.Fragment,{children:[!T&&(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),isResponsive:!1,options:A2,attributeValue:n,onChangeHandler:t=>o({[e]:{...i,dateTimeType:t}})}),(0,I.jsx)(Ut,{label:M,isResponsive:!1,options:H,attributeValue:h,onChangeHandler:t=>o({[e]:{...i,[f]:t}})}),"custom"===h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Custom Format","ablocks"),attributeValue:g,disableDynamicContent:!0,onChangeHandler:t=>{o({[e]:{...i,[y]:t}})}}),(0,I.jsx)("a",{href:"https://wordpress.org/documentation/article/customize-date-and-time-format/",className:"ablocks-settings-help-link ablocks-settings-help-link-date-time-doc",target:"_blank",rel:"noreferrer",children:(0,L.__)("Documentation on date and time formatting","ablocks")})]})]})},V2="ablocks/dynamic-content-store",O2=t=>{
6248 +const{attributeName:e,attributeValue:i,setAttributes:o,context:l}=t,{metaKey:n,source_type:s}=i,b=l?.postType?l?.postType:s||(0,r.select)("core/editor").getCurrentPostType(),c=(0,r.useSelect)(t=>t(V2).getMetaFields()?.[b],[b]),d=c?.data,u=!d&&!!c?.isRequestBeingProcessed,p=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!b||d||u||p.current===b)return;p.current=b,(0,r.dispatch)(V2).setMetaFields({[b]:{isRequestBeingProcessed:!0}});const t={isRequestBeingProcessed:!1},e=()=>(0,r.dispatch)(V2).setMetaFields({[b]:t});(0,M.In)({action:"ablocks/get_all_meta_keys_for_post_type",post_type:b}).then(i=>{i?.data?.success&&(t.data=i.data.data),e()},e)},[b,d,u]);const m=(0,a.useMemo)(()=>(d||[]).map(t=>({label:t,value:t})),[d]),h=n&&m.find(t=>t.value===n)||null,g=t=>o({[e]:{...i,metaKey:t||""}});return u?(0,I.jsx)(N.Spinner,{}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-dynamic-tags-react-select-wrapper",children:[(0,I.jsx)(at,{label:(0,L.__)("Key","ablocks"),isResponsive:!1
6249 +}),(0,I.jsx)(Wl,{className:"ablocks-dynamic-tags-react-select",isSearchable:!0,isClearable:!0,placeholder:(0,L.__)("Select key","ablocks"),noOptionsMessage:()=>(0,L.__)("No keys found","ablocks"),options:m,value:h,onChange:t=>g(t?.value)})]}),!h&&(0,I.jsx)(Kl,{label:(0,L.__)("Custom Key","ablocks"),attributeValue:n,onChangeHandler:g})]})},Y2=()=>{},X2=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(void 0),{attributeName:n,attributeValue:s,setAttributes:b}=t,{taxonomy:c,termsSeparator:d,source_type:u}=s,p=u||(0,r.select)("core/editor").getCurrentPostType(),m=(0,a.useCallback)(t=>{t&&i([{label:"",value:void 0},...t||[]])},[p]),h=(0,a.useCallback)(t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({[p]:t}),m(t.data),l(!1)},[m]);return(0,a.useEffect)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getTaxonomies();if(t?.[p]?.data)m(t[p].data);else if(!t?.[p]?.isRequestBeingProcessed){(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({[p]:{
6250 +isRequestBeingProcessed:!0}}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_taxonomies_data",post_type:p}).then(e=>{e?.data?.success&&(t.data=e.data.data),h(t)},e=>{h(t),console.log("error fetching taxonomies",{e})})}},[h]),(0,a.useEffect)(()=>{if(!(e||[]).some(t=>"post_tag"===t.value))return Y2;c||b({dynamicContentAttribute:{...s,taxonomy:"post_tag"}})},[c,e]),o?(0,I.jsx)(N.Spinner,{}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Taxonomy","ablocks"),isResponsive:!1,options:e||[],attributeValue:c,onChangeHandler:t=>b({[n]:{...s,taxonomy:t||""}})}),(0,I.jsx)(Kl,{label:(0,L.__)("Separator","ablocks"),attributeValue:d,onChangeHandler:t=>{b({[n]:{...s,termsSeparator:t}})}})]})};let B2;const E2=t=>{const{attributeValue:e,setAttributes:i,attributeName:o}=t,[l,n]=(0,a.useState)((0,r.select)("ablocks/dynamic-content-store").getRecentPosts()||[]),[s,b]=(0,a.useState)(!1),[c,d]=(0,a.useState)(""),[u,p]=(0,
6251 +a.useState)(""),{source_id:m,source_type:h}=e,{record:g,isResolving:f}=(0,zl.useEntityRecord)("postType",h,m);(0,a.useEffect)(()=>{const t=setTimeout(()=>{p(c)},800);return()=>clearTimeout(t)},[c]);const y=(0,a.useCallback)(async()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getRecentPosts();if(u){if(l.some(t=>t.label.toLowerCase().includes(u.toLowerCase())))return!1}else if(l.length>0||t)return!1;if(B2===u)return!1;B2=u,b(!0),(0,M.In)({action:"ablocks/search_posts",query:encodeURIComponent(u)}).then(t=>{if(t?.data?.success){const e=[...l],i=(t.data.data||[]).filter(t=>{const i=e.findIndex(e=>e.value==t.ID);return-1===i||(e.splice(i,1),!1)}).map(t=>({value:t.ID,label:(0,Cl.decodeEntities)(t.post_title),post_type:t.post_type})),o=[...e,...i];""===u&&(0,r.dispatch)("ablocks/dynamic-content-store").setRecentPosts(o),(0,r.dispatch)("ablocks/dynamic-content-store").setRecentPosts(o),n(o)}b(!1)},t=>{console.log("error searching post",{e:t}),b(!1)})},[u,l]);(0,a.useEffect)(()=>{
6252 +y()},[y]);const T=g?{value:String(g.id),label:(0,Cl.decodeEntities)(g.title?.rendered||""),post_type:g.type}:null;return(0,I.jsxs)("div",{className:"dynamic-post-type-search",children:[(0,I.jsx)(at,{label:(0,L.__)("Search Posts","ablocks"),isResponsive:!1}),(0,I.jsx)(Wl,{value:T,className:"dynamic-post-type-select",isSearchable:!0,isLoading:s||f,placeholder:(0,L.__)("Search Posts…","ablocks"),onInputChange:d,onChange:t=>{const a={[o]:{...e,source_id:t?t.value:"",source_type:t?t.post_type:""}};i(a)},options:l,menuClassName:"ablocks-post-search-menu",formatOptionLabel:Al,noOptionsMessage:()=>(0,I.jsx)("span",{className:"ablocks-post-search-message",children:(0,L.__)("No posts found","ablocks")}),loadingMessage:()=>(0,I.jsx)("span",{className:"ablocks-post-search-message",children:(0,L.__)("Searching…","ablocks")}),filterOption:(t,e)=>t.data.label.toLowerCase().includes(e.toLowerCase())})]})},F2=[{label:(0,L.__)("Current","ablocks"),value:"current"},{label:(0,L.__)("Post Type","ablocks"),
6253 +value:"post-type"},{label:(0,L.__)("Site Tagline","ablocks"),value:"site-tagline"},{label:(0,L.__)("Site Title","ablocks"),value:"site-title"},{label:(0,L.__)("Current Date Time","ablocks"),value:"current-date-time"}],q2=t=>{const{attributeName:e,attributeValue:i,setAttributes:o,context:l}=t,{group_item:n,excerptWords:s,source:r,source_id:b,includeContext:c,archiveMetaKey:d,authorMetaKey:u,DateFormatOfCurrentDateTime:p}=i;return(0,a.useEffect)(()=>{r||o({[e]:{...i,source:"current"}})},[r,e,i,o]),(0,I.jsxs)("div",{className:"ablocks-react-select-control-wrapper",children:[(0,I.jsx)(Ut,{label:(0,L.__)("Data Source","ablocks"),isResponsive:!1,options:F2,attributeValue:r,onChangeHandler:t=>o({[e]:{...i,source:t}})}),("current"===r||"post-type"===r)&&(0,I.jsxs)(I.Fragment,{children:["post-type"===r&&(0,I.jsx)(E2,{...t}),(0,I.jsxs)("div",{className:"ablocks-dynamic-tags-react-select-wrapper",children:[(0,I.jsx)(at,{label:(0,L.__)("Dynamic Tag","ablocks"),isResponsive:!1}),(0,I.jsx)(Wl,{
6254 +className:"ablocks-dynamic-tags-react-select",isSearchable:!0,placeholder:(0,L.__)("Dynamic Tags","ablocks"),options:C2,value:(t=>{let e=null;for(const i of C2){const o=i.options.find(e=>e.value===t);if(o){e=o;break}}return e})(i.group_item),onChange:t=>{let a=null;for(const e of C2)if(e.options.find(e=>e.value===t?.value)){a=e;break}const l={[e]:{...i,group:a?.value,group_item:t?.value}};o(l)}})]}),(()=>{if("post-type"===r&&!b)return(0,I.jsx)(I.Fragment,{});switch(n){case"post-custom-field":return(0,I.jsx)(O2,{...t,context:l});case"post-date":case"post-time":return(0,I.jsx)(I2,{...t});case"post-excerpt":return(0,I.jsx)(_t,{label:(0,L.__)("Max Number Of Words","ablocks"),min:1,max:100,step:1,isInline:!1,isResponsive:!1,attributeValue:s,onChangeHandler:t=>{o({[e]:{...i,excerptWords:t}})}});case"post-terms":return(0,I.jsx)(X2,{...t});case"author-meta":return(0,I.jsx)(Kl,{label:(0,L.__)("Meta Key","ablocks"),attributeValue:u,onChangeHandler:t=>{o({[e]:{...i,authorMetaKey:t}})}})}})()]
6255 +}),(()=>{switch(r){case"current-date-time":return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(I2,{...t}),"custom"!==p&&(0,I.jsx)(I2,{...t,isForTime:!0})]});case"archive-title":return(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Include Context","ablocks"),attributeValue:c,onChangeHandler:t=>{o({[e]:{...i,includeContext:t}})}});case"archive-meta":return(0,I.jsx)(Kl,{label:(0,L.__)("Key","ablocks"),attributeValue:d,onChangeHandler:t=>{o({[e]:{...i,archiveMetaKey:t||""}})}})}})(),(0,I.jsx)(Kl,{label:(0,L.__)("Fallback","ablocks"),attributeValue:i.fallback,disableDynamicContent:!0,onChangeHandler:t=>{o({[e]:{...i,fallback:t}})}})]})},$2={source:"current",source_type:"",source_id:"",group_item:"",fallback:"",excerptWords:"",dateTimeType:"",dateTimeFormat:"",customDateTimeFormat:"",taxonomy:"",termsSeparator:", ",metaKey:"",includeContext:"",archiveMetaKey:""},G2=t=>{
6256 +const{onClose:e,onApply:i,settings:o,setSettings:l,isProcessingData:n,value:s,isActive:r}=t,{source:b,source_id:c,group_item:d}=o,[u,p]=(0,a.useState)(!1),m=(0,a.useCallback)(()=>s.activeFormats.find(t=>"ablocks/dynamic-content"===t.type)?.attributes||{},[s.start,s.end]);return(0,a.useEffect)(()=>{const{source:t="",field:e=""}=m(),i={...$2};if(i.source=t,"current-date-time"===t){const t=e.split("|");i.TimeFormatOfCurrentDateTime=t?.[0]||"",i.DateFormatOfCurrentDateTime=t?.[1]||"",i.customFormatOfCurrentDateTime=t?.[2]||"",i.fallback=t?.[3]||""}else{const o=t.match(/^(current|post-type)/i);if(o){const e=o[0];if(i.source=e,"post-type"===e){const[,e,o]=t.split("|");e&&(i.source_type=e),o&&(i.source_id=o)}}const[a,l,...n]=e.split("|");if(i.group_item=a||"",i.fallback=l||"",!t||o)switch(a){case"post-custom-field":i.metaKey=n[0]||"";break;case"post-date":case"post-time":i.dateTimeType=n[0]||"",i.dateTimeFormat=n[1]||"",i.customDateTimeFormat=n[2]||"";break;case"post-excerpt":
6257 +i.excerptWords=n[0]?parseInt(n[0]):"";break;case"post-terms":i.taxonomy=n[0]||"",i.termsSeparator=n[1]||""}}return l({dynamicContentAttribute:i}),()=>{l({dynamicContentAttribute:$2})}},[m]),(0,a.useEffect)(()=>{const t=b.match(/^(current|post-type)/i);if(!b||t&&!b.includes("current-")){const e=t?.[0];let i=!1;i="post-type"===e?!(c&&d):!d,p(i)}else p(!1)},[b,c,d]),(0,I.jsxs)(N.Popover,{className:"ablocks-richtext-dynamic-content--settings-popover",onClose:e,children:[n?(0,I.jsx)(N.Spinner,{}):(0,I.jsx)(q2,{settings:o,setSettings:l,attributeName:"dynamicContentAttribute",attributeValue:o,setAttributes:l}),!u&&(0,I.jsx)(N.Button,{isPrimary:!0,onClick:()=>{i()},children:r?(0,L.__)("Update","ablocks"):(0,L.__)("Apply","ablocks")})]})};(0,w2.registerFormatType)("ablocks/dynamic-content",{title:(0,L.__)("Dynamic Content","ablocks"),tagName:"span",className:"ablocks-richtext-dynamic-content",edit:t=>{const{isActive:e,onChange:i,value:o}=t,[l,n]=(0,a.useState)(!1),[s,b]=(0,a.useState)({
6258 +dynamicContentAttribute:$2}),{data:c,isProcessingData:d}=(({attributes:t})=>{const[e,i]=(0,a.useState)(null),[o,l]=(0,a.useState)(!1),{dynamicContentAttribute:n}=t,{source:s,source_type:b,source_id:c,group_item:d,fallback:u,excerptWords:p,taxonomy:m,termsSeparator:h,metaKey:g,includeContext:f,dateTimeType:y,dateTimeFormat:T,customDateTimeFormat:H,archiveMetaKey:x,authorMetaKey:k,DateFormatOfCurrentDateTime:v,customFormatOfCurrentDateTime:_,TimeFormatOfCurrentDateTime:R}=n||{},S=(0,r.select)("core/editor").getCurrentPostId(),W=(0,r.select)("core/editor").getCurrentPostType(),P="post-type"===s||"current"===s?"postType":s,U=b||W,j=c||S,{record:w,isResolving:z,hasResolved:C}=(0,zl.useEntityRecord)(P,U,j),A=(0,a.useCallback)(t=>{i(t?`${t}`:u)},[u]),D=(0,a.useCallback)(t=>{const e=(t||[]).map(t=>t.name).join(h);A(e)},[A,h]),N=(0,a.useCallback)(()=>{if(!m)return z2;const t=(0,r.select)("ablocks/dynamic-content-store").getPostTermsRelations(),e=t?.[j]?.[m];if(e)return D(e),z2;l(!0),(0,M.In)({
6259 +action:"ablocks/get_terms_for_post",post_id:j,taxonomy:m}).then(t=>{const e=t?.data?.data;(0,r.dispatch)("ablocks/dynamic-content-store").setPostTermsRelations(j,m,e),D(e),l(!1)},t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({isRequestBeingProcessed:!1}),l(!1)})},[m,j,D]),I=(0,a.useCallback)(()=>{if(!g)return A(!1),z2;const t=(0,r.select)("ablocks/dynamic-content-store").getPostMetaRelations(),e=t?.[j]?.[g],i=e?.value;return i||""===i?(A(i),z2):(l(!0),e?.isRequestBeingProcessed?z2:((0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[g]:{isRequestBeingProcessed:!0}}),void(0,M.In)({action:"ablocks/get_post_meta",post_id:j,meta_key:g}).then(t=>{const e=t?.data?.data;A(e),(0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[g]:{value:e,isRequestBeingProcessed:!1}}),l(!1)},t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[g]:{value:"",isRequestBeingProcessed:!1}}),l(!1),
6248 6260 console.log("error fetching meta field",{e:t})})))},[A,g,j]),V=(0,a.useCallback)(()=>{if(!k)return A("");const t=(0,r.select)("ablocks/dynamic-content-store").getAuthorsMeta();if(t.isRequestBeingProcessed)return l(!0),A("");const e=t?.[w?.author]?.[k];if(e)return A(e);(0,r.dispatch)("ablocks/dynamic-content-store").setAuthorsMeta({isRequestBeingProcessed:!0}),l(!0),(0,M.In)({action:"ablocks/get_author_meta",author_id:w?.author,meta_key:k}).then(t=>{let e=!1;t?.data?.success&&(e=t.data.data),(0,r.dispatch)("ablocks/dynamic-content-store").setAuthorsMeta({authorID:w?.author,[k]:e,isRequestBeingProcessed:!1}),l(!1),A(e||"")},t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setAuthorsMeta({isRequestBeingProcessed:!1}),l(!1),console.log("error fetching author data",{e:t})})},[k,A,d,w?.id]),O=(0,a.useCallback)(()=>{if("author-meta"===d)return V(),!1;const t=(0,r.select)("ablocks/dynamic-content-store").getAuthorsData(),e=d.replaceAll("-","_"),i=w?.author,o=t?.[i]
6249 6261 ;if(o)return A(o?.[e]||""),!1;l(!0),(0,M.In)({action:"ablocks/get_author_data",post_id:w?.id,authorID:w?.author}).then(t=>{let i=!1;t?.data?.success&&(i=t.data.data),(0,r.dispatch)("ablocks/dynamic-content-store").setAuthorsData({authorID:w?.author,data:i}),l(!1),A(i?.[e]||"")},t=>{l(!1),console.log("error fetching author data",{e:t})})},[V]),Y=(0,a.useCallback)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getPostsCommentsCount();if(t?.[w?.id])return A(t?.[w?.id]);l(!0),(0,M.In)({action:"ablocks/get_post_comments_count",postID:w?.id}).then(t=>{let e=!1;t?.data?.success&&(e=t.data.data),(0,r.dispatch)("ablocks/dynamic-content-store").setPostsCommentsCount({postID:w?.id,commentsCount:e}),l(!1),A(e||"")},t=>{l(!1),console.log("error fetching author data",{e:t})})},[A,d,w?.id]),X=(0,a.useCallback)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getFeaturedMediasData(),e=t?.[w?.id],i=d.replaceAll("-","_");if(e)return A(e?.[i]||"");l(!0),(0,M.In)({
6250 -action:"ablocks/get_featured_media_data",postID:w?.id}).then(t=>{let e=!1;t?.data?.success&&(e=t.data.data),(0,r.dispatch)("ablocks/dynamic-content-store").setFeaturedMediasData({postID:w?.id,data:e}),l(!1),A(e?.[i]||"")},t=>{l(!1),console.log("error fetching author data",{e:t})})},[A,d,w?.id]);return(0,a.useEffect)(()=>{if("postType"===P){if(z||!C||!w)return i(null),i2;let t;switch(d){case"post-custom-field":return I(),i2;case"post-date":t=(0,M.BP)({dynamicContentAttribute:n,post:w});break;case"post-title":t=w?.title?.rendered;break;case"post-excerpt":{const{raw:e,rendered:i}=w?.excerpt||{};if(e)t=e;else if(i){const e=(new DOMParser).parseFromString(i,"text/html");t=e.body.textContent||e.body.innerText||""}else t="";t=p?t.split(" ",p).join(" "):t}break;case"post-id":t=w?.id;break;case"post-terms":return N(),i2;case"post-time":t=(0,M.BP)({dynamicContentAttribute:n,post:w,isTime:!0});break;case"author-name":case"author-id":case"author-posts-count":case"author-posts-url":
6251 -case"author-profile-picture-url":case"author-bio":case"author-email":case"author-website":case"author-meta":case"author-first-name":case"author-last-name":return O(),i2;case"comments-number":return Y(),i2;case"featured-image-title":case"featured-image-alt":case"featured-image-caption":case"featured-image-description":case"featured-image-file-url":case"featured-image-attachment-url":return X(),i2}A(t)}else if("site-tagline"===P)l(!0),(0,r.resolveSelect)("core").getSite().then(t=>{const e=t?.description;A(e||""),l(!1)}).catch(t=>{l(!1),console.log("---error resolving site tagline",{err:t})});else if("site-title"===P)l(!0),(0,r.resolveSelect)("core").getSite().then(t=>{const e=t?.title;A(e||""),l(!1)}).catch(t=>{console.log("---error resolving site tagline",{err:t})});else if("current-date-time"===s){const t=(0,M.BP)({dynamicAttributeValue:n});A(t)}else"archive-title"===P?i(f?(0,L.__)("Archive type: Name","ablocks"):(0,
6262 +action:"ablocks/get_featured_media_data",postID:w?.id}).then(t=>{let e=!1;t?.data?.success&&(e=t.data.data),(0,r.dispatch)("ablocks/dynamic-content-store").setFeaturedMediasData({postID:w?.id,data:e}),l(!1),A(e?.[i]||"")},t=>{l(!1),console.log("error fetching author data",{e:t})})},[A,d,w?.id]);return(0,a.useEffect)(()=>{if("postType"===P){if(z||!C||!w)return i(null),z2;let t;switch(d){case"post-custom-field":return I(),z2;case"post-date":t=(0,M.BP)({dynamicContentAttribute:n,post:w});break;case"post-title":t=w?.title?.rendered;break;case"post-excerpt":{const{raw:e,rendered:i}=w?.excerpt||{};if(e)t=e;else if(i){const e=(new DOMParser).parseFromString(i,"text/html");t=e.body.textContent||e.body.innerText||""}else t="";t=p?t.split(" ",p).join(" "):t}break;case"post-id":t=w?.id;break;case"post-terms":return N(),z2;case"post-time":t=(0,M.BP)({dynamicContentAttribute:n,post:w,isTime:!0});break;case"author-name":case"author-id":case"author-posts-count":case"author-posts-url":
6263 +case"author-profile-picture-url":case"author-bio":case"author-email":case"author-website":case"author-meta":case"author-first-name":case"author-last-name":return O(),z2;case"comments-number":return Y(),z2;case"featured-image-title":case"featured-image-alt":case"featured-image-caption":case"featured-image-description":case"featured-image-file-url":case"featured-image-attachment-url":return X(),z2}A(t)}else if("site-tagline"===P)l(!0),(0,r.resolveSelect)("core").getSite().then(t=>{const e=t?.description;A(e||""),l(!1)}).catch(t=>{l(!1),console.log("---error resolving site tagline",{err:t})});else if("site-title"===P)l(!0),(0,r.resolveSelect)("core").getSite().then(t=>{const e=t?.title;A(e||""),l(!1)}).catch(t=>{console.log("---error resolving site tagline",{err:t})});else if("current-date-time"===s){const t=(0,M.BP)({dynamicAttributeValue:n});A(t)}else"archive-title"===P?i(f?(0,L.__)("Archive type: Name","ablocks"):(0,
6252 6264 L.__)("Archive Title","ablocks")):"archive-meta"!==P&&"archive-Description"!==P||i((0,L.__)("loading…","ablocks"));return()=>l(!1)},[P,U,z,C,U,f,p,y,T,H,x,N,I,O,Y,X,v,_,R]),{data:e,isProcessingData:o}})({attributes:s}),{dynamicContentAttribute:u}=s,{source:p,source_type:m,source_id:h,group_item:g,fallback:f,excerptWords:y,dateTimeType:T,dateTimeFormat:H,customDateTimeFormat:x,taxonomy:k,termsSeparator:v,metaKey:_,DateFormatOfCurrentDateTime:R="",customFormatOfCurrentDateTime:S="",TimeFormatOfCurrentDateTime:W=""}=u;return(0,a.useEffect)(()=>{const t=t=>{t.target.closest(".ablocks-richtext-dynamic-content")&&n(!0)};return document.addEventListener("mousedown",t),document.addEventListener("pointerdown",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("pointerdown",t)}},[]),(0,I.jsxs)(D.BlockControls,{group:"other",children:[(0,I.jsx)(N.ToolbarButton,{icon:e?"database-remove":"database-add",title:(0,L.__)("Ablocks Dynamic Content","ablocks"),isActive:e,
6253 -onClick:()=>{n(!0)}}),l&&(0,I.jsx)(y2,{value:o,isProcessingData:d,onChange:i,settings:u,setSettings:b,isActive:e,onClose:()=>{n(!1)},onApply:()=>{const t={};let a=p||"",l="";if("post-type"===p||"current"===p)switch("post-type"===p&&(a+=`|${m}|${h}`),l=`${g}|${f}`,g){case"post-custom-field":l+=`|${_}`;break;case"post-date":case"post-time":l+=`|${T}|${H}|${x}`;break;case"post-excerpt":l+=`|${y}`;break;case"post-terms":l+=`|${k}|${v}`}else"site-tagline"===p||"site-title"===p?l=`|${f}`:"current-date-time"===p&&(l=`${W}|${R}|${S}|${f}`);t.source=a,t.field=l,t.editable="false";const n="ablocks/dynamic-content",s={type:n,attributes:t};let r=o;if(e){const{start:t,end:e}=((t,e)=>{const i=e;let{start:o,end:a}=t;const{formats:l}=t,n=l?.[o]?.find?.(t=>i===t.type);for(let t=o;t>=0;t--){const e=l?.[t]?.find?.(t=>i===t.type);if(!e||!(0,M.bD)(n,e)){o=t+1;break}}const s=l.length;for(let t=a;t<=s;t++){const e=l?.[t]?.find?.(t=>i===t.type);if(!e||!(0,M.bD)(n,e)){a=t;break}}return{start:o,end:a}})(o,n)
6254 -;r={...o,start:t+1,end:e},r=(0,e2.remove)(r,t,e),r=(0,e2.insert)(r,c),r={...r,start:t}}else o.start!==o.end&&(r=(0,e2.remove)(o,o.start,o.end)),r=(0,e2.insert)(r,c),r={...r,start:o.start};i((0,e2.applyFormat)(r,s))}})]})},attributes:{editable:"contenteditable",source:"data-source",field:"data-field"}});const{RichTextShortcut:T2}=wp.blockEditor,H2="ablocks/mark",M2={title:(0,L.__)("Text Highlight","ablocks"),tagName:"span",className:"ablocks-text-highlight",edit({isActive:t,value:e,onChange:i}){const[o,a]=(0,Yt.useState)(!1),[l,n]=(0,Yt.useState)(""),[s,b]=(0,Yt.useState)(""),c=(0,r.useSelect)(t=>t("core/block-editor").getSelectedBlock(),[]);if(!c||!c.name.startsWith("ablocks/"))return null;const d=t=>{n(t);const o=e.activeFormats?.find(t=>t.type===H2),a=(o?.attributes?.style||"").match(/color:\s*([^;]+)/),l=a?a[1]:"",s=`${t?.includes("gradient")?"background":"background-color"}: ${t};${l?` color: ${l};`:""}`;i((0,e2.applyFormat)(e,{type:H2,attributes:{style:s}}))},u=t=>{b(t)
6255 -;const o=e.activeFormats?.find(t=>t.type===H2);if(!o)return void i((0,e2.applyFormat)(e,{type:H2,attributes:{style:`color: ${t};`}}));const a=(o.attributes?.style||"").match(/background(-color)?:\s*([^;]+)/),l=a?a[2]:"",n=`${l?`background: ${l}; `:""}color: ${t};`;i((0,e2.applyFormat)(e,{type:H2,attributes:{style:n}}))};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(T2,{type:"primary",character:"m",onUse:()=>{const t=e.activeFormats?.some(t=>t.type===H2);t?(i((0,e2.removeFormat)(e,H2)),a(!1)):a(!o)}}),(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarGroup,{children:(0,I.jsx)(Xt,{label:(0,L.__)("Text Highlight","ablocks"),CustomToggler:({isVisible:e,toggleVisible:i})=>(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),title:(0,L.__)("Text Highlight","ablocks"),onClick:i,shortcutType:"access",shortcutCharacter:"m",isActive:t||e,className:`toolbar-button-with-text toolbar-button__${H2}`}),isVisible:o,toggleVisible:a,
6256 -className:"ablocks-highlight-popover",children:(0,I.jsxs)("div",{className:"ablocks-highlight-controls",children:[(0,I.jsx)("div",{className:"ablocks-highlight-control",children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeValue:l,onChangeHandler:(t,e)=>d(e)})}),(0,I.jsx)("div",{className:"ablocks-highlight-control",children:(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeValue:s,onChangeHandler:(t,e)=>u(e)})})]})})})})]})}};(0,e2.registerFormatType)(H2,M2),(0,b.addFilter)("ablocks.dynamic_content.richTextComponent","ablocks/dynamic_content_rich_text_render_component",function(t){const{blockProps:e={},children:i,...o}=t,{tagName:a,value:l,className:n,context:s}=o,{isDynamicEnabled:r,data:b,isProcessingData:c}=id({attributeValue:l,context:s});return r?c?(0,I.jsx)(N.Spinner,{}):(0,I.jsx)(a,{className:n,dangerouslySetInnerHTML:{__html:b}}):i?(0,I.jsx)(a,{className:n,children:i}):(0,I.jsx)(D.RichText,{...e,...o})}),(0,
6257 -b.addFilter)("ablocks.dynamic_content.get_dynamic_value","ablocks/dynamic_content_parse_and_get_dynamic_value",function({attributeValue:t,context:e}){const{isDynamicEnabled:i,data:o,isProcessingData:a}=id({attributeValue:t,context:e});return i&&!a?o:t});const x2=window.wp.editor;var k2=i(78418);var v2={notify(){},get:()=>[]};var _2=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),R2=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),S2=(()=>_2||R2?a.useLayoutEffect:a.useEffect)();Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var W2=Symbol.for("react-redux-context"),P2="undefined"!=typeof globalThis?globalThis:{};function U2(){if(!a.createContext)return{};const t=P2[W2]??=new Map;let e=t.get(a.createContext);return e||(e=a.createContext(null),t.set(a.createContext,e)),e}var j2=U2(),w2=function(t){
6258 -const{children:e,context:i,serverState:o,store:l}=t,n=a.useMemo(()=>{const t=function(t,e){let i,o=v2,a=0,l=!1;function n(){b.onStateChange&&b.onStateChange()}function s(){a++,i||(i=e?e.addNestedSub(n):t.subscribe(n),o=function(){let t=null,e=null;return{clear(){t=null,e=null},notify(){(()=>{let e=t;for(;e;)e.callback(),e=e.next})()},get(){const e=[];let i=t;for(;i;)e.push(i),i=i.next;return e},subscribe(i){let o=!0;const a=e={callback:i,next:null,prev:e};return a.prev?a.prev.next=a:t=a,function(){o&&null!==t&&(o=!1,a.next?a.next.prev=a.prev:e=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())}function r(){a--,i&&0===a&&(i(),i=void 0,o.clear(),o=v2)}const b={addNestedSub:function(t){s();const e=o.subscribe(t);let i=!1;return()=>{i||(i=!0,e(),r())}},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:n,isSubscribed:function(){return l},trySubscribe:function(){l||(l=!0,s())},tryUnsubscribe:function(){l&&(l=!1,r())},getListeners:()=>o};return b}(l);return{store:l,subscription:t,
6259 -getServerState:o?()=>o:void 0}},[l,o]),s=a.useMemo(()=>l.getState(),[l]);S2(()=>{const{subscription:t}=n;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==l.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[n,s]);const r=i||j2;return a.createElement(r.Provider,{value:n},e)};function z2(t=j2){return function(){return a.useContext(t)}}var C2=z2();function A2(t=j2){const e=t===j2?C2:z2(t),i=()=>{const{store:t}=e();return t};return Object.assign(i,{withTypes:()=>i}),i}var L2=A2();function D2(t=j2){const e=t===j2?L2:A2(t),i=()=>e().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var N2=D2(),I2=(t,e)=>t===e;function V2(t=j2){const e=t===j2?C2:z2(t),i=(t,i={})=>{const{equalityFn:o=I2}="function"==typeof i?{equalityFn:i}:i,l=e(),{store:n,subscription:s,getServerState:r}=l,b=(a.useRef(!0),a.useCallback({[t.name]:e=>t(e)}[t.name],[t])),c=(0,k2.useSyncExternalStoreWithSelector)(s.addNestedSub,n.getState,r||n.getState,b,o)
6260 -;return a.useDebugValue(c),c};return Object.assign(i,{withTypes:()=>i}),i}var O2=V2(),Y2=Symbol.for("immer-nothing"),X2=Symbol.for("immer-draftable"),B2=Symbol.for("immer-state");function E2(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var F2=Object,q2=F2.getPrototypeOf,$2="constructor",G2="prototype",Z2="configurable",K2="enumerable",J2="writable",Q2="value",t4=t=>!!t&&!!t[B2];function e4(t){return!!t&&(a4(t)||c4(t)||!!t[X2]||!!t[$2]?.[X2]||d4(t)||u4(t))}var i4=F2[G2][$2].toString(),o4=new WeakMap;function a4(t){if(!t||!p4(t))return!1;const e=q2(t);if(null===e||e===F2[G2])return!0;const i=F2.hasOwnProperty.call(e,$2)&&e[$2];if(i===Object)return!0;if(!m4(i))return!1;let o=o4.get(i);return void 0===o&&(o=Function.toString.call(i),o4.set(i,o)),o===i4}function l4(t,e,i=!0){0===n4(t)?(i?Reflect.ownKeys(t):F2.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((i,o)=>e(o,i,t))}function n4(t){const e=t[B2]
6261 -;return e?e.type_:c4(t)?1:d4(t)?2:u4(t)?3:0}var s4=(t,e,i=n4(t))=>2===i?t.has(e):F2[G2].hasOwnProperty.call(t,e),r4=(t,e,i=n4(t))=>2===i?t.get(e):t[e],b4=(t,e,i,o=n4(t))=>{2===o?t.set(e,i):3===o?t.add(i):t[e]=i},c4=Array.isArray,d4=t=>t instanceof Map,u4=t=>t instanceof Set,p4=t=>"object"==typeof t,m4=t=>"function"==typeof t,h4=t=>"boolean"==typeof t,g4=t=>t.copy_||t.base_,f4=t=>t.modified_?t.copy_:t.base_;function y4(t,e){if(d4(t))return new Map(t);if(u4(t))return new Set(t);if(c4(t))return Array[G2].slice.call(t);const i=a4(t);if(!0===e||"class_only"===e&&!i){const e=F2.getOwnPropertyDescriptors(t);delete e[B2];let i=Reflect.ownKeys(e);for(let o=0;o<i.length;o++){const a=i[o],l=e[a];!1===l[J2]&&(l[J2]=!0,l[Z2]=!0),(l.get||l.set)&&(e[a]={[Z2]:!0,[J2]:!0,[K2]:l[K2],[Q2]:t[a]})}return F2.create(q2(t),e)}{const e=q2(t);if(null!==e&&i)return{...t};const o=F2.create(e);return F2.assign(o,t)}}function T4(t,e=!1){return M4(t)||t4(t)||!e4(t)||(n4(t)>1&&F2.defineProperties(t,{set:H4,add:H4,
6262 -clear:H4,delete:H4}),F2.freeze(t),e&&l4(t,(t,e)=>{T4(e,!0)},!1)),t}var H4={[Q2]:function(){E2(2)}};function M4(t){return null===t||!p4(t)||F2.isFrozen(t)}var x4="MapSet",k4="Patches",v4="ArrayMethods",_4={};function R4(t){const e=_4[t];return e||E2(0),e}var S4,W4=t=>!!_4[t],P4=()=>S4;function U4(t,e){e&&(t.patchPlugin_=R4(k4),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function j4(t){w4(t),t.drafts_.forEach(C4),t.drafts_=null}function w4(t){t===S4&&(S4=t.parent_)}var z4=t=>S4={drafts_:[],parent_:S4,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:W4(x4)?R4(x4):void 0,arrayMethodsPlugin_:W4(v4)?R4(v4):void 0};function C4(t){const e=t[B2];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function A4(t,e){e.unfinalizedDrafts_=e.drafts_.length;const i=e.drafts_[0];if(void 0!==t&&t!==i){i[B2].modified_&&(j4(e),E2(4)),e4(t)&&(t=L4(e,t));const{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(i[B2].base_,t,e)
6263 -}else t=L4(e,i);return function(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&T4(e,i)}(e,t,!0),j4(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Y2?t:void 0}function L4(t,e){if(M4(e))return e;const i=e[B2];if(!i)return Y4(e,t.handledSet_,t);if(!N4(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:e}=i;if(e)for(;e.length>0;)e.pop()(t);O4(i,t)}return i.copy_}function D4(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var N4=(t,e)=>t.scope_===e,I4=[];function V4(t,e,i,o){const a=g4(t),l=t.type_;if(void 0!==o&&r4(a,o,l)===e)return void b4(a,o,i,l);if(!t.draftLocations_){const e=t.draftLocations_=new Map;l4(a,(t,i)=>{if(t4(i)){const o=e.get(i)||[];o.push(t),e.set(i,o)}})}const n=t.draftLocations_.get(e)??I4;for(const t of n)b4(a,t,i,l)}function O4(t,e){if(t.modified_&&!t.finalized_&&(3===t.type_||1===t.type_&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){const{patchPlugin_:i}=e;if(i){const o=i.getPath(t)
6264 -;o&&i.generatePatches_(t,o,e)}D4(t)}}function Y4(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||t4(t)||e.has(t)||!e4(t)||M4(t)||(e.add(t),l4(t,(o,a)=>{if(t4(a)){const e=a[B2];if(N4(e,i)){const i=f4(e);b4(t,o,i,t.type_),D4(e)}}else e4(a)&&Y4(a,e,i)})),t}var X4={get(t,e){if(e===B2)return t;let i=t.scope_.arrayMethodsPlugin_;const o=1===t.type_&&"string"==typeof e;if(o&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);const a=g4(t);if(!s4(a,e,t.type_))return function(t,e,i){const o=F4(e,i);return o?Q2 in o?o[Q2]:o.get?.call(t.draft_):void 0}(t,a,e);const l=a[e];if(t.finalized_||!e4(l))return l;if(o&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&function(t){const e=+t;return Number.isInteger(e)&&String(e)===t}(e))return l;if(l===E4(t.base_,e)){$4(t);const i=1===t.type_?+e:e,o=G4(t.scope_,l,t,i);return t.copy_[i]=o}return l},has:(t,e)=>e in g4(t),ownKeys:t=>Reflect.ownKeys(g4(t)),set(t,e,i){const o=F4(g4(t),e)
6265 -;if(o?.set)return o.set.call(t.draft_,i),!0;if(!t.modified_){const o=E4(g4(t),e),a=o?.[B2];if(a&&a.base_===i)return t.copy_[e]=i,t.assigned_.set(e,!1),!0;if(function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}(i,o)&&(void 0!==i||s4(t.base_,e,t.type_)))return!0;$4(t),q4(t)}return t.copy_[e]===i&&(void 0!==i||e in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),function(t,e,i){const{scope_:o}=t;if(t4(i)){const a=i[B2];N4(a,o)&&a.callbacks_.push(function(){$4(t);const o=f4(a);V4(t,i,o,e)})}else e4(i)&&t.callbacks_.push(function(){const a=g4(t);3===t.type_?a.has(i)&&Y4(i,o.handledSet_,o):r4(a,e,t.type_)===i&&o.drafts_.length>1&&!0===(t.assigned_.get(e)??!1)&&t.copy_&&Y4(r4(t.copy_,e,t.type_),o.handledSet_,o)})}(t,e,i)),!0},deleteProperty:(t,e)=>($4(t),void 0!==E4(t.base_,e)||e in t.base_?(t.assigned_.set(e,!1),q4(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){
6266 -const i=g4(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{[J2]:!0,[Z2]:1!==t.type_||"length"!==e,[K2]:o[K2],[Q2]:i[e]}:o},defineProperty(){E2(11)},getPrototypeOf:t=>q2(t.base_),setPrototypeOf(){E2(12)}},B4={};for(let t in X4){let e=X4[t];B4[t]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function E4(t,e){const i=t[B2];return(i?g4(i):t)[e]}function F4(t,e){if(!(e in t))return;let i=q2(t);for(;i;){const t=Object.getOwnPropertyDescriptor(i,e);if(t)return t;i=q2(i)}}function q4(t){t.modified_||(t.modified_=!0,t.parent_&&q4(t.parent_))}function $4(t){t.copy_||(t.assigned_=new Map,t.copy_=y4(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function G4(t,e,i,o){const[a,l]=d4(e)?R4(x4).proxyMap_(e,i):u4(e)?R4(x4).proxySet_(e,i):function(t,e){const i=c4(t),o={type_:i?1:0,scope_:e?e.scope_:P4(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=o,l=X4;i&&(a=[o],l=B4)
6267 -;const{revoke:n,proxy:s}=Proxy.revocable(a,l);return o.draft_=s,o.revoke_=n,[s,o]}(e,i);return(i?.scope_??P4()).drafts_.push(a),l.callbacks_=i?.callbacks_??[],l.key_=o,i&&void 0!==o?function(t,e,i){t.callbacks_.push(function(o){const a=e;if(!a||!N4(a,o))return;o.mapSetPlugin_?.fixSetContents(a);const l=f4(a);V4(t,a.draft_??a,l,i),O4(a,o)})}(i,l,o):l.callbacks_.push(function(t){t.mapSetPlugin_?.fixSetContents(l);const{patchPlugin_:e}=t;l.modified_&&e&&e.generatePatches_(l,[],t)}),a}function Z4(t){if(!e4(t)||M4(t))return t;const e=t[B2];let i,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=y4(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else i=y4(t,!0);return l4(i,(t,e)=>{b4(i,t,Z4(e))},o),e&&(e.finalized_=!1),i}B4.deleteProperty=function(t,e){return B4.set.call(this,t,e,void 0)},B4.set=function(t,e,i){return X4.set.call(this,t[0],e,i,t[0])};var K4=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,
6268 -this.useStrictIteration_=!1,this.produce=(t,e,i)=>{if(m4(t)&&!m4(e)){const i=e;e=t;const o=this;return function(t=i,...a){return o.produce(t,t=>e.call(this,t,...a))}}let o;if(m4(e)||E2(6),void 0===i||m4(i)||E2(7),e4(t)){const a=z4(this),l=G4(0,t,void 0);let n=!0;try{o=e(l),n=!1}finally{n?j4(a):w4(a)}return U4(a,i),A4(o,a)}if(!t||!p4(t)){if(o=e(t),void 0===o&&(o=t),o===Y2&&(o=void 0),this.autoFreeze_&&T4(o,!0),i){const e=[],a=[];R4(k4).generateReplacementPatches_(t,o,{patches_:e,inversePatches_:a}),i(e,a)}return o}E2(1)},this.produceWithPatches=(t,e)=>{if(m4(t))return(e,...i)=>this.produceWithPatches(e,e=>t(e,...i));let i,o;const a=this.produce(t,e,(t,e)=>{i=t,o=e});return[a,i,o]},h4(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),h4(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),h4(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){var e;e4(t)||E2(8),t4(t)&&(t4(e=t)||E2(10),t=Z4(e));const i=z4(this),o=G4(0,t,void 0)
6269 -;return o[B2].isManual_=!0,w4(i),o}finishDraft(t,e){const i=t&&t[B2];i&&i.isManual_||E2(9);const{scope_:o}=i;return U4(o,e),A4(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){const o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));const o=R4(k4).applyPatches_;return t4(t)?o(t,e):this.produce(t,t=>o(t,e))}},J4=K4.produce;function Q4(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var t3=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),e3=()=>Math.random().toString(36).substring(7).split("").join("."),i3={INIT:`@@redux/INIT${e3()}`,REPLACE:`@@redux/REPLACE${e3()}`,
6270 -PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${e3()}`};function o3(t){if("object"!=typeof t||null===t)return!1;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||null===Object.getPrototypeOf(t)}function a3(t,e,i){if("function"!=typeof t)throw new Error(Q4(2));if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Q4(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Q4(1));return i(a3)(t,e)}let o=t,a=e,l=new Map,n=l,s=0,r=!1;function b(){n===l&&(n=new Map,l.forEach((t,e)=>{n.set(e,t)}))}function c(){if(r)throw new Error(Q4(3));return a}function d(t){if("function"!=typeof t)throw new Error(Q4(4));if(r)throw new Error(Q4(5));let e=!0;b();const i=s++;return n.set(i,t),function(){if(e){if(r)throw new Error(Q4(6));e=!1,b(),n.delete(i),l=null}}}function u(t){if(!o3(t))throw new Error(Q4(7))
6271 -;if(void 0===t.type)throw new Error(Q4(8));if("string"!=typeof t.type)throw new Error(Q4(17));if(r)throw new Error(Q4(9));try{r=!0,a=o(a,t)}finally{r=!1}return(l=n).forEach(t=>{t()}),t}return u({type:i3.INIT}),{dispatch:u,subscribe:d,getState:c,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Q4(10));o=t,u({type:i3.REPLACE})},[t3]:function(){const t=d;return{subscribe(e){if("object"!=typeof e||null===e)throw new Error(Q4(11));function i(){const t=e;t.next&&t.next(c())}return i(),{unsubscribe:t(i)}},[t3](){return this}}}}}function l3(...t){return 0===t.length?t=>t:1===t.length?t[0]:t.reduce((t,e)=>(...i)=>t(e(...i)))}function n3(t){return({dispatch:e,getState:i})=>o=>a=>"function"==typeof a?a(e,i,t):o(a)}var s3=n3(),r3=n3,b3="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?l3:l3.apply(null,arguments)
6272 -},c3=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,t=>t&&"function"==typeof t.match);function d3(t,e){function i(...i){if(e){let o=e(...i);if(!o)throw new Error(w3(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:i[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=e=>function(t){return o3(t)&&"type"in t&&"string"==typeof t.type}(e)&&e.type===t,i}var u3=class t extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}static get[Symbol.species](){return t}concat(...t){return super.concat.apply(this,t)}prepend(...e){return 1===e.length&&Array.isArray(e[0])?new t(...e[0].concat(this)):new t(...e.concat(this))}};function p3(t){return e4(t)?J4(t,()=>{}):t}function m3(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}var h3=t=>e=>{setTimeout(e,t)};function g3(t){const e={},i=[];let o;const a={addCase(t,i){
6273 -const o="string"==typeof t?t:t.type;if(!o)throw new Error(w3(28));if(o in e)throw new Error(w3(29));return e[o]=i,a},addAsyncThunk:(t,o)=>(o.pending&&(e[t.pending.type]=o.pending),o.rejected&&(e[t.rejected.type]=o.rejected),o.fulfilled&&(e[t.fulfilled.type]=o.fulfilled),o.settled&&i.push({matcher:t.settled,reducer:o.settled}),a),addMatcher:(t,e)=>(i.push({matcher:t,reducer:e}),a),addDefaultCase:t=>(o=t,a)};return t(a),[e,i,o]}function f3(...t){return e=>t.some(t=>((t,e)=>c3(t)?t.match(e):t(e))(t,e))}var y3=["name","message","stack","code"],T3=class{constructor(t,e){this.payload=t,this.meta=e}_type},H3=class{constructor(t,e){this.payload=t,this.meta=e}_type},M3=t=>{if("object"==typeof t&&null!==t){const e={};for(const i of y3)"string"==typeof t[i]&&(e[i]=t[i]);return e}return{message:String(t)}},x3="External signal was aborted",k3=(()=>{function t(t,e,i){const o=d3(t+"/fulfilled",(t,e,i,o)=>({payload:t,meta:{...o||{},arg:i,requestId:e,requestStatus:"fulfilled"}
6274 -})),a=d3(t+"/pending",(t,e,i)=>({payload:void 0,meta:{...i||{},arg:e,requestId:t,requestStatus:"pending"}})),l=d3(t+"/rejected",(t,e,o,a,l)=>({payload:a,error:(i&&i.serializeError||M3)(t||"Rejected"),meta:{...l||{},arg:o,requestId:e,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===t?.name,condition:"ConditionError"===t?.name}}));return Object.assign(function(t,{signal:n}={}){return(s,r,b)=>{const c=i?.idGenerator?i.idGenerator(t):((t=21)=>{let e="",i=t;for(;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e})(),d=new AbortController;let u,p;function m(t){p=t,d.abort()}n&&(n.aborted?m(x3):n.addEventListener("abort",()=>m(x3),{once:!0}));const h=async function(){let n;try{let l=i?.condition?.(t,{getState:r,extra:b});if(null!==(h=l)&&"object"==typeof h&&"function"==typeof h.then&&(l=await l),!1===l||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."}
6275 -;const g=new Promise((t,e)=>{u=()=>{e({name:"AbortError",message:p||"Aborted"})},d.signal.addEventListener("abort",u,{once:!0})});s(a(c,t,i?.getPendingMeta?.({requestId:c,arg:t},{getState:r,extra:b}))),n=await Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:r,extra:b,requestId:c,signal:d.signal,abort:m,rejectWithValue:(t,e)=>new T3(t,e),fulfillWithValue:(t,e)=>new H3(t,e)})).then(e=>{if(e instanceof T3)throw e;return e instanceof H3?o(e.payload,c,t,e.meta):o(e,c,t)})])}catch(e){n=e instanceof T3?l(null,c,t,e.payload,e.meta):l(e,c,t)}finally{u&&d.signal.removeEventListener("abort",u)}var h;return i&&!i.dispatchConditionRejection&&l.match(n)&&n.meta.condition||s(n),n}();return Object.assign(h,{abort:m,requestId:c,arg:t,unwrap:()=>h.then(v3)})}},{pending:a,rejected:l,fulfilled:o,settled:f3(l,o),typePrefix:t})}return t.withTypes=()=>t,t})();function v3(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}
6276 -var _3=Symbol.for("rtk-slice-createasyncthunk");function R3(t,e){return`${t}/${e}`}function S3({creators:t}={}){const e=t?.asyncThunk?.[_3];return function(t){const{name:i,reducerPath:o=i}=t;if(!i)throw new Error(w3(11));const a=("function"==typeof t.reducers?t.reducers(function(){function t(t,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...e}}return t.withTypes=()=>t,{reducer:t=>Object.assign({[t.name]:(...e)=>t(...e)}[t.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(t,e)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:e}),asyncThunk:t}}()):t.reducers)||{},l=Object.keys(a),n={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(t,e){const i="string"==typeof t?t:t.type;if(!i)throw new Error(w3(12));if(i in n.sliceCaseReducersByType)throw new Error(w3(13));return n.sliceCaseReducersByType[i]=e,s},addMatcher:(t,e)=>(n.sliceMatchers.push({matcher:t,reducer:e}),s),
6277 -exposeAction:(t,e)=>(n.actionCreators[t]=e,s),exposeCaseReducer:(t,e)=>(n.sliceCaseReducersByName[t]=e,s)};function r(){const[e={},i=[],o]="function"==typeof t.extraReducers?g3(t.extraReducers):[t.extraReducers],a={...e,...n.sliceCaseReducersByType};return function(t){let e,[l,s,r]=g3(t=>{for(let e in a)t.addCase(e,a[e]);for(let e of n.sliceMatchers)t.addMatcher(e.matcher,e.reducer);for(let e of i)t.addMatcher(e.matcher,e.reducer);o&&t.addDefaultCase(o)});if(function(t){return"function"==typeof t}(t))e=()=>p3(t());else{const i=p3(t);e=()=>i}function b(t=e(),i){let o=[l[i.type],...s.filter(({matcher:t})=>t(i)).map(({reducer:t})=>t)];return 0===o.filter(t=>!!t).length&&(o=[r]),o.reduce((t,e)=>{if(e){if(t4(t)){const o=e(t,i);return void 0===o?t:o}if(e4(t))return J4(t,t=>e(t,i));{const o=e(t,i);if(void 0===o){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}}return t},t)}return b.getInitialState=e,b}(t.initialState)}
6278 -l.forEach(o=>{const l=a[o],n={reducerName:o,type:R3(i,o),createNotation:"function"==typeof t.reducers};!function(t){return"asyncThunk"===t._reducerDefinitionType}(l)?function({type:t,reducerName:e,createNotation:i},o,a){let l,n;if("reducer"in o){if(i&&!function(t){return"reducerWithPrepare"===t._reducerDefinitionType}(o))throw new Error(w3(17));l=o.reducer,n=o.prepare}else l=o;a.addCase(t,l).exposeCaseReducer(e,l).exposeAction(e,n?d3(t,n):d3(t))}(n,l,s):function({type:t,reducerName:e},i,o,a){if(!a)throw new Error(w3(18));const{payloadCreator:l,fulfilled:n,pending:s,rejected:r,settled:b,options:c}=i,d=a(t,l,c);o.exposeAction(e,d),n&&o.addCase(d.fulfilled,n),s&&o.addCase(d.pending,s),r&&o.addCase(d.rejected,r),b&&o.addMatcher(d.settled,b),o.exposeCaseReducer(e,{fulfilled:n||U3,pending:s||U3,rejected:r||U3,settled:b||U3})}(n,l,s,e)});const b=t=>t,c=new Map,d=new WeakMap;let u;function p(t,e){return u||(u=r()),u(t,e)}function m(){return u||(u=r()),u.getInitialState()}function h(e,i=!1){
6279 -function o(t){let a=t[e];return void 0===a&&i&&(a=m3(d,o,m)),a}function a(e=b){const o=m3(c,i,()=>new WeakMap);return m3(o,e,()=>{const o={};for(const[a,l]of Object.entries(t.selectors??{}))o[a]=W3(l,e,()=>m3(d,e,m),i);return o})}return{reducerPath:e,getSelectors:a,get selectors(){return a(o)},selectSlice:o}}const g={name:i,reducer:p,actions:n.actionCreators,caseReducers:n.sliceCaseReducersByName,getInitialState:m,...h(o),injectInto(t,{reducerPath:e,...i}={}){const a=e??o;return t.inject({reducerPath:a,reducer:p},i),{...g,...h(a,!0)}}};return g}}function W3(t,e,i,o){function a(a,...l){let n=e(a);return void 0===n&&o&&(n=i()),t(n,...l)}return a.unwrapped=t,a}var P3=S3();function U3(){}var{assign:j3}=Object;function w3(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original");const z3=k3("ablocks/fetchAdminMenuItems",t=>{try{
6280 -return(0,M.In)({action:"ablocks/get_admin_menu_items"}).then(t=>JSON.parse(t?.data?.data))}catch(e){t.dispatch(showNotification({message:e?.response?.data?.message??e?.message,isShow:!0,type:"error"}))}}),C3=P3({name:"menus",initialState:{data:M.MK?JSON.parse(M.MK):{}},extraReducers:t=>{t.addCase(z3.pending,t=>{t.loading=!0}).addCase(z3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(z3.rejected,t=>{t.loading=!1})}}).reducer,A3=P3({name:"notification",initialState:{message:"",showNotification:!1,type:""},reducers:{showNotification:(t,e)=>{const i=e.payload;t.message=i.message,t.showNotification=i.isShow,t.type=i.type}}}),L3=A3.reducer,{showNotification:D3}=A3.actions,N3=k3("ablocks/FetchSettings",()=>(0,M.In)({action:"ablocks/get_settings"}).then(t=>t.data.data)),I3=k3("ablocks/updateSettings",async({values:t,url:e="ablocks/save_settings"},i)=>{try{const o=await(0,M.In)({action:e,...t});return o.data.success?(i.dispatch(D3({message:(0,L.__)("Settings Saved!","ablocks"),
6281 -isShow:!0,type:"success"})),t):(i.dispatch(D3({message:(0,L.__)("Failed to save settings.","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(o.data.data))}catch(t){return i.dispatch(D3({message:t?.response?.data?.message??t.message,isShow:!0,type:"error"})),i.rejectWithValue(t.message)}}),V3=P3({name:"settings",initialState:{loading:!1},extraReducers:t=>{t.addCase(N3.pending,t=>{t.loading=!0}).addCase(N3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(N3.rejected,t=>{t.loading=!1}).addCase(I3.pending,t=>{t.loading=!0}).addCase(I3.fulfilled,(t,e)=>{t.loading=!1,t.data={...t.data,...e.payload}}).addCase(I3.rejected,t=>{t.loading=!1})}}).reducer,O3=k3("ablocks/fetchBlockVisibility",()=>(0,M.In)({action:"ablocks/get_blocks_visibility"}).then(t=>t.data.data)),Y3=k3("ablocks/saveBlockVisibility",t=>(0,M.In)({action:"ablocks/save_block_visibility",...t}).then(t=>t.data.data)),X3=k3("ablocks/saveBulkBlockVisibility",t=>(0,M.In)({action:"ablocks/save_bulk_block_visibility",
6282 -blocks:t}).then(t=>t.data.data)),B3=P3({name:"blocks",initialState:{loading:!1},extraReducers:t=>{t.addCase(O3.pending,t=>{t.loading=!0}).addCase(O3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(O3.rejected,t=>{t.loading=!1}).addCase(Y3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(X3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload})}}).reducer,E3=k3("ablocks/FetchSubmissions",({status:t="all",page:e=1,per_page:i=10,search:o=""},a)=>{const l="trash"===t?"yes":"no";return(0,M.In)({action:"ablocks/get_entries",status:t,current_page:e,per_page:i,search:o,is_in_trash:l}).then(t=>t?.data?.success?t.data.data:(a.dispatch(D3({message:(0,L.__)("Failed to fetch entries!","ablocks"),isShow:!0,type:"error"})),a.rejectWithValue(t.data.data||"Failed to fetch entries!")))}),F3=k3("ablocks/exportEntriesAsCSV",()=>(0,M.In)({action:"ablocks/get_entries",export_csv:1}).then(t=>t.data.data)),q3=k3("ablocks/fetchEntry",({id:t},e)=>(0,M.In)({action:"ablocks/get_entry",entry_id:t
6283 -}).then(t=>t?.data?.success?t.data.data:(e.dispatch(D3({message:(0,L.__)("Failed to fetch entry!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to fetch entry!")))),$3=(k3("ablocks/editEntry",({id:t,updatedData:e},i)=>(0,M.In)({action:"ablocks/edit_entry",entry_id:parseInt(t),data:e}).then(t=>t.data.success?(i.dispatch(D3({message:(0,L.__)("Successfully updated entry!","ablocks"),isShow:!0,type:"success"})),t.data.data):(i.dispatch(D3({message:(0,L.__)("Failed to update entry!","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(t.data.data||"Failed to update entry!")))),k3("ablocks/deleteEntry",({entryIds:t},e)=>(0,M.In)({action:"ablocks/delete_entries","entry_id_array[0]":t[0]}).then(t=>t.data.success?(e.dispatch(D3({message:(0,L.__)("Successfully deleted entries!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(D3({message:(0,L.__)("Failed to delete entries!","ablocks"),isShow:!0,type:"error"})),
6284 -e.rejectWithValue(t.data.data||"Failed to delete entries!"))))),G3=k3("ablocks/markEntriesAsRead",({entryIds:t},e)=>(0,M.In)({action:"ablocks/mark_entries_as_read",entry_id_array:t}).then(t=>t.data.success?(e.dispatch(D3({message:(0,L.__)("Successfully marked entries as read!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(D3({message:(0,L.__)("Failed to mark entries as read!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to mark entries as read!")))),Z3=k3("ablocks/markEntriesAsUnread",({entryIds:t},e)=>(0,M.In)({action:"ablocks/mark_entries_as_unread",entry_id_array:t}).then(t=>t.data.success?(e.dispatch(D3({message:(0,L.__)("Successfully marked entries as unread!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(D3({message:(0,L.__)("Failed to mark entries as unread!","ablocks"),isShow:!0,type:"error"})),
6285 -e.rejectWithValue(t.data.data||"Failed to mark entries as unread!")))),K3=k3("ablocks/sendEntriesToTrash",({entryId:t},e)=>(0,M.In)({action:"ablocks/send_entries_to_trash",entry_id:t}).then(t=>t.data.success?(e.dispatch(D3({message:(0,L.__)("Successfully sent entries to trash!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(D3({message:(0,L.__)("Failed to send entries to trash!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to send entries to trash!")))),J3=k3("ablocks/restoreEntriesFromTrash",({entryId:t},e)=>(0,M.In)({action:"ablocks/restore_entries_from_trash",entry_id:t}).then(t=>t.data.success?(e.dispatch(D3({message:(0,L.__)("Successfully restored entries from trash!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(D3({message:(0,L.__)("Failed to restore entries from trash!","ablocks"),isShow:!0,type:"error"})),
6286 -e.rejectWithValue(t.data.data||"Failed to restore entries from trash!")))),Q3=k3("ablocks/updateSettings",async({values:t,url:e="ablocks/save_settings"},i)=>{try{const o=await(0,M.In)({action:e,...t});return o.data.success?(i.dispatch(D3({message:(0,L.__)("Settings Saved!","ablocks"),isShow:!0,type:"success"})),t):(i.dispatch(D3({message:(0,L.__)("Failed to save settings.","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(o.data.data))}catch(t){return i.dispatch(D3({message:t?.response?.data?.message??t.message,isShow:!0,type:"error"})),i.rejectWithValue(t.message)}}),t6=P3({name:"submissions",initialState:{loading:!1,data:[]},reducers:{updateCurrentPage:(t,e)=>{t.data={...t.data,current_page:e.payload}},updateItemPerPage:(t,e)=>{t.data={...t.data,per_page:e.payload}}},extraReducers:t=>{t.addCase(E3.pending,t=>{t.loading=!0}).addCase(E3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(E3.rejected,t=>{t.loading=!1}).addCase(F3.pending,t=>{t.loading=!0
6287 -}).addCase(F3.fulfilled,(t,e)=>{t.loading=!1,t.csv_data=e.payload.csv_data}).addCase(F3.rejected,t=>{t.loading=!1}).addCase(G3.pending,t=>{t.loading=!0}).addCase(G3.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.map(t=>e.payload.id_of_updated_entries.includes(t.id)?{...t,status:"read"}:t)}).addCase(G3.rejected,t=>{t.loading=!1}).addCase(Z3.pending,t=>{t.loading=!0}).addCase(Z3.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.map(t=>e?.payload?.id_of_updated_entries.includes(t.id)?{...t,status:"unread"}:t)}).addCase(Z3.rejected,t=>{t.loading=!1}).addCase(K3.pending,t=>{t.loading=!0}).addCase(K3.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.filter(t=>e?.payload?.data.id!==parseInt(t.id))}).addCase(K3.rejected,t=>{t.loading=!1}).addCase(J3.pending,t=>{t.loading=!0}).addCase(J3.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.map(t=>e?.payload?.data.id===parseInt(t.id)?{...t,status:e?.payload?.data.status}:t)}).addCase(J3.rejected,t=>{t.loading=!1
6288 -}).addCase($3.pending,t=>{t.loading=!0}).addCase($3.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.filter(t=>!e.payload.id_of_deleted_entries.includes(t.id))}).addCase($3.rejected,t=>{t.loading=!1}).addCase(q3.pending,t=>{t.loading=!0}).addCase(q3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(q3.rejected,t=>{t.loading=!1}).addCase(Q3.pending,t=>{t.loading=!0}).addCase(Q3.fulfilled,(t,e)=>{t.loading=!1,t.data={...t.data,...e.payload}}).addCase(Q3.rejected,t=>{t.loading=!1})}}),e6=t6.reducer,{updateCurrentPage:i6,updateItemPerPage:o6}=t6.actions,a6=k3("ablocks/fetchAddons",t=>{try{return(0,M.In)({action:"ablocks/addons/get_all_addons"}).then(e=>e.data?.success?e.data?.data:(t.dispatch(D3({message:e.data?.data?.message??__("Some thing went wrong","ablocks"),isShow:!0,type:"error"})),e.data))}catch(e){t.dispatch(D3({message:e?.response?.data?.message??e?.message,isShow:!0,type:"error"}))}}),l6=k3("ablocks/saveAddon",({addon:t,status:e},i)=>{try{return(0,M.In)({
6289 -action:"ablocks/addons/saved_addon_status",addon_name:t.label,addon_slug:t.name,status:e,required_plugin:t.required_plugin}).then(t=>(t.data?.success||i.dispatch(D3({message:t?.data.data,isShow:!0,type:"error"})),t.data))}catch(t){i.dispatch(D3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"}))}}),n6=P3({name:"addons",initialState:{},extraReducers:t=>{t.addCase(a6.fulfilled,(t,e)=>e.payload).addCase(l6.fulfilled,(t,e)=>e.payload)}}).reducer,s6=k3("ablocks/fetchAllTB",({status:t="all",page:e=1,per_page:i=10,search:o=""},a)=>{try{let l={status:"all"===t?"any":t,page:e,per_page:i};return o&&(l={...l,search:o}),M.nC.get(M.MF+"ablocks_tb",{params:l}).then(l=>200===l.status?{data:l.data,totalItems:parseInt(l.headers["x-wp-total"]),status:t,page:e,per_page:i,search:o}:a.rejectWithValue({message:l.data.message||(0,L.__)("Failed to fetch TB","ablocks")}))}catch(t){return a.dispatch(D3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),
6290 -a.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),r6=k3("ablocks/fetchTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t)}`).then(t=>t.data)}catch(t){e.dispatch(D3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"}))}}),b6=k3("ablocks/createNewTB",(t,e)=>{try{return M.nC.post(M.MF+"ablocks_tb",t).then(t=>201===t.status?(e.dispatch(D3({message:(0,L.__)("Successfully created.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(D3({message:(0,L.__)("Failed to create.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to create.","ablocks"),success:!1})))}catch(t){return e.dispatch(D3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),c6=k3("ablocks/updateTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,{...t}).then(t=>200===t.status?(e.dispatch(D3({message:(0,
6291 -L.__)("Successfully updated.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(D3({message:(0,L.__)("Failed to Update.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to Update.","ablocks"),success:!1})))}catch(t){return e.dispatch(D3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),d6=k3("ablocks/statusUpdateTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,t).then(t=>200===t.status?(e.dispatch(D3({message:(0,L.__)("Successfully Status updated.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(D3({message:(0,L.__)("Failed to Update.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to Update.","ablocks"),success:!1})))}catch(t){return e.dispatch(D3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message
6292 -})}}),u6=k3("ablocks/deleteTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,{force:!0},{headers:{"X-HTTP-Method-Override":"DELETE"}}).then(t=>200===t.status?(e.dispatch(D3({message:(0,L.__)("Deleted!","ablocks"),isShow:!0,type:"success"})),t.data.previous):(e.dispatch(D3({message:(0,L.__)("Failed to delete.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to delete.","ablocks"),success:!1})))}catch(t){return e.dispatch(D3({message:error?.response?.data?.message??error?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:error?.response?.data?.message??error?.message})}}),p6=k3("ablocks/moveTBToTrash",async(t,e)=>{try{const i=await M.nC.post(`${M.MF}ablocks_tb/${parseInt(t)}`,{force:!1},{headers:{"X-HTTP-Method-Override":"DELETE"}});return 200===i.status?(e.dispatch(D3({message:(0,L.__)("Moved to trash!","ablocks"),isShow:!0,type:"success"})),i.data):(e.dispatch(D3({message:(0,L.__)("Failed to trashed.","ablocks"),
6293 -isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to trashed.","ablocks"),success:!1}))}catch(t){return e.dispatch(D3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),m6=k3("ablocks/restoreTB",(t,e)=>{const i={...t,status:"draft"};try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,i).then(t=>200===t.status?(e.dispatch(D3({message:(0,L.__)("Them Restored Successfully!","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(D3({message:(0,L.__)("Failed to restore theme","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to restore theme.","ablocks"),success:!1})))}catch(t){return e.dispatch(D3({message:error?.response?.data?.message??error?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:error?.response?.data?.message??error?.message})}}),h6=P3({name:"themeBuilder",initialState:{data:[],rowsPerPage:10,status:"all",
6294 -page:1,search:""},reducers:{updateTBCurrentPage:(t,e)=>{t.page=e.payload},updateTBItemPerPage:(t,e)=>{t.per_page=e.payload}},extraReducers:t=>{t.addCase(s6.fulfilled,(t,e)=>{const i=e.payload;t.data=i.data,t.totalItems=i.totalItems,t.per_page=i.per_page,t.status=i.status,t.page=i.page,t.search=i.search}).addCase(r6.fulfilled,(t,e)=>{const i=t.data.findIndex(t=>parseInt(t.id)===parseInt(e.payload.id));-1!==i?t.data[i]=e.payload:t.data.length?t.data=[...t.data,e.payload]:t.data=[e.payload]}).addCase(b6.fulfilled,(t,e)=>{t.data.length?t.data=[...t.data,e.payload]:t.data=[e.payload]}).addCase(c6.fulfilled,(t,e)=>{t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)}).addCase(u6.fulfilled,(t,e)=>{t.data=t.data.filter(t=>parseInt(t.id)!==parseInt(e.payload?.id))}).addCase(p6.fulfilled,(t,e)=>{t.data=t.data.filter(t=>parseInt(t.id)!==parseInt(e.payload?.id))}).addCase(d6.fulfilled,(t,e)=>{t.loading=!1,
6295 -t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)}).addCase(m6.fulfilled,(t,e)=>{t.loading=!1,t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)})}}),{updateTBCurrentPage:g6,updateTBItemPerPage:f6}=h6.actions,y6=h6.reducer;i(79448);let T6=[];const H6=function(t){const e=function(t){const{thunk:e=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let l=new u3;return e&&(function(t){return"boolean"==typeof t}(e)?l.push(s3):l.push(r3(e.extraArgument))),l},{reducer:i,middleware:o,devTools:a=!0,duplicateMiddlewareCheck:l=!0,preloadedState:n,enhancers:s}=t||{};let r,b;if("function"==typeof i)r=i;else{if(!o3(i))throw new Error(w3(1));r=function(t){const e=Object.keys(t),i={};for(let o=0;o<e.length;o++){const a=e[o];"function"==typeof t[a]&&(i[a]=t[a])}const o=Object.keys(i);let a;try{!function(t){Object.keys(t).forEach(e=>{const i=t[e];if(void 0===i(void 0,{type:i3.INIT}))throw new Error(Q4(12))
6296 -;if(void 0===i(void 0,{type:i3.PROBE_UNKNOWN_ACTION()}))throw new Error(Q4(13))})}(i)}catch(t){a=t}return function(t={},e){if(a)throw a;let l=!1;const n={};for(let a=0;a<o.length;a++){const s=o[a],r=i[s],b=t[s],c=r(b,e);if(void 0===c)throw e&&e.type,new Error(Q4(14));n[s]=c,l=l||c!==b}return l=l||o.length!==Object.keys(t).length,l?n:t}}(i)}b="function"==typeof o?o(e):e();let c=l3;a&&(c=b3({trace:!1,..."object"==typeof a&&a}));const d=function(...t){return e=>(i,o)=>{const a=e(i,o);let l=()=>{throw new Error(Q4(15))};const n={getState:a.getState,dispatch:(t,...e)=>l(t,...e)},s=t.map(t=>t(n));return l=l3(...s)(a.dispatch),{...a,dispatch:l}}}(...b),u=(t=>function(e){const{autoBatch:i=!0}=e??{};let o=new u3(t);return i&&o.push(((t={type:"raf"})=>e=>(...i)=>{const o=e(...i);let a=!0,l=!1,n=!1
6297 -;const s=new Set,r="tick"===t.type?queueMicrotask:"raf"===t.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:h3(10):"callback"===t.type?t.queueNotification:h3(t.timeout),b=()=>{n=!1,l&&(l=!1,s.forEach(t=>t()))};return Object.assign({},o,{subscribe(t){const e=o.subscribe(()=>a&&t());return s.add(t),()=>{e(),s.delete(t)}},dispatch(t){try{return a=!t?.meta?.RTK_autoBatch,l=!a,l&&(n||(n=!0,r(b))),o.dispatch(t)}finally{a=!0}}})})("object"==typeof i?i:void 0)),o})(d);return a3(r,n,c(..."function"==typeof s?s(u):u()))}({reducer:{adminmenu:C3,settings:V3,notification:L3,blocks:B3,submissions:e6,addons:n6,themeBuilder:y6},middleware:t=>t().concat(...T6)}),M6=H6;var x6=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===k6}(t)}(t)},k6="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103
6298 -;function v6(t,e){return!1!==e.clone&&e.isMergeableObject(t)?R6((i=t,Array.isArray(i)?[]:{}),t,e):t;var i}function _6(t,e,i){return t.concat(e).map(function(t){return v6(t,i)})}function R6(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||_6,i.isMergeableObject=i.isMergeableObject||x6;var o=Array.isArray(e);return o===Array.isArray(t)?o?i.arrayMerge(t,e,i):function(t,e,i){var o={};return i.isMergeableObject(t)&&Object.keys(t).forEach(function(e){o[e]=v6(t[e],i)}),Object.keys(e).forEach(function(a){i.isMergeableObject(e[a])&&t[a]?o[a]=R6(t[a],e[a],i):o[a]=v6(e[a],i)}),o}(t,e,i):v6(e,i)}R6.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,i){return R6(t,i,e)},{})};const S6=R6;var W6=i(11331),P6=i.n(W6),U6=i(88055),j6=i.n(U6),w6=i(30115),z6=i.n(w6);var C6=i(32629),A6=i.n(C6),L6=i(42072),D6=i.n(L6);function N6(){return N6=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]
6299 -;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},N6.apply(this,arguments)}function I6(t,e){if(null==t)return{};var i,o,a={},l=Object.keys(t);for(o=0;o<l.length;o++)i=l[o],e.indexOf(i)>=0||(a[i]=t[i]);return a}function V6(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var O6=(0,a.createContext)(void 0);O6.displayName="FormikContext";var Y6=O6.Provider,X6=O6.Consumer;function B6(){var t=(0,a.useContext)(O6);return t}var E6=function(t){return Array.isArray(t)&&0===t.length},F6=function(t){return"function"==typeof t},q6=function(t){return null!==t&&"object"==typeof t},$6=function(t){return String(Math.floor(Number(t)))===t},G6=function(t){return"[object String]"===Object.prototype.toString.call(t)},Z6=function(t){return 0===a.Children.count(t)},K6=function(t){return q6(t)&&F6(t.then)};function J6(t,e,i,o){void 0===o&&(o=0);for(var a=D6()(e);t&&o<a.length;)t=t[a[o++]]
6300 -;return o===a.length||t?void 0===t?i:t:i}function Q6(t,e,i){for(var o=A6()(t),a=o,l=0,n=D6()(e);l<n.length-1;l++){var s=n[l],r=J6(t,n.slice(0,l+1));if(r&&(q6(r)||Array.isArray(r)))a=a[s]=A6()(r);else{var b=n[l+1];a=a[s]=$6(b)&&Number(b)>=0?[]:{}}}return(0===l?t:a)[n[l]]===i?t:(void 0===i?delete a[n[l]]:a[n[l]]=i,0===l&&void 0===i&&delete o[n[l]],o)}function t8(t,e,i,o){void 0===i&&(i=new WeakMap),void 0===o&&(o={});for(var a=0,l=Object.keys(t);a<l.length;a++){var n=l[a],s=t[n];q6(s)?i.get(s)||(i.set(s,!0),o[n]=Array.isArray(s)?[]:{},t8(s,e,i,o[n])):o[n]=e}return o}var e8={},i8={};function o8(t){var e=t.validateOnChange,i=void 0===e||e,o=t.validateOnBlur,l=void 0===o||o,n=t.validateOnMount,s=void 0!==n&&n,r=t.isInitialValid,b=t.enableReinitialize,c=void 0!==b&&b,d=t.onSubmit,u=I6(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=N6({validateOnChange:i,validateOnBlur:l,validateOnMount:s,onSubmit:d},u),m=(0,
6301 -a.useRef)(p.initialValues),h=(0,a.useRef)(p.initialErrors||e8),g=(0,a.useRef)(p.initialTouched||i8),f=(0,a.useRef)(p.initialStatus),y=(0,a.useRef)(!1),T=(0,a.useRef)({});(0,a.useEffect)(function(){return y.current=!0,function(){y.current=!1}},[]);var H=(0,a.useState)(0)[1],M=(0,a.useRef)({values:j6()(p.initialValues),errors:j6()(p.initialErrors)||e8,touched:j6()(p.initialTouched)||i8,status:j6()(p.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),x=M.current,k=(0,a.useCallback)(function(t){var e=M.current;M.current=function(t,e){switch(e.type){case"SET_VALUES":return N6({},t,{values:e.payload});case"SET_TOUCHED":return N6({},t,{touched:e.payload});case"SET_ERRORS":return z6()(t.errors,e.payload)?t:N6({},t,{errors:e.payload});case"SET_STATUS":return N6({},t,{status:e.payload});case"SET_ISSUBMITTING":return N6({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return N6({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return N6({},t,{
6302 -values:Q6(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return N6({},t,{touched:Q6(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return N6({},t,{errors:Q6(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return N6({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return N6({},t,{touched:t8(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return N6({},t,{isSubmitting:!1});default:return t}}(e,t),e!==M.current&&H(function(t){return t+1})},[]),v=(0,a.useCallback)(function(t,e){return new Promise(function(i,o){var a=p.validate(t,e);null==a?i(e8):K6(a)?a.then(function(t){i(t||e8)},function(t){o(t)}):i(a)})},[p.validate]),_=(0,a.useCallback)(function(t,e){var i=p.validationSchema,o=F6(i)?i(e):i,a=e&&o.validateAt?o.validateAt(e,t):function(t,e,i){void 0===i&&(i=!1);var o=l8(t);return e[i?"validateSync":"validate"](o,{abortEarly:!1,context:o})}(t,o)
6303 -;return new Promise(function(t,e){a.then(function(){t(e8)},function(i){"ValidationError"===i.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return Q6(e,t.path,t.message);var i=t.inner,o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var l;if(o){if(a>=i.length)break;l=i[a++]}else{if((a=i.next()).done)break;l=a.value}var n=l;J6(e,n.path)||(e=Q6(e,n.path,n.message))}}return e}(i)):e(i)})})},[p.validationSchema]),R=(0,a.useCallback)(function(t,e){return new Promise(function(i){return i(T.current[t].validate(e))})},[]),S=(0,a.useCallback)(function(t){var e=Object.keys(T.current).filter(function(t){return F6(T.current[t].validate)}),i=e.length>0?e.map(function(e){return R(e,J6(t,e))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(i).then(function(t){return t.reduce(function(t,i,o){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===i||i&&(t=Q6(t,e[o],i)),t},{})})},[R]),W=(0,a.useCallback)(function(t){
6304 -return Promise.all([S(t),p.validationSchema?_(t):{},p.validate?v(t):{}]).then(function(t){var e=t[0],i=t[1],o=t[2];return S6.all([e,i,o],{arrayMerge:n8})})},[p.validate,p.validationSchema,S,v,_]),P=r8(function(t){return void 0===t&&(t=x.values),k({type:"SET_ISVALIDATING",payload:!0}),W(t).then(function(t){return y.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:t})),t})});(0,a.useEffect)(function(){s&&!0===y.current&&z6()(m.current,p.initialValues)&&P(m.current)},[s,P]);var U=(0,a.useCallback)(function(t){var e=t&&t.values?t.values:m.current,i=t&&t.errors?t.errors:h.current?h.current:p.initialErrors||{},o=t&&t.touched?t.touched:g.current?g.current:p.initialTouched||{},a=t&&t.status?t.status:f.current?f.current:p.initialStatus;m.current=e,h.current=i,g.current=o,f.current=a;var l=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:i,touched:o,status:a,values:e,isValidating:!!t&&!!t.isValidating,
6305 -submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(p.onReset){var n=p.onReset(x.values,G);K6(n)?n.then(l):l()}else l()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);(0,a.useEffect)(function(){!0!==y.current||z6()(m.current,p.initialValues)||c&&(m.current=p.initialValues,U(),s&&P(m.current))},[c,p.initialValues,U,s,P]),(0,a.useEffect)(function(){c&&!0===y.current&&!z6()(h.current,p.initialErrors)&&(h.current=p.initialErrors||e8,k({type:"SET_ERRORS",payload:p.initialErrors||e8}))},[c,p.initialErrors]),(0,a.useEffect)(function(){c&&!0===y.current&&!z6()(g.current,p.initialTouched)&&(g.current=p.initialTouched||i8,k({type:"SET_TOUCHED",payload:p.initialTouched||i8}))},[c,p.initialTouched]),(0,a.useEffect)(function(){c&&!0===y.current&&!z6()(f.current,p.initialStatus)&&(f.current=p.initialStatus,k({type:"SET_STATUS",payload:p.initialStatus}))},[c,p.initialStatus,p.initialTouched]);var j=r8(function(t){
6306 -if(T.current[t]&&F6(T.current[t].validate)){var e=J6(x.values,t),i=T.current[t].validate(e);return K6(i)?(k({type:"SET_ISVALIDATING",payload:!0}),i.then(function(t){return t}).then(function(e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:t,value:i}}),Promise.resolve(i))}return p.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),_(x.values,t).then(function(t){return t}).then(function(e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:J6(e,t)}}),k({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),w=(0,a.useCallback)(function(t,e){var i=e.validate;T.current[t]={validate:i}},[]),z=(0,a.useCallback)(function(t){delete T.current[t]},[]),C=r8(function(t,e){return k({type:"SET_TOUCHED",payload:t}),(void 0===e?l:e)?P(x.values):Promise.resolve()}),A=(0,a.useCallback)(function(t){k({type:"SET_ERRORS",payload:t})},[]),L=r8(function(t,e){var o=F6(t)?t(x.values):t;return k({
6307 -type:"SET_VALUES",payload:o}),(void 0===e?i:e)?P(o):Promise.resolve()}),D=(0,a.useCallback)(function(t,e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})},[]),N=r8(function(t,e,o){var a=F6(e)?e(J6(x.values,t)):e;return k({type:"SET_FIELD_VALUE",payload:{field:t,value:a}}),(void 0===o?i:o)?P(Q6(x.values,t,a)):Promise.resolve()}),I=(0,a.useCallback)(function(t,e){var i,o=e,a=t;if(!G6(t)){t.persist&&t.persist();var l=t.target?t.target:t.currentTarget,n=l.type,s=l.name,r=l.id,b=l.value,c=l.checked,d=(l.outerHTML,l.options),u=l.multiple;o=e||s||r,a=/number|range/.test(n)?(i=parseFloat(b),isNaN(i)?"":i):/checkbox/.test(n)?function(t,e,i){if("boolean"==typeof t)return Boolean(e);var o=[],a=!1,l=-1;if(Array.isArray(t))o=t,a=(l=t.indexOf(i))>=0;else if(!i||"true"==i||"false"==i)return Boolean(e);return e&&i&&!a?o.concat(i):a?o.slice(0,l).concat(o.slice(l+1)):o}(J6(x.values,o),c,b):d&&u?function(t){return Array.from(t).filter(function(t){return t.selected}).map(function(t){return t.value})
6308 -}(d):b}o&&N(o,a)},[N,x.values]),V=r8(function(t){if(G6(t))return function(e){return I(e,t)};I(t)}),O=r8(function(t,e,i){return void 0===e&&(e=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===i?l:i)?P(x.values):Promise.resolve()}),Y=(0,a.useCallback)(function(t,e){t.persist&&t.persist();var i=t.target,o=i.name,a=i.id,l=(i.outerHTML,e||o||a);O(l,!0)},[O]),X=r8(function(t){if(G6(t))return function(e){return Y(e,t)};Y(t)}),B=(0,a.useCallback)(function(t){F6(t)?k({type:"SET_FORMIK_STATE",payload:t}):k({type:"SET_FORMIK_STATE",payload:function(){return t}})},[]),E=(0,a.useCallback)(function(t){k({type:"SET_STATUS",payload:t})},[]),F=(0,a.useCallback)(function(t){k({type:"SET_ISSUBMITTING",payload:t})},[]),q=r8(function(){return k({type:"SUBMIT_ATTEMPT"}),P().then(function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var i;try{if(void 0===(i=Z()))return}catch(t){throw t}return Promise.resolve(i).then(function(t){return y.current&&k({type:"SUBMIT_SUCCESS"
6309 -}),t}).catch(function(t){if(y.current)throw k({type:"SUBMIT_FAILURE"}),t})}if(y.current&&(k({type:"SUBMIT_FAILURE"}),e))throw t})}),$=r8(function(t){t&&t.preventDefault&&F6(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&F6(t.stopPropagation)&&t.stopPropagation(),q().catch(function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)})}),G={resetForm:U,validateForm:P,validateField:j,setErrors:A,setFieldError:D,setFieldTouched:O,setFieldValue:N,setStatus:E,setSubmitting:F,setTouched:C,setValues:L,setFormikState:B,submitForm:q},Z=r8(function(){return d(x.values,G)}),K=r8(function(t){t&&t.preventDefault&&F6(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&F6(t.stopPropagation)&&t.stopPropagation(),U()}),J=(0,a.useCallback)(function(t){return{value:J6(x.values,t),error:J6(x.errors,t),touched:!!J6(x.touched,t),initialValue:J6(m.current,t),initialTouched:!!J6(g.current,t),initialError:J6(h.current,t)}},[x.errors,x.touched,x.values]),Q=(0,
6310 -a.useCallback)(function(t){return{setValue:function(e,i){return N(t,e,i)},setTouched:function(e,i){return O(t,e,i)},setError:function(e){return D(t,e)}}},[N,O,D]),tt=(0,a.useCallback)(function(t){var e=q6(t),i=e?t.name:t,o=J6(x.values,i),a={name:i,value:o,onChange:V,onBlur:X};if(e){var l=t.type,n=t.value,s=t.as,r=t.multiple;"checkbox"===l?void 0===n?a.checked=!!o:(a.checked=!(!Array.isArray(o)||!~o.indexOf(n)),a.value=n):"radio"===l?(a.checked=o===n,a.value=n):"select"===s&&r&&(a.value=a.value||[],a.multiple=!0)}return a},[X,V,x.values]),et=(0,a.useMemo)(function(){return!z6()(m.current,x.values)},[m.current,x.values]),it=(0,a.useMemo)(function(){return void 0!==r?et?x.errors&&0===Object.keys(x.errors).length:!1!==r&&F6(r)?r(p):r:x.errors&&0===Object.keys(x.errors).length},[r,et,x.errors,p]);return N6({},x,{initialValues:m.current,initialErrors:h.current,initialTouched:g.current,initialStatus:f.current,handleBlur:X,handleChange:V,handleReset:K,handleSubmit:$,resetForm:U,setErrors:A,
6311 -setFormikState:B,setFieldTouched:O,setFieldValue:N,setFieldError:D,setStatus:E,setSubmitting:F,setTouched:C,setValues:L,submitForm:q,validateForm:P,validateField:j,isValid:it,dirty:et,unregisterField:z,registerField:w,getFieldProps:tt,getFieldMeta:J,getFieldHelpers:Q,validateOnBlur:l,validateOnChange:i,validateOnMount:s})}function a8(t){var e=o8(t),i=t.component,o=t.children,l=t.render,n=t.innerRef;return(0,a.useImperativeHandle)(n,function(){return e}),(0,a.createElement)(Y6,{value:e},i?(0,a.createElement)(i,e):l?l(e):o?F6(o)?o(e):Z6(o)?null:a.Children.only(o):null)}function l8(t){var e=Array.isArray(t)?[]:{};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=String(i);!0===Array.isArray(t[o])?e[o]=t[o].map(function(t){return!0===Array.isArray(t)||P6()(t)?l8(t):""!==t?t:void 0}):P6()(t[o])?e[o]=l8(t[o]):e[o]=""!==t[o]?t[o]:void 0}return e}function n8(t,e,i){var o=t.slice();return e.forEach(function(e,a){if(void 0===o[a]){var l=!1!==i.clone&&i.isMergeableObject(e)
6312 -;o[a]=l?S6(Array.isArray(e)?[]:{},e,i):e}else i.isMergeableObject(e)?o[a]=S6(t[a],e,i):-1===t.indexOf(e)&&o.push(e)}),o}var s8="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function r8(t){var e=(0,a.useRef)(t);return s8(function(){e.current=t}),(0,a.useCallback)(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e.current.apply(void 0,i)},[])}function b8(t){var e=t.validate,i=t.name,o=t.render,l=t.children,n=t.as,s=t.component,r=t.className,b=I6(t,["validate","name","render","children","as","component","className"]),c=I6(B6(),["validate","validationSchema"]),d=c.registerField,u=c.unregisterField;(0,a.useEffect)(function(){return d(i,{validate:e}),function(){u(i)}},[d,u,i,e]);var p=c.getFieldProps(N6({name:i},b)),m=c.getFieldMeta(i),h={field:p,form:c};if(o)return o(N6({},h,{meta:m}));if(F6(l))return l(N6({},h,{meta:m}));if(s){if("string"==typeof s){
6313 -var g=b.innerRef,f=I6(b,["innerRef"]);return(0,a.createElement)(s,N6({ref:g},p,f,{className:r}),l)}return(0,a.createElement)(s,N6({field:p,form:c},b,{className:r}),l)}var y=n||"input";if("string"==typeof y){var T=b.innerRef,H=I6(b,["innerRef"]);return(0,a.createElement)(y,N6({ref:T},p,H,{className:r}),l)}return(0,a.createElement)(y,N6({},p,b,{className:r}),l)}var c8=(0,a.forwardRef)(function(t,e){var i=t.action,o=I6(t,["action"]),l=null!=i?i:"#",n=B6(),s=n.handleReset,r=n.handleSubmit;return(0,a.createElement)("form",N6({onSubmit:r,ref:e,onReset:s,action:l},o))});function d8(t){var e=function(e){return(0,a.createElement)(X6,null,function(i){return(0,a.createElement)(t,N6({},e,{formik:i}))})},i=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";return e.WrappedComponent=t,e.displayName="FormikConnect("+i+")",oo()(e,t)}c8.displayName="Form";var u8=function(t,e,i){var o=p8(t);return o.splice(e,0,i),o},p8=function(t){if(t){if(Array.isArray(t))return[].concat(t)
6314 -;var e=Object.keys(t).map(function(t){return parseInt(t)}).reduce(function(t,e){return e>t?e:t},0);return Array.from(N6({},t,{length:e+1}))}return[]},m8=function(t,e){var i="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||q6(t)){var e=p8(t);return i(e)}return t}},h8=function(t){function e(e){var i;return(i=t.call(this,e)||this).updateArrayField=function(t,e,o){var a=i.props,l=a.name;(0,a.formik.setFormikState)(function(i){var a=m8(o,t),n=m8(e,t),s=Q6(i.values,l,t(J6(i.values,l))),r=o?a(J6(i.errors,l)):void 0,b=e?n(J6(i.touched,l)):void 0;return E6(r)&&(r=void 0),E6(b)&&(b=void 0),N6({},i,{values:s,errors:o?Q6(i.errors,l,r):i.errors,touched:e?Q6(i.touched,l,b):i.touched})})},i.push=function(t){return i.updateArrayField(function(e){return[].concat(p8(e),[j6()(t)])},!1,!1)},i.handlePush=function(t){return function(){return i.push(t)}},i.swap=function(t,e){return i.updateArrayField(function(i){return function(t,e,i){var o=p8(t),a=o[e];return o[e]=o[i],o[i]=a,o}(i,t,e)
6315 -},!0,!0)},i.handleSwap=function(t,e){return function(){return i.swap(t,e)}},i.move=function(t,e){return i.updateArrayField(function(i){return function(t,e,i){var o=p8(t),a=o[e];return o.splice(e,1),o.splice(i,0,a),o}(i,t,e)},!0,!0)},i.handleMove=function(t,e){return function(){return i.move(t,e)}},i.insert=function(t,e){return i.updateArrayField(function(i){return u8(i,t,e)},function(e){return u8(e,t,null)},function(e){return u8(e,t,null)})},i.handleInsert=function(t,e){return function(){return i.insert(t,e)}},i.replace=function(t,e){return i.updateArrayField(function(i){return function(t,e,i){var o=p8(t);return o[e]=i,o}(i,t,e)},!1,!1)},i.handleReplace=function(t,e){return function(){return i.replace(t,e)}},i.unshift=function(t){var e=-1;return i.updateArrayField(function(i){var o=i?[t].concat(i):[t];return e=o.length,o},function(t){return t?[null].concat(t):[null]},function(t){return t?[null].concat(t):[null]}),e},i.handleUnshift=function(t){return function(){return i.unshift(t)}},
6316 -i.handleRemove=function(t){return function(){return i.remove(t)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(V6(i)),i.pop=i.pop.bind(V6(i)),i}var i,o;o=t,(i=e).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var l=e.prototype;return l.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!z6()(J6(t.formik.values,t.name),J6(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},l.remove=function(t){var e;return this.updateArrayField(function(i){var o=i?p8(i):[];return e||(e=o[t]),F6(o.splice)&&o.splice(t,1),F6(o.every)&&o.every(function(t){return void 0===t})?[]:o},!0,!0),e},l.pop=function(){var t;return this.updateArrayField(function(e){var i=e.slice();return t||(t=i&&i.pop&&i.pop()),i},!0,!0),t},l.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,
6317 -unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},e=this.props,i=e.component,o=e.render,l=e.children,n=e.name,s=N6({},t,{form:I6(e.formik,["validate","validationSchema"]),name:n});return i?(0,a.createElement)(i,s):o?o(s):l?"function"==typeof l?l(s):Z6(l)?null:a.Children.only(l):null},e}(a.Component);h8.defaultProps={validateOnChange:!0};var g8=d8(h8);const f8=t=>{if(!t||"object"!=typeof t)return t;const e={},i={fontFamily:["fontFamily","fontfamily"],fontSize:["fontSize","fontsize"],fontSizeUnit:["fontSizeUnit","fontsizeunit"],lineHeight:["lineHeight","lineheight"],lineHeightUnit:["lineHeightUnit","lineheightunit"],letterSpacing:["letterSpacing","letterspacing"],letterSpacingUnit:["letterSpacingUnit","letterspacingunit"],wordSpacing:["wordSpacing","wordspacing"],
6318 -wordSpacingUnit:["wordSpacingUnit","wordspacingunit"],weight:["weight"]};return Object.keys(t).forEach(o=>{Object.values(i).flat().includes(o)||(e[o]=t[o])}),Object.entries(i).forEach(([i,o])=>{for(const a of o)if(void 0!==t[a]&&""!==t[a]){e[i]=t[a];break}}),["fontSize","lineHeight","letterSpacing","wordSpacing"].forEach(t=>{e[t]&&!isNaN(e[t])&&(e[t]=Number(e[t]))}),e.weight&&!isNaN(e.weight)&&(e.weight=String(e.weight)),e};function y8(){const{values:t,setFieldValue:e}=B6();return(0,I.jsxs)("div",{className:"ablocks-colors-panel",children:[(0,I.jsx)("div",{className:"ablocks-colors-panel__title",children:(0,L.__)("System Colors","ablocks")}),t?.global_color?.filter(t=>t.is_system).map((i,o)=>{const a=t?.global_color?.findIndex(t=>t.id===i.id);return(0,I.jsxs)("div",{className:s()("ablocks-color-row","is-system"),children:[(0,I.jsx)("div",{className:"ablocks-color-row__left",children:(0,I.jsx)(b8,{name:`global_color[${a}].label`,as:"input",className:"ablocks-color-row__label-input",
6319 -placeholder:(0,L.__)("Label","ablocks")})}),(0,I.jsxs)("div",{className:"ablocks-color-row__right",children:[(0,I.jsx)(Ws,{label:"",isGradient:!0,attributeName:`global_color[${a}].value`,attributeValue:J6(t,`global_color[${a}].value`)||"",onChangeHandler:(t,i)=>{e(t,i)},resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(g8,{name:"global_color",children:t=>(0,I.jsx)("span",{type:"button",className:"ablocks-icon ablocks-icon--trash-can-slash"})})]})]},i.id)}),(0,I.jsx)("div",{className:"ablocks-divider"}),(0,I.jsx)("div",{className:"ablocks-colors-panel__title",children:(0,L.__)("Custom Colors","ablocks")}),t?.global_color?.filter(t=>!t.is_system).map((i,o)=>{const a=t?.global_color?.findIndex(t=>t.id===i.id);return(0,I.jsxs)("div",{className:"ablocks-color-row-custom",children:[(0,I.jsx)("div",{className:"ablocks-color-row-custom__left",children:(0,I.jsx)(b8,{name:`global_color[${a}].label`,as:"input",className:"ablocks-color-row-custom__left--label-input",
6320 -placeholder:(0,L.__)("Label","ablocks")})}),(0,I.jsxs)("div",{className:"ablocks-color-row-custom__right",children:[(0,I.jsx)(Ws,{isGradient:!0,attributeName:`global_color[${a}].value`,attributeValue:J6(t,`global_color[${a}].value`)||"",onChangeHandler:(t,i)=>{e(t,i)},resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(g8,{name:"global_color",children:t=>(0,I.jsx)("span",{type:"button",className:"ablocks-icon ablocks-icon--delete",onClick:()=>t.remove(a)})})]})]},i.id)}),(0,I.jsx)(g8,{name:"global_color",children:e=>(0,I.jsx)("div",{className:"ablocks-add-wrap",children:(0,I.jsx)("button",{type:"button",className:"ablocks-btn ablocks-btn--primary",onClick:()=>e.push(((t=[])=>{const e=`Custom ${t.filter(t=>!t.is_system&&t.label.startsWith("Custom")).length+1}`;return{id:`custom_${Date.now()}`,label:e,value:"",is_system:!1}})(t.global_color)),children:(0,L.__)("Add Style","ablocks")})})})]})}function T8(){const{values:t,setFieldValue:e}=B6();return(0,I.jsxs)("div",{
6321 -className:"ablocks-typography-panel",children:[(0,I.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,L.__)("System Fonts","ablocks")}),t?.global_typography?.filter(t=>t.is_system).map((i,o)=>{const a=t?.global_typography?.findIndex(t=>t.id===i.id);return-1===a?null:(0,I.jsxs)("div",{className:s()("ablocks-typography-row","is-system"),children:[(0,I.jsx)("div",{className:"ablocks-typography-row__left",children:(0,I.jsx)(b8,{name:`global_typography[${a}].label`,as:"input",className:"ablocks-typography-row__label-input",placeholder:(0,L.__)("Label","ablocks")})}),(0,I.jsxs)("div",{className:"ablocks-typography-row__right",children:[(0,I.jsx)(wc,{label:"",attributeName:`global_typography[${a}].value`,attributeValue:f8(J6(t,`global_typography[${a}].value`)),setAttributes:t=>{const i=`global_typography[${a}].value`;e(i,t[i]||t)},showGlobal:!1}),(0,I.jsx)(g8,{name:"global_typography",children:t=>(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--trash-can-slash",
6322 -style:{cursor:"pointer"}})})]})]},i.id)}),(0,I.jsx)("div",{className:"ablocks-divider"}),(0,I.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,L.__)("Custom Fonts","ablocks")}),t?.global_typography?.filter(t=>!t.is_system).map((i,o)=>{const a=t?.global_typography?.findIndex(t=>t.id===i.id);return-1===a?null:(0,I.jsxs)("div",{className:"ablocks-typography-row-custom",children:[(0,I.jsx)("div",{className:"ablocks-typography-row-custom__left",children:(0,I.jsx)(b8,{name:`global_typography[${a}].label`,as:"input",className:"ablocks-typography-row-custom__left--label-input",placeholder:(0,L.__)("Label","ablocks")})}),(0,I.jsxs)("div",{className:"ablocks-typography-row-custom__right",children:[(0,I.jsx)(wc,{label:"",attributeName:`global_typography[${a}].value`,attributeValue:f8(J6(t,`global_typography[${a}].value`)),setAttributes:t=>{const i=`global_typography[${a}].value`;e(i,t[i]||t)},showGlobal:!1}),(0,I.jsx)(g8,{name:"global_typography",children:t=>(0,I.jsx)("span",{
6323 -className:"ablocks-icon ablocks-icon--delete",onClick:()=>t.remove(a),style:{cursor:"pointer"}})})]})]},i.id)}),(0,I.jsx)(g8,{name:"global_typography",children:e=>(0,I.jsx)("div",{className:"ablocks-add-wrap",children:(0,I.jsx)("button",{type:"button",className:"ablocks-btn ablocks-btn--primary",onClick:()=>e.push(((t=[])=>{const e=`Custom ${t.filter(t=>!t.is_system&&t.label.startsWith("Custom")).length+1}`;return{id:`custom_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,label:e,value:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",
6324 -wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"},is_system:!1}})(t.global_typography)),children:(0,L.__)("Add Style","ablocks")})})}),(0,I.jsxs)("div",{className:"ablocks-typography-fallback",children:[(0,I.jsxs)("label",{className:"ablocks-typography-fallback__label",children:[(0,L.__)("Fallback Font Family","ablocks"),(0,I.jsx)("span",{className:"ablocks-typography-fallback__hint",children:(0,L.__)("Used for fonts aBlocks does not recognise (uploaded or theme fonts). Google fonts fall back to their own category automatically.","ablocks")})]}),(0,I.jsx)(b8,{name:"global_font_family_fallback",as:"input",type:"text",className:"ablocks-typography-fallback__input",placeholder:(0,L.__)("Sans-serif","ablocks")})]})]})}const H8=({title:t,values:e,setFieldValue:i})=>{const o=t.toLowerCase();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,L.__)(t,"ablocks")}),(0,I.jsx)(Ws,{label:(0,
6325 -L.__)("Text Color","ablocks"),attributeName:`global_${o}_color`,attributeValue:e[`global_${o}_color`]||"",onChangeHandler:(t,e)=>i(t,e),resetHandler:t=>{i(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),showGlobal:!1,attributeName:`global_${o}_typography`,attributeValue:e[`global_${o}_typography`]||{},setAttributes:t=>i(`global_${o}_typography`,t[`global_${o}_typography`]||t)})]})},M8=({type:t,values:e,setFieldValue:i})=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:"Text Color",attributeName:`global_link${t}color`,attributeValue:e[`global_link${t}color`]||"",onChangeHandler:(t,e)=>i(t,e),resetHandler:t=>{i(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),showGlobal:!1,attributeName:`global_link${t}typography`,attributeValue:e[`global_link${t}typography`]||{},setAttributes:e=>i(`global_link${t}typography`,e[`global_link${t}typography`]||e)})]});function x8(){
6326 -const{values:t,setFieldValue:e}=B6();return(0,I.jsxs)("div",{className:"ablocks-theme-panel",children:[(0,I.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,L.__)("Body","ablocks")}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"global_body_text_color",attributeValue:t.global_body_text_color||"",onChangeHandler:(t,i)=>e(t,i),resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),showGlobal:!1,attributeName:"global_body_typography",attributeValue:t.global_body_typography||{},setAttributes:t=>e("global_body_typography",t.global_body_typography||t)}),(0,I.jsx)(_t,{label:(0,L.__)("Paragraph Spacing","ablocks"),attributeName:"global_body_paragraph_space",attributeValue:t.global_body_paragraph_space||{},setAttributes:t=>e("global_body_paragraph_space",t.global_body_paragraph_space||t),isInline:!1,hasUnit:!0,min:1,max:100,step:1,isResponsive:!0}),(0,I.jsx)(It,{}),(0,I.jsx)("div",{
6327 -className:"ablocks-typography-panel__title",children:(0,L.__)("Link","ablocks")}),(0,I.jsx)(Ub,{content:(0,I.jsx)(M8,{type:"_",values:t,setFieldValue:e}),style:(0,I.jsx)(M8,{type:"_hover_",values:t,setFieldValue:e}),firstTabLabel:(0,L.__)("Normal","ablocks"),secondTabLabel:(0,L.__)("Hover","ablocks")}),(0,I.jsx)(It,{}),["H1","H2","H3","H4","H5","H6"].map((i,o)=>(0,I.jsxs)(React.Fragment,{children:[o>0&&(0,I.jsx)(It,{}),(0,I.jsx)(H8,{title:i,values:t,setFieldValue:e})]},i))]})}const k8=t=>"string"!=typeof t||isNaN(t)||""===t?t:Number(t),v8=(t,e)=>{if((t=k8(t))===(e=k8(e)))return!0;if(!t||!e)return!1;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!v8(t[i],e[i]))return!1;return!0}if("object"==typeof t){const i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(const a of i){if(!o.includes(a))return!1;if(!v8(t[a],e[a]))return!1}return!0}return t===e},_8=()=>{
6328 -const t=O2(t=>t.settings),e=N2();return(0,a.useEffect)(()=>{t?.data||e(N3())},[]),(0,I.jsx)(a8,{initialValues:{global_body_text_color:"",global_body_typography:{},global_body_paragraph_space:{},global_link_color:"",global_link_typography:{},global_link_hover_color:"",global_link_hover_typography:{},global_h1_color:"",global_h1_typography:{},global_h2_color:"",global_h2_typography:{},global_h3_color:"",global_h3_typography:{},global_h4_color:"",global_h4_typography:{},global_h5_color:"",global_h5_typography:{},global_h6_color:"",global_h6_typography:{},...t?.data,global_color:M.W0.global_color,global_typography:M.W0.global_typography,global_font_family_fallback:M.W0.global_font_family_fallback},onSubmit:async(t,i)=>{try{await e(I3({values:t})).unwrap();const i=wp.data.dispatch("core/editor");i?.savePost&&await i.savePost(),await e(N3()).unwrap(),setTimeout(()=>{window.location.reload()},100)}catch(t){i.setSubmitting(!1)}},enableReinitialize:!0,
6329 -children:({handleSubmit:t,isSubmitting:e,values:i,initialValues:o})=>{const l=!v8(i,o),n=((t,e,i)=>()=>{const o=document.querySelector(".interface-complementary-area-header__title");if(!o)return;let a=o.querySelector(".header-save-btn");a||(a=document.createElement("button"),a.className="header-save-btn save-button-header",a.style.cssText="",a.onclick=i,o.appendChild(a)),a.className="header-save-btn save-button-header "+(t?"enabled":"disabled"),a.textContent=e?(0,L.__)("Saving…","ablocks"):(0,L.__)("Save Changes","ablocks"),a.disabled=!t||e})(l,e,t);return(0,a.useEffect)(()=>{const t=t=>{if(!l)return;const e=t.target.closest("button");!e||"edit-post:block"!==e.getAttribute("aria-controls")&&"Settings"!==e.getAttribute("aria-label")||(t.preventDefault(),t.stopPropagation(),alert((0,L.__)("Please save your global changes first.","ablocks")))};return document.addEventListener("click",t,!0),()=>document.removeEventListener("click",t,!0)},[l]),(0,a.useEffect)(()=>{if(l){
6330 -const t=['.interface-navigable-region.interface-interface-skeleton__header[aria-label="Editor top bar"]','.interface-navigable-region.interface-interface-skeleton__content[aria-label="Editor content"]'].map(t=>{const e=document.querySelector(t);if(!e)return null;const i=document.createElement("div");return i.className="ablocks-window-lock-overlay",i.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),alert((0,L.__)("Please save your global changes first.","ablocks"))},!0),e.classList.add("ablocks-locked-element"),e.appendChild(i),{element:e,overlay:i}}).filter(Boolean);return()=>{t.forEach(({element:t,overlay:e})=>{e.remove(),t.classList.remove("ablocks-locked-element")})}}},[l]),(0,a.useEffect)(()=>{n();const t=setInterval(n,100);return()=>{clearInterval(t),document.querySelector(".header-save-btn")?.remove()}},[l,e,t,n]),(0,I.jsx)(c8,{className:"ablocks-global-settings",children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(y8,{}),(0,
6331 -I.jsx)(It,{}),(0,I.jsx)(T8,{})]}),style:(0,I.jsx)(x8,{}),firstTabLabel:(0,L.__)("Design System","ablocks"),secondTabLabel:(0,L.__)("Theme Style","ablocks")})})}})},{registerPlugin:R8}=wp.plugins,{__:S8}=wp.i18n;R8("ablocks-global-settings",{icon:(0,I.jsxs)("svg",{width:"251",height:"250",viewBox:"0 0 251 250",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M180.25 235.8H70.7499C39.7499 235.8 14.6499 210.7 14.6499 179.7V70.2499C14.6499 39.2499 39.7499 14.1499 70.7499 14.1499H180.2C211.2 14.1499 236.3 39.2499 236.3 70.2499V179.7C236.3 210.7 211.2 235.8 180.25 235.8Z",fill:"#1D1D1F"}),(0,I.jsx)("path",{d:"M181.3 124.35C181.3 132.8 177.85 140.45 172.35 145.95C166.8 151.5 159.15 154.9 150.75 154.9H142.1V93.7495H150.75C167.6 93.7495 181.3 107.45 181.3 124.35Z",fill:"#EAEAEB"}),(0,I.jsx)("path",{
6332 -d:"M181.3 55.1997V124.35C181.3 107.45 167.6 93.7497 150.7 93.7497H127.45C119 93.7497 111.35 97.1997 105.85 102.7C100.3 108.25 96.8998 115.9 96.8998 124.3C96.8998 141.2 110.6 154.9 127.5 154.9H142.15V194.8H126.85C88.2998 194.8 57.0498 163.55 57.0498 125C57.0498 105.7 64.8498 88.2497 77.4998 75.6497C90.1498 63.0497 107.6 55.1997 126.85 55.1997H168C172.55 55.1997 176.9 55.1997 181.3 55.1997Z",fill:"white"})]}),render:()=>(0,I.jsx)(x2.PluginSidebar,{name:"ablocks-global-settings",title:S8("aBlocks Settings","ablocks"),children:(0,I.jsx)(w2,{store:M6,children:(0,I.jsx)(_8,{})})})});const W8={taxonomies:{isRequestBeingProcessed:!1,data:void 0},metaFields:{},postTermsRelations:{},postMetaRelations:{},recentPosts:void 0,recentMediasUrls:void 0,authors:{},authorsMeta:{},postsCommentsCount:{},featuredMediasData:{},allTaxonomiesTermsData:{},authorData:{},authorProfilePictureUrl:void 0},P8=(0,r.createReduxStore)("ablocks/dynamic-content-store",{reducer:(t=W8,e)=>{switch(e.type){
6265 +onClick:()=>{n(!0)}}),l&&(0,I.jsx)(G2,{value:o,isProcessingData:d,onChange:i,settings:u,setSettings:b,isActive:e,onClose:()=>{n(!1)},onApply:()=>{const t={};let a=p||"",l="";if("post-type"===p||"current"===p)switch("post-type"===p&&(a+=`|${m}|${h}`),l=`${g}|${f}`,g){case"post-custom-field":l+=`|${_}`;break;case"post-date":case"post-time":l+=`|${T}|${H}|${x}`;break;case"post-excerpt":l+=`|${y}`;break;case"post-terms":l+=`|${k}|${v}`}else"site-tagline"===p||"site-title"===p?l=`|${f}`:"current-date-time"===p&&(l=`${W}|${R}|${S}|${f}`);t.source=a,t.field=l,t.editable="false";const n="ablocks/dynamic-content",s={type:n,attributes:t};let r=o;if(e){const{start:t,end:e}=((t,e)=>{const i=e;let{start:o,end:a}=t;const{formats:l}=t,n=l?.[o]?.find?.(t=>i===t.type);for(let t=o;t>=0;t--){const e=l?.[t]?.find?.(t=>i===t.type);if(!e||!(0,M.bD)(n,e)){o=t+1;break}}const s=l.length;for(let t=a;t<=s;t++){const e=l?.[t]?.find?.(t=>i===t.type);if(!e||!(0,M.bD)(n,e)){a=t;break}}return{start:o,end:a}})(o,n)
6266 +;r={...o,start:t+1,end:e},r=(0,w2.remove)(r,t,e),r=(0,w2.insert)(r,c),r={...r,start:t}}else o.start!==o.end&&(r=(0,w2.remove)(o,o.start,o.end)),r=(0,w2.insert)(r,c),r={...r,start:o.start};i((0,w2.applyFormat)(r,s))}})]})},attributes:{editable:"contenteditable",source:"data-source",field:"data-field"}});const{RichTextShortcut:Z2}=wp.blockEditor,K2="ablocks/mark",J2={title:(0,L.__)("Text Highlight","ablocks"),tagName:"span",className:"ablocks-text-highlight",edit({isActive:t,value:e,onChange:i}){const[o,a]=(0,Yt.useState)(!1),[l,n]=(0,Yt.useState)(""),[s,b]=(0,Yt.useState)(""),c=(0,r.useSelect)(t=>t("core/block-editor").getSelectedBlock(),[]);if(!c||!c.name.startsWith("ablocks/"))return null;const d=t=>{n(t);const o=e.activeFormats?.find(t=>t.type===K2),a=(o?.attributes?.style||"").match(/color:\s*([^;]+)/),l=a?a[1]:"",s=`${t?.includes("gradient")?"background":"background-color"}: ${t};${l?` color: ${l};`:""}`;i((0,w2.applyFormat)(e,{type:K2,attributes:{style:s}}))},u=t=>{b(t)
6267 +;const o=e.activeFormats?.find(t=>t.type===K2);if(!o)return void i((0,w2.applyFormat)(e,{type:K2,attributes:{style:`color: ${t};`}}));const a=(o.attributes?.style||"").match(/background(-color)?:\s*([^;]+)/),l=a?a[2]:"",n=`${l?`background: ${l}; `:""}color: ${t};`;i((0,w2.applyFormat)(e,{type:K2,attributes:{style:n}}))};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Z2,{type:"primary",character:"m",onUse:()=>{const t=e.activeFormats?.some(t=>t.type===K2);t?(i((0,w2.removeFormat)(e,K2)),a(!1)):a(!o)}}),(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarGroup,{children:(0,I.jsx)(Xt,{label:(0,L.__)("Text Highlight","ablocks"),CustomToggler:({isVisible:e,toggleVisible:i})=>(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),title:(0,L.__)("Text Highlight","ablocks"),onClick:i,shortcutType:"access",shortcutCharacter:"m",isActive:t||e,className:`toolbar-button-with-text toolbar-button__${K2}`}),isVisible:o,toggleVisible:a,
6268 +className:"ablocks-highlight-popover",children:(0,I.jsxs)("div",{className:"ablocks-highlight-controls",children:[(0,I.jsx)("div",{className:"ablocks-highlight-control",children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeValue:l,onChangeHandler:(t,e)=>d(e)})}),(0,I.jsx)("div",{className:"ablocks-highlight-control",children:(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeValue:s,onChangeHandler:(t,e)=>u(e)})})]})})})})]})}};(0,w2.registerFormatType)(K2,J2),(0,b.addFilter)("ablocks.dynamic_content.richTextComponent","ablocks/dynamic_content_rich_text_render_component",function(t){const{blockProps:e={},children:i,...o}=t,{tagName:a,value:l,className:n,context:s}=o,{isDynamicEnabled:r,data:b,isProcessingData:c}=id({attributeValue:l,context:s});return r?c?(0,I.jsx)(N.Spinner,{}):(0,I.jsx)(a,{className:n,dangerouslySetInnerHTML:{__html:b}}):i?(0,I.jsx)(a,{className:n,children:i}):(0,I.jsx)(D.RichText,{...e,...o})}),(0,
6269 +b.addFilter)("ablocks.dynamic_content.get_dynamic_value","ablocks/dynamic_content_parse_and_get_dynamic_value",function({attributeValue:t,context:e}){const{isDynamicEnabled:i,data:o,isProcessingData:a}=id({attributeValue:t,context:e});return i&&!a?o:t});const Q2=window.wp.editor;var t4=i(78418);var e4={notify(){},get:()=>[]};var i4=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),o4=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),a4=(()=>i4||o4?a.useLayoutEffect:a.useEffect)();Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var l4=Symbol.for("react-redux-context"),n4="undefined"!=typeof globalThis?globalThis:{};function s4(){if(!a.createContext)return{};const t=n4[l4]??=new Map;let e=t.get(a.createContext);return e||(e=a.createContext(null),t.set(a.createContext,e)),e}var r4=s4(),b4=function(t){
6270 +const{children:e,context:i,serverState:o,store:l}=t,n=a.useMemo(()=>{const t=function(t,e){let i,o=e4,a=0,l=!1;function n(){b.onStateChange&&b.onStateChange()}function s(){a++,i||(i=e?e.addNestedSub(n):t.subscribe(n),o=function(){let t=null,e=null;return{clear(){t=null,e=null},notify(){(()=>{let e=t;for(;e;)e.callback(),e=e.next})()},get(){const e=[];let i=t;for(;i;)e.push(i),i=i.next;return e},subscribe(i){let o=!0;const a=e={callback:i,next:null,prev:e};return a.prev?a.prev.next=a:t=a,function(){o&&null!==t&&(o=!1,a.next?a.next.prev=a.prev:e=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())}function r(){a--,i&&0===a&&(i(),i=void 0,o.clear(),o=e4)}const b={addNestedSub:function(t){s();const e=o.subscribe(t);let i=!1;return()=>{i||(i=!0,e(),r())}},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:n,isSubscribed:function(){return l},trySubscribe:function(){l||(l=!0,s())},tryUnsubscribe:function(){l&&(l=!1,r())},getListeners:()=>o};return b}(l);return{store:l,subscription:t,
6271 +getServerState:o?()=>o:void 0}},[l,o]),s=a.useMemo(()=>l.getState(),[l]);a4(()=>{const{subscription:t}=n;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==l.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[n,s]);const r=i||r4;return a.createElement(r.Provider,{value:n},e)};function c4(t=r4){return function(){return a.useContext(t)}}var d4=c4();function u4(t=r4){const e=t===r4?d4:c4(t),i=()=>{const{store:t}=e();return t};return Object.assign(i,{withTypes:()=>i}),i}var p4=u4();function m4(t=r4){const e=t===r4?p4:u4(t),i=()=>e().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var h4=m4(),g4=(t,e)=>t===e;function f4(t=r4){const e=t===r4?d4:c4(t),i=(t,i={})=>{const{equalityFn:o=g4}="function"==typeof i?{equalityFn:i}:i,l=e(),{store:n,subscription:s,getServerState:r}=l,b=(a.useRef(!0),a.useCallback({[t.name]:e=>t(e)}[t.name],[t])),c=(0,t4.useSyncExternalStoreWithSelector)(s.addNestedSub,n.getState,r||n.getState,b,o)
6272 +;return a.useDebugValue(c),c};return Object.assign(i,{withTypes:()=>i}),i}var y4=f4(),T4=Symbol.for("immer-nothing"),H4=Symbol.for("immer-draftable"),M4=Symbol.for("immer-state");function x4(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var k4=Object,v4=k4.getPrototypeOf,_4="constructor",R4="prototype",S4="configurable",W4="enumerable",P4="writable",U4="value",j4=t=>!!t&&!!t[M4];function w4(t){return!!t&&(A4(t)||O4(t)||!!t[H4]||!!t[_4]?.[H4]||Y4(t)||X4(t))}var z4=k4[R4][_4].toString(),C4=new WeakMap;function A4(t){if(!t||!B4(t))return!1;const e=v4(t);if(null===e||e===k4[R4])return!0;const i=k4.hasOwnProperty.call(e,_4)&&e[_4];if(i===Object)return!0;if(!E4(i))return!1;let o=C4.get(i);return void 0===o&&(o=Function.toString.call(i),C4.set(i,o)),o===z4}function L4(t,e,i=!0){0===D4(t)?(i?Reflect.ownKeys(t):k4.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((i,o)=>e(o,i,t))}function D4(t){const e=t[M4]
6273 +;return e?e.type_:O4(t)?1:Y4(t)?2:X4(t)?3:0}var N4=(t,e,i=D4(t))=>2===i?t.has(e):k4[R4].hasOwnProperty.call(t,e),I4=(t,e,i=D4(t))=>2===i?t.get(e):t[e],V4=(t,e,i,o=D4(t))=>{2===o?t.set(e,i):3===o?t.add(i):t[e]=i},O4=Array.isArray,Y4=t=>t instanceof Map,X4=t=>t instanceof Set,B4=t=>"object"==typeof t,E4=t=>"function"==typeof t,F4=t=>"boolean"==typeof t,q4=t=>t.copy_||t.base_,$4=t=>t.modified_?t.copy_:t.base_;function G4(t,e){if(Y4(t))return new Map(t);if(X4(t))return new Set(t);if(O4(t))return Array[R4].slice.call(t);const i=A4(t);if(!0===e||"class_only"===e&&!i){const e=k4.getOwnPropertyDescriptors(t);delete e[M4];let i=Reflect.ownKeys(e);for(let o=0;o<i.length;o++){const a=i[o],l=e[a];!1===l[P4]&&(l[P4]=!0,l[S4]=!0),(l.get||l.set)&&(e[a]={[S4]:!0,[P4]:!0,[W4]:l[W4],[U4]:t[a]})}return k4.create(v4(t),e)}{const e=v4(t);if(null!==e&&i)return{...t};const o=k4.create(e);return k4.assign(o,t)}}function Z4(t,e=!1){return J4(t)||j4(t)||!w4(t)||(D4(t)>1&&k4.defineProperties(t,{set:K4,add:K4,
6274 +clear:K4,delete:K4}),k4.freeze(t),e&&L4(t,(t,e)=>{Z4(e,!0)},!1)),t}var K4={[U4]:function(){x4(2)}};function J4(t){return null===t||!B4(t)||k4.isFrozen(t)}var Q4="MapSet",t3="Patches",e3="ArrayMethods",i3={};function o3(t){const e=i3[t];return e||x4(0),e}var a3,l3=t=>!!i3[t],n3=()=>a3;function s3(t,e){e&&(t.patchPlugin_=o3(t3),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function r3(t){b3(t),t.drafts_.forEach(d3),t.drafts_=null}function b3(t){t===a3&&(a3=t.parent_)}var c3=t=>a3={drafts_:[],parent_:a3,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:l3(Q4)?o3(Q4):void 0,arrayMethodsPlugin_:l3(e3)?o3(e3):void 0};function d3(t){const e=t[M4];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function u3(t,e){e.unfinalizedDrafts_=e.drafts_.length;const i=e.drafts_[0];if(void 0!==t&&t!==i){i[M4].modified_&&(r3(e),x4(4)),w4(t)&&(t=p3(e,t));const{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(i[M4].base_,t,e)
6275 +}else t=p3(e,i);return function(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Z4(e,i)}(e,t,!0),r3(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==T4?t:void 0}function p3(t,e){if(J4(e))return e;const i=e[M4];if(!i)return T3(e,t.handledSet_,t);if(!h3(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:e}=i;if(e)for(;e.length>0;)e.pop()(t);y3(i,t)}return i.copy_}function m3(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var h3=(t,e)=>t.scope_===e,g3=[];function f3(t,e,i,o){const a=q4(t),l=t.type_;if(void 0!==o&&I4(a,o,l)===e)return void V4(a,o,i,l);if(!t.draftLocations_){const e=t.draftLocations_=new Map;L4(a,(t,i)=>{if(j4(i)){const o=e.get(i)||[];o.push(t),e.set(i,o)}})}const n=t.draftLocations_.get(e)??g3;for(const t of n)V4(a,t,i,l)}function y3(t,e){if(t.modified_&&!t.finalized_&&(3===t.type_||1===t.type_&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){const{patchPlugin_:i}=e;if(i){const o=i.getPath(t)
6276 +;o&&i.generatePatches_(t,o,e)}m3(t)}}function T3(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||j4(t)||e.has(t)||!w4(t)||J4(t)||(e.add(t),L4(t,(o,a)=>{if(j4(a)){const e=a[M4];if(h3(e,i)){const i=$4(e);V4(t,o,i,t.type_),m3(e)}}else w4(a)&&T3(a,e,i)})),t}var H3={get(t,e){if(e===M4)return t;let i=t.scope_.arrayMethodsPlugin_;const o=1===t.type_&&"string"==typeof e;if(o&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);const a=q4(t);if(!N4(a,e,t.type_))return function(t,e,i){const o=k3(e,i);return o?U4 in o?o[U4]:o.get?.call(t.draft_):void 0}(t,a,e);const l=a[e];if(t.finalized_||!w4(l))return l;if(o&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&function(t){const e=+t;return Number.isInteger(e)&&String(e)===t}(e))return l;if(l===x3(t.base_,e)){_3(t);const i=1===t.type_?+e:e,o=R3(t.scope_,l,t,i);return t.copy_[i]=o}return l},has:(t,e)=>e in q4(t),ownKeys:t=>Reflect.ownKeys(q4(t)),set(t,e,i){const o=k3(q4(t),e)
6277 +;if(o?.set)return o.set.call(t.draft_,i),!0;if(!t.modified_){const o=x3(q4(t),e),a=o?.[M4];if(a&&a.base_===i)return t.copy_[e]=i,t.assigned_.set(e,!1),!0;if(function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}(i,o)&&(void 0!==i||N4(t.base_,e,t.type_)))return!0;_3(t),v3(t)}return t.copy_[e]===i&&(void 0!==i||e in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),function(t,e,i){const{scope_:o}=t;if(j4(i)){const a=i[M4];h3(a,o)&&a.callbacks_.push(function(){_3(t);const o=$4(a);f3(t,i,o,e)})}else w4(i)&&t.callbacks_.push(function(){const a=q4(t);3===t.type_?a.has(i)&&T3(i,o.handledSet_,o):I4(a,e,t.type_)===i&&o.drafts_.length>1&&!0===(t.assigned_.get(e)??!1)&&t.copy_&&T3(I4(t.copy_,e,t.type_),o.handledSet_,o)})}(t,e,i)),!0},deleteProperty:(t,e)=>(_3(t),void 0!==x3(t.base_,e)||e in t.base_?(t.assigned_.set(e,!1),v3(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){
6278 +const i=q4(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{[P4]:!0,[S4]:1!==t.type_||"length"!==e,[W4]:o[W4],[U4]:i[e]}:o},defineProperty(){x4(11)},getPrototypeOf:t=>v4(t.base_),setPrototypeOf(){x4(12)}},M3={};for(let t in H3){let e=H3[t];M3[t]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function x3(t,e){const i=t[M4];return(i?q4(i):t)[e]}function k3(t,e){if(!(e in t))return;let i=v4(t);for(;i;){const t=Object.getOwnPropertyDescriptor(i,e);if(t)return t;i=v4(i)}}function v3(t){t.modified_||(t.modified_=!0,t.parent_&&v3(t.parent_))}function _3(t){t.copy_||(t.assigned_=new Map,t.copy_=G4(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function R3(t,e,i,o){const[a,l]=Y4(e)?o3(Q4).proxyMap_(e,i):X4(e)?o3(Q4).proxySet_(e,i):function(t,e){const i=O4(t),o={type_:i?1:0,scope_:e?e.scope_:n3(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=o,l=H3;i&&(a=[o],l=M3)
6279 +;const{revoke:n,proxy:s}=Proxy.revocable(a,l);return o.draft_=s,o.revoke_=n,[s,o]}(e,i);return(i?.scope_??n3()).drafts_.push(a),l.callbacks_=i?.callbacks_??[],l.key_=o,i&&void 0!==o?function(t,e,i){t.callbacks_.push(function(o){const a=e;if(!a||!h3(a,o))return;o.mapSetPlugin_?.fixSetContents(a);const l=$4(a);f3(t,a.draft_??a,l,i),y3(a,o)})}(i,l,o):l.callbacks_.push(function(t){t.mapSetPlugin_?.fixSetContents(l);const{patchPlugin_:e}=t;l.modified_&&e&&e.generatePatches_(l,[],t)}),a}function S3(t){if(!w4(t)||J4(t))return t;const e=t[M4];let i,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=G4(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else i=G4(t,!0);return L4(i,(t,e)=>{V4(i,t,S3(e))},o),e&&(e.finalized_=!1),i}M3.deleteProperty=function(t,e){return M3.set.call(this,t,e,void 0)},M3.set=function(t,e,i){return H3.set.call(this,t[0],e,i,t[0])};var W3=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,
6280 +this.useStrictIteration_=!1,this.produce=(t,e,i)=>{if(E4(t)&&!E4(e)){const i=e;e=t;const o=this;return function(t=i,...a){return o.produce(t,t=>e.call(this,t,...a))}}let o;if(E4(e)||x4(6),void 0===i||E4(i)||x4(7),w4(t)){const a=c3(this),l=R3(0,t,void 0);let n=!0;try{o=e(l),n=!1}finally{n?r3(a):b3(a)}return s3(a,i),u3(o,a)}if(!t||!B4(t)){if(o=e(t),void 0===o&&(o=t),o===T4&&(o=void 0),this.autoFreeze_&&Z4(o,!0),i){const e=[],a=[];o3(t3).generateReplacementPatches_(t,o,{patches_:e,inversePatches_:a}),i(e,a)}return o}x4(1)},this.produceWithPatches=(t,e)=>{if(E4(t))return(e,...i)=>this.produceWithPatches(e,e=>t(e,...i));let i,o;const a=this.produce(t,e,(t,e)=>{i=t,o=e});return[a,i,o]},F4(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),F4(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),F4(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){var e;w4(t)||x4(8),j4(t)&&(j4(e=t)||x4(10),t=S3(e));const i=c3(this),o=R3(0,t,void 0)
6281 +;return o[M4].isManual_=!0,b3(i),o}finishDraft(t,e){const i=t&&t[M4];i&&i.isManual_||x4(9);const{scope_:o}=i;return s3(o,e),u3(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){const o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));const o=o3(t3).applyPatches_;return j4(t)?o(t,e):this.produce(t,t=>o(t,e))}},P3=W3.produce;function U3(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var j3=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),w3=()=>Math.random().toString(36).substring(7).split("").join("."),z3={INIT:`@@redux/INIT${w3()}`,REPLACE:`@@redux/REPLACE${w3()}`,
6282 +PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${w3()}`};function C3(t){if("object"!=typeof t||null===t)return!1;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||null===Object.getPrototypeOf(t)}function A3(t,e,i){if("function"!=typeof t)throw new Error(U3(2));if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(U3(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(U3(1));return i(A3)(t,e)}let o=t,a=e,l=new Map,n=l,s=0,r=!1;function b(){n===l&&(n=new Map,l.forEach((t,e)=>{n.set(e,t)}))}function c(){if(r)throw new Error(U3(3));return a}function d(t){if("function"!=typeof t)throw new Error(U3(4));if(r)throw new Error(U3(5));let e=!0;b();const i=s++;return n.set(i,t),function(){if(e){if(r)throw new Error(U3(6));e=!1,b(),n.delete(i),l=null}}}function u(t){if(!C3(t))throw new Error(U3(7))
6283 +;if(void 0===t.type)throw new Error(U3(8));if("string"!=typeof t.type)throw new Error(U3(17));if(r)throw new Error(U3(9));try{r=!0,a=o(a,t)}finally{r=!1}return(l=n).forEach(t=>{t()}),t}return u({type:z3.INIT}),{dispatch:u,subscribe:d,getState:c,replaceReducer:function(t){if("function"!=typeof t)throw new Error(U3(10));o=t,u({type:z3.REPLACE})},[j3]:function(){const t=d;return{subscribe(e){if("object"!=typeof e||null===e)throw new Error(U3(11));function i(){const t=e;t.next&&t.next(c())}return i(),{unsubscribe:t(i)}},[j3](){return this}}}}}function L3(...t){return 0===t.length?t=>t:1===t.length?t[0]:t.reduce((t,e)=>(...i)=>t(e(...i)))}function D3(t){return({dispatch:e,getState:i})=>o=>a=>"function"==typeof a?a(e,i,t):o(a)}var N3=D3(),I3=D3,V3="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?L3:L3.apply(null,arguments)
6284 +},O3=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,t=>t&&"function"==typeof t.match);function Y3(t,e){function i(...i){if(e){let o=e(...i);if(!o)throw new Error(b6(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:i[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=e=>function(t){return C3(t)&&"type"in t&&"string"==typeof t.type}(e)&&e.type===t,i}var X3=class t extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)}static get[Symbol.species](){return t}concat(...t){return super.concat.apply(this,t)}prepend(...e){return 1===e.length&&Array.isArray(e[0])?new t(...e[0].concat(this)):new t(...e.concat(this))}};function B3(t){return w4(t)?P3(t,()=>{}):t}function E3(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}var F3=t=>e=>{setTimeout(e,t)};function q3(t){const e={},i=[];let o;const a={addCase(t,i){
6285 +const o="string"==typeof t?t:t.type;if(!o)throw new Error(b6(28));if(o in e)throw new Error(b6(29));return e[o]=i,a},addAsyncThunk:(t,o)=>(o.pending&&(e[t.pending.type]=o.pending),o.rejected&&(e[t.rejected.type]=o.rejected),o.fulfilled&&(e[t.fulfilled.type]=o.fulfilled),o.settled&&i.push({matcher:t.settled,reducer:o.settled}),a),addMatcher:(t,e)=>(i.push({matcher:t,reducer:e}),a),addDefaultCase:t=>(o=t,a)};return t(a),[e,i,o]}function $3(...t){return e=>t.some(t=>((t,e)=>O3(t)?t.match(e):t(e))(t,e))}var G3=["name","message","stack","code"],Z3=class{constructor(t,e){this.payload=t,this.meta=e}_type},K3=class{constructor(t,e){this.payload=t,this.meta=e}_type},J3=t=>{if("object"==typeof t&&null!==t){const e={};for(const i of G3)"string"==typeof t[i]&&(e[i]=t[i]);return e}return{message:String(t)}},Q3="External signal was aborted",t6=(()=>{function t(t,e,i){const o=Y3(t+"/fulfilled",(t,e,i,o)=>({payload:t,meta:{...o||{},arg:i,requestId:e,requestStatus:"fulfilled"}
6286 +})),a=Y3(t+"/pending",(t,e,i)=>({payload:void 0,meta:{...i||{},arg:e,requestId:t,requestStatus:"pending"}})),l=Y3(t+"/rejected",(t,e,o,a,l)=>({payload:a,error:(i&&i.serializeError||J3)(t||"Rejected"),meta:{...l||{},arg:o,requestId:e,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===t?.name,condition:"ConditionError"===t?.name}}));return Object.assign(function(t,{signal:n}={}){return(s,r,b)=>{const c=i?.idGenerator?i.idGenerator(t):((t=21)=>{let e="",i=t;for(;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e})(),d=new AbortController;let u,p;function m(t){p=t,d.abort()}n&&(n.aborted?m(Q3):n.addEventListener("abort",()=>m(Q3),{once:!0}));const h=async function(){let n;try{let l=i?.condition?.(t,{getState:r,extra:b});if(null!==(h=l)&&"object"==typeof h&&"function"==typeof h.then&&(l=await l),!1===l||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."}
6287 +;const g=new Promise((t,e)=>{u=()=>{e({name:"AbortError",message:p||"Aborted"})},d.signal.addEventListener("abort",u,{once:!0})});s(a(c,t,i?.getPendingMeta?.({requestId:c,arg:t},{getState:r,extra:b}))),n=await Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:r,extra:b,requestId:c,signal:d.signal,abort:m,rejectWithValue:(t,e)=>new Z3(t,e),fulfillWithValue:(t,e)=>new K3(t,e)})).then(e=>{if(e instanceof Z3)throw e;return e instanceof K3?o(e.payload,c,t,e.meta):o(e,c,t)})])}catch(e){n=e instanceof Z3?l(null,c,t,e.payload,e.meta):l(e,c,t)}finally{u&&d.signal.removeEventListener("abort",u)}var h;return i&&!i.dispatchConditionRejection&&l.match(n)&&n.meta.condition||s(n),n}();return Object.assign(h,{abort:m,requestId:c,arg:t,unwrap:()=>h.then(e6)})}},{pending:a,rejected:l,fulfilled:o,settled:$3(l,o),typePrefix:t})}return t.withTypes=()=>t,t})();function e6(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}
6288 +var i6=Symbol.for("rtk-slice-createasyncthunk");function o6(t,e){return`${t}/${e}`}function a6({creators:t}={}){const e=t?.asyncThunk?.[i6];return function(t){const{name:i,reducerPath:o=i}=t;if(!i)throw new Error(b6(11));const a=("function"==typeof t.reducers?t.reducers(function(){function t(t,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...e}}return t.withTypes=()=>t,{reducer:t=>Object.assign({[t.name]:(...e)=>t(...e)}[t.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(t,e)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:e}),asyncThunk:t}}()):t.reducers)||{},l=Object.keys(a),n={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(t,e){const i="string"==typeof t?t:t.type;if(!i)throw new Error(b6(12));if(i in n.sliceCaseReducersByType)throw new Error(b6(13));return n.sliceCaseReducersByType[i]=e,s},addMatcher:(t,e)=>(n.sliceMatchers.push({matcher:t,reducer:e}),s),
6289 +exposeAction:(t,e)=>(n.actionCreators[t]=e,s),exposeCaseReducer:(t,e)=>(n.sliceCaseReducersByName[t]=e,s)};function r(){const[e={},i=[],o]="function"==typeof t.extraReducers?q3(t.extraReducers):[t.extraReducers],a={...e,...n.sliceCaseReducersByType};return function(t){let e,[l,s,r]=q3(t=>{for(let e in a)t.addCase(e,a[e]);for(let e of n.sliceMatchers)t.addMatcher(e.matcher,e.reducer);for(let e of i)t.addMatcher(e.matcher,e.reducer);o&&t.addDefaultCase(o)});if(function(t){return"function"==typeof t}(t))e=()=>B3(t());else{const i=B3(t);e=()=>i}function b(t=e(),i){let o=[l[i.type],...s.filter(({matcher:t})=>t(i)).map(({reducer:t})=>t)];return 0===o.filter(t=>!!t).length&&(o=[r]),o.reduce((t,e)=>{if(e){if(j4(t)){const o=e(t,i);return void 0===o?t:o}if(w4(t))return P3(t,t=>e(t,i));{const o=e(t,i);if(void 0===o){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}}return t},t)}return b.getInitialState=e,b}(t.initialState)}
6290 +l.forEach(o=>{const l=a[o],n={reducerName:o,type:o6(i,o),createNotation:"function"==typeof t.reducers};!function(t){return"asyncThunk"===t._reducerDefinitionType}(l)?function({type:t,reducerName:e,createNotation:i},o,a){let l,n;if("reducer"in o){if(i&&!function(t){return"reducerWithPrepare"===t._reducerDefinitionType}(o))throw new Error(b6(17));l=o.reducer,n=o.prepare}else l=o;a.addCase(t,l).exposeCaseReducer(e,l).exposeAction(e,n?Y3(t,n):Y3(t))}(n,l,s):function({type:t,reducerName:e},i,o,a){if(!a)throw new Error(b6(18));const{payloadCreator:l,fulfilled:n,pending:s,rejected:r,settled:b,options:c}=i,d=a(t,l,c);o.exposeAction(e,d),n&&o.addCase(d.fulfilled,n),s&&o.addCase(d.pending,s),r&&o.addCase(d.rejected,r),b&&o.addMatcher(d.settled,b),o.exposeCaseReducer(e,{fulfilled:n||s6,pending:s||s6,rejected:r||s6,settled:b||s6})}(n,l,s,e)});const b=t=>t,c=new Map,d=new WeakMap;let u;function p(t,e){return u||(u=r()),u(t,e)}function m(){return u||(u=r()),u.getInitialState()}function h(e,i=!1){
6291 +function o(t){let a=t[e];return void 0===a&&i&&(a=E3(d,o,m)),a}function a(e=b){const o=E3(c,i,()=>new WeakMap);return E3(o,e,()=>{const o={};for(const[a,l]of Object.entries(t.selectors??{}))o[a]=l6(l,e,()=>E3(d,e,m),i);return o})}return{reducerPath:e,getSelectors:a,get selectors(){return a(o)},selectSlice:o}}const g={name:i,reducer:p,actions:n.actionCreators,caseReducers:n.sliceCaseReducersByName,getInitialState:m,...h(o),injectInto(t,{reducerPath:e,...i}={}){const a=e??o;return t.inject({reducerPath:a,reducer:p},i),{...g,...h(a,!0)}}};return g}}function l6(t,e,i,o){function a(a,...l){let n=e(a);return void 0===n&&o&&(n=i()),t(n,...l)}return a.unwrapped=t,a}var n6=a6();function s6(){}var{assign:r6}=Object;function b6(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original");const c6=t6("ablocks/fetchAdminMenuItems",t=>{try{
6292 +return(0,M.In)({action:"ablocks/get_admin_menu_items"}).then(t=>JSON.parse(t?.data?.data))}catch(e){t.dispatch(showNotification({message:e?.response?.data?.message??e?.message,isShow:!0,type:"error"}))}}),d6=n6({name:"menus",initialState:{data:M.MK?JSON.parse(M.MK):{}},extraReducers:t=>{t.addCase(c6.pending,t=>{t.loading=!0}).addCase(c6.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(c6.rejected,t=>{t.loading=!1})}}).reducer,u6=n6({name:"notification",initialState:{message:"",showNotification:!1,type:""},reducers:{showNotification:(t,e)=>{const i=e.payload;t.message=i.message,t.showNotification=i.isShow,t.type=i.type}}}),p6=u6.reducer,{showNotification:m6}=u6.actions,h6=t6("ablocks/FetchSettings",()=>(0,M.In)({action:"ablocks/get_settings"}).then(t=>t.data.data)),g6=t6("ablocks/updateSettings",async({values:t,url:e="ablocks/save_settings"},i)=>{try{const o=await(0,M.In)({action:e,...t});return o.data.success?(i.dispatch(m6({message:(0,L.__)("Settings Saved!","ablocks"),
6293 +isShow:!0,type:"success"})),t):(i.dispatch(m6({message:(0,L.__)("Failed to save settings.","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(o.data.data))}catch(t){return i.dispatch(m6({message:t?.response?.data?.message??t.message,isShow:!0,type:"error"})),i.rejectWithValue(t.message)}}),f6=n6({name:"settings",initialState:{loading:!1},extraReducers:t=>{t.addCase(h6.pending,t=>{t.loading=!0}).addCase(h6.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(h6.rejected,t=>{t.loading=!1}).addCase(g6.pending,t=>{t.loading=!0}).addCase(g6.fulfilled,(t,e)=>{t.loading=!1,t.data={...t.data,...e.payload}}).addCase(g6.rejected,t=>{t.loading=!1})}}).reducer,y6=t6("ablocks/fetchBlockVisibility",()=>(0,M.In)({action:"ablocks/get_blocks_visibility"}).then(t=>t.data.data)),T6=t6("ablocks/saveBlockVisibility",t=>(0,M.In)({action:"ablocks/save_block_visibility",...t}).then(t=>t.data.data)),H6=t6("ablocks/saveBulkBlockVisibility",t=>(0,M.In)({action:"ablocks/save_bulk_block_visibility",
6294 +blocks:t}).then(t=>t.data.data)),M6=n6({name:"blocks",initialState:{loading:!1},extraReducers:t=>{t.addCase(y6.pending,t=>{t.loading=!0}).addCase(y6.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(y6.rejected,t=>{t.loading=!1}).addCase(T6.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(H6.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload})}}).reducer,x6=t6("ablocks/FetchSubmissions",({status:t="all",page:e=1,per_page:i=10,search:o=""},a)=>{const l="trash"===t?"yes":"no";return(0,M.In)({action:"ablocks/get_entries",status:t,current_page:e,per_page:i,search:o,is_in_trash:l}).then(t=>t?.data?.success?t.data.data:(a.dispatch(m6({message:(0,L.__)("Failed to fetch entries!","ablocks"),isShow:!0,type:"error"})),a.rejectWithValue(t.data.data||"Failed to fetch entries!")))}),k6=t6("ablocks/exportEntriesAsCSV",()=>(0,M.In)({action:"ablocks/get_entries",export_csv:1}).then(t=>t.data.data)),v6=t6("ablocks/fetchEntry",({id:t},e)=>(0,M.In)({action:"ablocks/get_entry",entry_id:t
6295 +}).then(t=>t?.data?.success?t.data.data:(e.dispatch(m6({message:(0,L.__)("Failed to fetch entry!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to fetch entry!")))),_6=(t6("ablocks/editEntry",({id:t,updatedData:e},i)=>(0,M.In)({action:"ablocks/edit_entry",entry_id:parseInt(t),data:e}).then(t=>t.data.success?(i.dispatch(m6({message:(0,L.__)("Successfully updated entry!","ablocks"),isShow:!0,type:"success"})),t.data.data):(i.dispatch(m6({message:(0,L.__)("Failed to update entry!","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(t.data.data||"Failed to update entry!")))),t6("ablocks/deleteEntry",({entryIds:t},e)=>(0,M.In)({action:"ablocks/delete_entries","entry_id_array[0]":t[0]}).then(t=>t.data.success?(e.dispatch(m6({message:(0,L.__)("Successfully deleted entries!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(m6({message:(0,L.__)("Failed to delete entries!","ablocks"),isShow:!0,type:"error"})),
6296 +e.rejectWithValue(t.data.data||"Failed to delete entries!"))))),R6=t6("ablocks/markEntriesAsRead",({entryIds:t},e)=>(0,M.In)({action:"ablocks/mark_entries_as_read",entry_id_array:t}).then(t=>t.data.success?(e.dispatch(m6({message:(0,L.__)("Successfully marked entries as read!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(m6({message:(0,L.__)("Failed to mark entries as read!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to mark entries as read!")))),S6=t6("ablocks/markEntriesAsUnread",({entryIds:t},e)=>(0,M.In)({action:"ablocks/mark_entries_as_unread",entry_id_array:t}).then(t=>t.data.success?(e.dispatch(m6({message:(0,L.__)("Successfully marked entries as unread!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(m6({message:(0,L.__)("Failed to mark entries as unread!","ablocks"),isShow:!0,type:"error"})),
6297 +e.rejectWithValue(t.data.data||"Failed to mark entries as unread!")))),W6=t6("ablocks/sendEntriesToTrash",({entryId:t},e)=>(0,M.In)({action:"ablocks/send_entries_to_trash",entry_id:t}).then(t=>t.data.success?(e.dispatch(m6({message:(0,L.__)("Successfully sent entries to trash!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(m6({message:(0,L.__)("Failed to send entries to trash!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to send entries to trash!")))),P6=t6("ablocks/restoreEntriesFromTrash",({entryId:t},e)=>(0,M.In)({action:"ablocks/restore_entries_from_trash",entry_id:t}).then(t=>t.data.success?(e.dispatch(m6({message:(0,L.__)("Successfully restored entries from trash!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(m6({message:(0,L.__)("Failed to restore entries from trash!","ablocks"),isShow:!0,type:"error"})),
6298 +e.rejectWithValue(t.data.data||"Failed to restore entries from trash!")))),U6=t6("ablocks/updateSettings",async({values:t,url:e="ablocks/save_settings"},i)=>{try{const o=await(0,M.In)({action:e,...t});return o.data.success?(i.dispatch(m6({message:(0,L.__)("Settings Saved!","ablocks"),isShow:!0,type:"success"})),t):(i.dispatch(m6({message:(0,L.__)("Failed to save settings.","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(o.data.data))}catch(t){return i.dispatch(m6({message:t?.response?.data?.message??t.message,isShow:!0,type:"error"})),i.rejectWithValue(t.message)}}),j6=n6({name:"submissions",initialState:{loading:!1,data:[]},reducers:{updateCurrentPage:(t,e)=>{t.data={...t.data,current_page:e.payload}},updateItemPerPage:(t,e)=>{t.data={...t.data,per_page:e.payload}}},extraReducers:t=>{t.addCase(x6.pending,t=>{t.loading=!0}).addCase(x6.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(x6.rejected,t=>{t.loading=!1}).addCase(k6.pending,t=>{t.loading=!0
6299 +}).addCase(k6.fulfilled,(t,e)=>{t.loading=!1,t.csv_data=e.payload.csv_data}).addCase(k6.rejected,t=>{t.loading=!1}).addCase(R6.pending,t=>{t.loading=!0}).addCase(R6.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.map(t=>e.payload.id_of_updated_entries.includes(t.id)?{...t,status:"read"}:t)}).addCase(R6.rejected,t=>{t.loading=!1}).addCase(S6.pending,t=>{t.loading=!0}).addCase(S6.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.map(t=>e?.payload?.id_of_updated_entries.includes(t.id)?{...t,status:"unread"}:t)}).addCase(S6.rejected,t=>{t.loading=!1}).addCase(W6.pending,t=>{t.loading=!0}).addCase(W6.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.filter(t=>e?.payload?.data.id!==parseInt(t.id))}).addCase(W6.rejected,t=>{t.loading=!1}).addCase(P6.pending,t=>{t.loading=!0}).addCase(P6.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.map(t=>e?.payload?.data.id===parseInt(t.id)?{...t,status:e?.payload?.data.status}:t)}).addCase(P6.rejected,t=>{t.loading=!1
6300 +}).addCase(_6.pending,t=>{t.loading=!0}).addCase(_6.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.filter(t=>!e.payload.id_of_deleted_entries.includes(t.id))}).addCase(_6.rejected,t=>{t.loading=!1}).addCase(v6.pending,t=>{t.loading=!0}).addCase(v6.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(v6.rejected,t=>{t.loading=!1}).addCase(U6.pending,t=>{t.loading=!0}).addCase(U6.fulfilled,(t,e)=>{t.loading=!1,t.data={...t.data,...e.payload}}).addCase(U6.rejected,t=>{t.loading=!1})}}),w6=j6.reducer,{updateCurrentPage:z6,updateItemPerPage:C6}=j6.actions,A6=t6("ablocks/fetchAddons",t=>{try{return(0,M.In)({action:"ablocks/addons/get_all_addons"}).then(e=>e.data?.success?e.data?.data:(t.dispatch(m6({message:e.data?.data?.message??__("Some thing went wrong","ablocks"),isShow:!0,type:"error"})),e.data))}catch(e){t.dispatch(m6({message:e?.response?.data?.message??e?.message,isShow:!0,type:"error"}))}}),L6=t6("ablocks/saveAddon",({addon:t,status:e},i)=>{try{return(0,M.In)({
6301 +action:"ablocks/addons/saved_addon_status",addon_name:t.label,addon_slug:t.name,status:e,required_plugin:t.required_plugin}).then(t=>(t.data?.success||i.dispatch(m6({message:t?.data.data,isShow:!0,type:"error"})),t.data))}catch(t){i.dispatch(m6({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"}))}}),D6=n6({name:"addons",initialState:{},extraReducers:t=>{t.addCase(A6.fulfilled,(t,e)=>e.payload).addCase(L6.fulfilled,(t,e)=>e.payload)}}).reducer,N6=t6("ablocks/fetchAllTB",({status:t="all",page:e=1,per_page:i=10,search:o=""},a)=>{try{let l={status:"all"===t?"any":t,page:e,per_page:i};return o&&(l={...l,search:o}),M.nC.get(M.MF+"ablocks_tb",{params:l}).then(l=>200===l.status?{data:l.data,totalItems:parseInt(l.headers["x-wp-total"]),status:t,page:e,per_page:i,search:o}:a.rejectWithValue({message:l.data.message||(0,L.__)("Failed to fetch TB","ablocks")}))}catch(t){return a.dispatch(m6({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),
6302 +a.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),I6=t6("ablocks/fetchTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t)}`).then(t=>t.data)}catch(t){e.dispatch(m6({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"}))}}),V6=t6("ablocks/createNewTB",(t,e)=>{try{return M.nC.post(M.MF+"ablocks_tb",t).then(t=>201===t.status?(e.dispatch(m6({message:(0,L.__)("Successfully created.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(m6({message:(0,L.__)("Failed to create.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to create.","ablocks"),success:!1})))}catch(t){return e.dispatch(m6({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),O6=t6("ablocks/updateTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,{...t}).then(t=>200===t.status?(e.dispatch(m6({message:(0,
6303 +L.__)("Successfully updated.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(m6({message:(0,L.__)("Failed to Update.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to Update.","ablocks"),success:!1})))}catch(t){return e.dispatch(m6({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),Y6=t6("ablocks/statusUpdateTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,t).then(t=>200===t.status?(e.dispatch(m6({message:(0,L.__)("Successfully Status updated.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(m6({message:(0,L.__)("Failed to Update.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to Update.","ablocks"),success:!1})))}catch(t){return e.dispatch(m6({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message
6304 +})}}),X6=t6("ablocks/deleteTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,{force:!0},{headers:{"X-HTTP-Method-Override":"DELETE"}}).then(t=>200===t.status?(e.dispatch(m6({message:(0,L.__)("Deleted!","ablocks"),isShow:!0,type:"success"})),t.data.previous):(e.dispatch(m6({message:(0,L.__)("Failed to delete.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to delete.","ablocks"),success:!1})))}catch(t){return e.dispatch(m6({message:error?.response?.data?.message??error?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:error?.response?.data?.message??error?.message})}}),B6=t6("ablocks/moveTBToTrash",async(t,e)=>{try{const i=await M.nC.post(`${M.MF}ablocks_tb/${parseInt(t)}`,{force:!1},{headers:{"X-HTTP-Method-Override":"DELETE"}});return 200===i.status?(e.dispatch(m6({message:(0,L.__)("Moved to trash!","ablocks"),isShow:!0,type:"success"})),i.data):(e.dispatch(m6({message:(0,L.__)("Failed to trashed.","ablocks"),
6305 +isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to trashed.","ablocks"),success:!1}))}catch(t){return e.dispatch(m6({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),E6=t6("ablocks/restoreTB",(t,e)=>{const i={...t,status:"draft"};try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,i).then(t=>200===t.status?(e.dispatch(m6({message:(0,L.__)("Them Restored Successfully!","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(m6({message:(0,L.__)("Failed to restore theme","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,L.__)("Failed to restore theme.","ablocks"),success:!1})))}catch(t){return e.dispatch(m6({message:error?.response?.data?.message??error?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:error?.response?.data?.message??error?.message})}}),F6=n6({name:"themeBuilder",initialState:{data:[],rowsPerPage:10,status:"all",
6306 +page:1,search:""},reducers:{updateTBCurrentPage:(t,e)=>{t.page=e.payload},updateTBItemPerPage:(t,e)=>{t.per_page=e.payload}},extraReducers:t=>{t.addCase(N6.fulfilled,(t,e)=>{const i=e.payload;t.data=i.data,t.totalItems=i.totalItems,t.per_page=i.per_page,t.status=i.status,t.page=i.page,t.search=i.search}).addCase(I6.fulfilled,(t,e)=>{const i=t.data.findIndex(t=>parseInt(t.id)===parseInt(e.payload.id));-1!==i?t.data[i]=e.payload:t.data.length?t.data=[...t.data,e.payload]:t.data=[e.payload]}).addCase(V6.fulfilled,(t,e)=>{t.data.length?t.data=[...t.data,e.payload]:t.data=[e.payload]}).addCase(O6.fulfilled,(t,e)=>{t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)}).addCase(X6.fulfilled,(t,e)=>{t.data=t.data.filter(t=>parseInt(t.id)!==parseInt(e.payload?.id))}).addCase(B6.fulfilled,(t,e)=>{t.data=t.data.filter(t=>parseInt(t.id)!==parseInt(e.payload?.id))}).addCase(Y6.fulfilled,(t,e)=>{t.loading=!1,
6307 +t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)}).addCase(E6.fulfilled,(t,e)=>{t.loading=!1,t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)})}}),{updateTBCurrentPage:q6,updateTBItemPerPage:$6}=F6.actions,G6=F6.reducer;i(79448);let Z6=[];const K6=function(t){const e=function(t){const{thunk:e=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let l=new X3;return e&&(function(t){return"boolean"==typeof t}(e)?l.push(N3):l.push(I3(e.extraArgument))),l},{reducer:i,middleware:o,devTools:a=!0,duplicateMiddlewareCheck:l=!0,preloadedState:n,enhancers:s}=t||{};let r,b;if("function"==typeof i)r=i;else{if(!C3(i))throw new Error(b6(1));r=function(t){const e=Object.keys(t),i={};for(let o=0;o<e.length;o++){const a=e[o];"function"==typeof t[a]&&(i[a]=t[a])}const o=Object.keys(i);let a;try{!function(t){Object.keys(t).forEach(e=>{const i=t[e];if(void 0===i(void 0,{type:z3.INIT}))throw new Error(U3(12))
6308 +;if(void 0===i(void 0,{type:z3.PROBE_UNKNOWN_ACTION()}))throw new Error(U3(13))})}(i)}catch(t){a=t}return function(t={},e){if(a)throw a;let l=!1;const n={};for(let a=0;a<o.length;a++){const s=o[a],r=i[s],b=t[s],c=r(b,e);if(void 0===c)throw e&&e.type,new Error(U3(14));n[s]=c,l=l||c!==b}return l=l||o.length!==Object.keys(t).length,l?n:t}}(i)}b="function"==typeof o?o(e):e();let c=L3;a&&(c=V3({trace:!1,..."object"==typeof a&&a}));const d=function(...t){return e=>(i,o)=>{const a=e(i,o);let l=()=>{throw new Error(U3(15))};const n={getState:a.getState,dispatch:(t,...e)=>l(t,...e)},s=t.map(t=>t(n));return l=L3(...s)(a.dispatch),{...a,dispatch:l}}}(...b),u=(t=>function(e){const{autoBatch:i=!0}=e??{};let o=new X3(t);return i&&o.push(((t={type:"raf"})=>e=>(...i)=>{const o=e(...i);let a=!0,l=!1,n=!1
6309 +;const s=new Set,r="tick"===t.type?queueMicrotask:"raf"===t.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:F3(10):"callback"===t.type?t.queueNotification:F3(t.timeout),b=()=>{n=!1,l&&(l=!1,s.forEach(t=>t()))};return Object.assign({},o,{subscribe(t){const e=o.subscribe(()=>a&&t());return s.add(t),()=>{e(),s.delete(t)}},dispatch(t){try{return a=!t?.meta?.RTK_autoBatch,l=!a,l&&(n||(n=!0,r(b))),o.dispatch(t)}finally{a=!0}}})})("object"==typeof i?i:void 0)),o})(d);return A3(r,n,c(..."function"==typeof s?s(u):u()))}({reducer:{adminmenu:d6,settings:f6,notification:p6,blocks:M6,submissions:w6,addons:D6,themeBuilder:G6},middleware:t=>t().concat(...Z6)}),J6=K6;var Q6=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===t8}(t)}(t)},t8="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103
6310 +;function e8(t,e){return!1!==e.clone&&e.isMergeableObject(t)?o8((i=t,Array.isArray(i)?[]:{}),t,e):t;var i}function i8(t,e,i){return t.concat(e).map(function(t){return e8(t,i)})}function o8(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||i8,i.isMergeableObject=i.isMergeableObject||Q6;var o=Array.isArray(e);return o===Array.isArray(t)?o?i.arrayMerge(t,e,i):function(t,e,i){var o={};return i.isMergeableObject(t)&&Object.keys(t).forEach(function(e){o[e]=e8(t[e],i)}),Object.keys(e).forEach(function(a){i.isMergeableObject(e[a])&&t[a]?o[a]=o8(t[a],e[a],i):o[a]=e8(e[a],i)}),o}(t,e,i):e8(e,i)}o8.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,i){return o8(t,i,e)},{})};const a8=o8;var l8=i(11331),n8=i.n(l8),s8=i(88055),r8=i.n(s8),b8=i(30115),c8=i.n(b8);var d8=i(32629),u8=i.n(d8),p8=i(42072),m8=i.n(p8);function h8(){return h8=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]
6311 +;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},h8.apply(this,arguments)}function g8(t,e){if(null==t)return{};var i,o,a={},l=Object.keys(t);for(o=0;o<l.length;o++)i=l[o],e.indexOf(i)>=0||(a[i]=t[i]);return a}function f8(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var y8=(0,a.createContext)(void 0);y8.displayName="FormikContext";var T8=y8.Provider,H8=y8.Consumer;function M8(){var t=(0,a.useContext)(y8);return t}var x8=function(t){return Array.isArray(t)&&0===t.length},k8=function(t){return"function"==typeof t},v8=function(t){return null!==t&&"object"==typeof t},_8=function(t){return String(Math.floor(Number(t)))===t},R8=function(t){return"[object String]"===Object.prototype.toString.call(t)},S8=function(t){return 0===a.Children.count(t)},W8=function(t){return v8(t)&&k8(t.then)};function P8(t,e,i,o){void 0===o&&(o=0);for(var a=m8()(e);t&&o<a.length;)t=t[a[o++]]
6312 +;return o===a.length||t?void 0===t?i:t:i}function U8(t,e,i){for(var o=u8()(t),a=o,l=0,n=m8()(e);l<n.length-1;l++){var s=n[l],r=P8(t,n.slice(0,l+1));if(r&&(v8(r)||Array.isArray(r)))a=a[s]=u8()(r);else{var b=n[l+1];a=a[s]=_8(b)&&Number(b)>=0?[]:{}}}return(0===l?t:a)[n[l]]===i?t:(void 0===i?delete a[n[l]]:a[n[l]]=i,0===l&&void 0===i&&delete o[n[l]],o)}function j8(t,e,i,o){void 0===i&&(i=new WeakMap),void 0===o&&(o={});for(var a=0,l=Object.keys(t);a<l.length;a++){var n=l[a],s=t[n];v8(s)?i.get(s)||(i.set(s,!0),o[n]=Array.isArray(s)?[]:{},j8(s,e,i,o[n])):o[n]=e}return o}var w8={},z8={};function C8(t){var e=t.validateOnChange,i=void 0===e||e,o=t.validateOnBlur,l=void 0===o||o,n=t.validateOnMount,s=void 0!==n&&n,r=t.isInitialValid,b=t.enableReinitialize,c=void 0!==b&&b,d=t.onSubmit,u=g8(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=h8({validateOnChange:i,validateOnBlur:l,validateOnMount:s,onSubmit:d},u),m=(0,
6313 +a.useRef)(p.initialValues),h=(0,a.useRef)(p.initialErrors||w8),g=(0,a.useRef)(p.initialTouched||z8),f=(0,a.useRef)(p.initialStatus),y=(0,a.useRef)(!1),T=(0,a.useRef)({});(0,a.useEffect)(function(){return y.current=!0,function(){y.current=!1}},[]);var H=(0,a.useState)(0)[1],M=(0,a.useRef)({values:r8()(p.initialValues),errors:r8()(p.initialErrors)||w8,touched:r8()(p.initialTouched)||z8,status:r8()(p.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),x=M.current,k=(0,a.useCallback)(function(t){var e=M.current;M.current=function(t,e){switch(e.type){case"SET_VALUES":return h8({},t,{values:e.payload});case"SET_TOUCHED":return h8({},t,{touched:e.payload});case"SET_ERRORS":return c8()(t.errors,e.payload)?t:h8({},t,{errors:e.payload});case"SET_STATUS":return h8({},t,{status:e.payload});case"SET_ISSUBMITTING":return h8({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return h8({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return h8({},t,{
6314 +values:U8(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return h8({},t,{touched:U8(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return h8({},t,{errors:U8(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return h8({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return h8({},t,{touched:j8(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return h8({},t,{isSubmitting:!1});default:return t}}(e,t),e!==M.current&&H(function(t){return t+1})},[]),v=(0,a.useCallback)(function(t,e){return new Promise(function(i,o){var a=p.validate(t,e);null==a?i(w8):W8(a)?a.then(function(t){i(t||w8)},function(t){o(t)}):i(a)})},[p.validate]),_=(0,a.useCallback)(function(t,e){var i=p.validationSchema,o=k8(i)?i(e):i,a=e&&o.validateAt?o.validateAt(e,t):function(t,e,i){void 0===i&&(i=!1);var o=L8(t);return e[i?"validateSync":"validate"](o,{abortEarly:!1,context:o})}(t,o)
6315 +;return new Promise(function(t,e){a.then(function(){t(w8)},function(i){"ValidationError"===i.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return U8(e,t.path,t.message);var i=t.inner,o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var l;if(o){if(a>=i.length)break;l=i[a++]}else{if((a=i.next()).done)break;l=a.value}var n=l;P8(e,n.path)||(e=U8(e,n.path,n.message))}}return e}(i)):e(i)})})},[p.validationSchema]),R=(0,a.useCallback)(function(t,e){return new Promise(function(i){return i(T.current[t].validate(e))})},[]),S=(0,a.useCallback)(function(t){var e=Object.keys(T.current).filter(function(t){return k8(T.current[t].validate)}),i=e.length>0?e.map(function(e){return R(e,P8(t,e))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(i).then(function(t){return t.reduce(function(t,i,o){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===i||i&&(t=U8(t,e[o],i)),t},{})})},[R]),W=(0,a.useCallback)(function(t){
6316 +return Promise.all([S(t),p.validationSchema?_(t):{},p.validate?v(t):{}]).then(function(t){var e=t[0],i=t[1],o=t[2];return a8.all([e,i,o],{arrayMerge:D8})})},[p.validate,p.validationSchema,S,v,_]),P=I8(function(t){return void 0===t&&(t=x.values),k({type:"SET_ISVALIDATING",payload:!0}),W(t).then(function(t){return y.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:t})),t})});(0,a.useEffect)(function(){s&&!0===y.current&&c8()(m.current,p.initialValues)&&P(m.current)},[s,P]);var U=(0,a.useCallback)(function(t){var e=t&&t.values?t.values:m.current,i=t&&t.errors?t.errors:h.current?h.current:p.initialErrors||{},o=t&&t.touched?t.touched:g.current?g.current:p.initialTouched||{},a=t&&t.status?t.status:f.current?f.current:p.initialStatus;m.current=e,h.current=i,g.current=o,f.current=a;var l=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:i,touched:o,status:a,values:e,isValidating:!!t&&!!t.isValidating,
6317 +submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(p.onReset){var n=p.onReset(x.values,G);W8(n)?n.then(l):l()}else l()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);(0,a.useEffect)(function(){!0!==y.current||c8()(m.current,p.initialValues)||c&&(m.current=p.initialValues,U(),s&&P(m.current))},[c,p.initialValues,U,s,P]),(0,a.useEffect)(function(){c&&!0===y.current&&!c8()(h.current,p.initialErrors)&&(h.current=p.initialErrors||w8,k({type:"SET_ERRORS",payload:p.initialErrors||w8}))},[c,p.initialErrors]),(0,a.useEffect)(function(){c&&!0===y.current&&!c8()(g.current,p.initialTouched)&&(g.current=p.initialTouched||z8,k({type:"SET_TOUCHED",payload:p.initialTouched||z8}))},[c,p.initialTouched]),(0,a.useEffect)(function(){c&&!0===y.current&&!c8()(f.current,p.initialStatus)&&(f.current=p.initialStatus,k({type:"SET_STATUS",payload:p.initialStatus}))},[c,p.initialStatus,p.initialTouched]);var j=I8(function(t){
6318 +if(T.current[t]&&k8(T.current[t].validate)){var e=P8(x.values,t),i=T.current[t].validate(e);return W8(i)?(k({type:"SET_ISVALIDATING",payload:!0}),i.then(function(t){return t}).then(function(e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:t,value:i}}),Promise.resolve(i))}return p.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),_(x.values,t).then(function(t){return t}).then(function(e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:P8(e,t)}}),k({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),w=(0,a.useCallback)(function(t,e){var i=e.validate;T.current[t]={validate:i}},[]),z=(0,a.useCallback)(function(t){delete T.current[t]},[]),C=I8(function(t,e){return k({type:"SET_TOUCHED",payload:t}),(void 0===e?l:e)?P(x.values):Promise.resolve()}),A=(0,a.useCallback)(function(t){k({type:"SET_ERRORS",payload:t})},[]),L=I8(function(t,e){var o=k8(t)?t(x.values):t;return k({
6319 +type:"SET_VALUES",payload:o}),(void 0===e?i:e)?P(o):Promise.resolve()}),D=(0,a.useCallback)(function(t,e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})},[]),N=I8(function(t,e,o){var a=k8(e)?e(P8(x.values,t)):e;return k({type:"SET_FIELD_VALUE",payload:{field:t,value:a}}),(void 0===o?i:o)?P(U8(x.values,t,a)):Promise.resolve()}),I=(0,a.useCallback)(function(t,e){var i,o=e,a=t;if(!R8(t)){t.persist&&t.persist();var l=t.target?t.target:t.currentTarget,n=l.type,s=l.name,r=l.id,b=l.value,c=l.checked,d=(l.outerHTML,l.options),u=l.multiple;o=e||s||r,a=/number|range/.test(n)?(i=parseFloat(b),isNaN(i)?"":i):/checkbox/.test(n)?function(t,e,i){if("boolean"==typeof t)return Boolean(e);var o=[],a=!1,l=-1;if(Array.isArray(t))o=t,a=(l=t.indexOf(i))>=0;else if(!i||"true"==i||"false"==i)return Boolean(e);return e&&i&&!a?o.concat(i):a?o.slice(0,l).concat(o.slice(l+1)):o}(P8(x.values,o),c,b):d&&u?function(t){return Array.from(t).filter(function(t){return t.selected}).map(function(t){return t.value})
6320 +}(d):b}o&&N(o,a)},[N,x.values]),V=I8(function(t){if(R8(t))return function(e){return I(e,t)};I(t)}),O=I8(function(t,e,i){return void 0===e&&(e=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===i?l:i)?P(x.values):Promise.resolve()}),Y=(0,a.useCallback)(function(t,e){t.persist&&t.persist();var i=t.target,o=i.name,a=i.id,l=(i.outerHTML,e||o||a);O(l,!0)},[O]),X=I8(function(t){if(R8(t))return function(e){return Y(e,t)};Y(t)}),B=(0,a.useCallback)(function(t){k8(t)?k({type:"SET_FORMIK_STATE",payload:t}):k({type:"SET_FORMIK_STATE",payload:function(){return t}})},[]),E=(0,a.useCallback)(function(t){k({type:"SET_STATUS",payload:t})},[]),F=(0,a.useCallback)(function(t){k({type:"SET_ISSUBMITTING",payload:t})},[]),q=I8(function(){return k({type:"SUBMIT_ATTEMPT"}),P().then(function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var i;try{if(void 0===(i=Z()))return}catch(t){throw t}return Promise.resolve(i).then(function(t){return y.current&&k({type:"SUBMIT_SUCCESS"
6321 +}),t}).catch(function(t){if(y.current)throw k({type:"SUBMIT_FAILURE"}),t})}if(y.current&&(k({type:"SUBMIT_FAILURE"}),e))throw t})}),$=I8(function(t){t&&t.preventDefault&&k8(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&k8(t.stopPropagation)&&t.stopPropagation(),q().catch(function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)})}),G={resetForm:U,validateForm:P,validateField:j,setErrors:A,setFieldError:D,setFieldTouched:O,setFieldValue:N,setStatus:E,setSubmitting:F,setTouched:C,setValues:L,setFormikState:B,submitForm:q},Z=I8(function(){return d(x.values,G)}),K=I8(function(t){t&&t.preventDefault&&k8(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&k8(t.stopPropagation)&&t.stopPropagation(),U()}),J=(0,a.useCallback)(function(t){return{value:P8(x.values,t),error:P8(x.errors,t),touched:!!P8(x.touched,t),initialValue:P8(m.current,t),initialTouched:!!P8(g.current,t),initialError:P8(h.current,t)}},[x.errors,x.touched,x.values]),Q=(0,
6322 +a.useCallback)(function(t){return{setValue:function(e,i){return N(t,e,i)},setTouched:function(e,i){return O(t,e,i)},setError:function(e){return D(t,e)}}},[N,O,D]),tt=(0,a.useCallback)(function(t){var e=v8(t),i=e?t.name:t,o=P8(x.values,i),a={name:i,value:o,onChange:V,onBlur:X};if(e){var l=t.type,n=t.value,s=t.as,r=t.multiple;"checkbox"===l?void 0===n?a.checked=!!o:(a.checked=!(!Array.isArray(o)||!~o.indexOf(n)),a.value=n):"radio"===l?(a.checked=o===n,a.value=n):"select"===s&&r&&(a.value=a.value||[],a.multiple=!0)}return a},[X,V,x.values]),et=(0,a.useMemo)(function(){return!c8()(m.current,x.values)},[m.current,x.values]),it=(0,a.useMemo)(function(){return void 0!==r?et?x.errors&&0===Object.keys(x.errors).length:!1!==r&&k8(r)?r(p):r:x.errors&&0===Object.keys(x.errors).length},[r,et,x.errors,p]);return h8({},x,{initialValues:m.current,initialErrors:h.current,initialTouched:g.current,initialStatus:f.current,handleBlur:X,handleChange:V,handleReset:K,handleSubmit:$,resetForm:U,setErrors:A,
6323 +setFormikState:B,setFieldTouched:O,setFieldValue:N,setFieldError:D,setStatus:E,setSubmitting:F,setTouched:C,setValues:L,submitForm:q,validateForm:P,validateField:j,isValid:it,dirty:et,unregisterField:z,registerField:w,getFieldProps:tt,getFieldMeta:J,getFieldHelpers:Q,validateOnBlur:l,validateOnChange:i,validateOnMount:s})}function A8(t){var e=C8(t),i=t.component,o=t.children,l=t.render,n=t.innerRef;return(0,a.useImperativeHandle)(n,function(){return e}),(0,a.createElement)(T8,{value:e},i?(0,a.createElement)(i,e):l?l(e):o?k8(o)?o(e):S8(o)?null:a.Children.only(o):null)}function L8(t){var e=Array.isArray(t)?[]:{};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=String(i);!0===Array.isArray(t[o])?e[o]=t[o].map(function(t){return!0===Array.isArray(t)||n8()(t)?L8(t):""!==t?t:void 0}):n8()(t[o])?e[o]=L8(t[o]):e[o]=""!==t[o]?t[o]:void 0}return e}function D8(t,e,i){var o=t.slice();return e.forEach(function(e,a){if(void 0===o[a]){var l=!1!==i.clone&&i.isMergeableObject(e)
6324 +;o[a]=l?a8(Array.isArray(e)?[]:{},e,i):e}else i.isMergeableObject(e)?o[a]=a8(t[a],e,i):-1===t.indexOf(e)&&o.push(e)}),o}var N8="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function I8(t){var e=(0,a.useRef)(t);return N8(function(){e.current=t}),(0,a.useCallback)(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e.current.apply(void 0,i)},[])}function V8(t){var e=t.validate,i=t.name,o=t.render,l=t.children,n=t.as,s=t.component,r=t.className,b=g8(t,["validate","name","render","children","as","component","className"]),c=g8(M8(),["validate","validationSchema"]),d=c.registerField,u=c.unregisterField;(0,a.useEffect)(function(){return d(i,{validate:e}),function(){u(i)}},[d,u,i,e]);var p=c.getFieldProps(h8({name:i},b)),m=c.getFieldMeta(i),h={field:p,form:c};if(o)return o(h8({},h,{meta:m}));if(k8(l))return l(h8({},h,{meta:m}));if(s){if("string"==typeof s){
6325 +var g=b.innerRef,f=g8(b,["innerRef"]);return(0,a.createElement)(s,h8({ref:g},p,f,{className:r}),l)}return(0,a.createElement)(s,h8({field:p,form:c},b,{className:r}),l)}var y=n||"input";if("string"==typeof y){var T=b.innerRef,H=g8(b,["innerRef"]);return(0,a.createElement)(y,h8({ref:T},p,H,{className:r}),l)}return(0,a.createElement)(y,h8({},p,b,{className:r}),l)}var O8=(0,a.forwardRef)(function(t,e){var i=t.action,o=g8(t,["action"]),l=null!=i?i:"#",n=M8(),s=n.handleReset,r=n.handleSubmit;return(0,a.createElement)("form",h8({onSubmit:r,ref:e,onReset:s,action:l},o))});function Y8(t){var e=function(e){return(0,a.createElement)(H8,null,function(i){return(0,a.createElement)(t,h8({},e,{formik:i}))})},i=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";return e.WrappedComponent=t,e.displayName="FormikConnect("+i+")",oo()(e,t)}O8.displayName="Form";var X8=function(t,e,i){var o=B8(t);return o.splice(e,0,i),o},B8=function(t){if(t){if(Array.isArray(t))return[].concat(t)
6326 +;var e=Object.keys(t).map(function(t){return parseInt(t)}).reduce(function(t,e){return e>t?e:t},0);return Array.from(h8({},t,{length:e+1}))}return[]},E8=function(t,e){var i="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||v8(t)){var e=B8(t);return i(e)}return t}},F8=function(t){function e(e){var i;return(i=t.call(this,e)||this).updateArrayField=function(t,e,o){var a=i.props,l=a.name;(0,a.formik.setFormikState)(function(i){var a=E8(o,t),n=E8(e,t),s=U8(i.values,l,t(P8(i.values,l))),r=o?a(P8(i.errors,l)):void 0,b=e?n(P8(i.touched,l)):void 0;return x8(r)&&(r=void 0),x8(b)&&(b=void 0),h8({},i,{values:s,errors:o?U8(i.errors,l,r):i.errors,touched:e?U8(i.touched,l,b):i.touched})})},i.push=function(t){return i.updateArrayField(function(e){return[].concat(B8(e),[r8()(t)])},!1,!1)},i.handlePush=function(t){return function(){return i.push(t)}},i.swap=function(t,e){return i.updateArrayField(function(i){return function(t,e,i){var o=B8(t),a=o[e];return o[e]=o[i],o[i]=a,o}(i,t,e)
6327 +},!0,!0)},i.handleSwap=function(t,e){return function(){return i.swap(t,e)}},i.move=function(t,e){return i.updateArrayField(function(i){return function(t,e,i){var o=B8(t),a=o[e];return o.splice(e,1),o.splice(i,0,a),o}(i,t,e)},!0,!0)},i.handleMove=function(t,e){return function(){return i.move(t,e)}},i.insert=function(t,e){return i.updateArrayField(function(i){return X8(i,t,e)},function(e){return X8(e,t,null)},function(e){return X8(e,t,null)})},i.handleInsert=function(t,e){return function(){return i.insert(t,e)}},i.replace=function(t,e){return i.updateArrayField(function(i){return function(t,e,i){var o=B8(t);return o[e]=i,o}(i,t,e)},!1,!1)},i.handleReplace=function(t,e){return function(){return i.replace(t,e)}},i.unshift=function(t){var e=-1;return i.updateArrayField(function(i){var o=i?[t].concat(i):[t];return e=o.length,o},function(t){return t?[null].concat(t):[null]},function(t){return t?[null].concat(t):[null]}),e},i.handleUnshift=function(t){return function(){return i.unshift(t)}},
6328 +i.handleRemove=function(t){return function(){return i.remove(t)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(f8(i)),i.pop=i.pop.bind(f8(i)),i}var i,o;o=t,(i=e).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var l=e.prototype;return l.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!c8()(P8(t.formik.values,t.name),P8(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},l.remove=function(t){var e;return this.updateArrayField(function(i){var o=i?B8(i):[];return e||(e=o[t]),k8(o.splice)&&o.splice(t,1),k8(o.every)&&o.every(function(t){return void 0===t})?[]:o},!0,!0),e},l.pop=function(){var t;return this.updateArrayField(function(e){var i=e.slice();return t||(t=i&&i.pop&&i.pop()),i},!0,!0),t},l.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,
6329 +unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},e=this.props,i=e.component,o=e.render,l=e.children,n=e.name,s=h8({},t,{form:g8(e.formik,["validate","validationSchema"]),name:n});return i?(0,a.createElement)(i,s):o?o(s):l?"function"==typeof l?l(s):S8(l)?null:a.Children.only(l):null},e}(a.Component);F8.defaultProps={validateOnChange:!0};var q8=Y8(F8);const $8=t=>{if(!t||"object"!=typeof t)return t;const e={},i={fontFamily:["fontFamily","fontfamily"],fontSize:["fontSize","fontsize"],fontSizeUnit:["fontSizeUnit","fontsizeunit"],lineHeight:["lineHeight","lineheight"],lineHeightUnit:["lineHeightUnit","lineheightunit"],letterSpacing:["letterSpacing","letterspacing"],letterSpacingUnit:["letterSpacingUnit","letterspacingunit"],wordSpacing:["wordSpacing","wordspacing"],
6330 +wordSpacingUnit:["wordSpacingUnit","wordspacingunit"],weight:["weight"]};return Object.keys(t).forEach(o=>{Object.values(i).flat().includes(o)||(e[o]=t[o])}),Object.entries(i).forEach(([i,o])=>{for(const a of o)if(void 0!==t[a]&&""!==t[a]){e[i]=t[a];break}}),["fontSize","lineHeight","letterSpacing","wordSpacing"].forEach(t=>{e[t]&&!isNaN(e[t])&&(e[t]=Number(e[t]))}),e.weight&&!isNaN(e.weight)&&(e.weight=String(e.weight)),e};function G8(){const{values:t,setFieldValue:e}=M8();return(0,I.jsxs)("div",{className:"ablocks-colors-panel",children:[(0,I.jsx)("div",{className:"ablocks-colors-panel__title",children:(0,L.__)("System Colors","ablocks")}),t?.global_color?.filter(t=>t.is_system).map((i,o)=>{const a=t?.global_color?.findIndex(t=>t.id===i.id);return(0,I.jsxs)("div",{className:s()("ablocks-color-row","is-system"),children:[(0,I.jsx)("div",{className:"ablocks-color-row__left",children:(0,I.jsx)(V8,{name:`global_color[${a}].label`,as:"input",className:"ablocks-color-row__label-input",
6331 +placeholder:(0,L.__)("Label","ablocks")})}),(0,I.jsxs)("div",{className:"ablocks-color-row__right",children:[(0,I.jsx)(Ws,{label:"",isGradient:!0,attributeName:`global_color[${a}].value`,attributeValue:P8(t,`global_color[${a}].value`)||"",onChangeHandler:(t,i)=>{e(t,i)},resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(q8,{name:"global_color",children:t=>(0,I.jsx)("span",{type:"button",className:"ablocks-icon ablocks-icon--trash-can-slash"})})]})]},i.id)}),(0,I.jsx)("div",{className:"ablocks-divider"}),(0,I.jsx)("div",{className:"ablocks-colors-panel__title",children:(0,L.__)("Custom Colors","ablocks")}),t?.global_color?.filter(t=>!t.is_system).map((i,o)=>{const a=t?.global_color?.findIndex(t=>t.id===i.id);return(0,I.jsxs)("div",{className:"ablocks-color-row-custom",children:[(0,I.jsx)("div",{className:"ablocks-color-row-custom__left",children:(0,I.jsx)(V8,{name:`global_color[${a}].label`,as:"input",className:"ablocks-color-row-custom__left--label-input",
6332 +placeholder:(0,L.__)("Label","ablocks")})}),(0,I.jsxs)("div",{className:"ablocks-color-row-custom__right",children:[(0,I.jsx)(Ws,{isGradient:!0,attributeName:`global_color[${a}].value`,attributeValue:P8(t,`global_color[${a}].value`)||"",onChangeHandler:(t,i)=>{e(t,i)},resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(q8,{name:"global_color",children:t=>(0,I.jsx)("span",{type:"button",className:"ablocks-icon ablocks-icon--delete",onClick:()=>t.remove(a)})})]})]},i.id)}),(0,I.jsx)(q8,{name:"global_color",children:e=>(0,I.jsx)("div",{className:"ablocks-add-wrap",children:(0,I.jsx)("button",{type:"button",className:"ablocks-btn ablocks-btn--primary",onClick:()=>e.push(((t=[])=>{const e=`Custom ${t.filter(t=>!t.is_system&&t.label.startsWith("Custom")).length+1}`;return{id:`custom_${Date.now()}`,label:e,value:"",is_system:!1}})(t.global_color)),children:(0,L.__)("Add Style","ablocks")})})})]})}function Z8(){const{values:t,setFieldValue:e}=M8();return(0,I.jsxs)("div",{
6333 +className:"ablocks-typography-panel",children:[(0,I.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,L.__)("System Fonts","ablocks")}),t?.global_typography?.filter(t=>t.is_system).map((i,o)=>{const a=t?.global_typography?.findIndex(t=>t.id===i.id);return-1===a?null:(0,I.jsxs)("div",{className:s()("ablocks-typography-row","is-system"),children:[(0,I.jsx)("div",{className:"ablocks-typography-row__left",children:(0,I.jsx)(V8,{name:`global_typography[${a}].label`,as:"input",className:"ablocks-typography-row__label-input",placeholder:(0,L.__)("Label","ablocks")})}),(0,I.jsxs)("div",{className:"ablocks-typography-row__right",children:[(0,I.jsx)(wc,{label:"",attributeName:`global_typography[${a}].value`,attributeValue:$8(P8(t,`global_typography[${a}].value`)),setAttributes:t=>{const i=`global_typography[${a}].value`;e(i,t[i]||t)},showGlobal:!1}),(0,I.jsx)(q8,{name:"global_typography",children:t=>(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--trash-can-slash",
6334 +style:{cursor:"pointer"}})})]})]},i.id)}),(0,I.jsx)("div",{className:"ablocks-divider"}),(0,I.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,L.__)("Custom Fonts","ablocks")}),t?.global_typography?.filter(t=>!t.is_system).map((i,o)=>{const a=t?.global_typography?.findIndex(t=>t.id===i.id);return-1===a?null:(0,I.jsxs)("div",{className:"ablocks-typography-row-custom",children:[(0,I.jsx)("div",{className:"ablocks-typography-row-custom__left",children:(0,I.jsx)(V8,{name:`global_typography[${a}].label`,as:"input",className:"ablocks-typography-row-custom__left--label-input",placeholder:(0,L.__)("Label","ablocks")})}),(0,I.jsxs)("div",{className:"ablocks-typography-row-custom__right",children:[(0,I.jsx)(wc,{label:"",attributeName:`global_typography[${a}].value`,attributeValue:$8(P8(t,`global_typography[${a}].value`)),setAttributes:t=>{const i=`global_typography[${a}].value`;e(i,t[i]||t)},showGlobal:!1}),(0,I.jsx)(q8,{name:"global_typography",children:t=>(0,I.jsx)("span",{
6335 +className:"ablocks-icon ablocks-icon--delete",onClick:()=>t.remove(a),style:{cursor:"pointer"}})})]})]},i.id)}),(0,I.jsx)(q8,{name:"global_typography",children:e=>(0,I.jsx)("div",{className:"ablocks-add-wrap",children:(0,I.jsx)("button",{type:"button",className:"ablocks-btn ablocks-btn--primary",onClick:()=>e.push(((t=[])=>{const e=`Custom ${t.filter(t=>!t.is_system&&t.label.startsWith("Custom")).length+1}`;return{id:`custom_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,label:e,value:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",
6336 +wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"},is_system:!1}})(t.global_typography)),children:(0,L.__)("Add Style","ablocks")})})}),(0,I.jsxs)("div",{className:"ablocks-typography-fallback",children:[(0,I.jsxs)("label",{className:"ablocks-typography-fallback__label",children:[(0,L.__)("Fallback Font Family","ablocks"),(0,I.jsx)("span",{className:"ablocks-typography-fallback__hint",children:(0,L.__)("Used for fonts aBlocks does not recognise (uploaded or theme fonts). Google fonts fall back to their own category automatically.","ablocks")})]}),(0,I.jsx)(V8,{name:"global_font_family_fallback",as:"input",type:"text",className:"ablocks-typography-fallback__input",placeholder:(0,L.__)("Sans-serif","ablocks")})]})]})}const K8=({title:t,values:e,setFieldValue:i})=>{const o=t.toLowerCase();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,L.__)(t,"ablocks")}),(0,I.jsx)(Ws,{label:(0,
6337 +L.__)("Text Color","ablocks"),attributeName:`global_${o}_color`,attributeValue:e[`global_${o}_color`]||"",onChangeHandler:(t,e)=>i(t,e),resetHandler:t=>{i(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),showGlobal:!1,attributeName:`global_${o}_typography`,attributeValue:e[`global_${o}_typography`]||{},setAttributes:t=>i(`global_${o}_typography`,t[`global_${o}_typography`]||t)})]})},J8=({type:t,values:e,setFieldValue:i})=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:"Text Color",attributeName:`global_link${t}color`,attributeValue:e[`global_link${t}color`]||"",onChangeHandler:(t,e)=>i(t,e),resetHandler:t=>{i(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),showGlobal:!1,attributeName:`global_link${t}typography`,attributeValue:e[`global_link${t}typography`]||{},setAttributes:e=>i(`global_link${t}typography`,e[`global_link${t}typography`]||e)})]});function Q8(){
6338 +const{values:t,setFieldValue:e}=M8();return(0,I.jsxs)("div",{className:"ablocks-theme-panel",children:[(0,I.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,L.__)("Body","ablocks")}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"global_body_text_color",attributeValue:t.global_body_text_color||"",onChangeHandler:(t,i)=>e(t,i),resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),showGlobal:!1,attributeName:"global_body_typography",attributeValue:t.global_body_typography||{},setAttributes:t=>e("global_body_typography",t.global_body_typography||t)}),(0,I.jsx)(_t,{label:(0,L.__)("Paragraph Spacing","ablocks"),attributeName:"global_body_paragraph_space",attributeValue:t.global_body_paragraph_space||{},setAttributes:t=>e("global_body_paragraph_space",t.global_body_paragraph_space||t),isInline:!1,hasUnit:!0,min:1,max:100,step:1,isResponsive:!0}),(0,I.jsx)(It,{}),(0,I.jsx)("div",{
6339 +className:"ablocks-typography-panel__title",children:(0,L.__)("Link","ablocks")}),(0,I.jsx)(Ub,{content:(0,I.jsx)(J8,{type:"_",values:t,setFieldValue:e}),style:(0,I.jsx)(J8,{type:"_hover_",values:t,setFieldValue:e}),firstTabLabel:(0,L.__)("Normal","ablocks"),secondTabLabel:(0,L.__)("Hover","ablocks")}),(0,I.jsx)(It,{}),["H1","H2","H3","H4","H5","H6"].map((i,o)=>(0,I.jsxs)(React.Fragment,{children:[o>0&&(0,I.jsx)(It,{}),(0,I.jsx)(K8,{title:i,values:t,setFieldValue:e})]},i))]})}const t5=t=>"string"!=typeof t||isNaN(t)||""===t?t:Number(t),e5=(t,e)=>{if((t=t5(t))===(e=t5(e)))return!0;if(!t||!e)return!1;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!e5(t[i],e[i]))return!1;return!0}if("object"==typeof t){const i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(const a of i){if(!o.includes(a))return!1;if(!e5(t[a],e[a]))return!1}return!0}return t===e},i5=()=>{
6340 +const t=y4(t=>t.settings),e=h4();return(0,a.useEffect)(()=>{t?.data||e(h6())},[]),(0,I.jsx)(A8,{initialValues:{global_body_text_color:"",global_body_typography:{},global_body_paragraph_space:{},global_link_color:"",global_link_typography:{},global_link_hover_color:"",global_link_hover_typography:{},global_h1_color:"",global_h1_typography:{},global_h2_color:"",global_h2_typography:{},global_h3_color:"",global_h3_typography:{},global_h4_color:"",global_h4_typography:{},global_h5_color:"",global_h5_typography:{},global_h6_color:"",global_h6_typography:{},...t?.data,global_color:M.W0.global_color,global_typography:M.W0.global_typography,global_font_family_fallback:M.W0.global_font_family_fallback},onSubmit:async(t,i)=>{try{await e(g6({values:t})).unwrap();const i=wp.data.dispatch("core/editor");i?.savePost&&await i.savePost(),await e(h6()).unwrap(),setTimeout(()=>{window.location.reload()},100)}catch(t){i.setSubmitting(!1)}},enableReinitialize:!0,
6341 +children:({handleSubmit:t,isSubmitting:e,values:i,initialValues:o})=>{const l=!e5(i,o),n=((t,e,i)=>()=>{const o=document.querySelector(".interface-complementary-area-header__title");if(!o)return;let a=o.querySelector(".header-save-btn");a||(a=document.createElement("button"),a.className="header-save-btn save-button-header",a.style.cssText="",a.onclick=i,o.appendChild(a)),a.className="header-save-btn save-button-header "+(t?"enabled":"disabled"),a.textContent=e?(0,L.__)("Saving…","ablocks"):(0,L.__)("Save Changes","ablocks"),a.disabled=!t||e})(l,e,t);return(0,a.useEffect)(()=>{const t=t=>{if(!l)return;const e=t.target.closest("button");!e||"edit-post:block"!==e.getAttribute("aria-controls")&&"Settings"!==e.getAttribute("aria-label")||(t.preventDefault(),t.stopPropagation(),alert((0,L.__)("Please save your global changes first.","ablocks")))};return document.addEventListener("click",t,!0),()=>document.removeEventListener("click",t,!0)},[l]),(0,a.useEffect)(()=>{if(l){
6342 +const t=['.interface-navigable-region.interface-interface-skeleton__header[aria-label="Editor top bar"]','.interface-navigable-region.interface-interface-skeleton__content[aria-label="Editor content"]'].map(t=>{const e=document.querySelector(t);if(!e)return null;const i=document.createElement("div");return i.className="ablocks-window-lock-overlay",i.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),alert((0,L.__)("Please save your global changes first.","ablocks"))},!0),e.classList.add("ablocks-locked-element"),e.appendChild(i),{element:e,overlay:i}}).filter(Boolean);return()=>{t.forEach(({element:t,overlay:e})=>{e.remove(),t.classList.remove("ablocks-locked-element")})}}},[l]),(0,a.useEffect)(()=>{n();const t=setInterval(n,100);return()=>{clearInterval(t),document.querySelector(".header-save-btn")?.remove()}},[l,e,t,n]),(0,I.jsx)(O8,{className:"ablocks-global-settings",children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(G8,{}),(0,
6343 +I.jsx)(It,{}),(0,I.jsx)(Z8,{})]}),style:(0,I.jsx)(Q8,{}),firstTabLabel:(0,L.__)("Design System","ablocks"),secondTabLabel:(0,L.__)("Theme Style","ablocks")})})}})},{registerPlugin:o5}=wp.plugins,{__:a5}=wp.i18n;o5("ablocks-global-settings",{icon:(0,I.jsxs)("svg",{width:"251",height:"250",viewBox:"0 0 251 250",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M180.25 235.8H70.7499C39.7499 235.8 14.6499 210.7 14.6499 179.7V70.2499C14.6499 39.2499 39.7499 14.1499 70.7499 14.1499H180.2C211.2 14.1499 236.3 39.2499 236.3 70.2499V179.7C236.3 210.7 211.2 235.8 180.25 235.8Z",fill:"#1D1D1F"}),(0,I.jsx)("path",{d:"M181.3 124.35C181.3 132.8 177.85 140.45 172.35 145.95C166.8 151.5 159.15 154.9 150.75 154.9H142.1V93.7495H150.75C167.6 93.7495 181.3 107.45 181.3 124.35Z",fill:"#EAEAEB"}),(0,I.jsx)("path",{
6344 +d:"M181.3 55.1997V124.35C181.3 107.45 167.6 93.7497 150.7 93.7497H127.45C119 93.7497 111.35 97.1997 105.85 102.7C100.3 108.25 96.8998 115.9 96.8998 124.3C96.8998 141.2 110.6 154.9 127.5 154.9H142.15V194.8H126.85C88.2998 194.8 57.0498 163.55 57.0498 125C57.0498 105.7 64.8498 88.2497 77.4998 75.6497C90.1498 63.0497 107.6 55.1997 126.85 55.1997H168C172.55 55.1997 176.9 55.1997 181.3 55.1997Z",fill:"white"})]}),render:()=>(0,I.jsx)(Q2.PluginSidebar,{name:"ablocks-global-settings",title:a5("aBlocks Settings","ablocks"),children:(0,I.jsx)(b4,{store:J6,children:(0,I.jsx)(i5,{})})})});const l5={taxonomies:{isRequestBeingProcessed:!1,data:void 0},metaFields:{},postTermsRelations:{},postMetaRelations:{},recentPosts:void 0,recentMediasUrls:void 0,authors:{},authorsMeta:{},postsCommentsCount:{},featuredMediasData:{},allTaxonomiesTermsData:{},authorData:{},authorProfilePictureUrl:void 0},n5=(0,r.createReduxStore)("ablocks/dynamic-content-store",{reducer:(t=l5,e)=>{switch(e.type){
6333 6345 case"SET_TAXONOMIES":return{...t,taxonomies:{...t.taxonomies,...e.taxonomies,data:e?.taxonomies?.data}};case"SET_META_FIELDS":return{...t,metaFields:{...t.metaFields,...e.metaFields}};case"SET_POST_TERMS_RELATIONS":return{...t,postTermsRelations:{...t.postTermsRelations,[e.posId]:{...t.postTermsRelations?.[e.posId]||{},[e.taxonomy]:e.terms}}};case"SET_POST_META_RELATIONS":return{...t,postMetaRelations:{...t.postMetaRelations,[e.posId]:{...t.postMetaRelations?.[e.posId]||{},...e.metaData||{}}}};case"SET_RECENT_POSTS":return{...t,recentPosts:e.data};case"SET_AUTHOR_DATA":{const i=e.data||{},o=i.data||{},a=i.authorID;return{...t,authors:{...t.authors,[a]:{...t.authors?.[a]||{},...o||{}}}}}case"SET_AUTHOR_META":{const i=e.data||{},o=i?.authorID,a=i?.isRequestBeingProcessed;return delete i?.isRequestBeingProcessed,delete i?.authorID,{...t,authorsMeta:{...t.authorsMeta,isRequestBeingProcessed:a,[o]:{...t.authorsMeta?.[o]||{},...i}}}}case"SET_POSTS_COMMENTS_COUNT":{
6334 6346 const i=e.data||{},o=i?.postID,a=i?.commentsCount;return{...t,postsCommentsCount:{...t.postsCommentsCount,[o]:a}}}case"SET_FEATURED_MEDIAS_DATA":{const i=e.data||{},o=i?.postID,a=i?.data;return{...t,featuredMediasData:{...t.featuredMediasData,[o]:a}}}case"SET_ALL_TAXONOMIES_TERMS_DATA":{const i=e.data||{};return{...t,allTaxonomiesTermsData:{...i||{}}}}case"SET_RECENT_MEDIAS_URLS_DATA":{const i=e?.data||[],o=t.recentMediasUrls||[],a=[...o];for(const t of i)o.find(e=>e.value===t.value)||a.push(t);return{...t,recentMediasUrls:[...t.recentMediasUrls||[],...i]}}case"SET_AUTHORS_DATA":{const i=e.data||{};return{...t,authorData:{...i||{}}}}case"SET_AUTHOR_PROFILE_PICTURE_URL":{const i=e.data||{};return{...t,authorProfilePictureUrl:i}}default:return t}},actions:{setTaxonomies:t=>({type:"SET_TAXONOMIES",taxonomies:t}),setMetaFields:t=>({type:"SET_META_FIELDS",metaFields:t}),setPostTermsRelations:(t,e,i)=>({type:"SET_POST_TERMS_RELATIONS",posId:t,taxonomy:e,terms:i}),
6335 6347 setPostMetaRelations:(t,e)=>({type:"SET_POST_META_RELATIONS",posId:t,metaData:e}),setRecentPosts:t=>({type:"SET_RECENT_POSTS",data:t}),setAuthorsData:t=>({type:"SET_AUTHOR_DATA",data:t}),setAuthorsMeta:t=>({type:"SET_AUTHOR_META",data:t}),setPostsCommentsCount:t=>({type:"SET_POSTS_COMMENTS_COUNT",data:t}),setFeaturedMediasData:t=>({type:"SET_FEATURED_MEDIAS_DATA",data:t}),setAllTaxonomiesTermsData:t=>({type:"SET_ALL_TAXONOMIES_TERMS_DATA",data:t}),setRecentMediasUrls:t=>({type:"SET_RECENT_MEDIAS_URLS_DATA",data:t}),setAllAuthorsData:t=>({type:"SET_AUTHORS_DATA",data:t}),setAuthorProfilePictureUrl:t=>({type:"SET_AUTHOR_PROFILE_PICTURE_URL",data:t})},selectors:{getTaxonomies:t=>t.taxonomies,getMetaFields:t=>t.metaFields,getPostTermsRelations:t=>t.postTermsRelations,getPostMetaRelations:t=>t.postMetaRelations,getRecentPosts:t=>t.recentPosts,getAuthorsData:t=>t.authors,getAuthorsMeta:t=>t.authorsMeta,getPostsCommentsCount:t=>t.postsCommentsCount,
6336 -getFeaturedMediasData:t=>t.featuredMediasData,getAllTaxonomiesTermsData:t=>t.allTaxonomiesTermsData,getRecentMediasUrls:t=>t.recentMediasUrls,getAuthorsData:t=>t.authorData,getAuthorProfilePictureUrl:t=>t.authorProfilePictureUrl},initialState:W8});(0,r.register)(P8);const U8=window.wp.domReady;var j8=i.n(U8);const w8="docs-internal-guid-";function z8(t){const e=document.implementation.createHTMLDocument("");e.body.innerHTML=t;const i=e.querySelector(`[id^="${w8}"]`);return i&&i.parentElement===e.body&&1===e.body.children.length?i:e.body}const C8={A:["href"],IMG:["src","alt","title","width","height"],TD:["colspan","rowspan"],TH:["colspan","rowspan"]},A8=["style","script","meta","link","title"];function L8(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}}function D8(t,e){const i=new RegExp(`(?:^|;)\\s*${e}\\s*:\\s*([^;]+)`,"i").exec(t);return i?i[1].trim().toLowerCase():""}const N8=window.wp.apiFetch;var I8=i.n(N8)
6337 -;async function V8(t,e,i){const o=t.getAttribute("src")||"";if(!o)return!1;const a=e=>{t.setAttribute("src",e.url),t.setAttribute("data-ablocks-id",String(e.id)),!t.getAttribute("alt")&&e.alt&&t.setAttribute("alt",e.alt)};if(i.has(o)){const e=await i.get(o);return e?(a(e),!0):(t.setAttribute("src",""),!1)}const l=(async()=>{const i=t.getAttribute("alt")||t.getAttribute("title")||"",a=new window.FormData;if(a.append("name",function(t){const e=t.getAttribute("alt")||t.getAttribute("title")||"";if(e.trim())return e.trim();let i=t.closest("p, div, figure")||t;for(;i;)if(i=i.previousElementSibling,i&&/^H[1-6]$/.test(i.tagName))return(i.textContent||"").trim();return""}(t)),a.append("alt",i),e&&a.append("post_id",String(e)),o.startsWith("data:")){const t=function(t){const e=/^data:([^;,]+)(;base64)?,(.*)$/s.exec(t);if(!e)return null;const[,i,o,a]=e;try{if(!o)return new Blob([decodeURIComponent(a)],{type:i});const t=window.atob(a),e=new Uint8Array(t.length)
6338 -;for(let i=0;i<t.length;i++)e[i]=t.charCodeAt(i);return new Blob([e],{type:i})}catch(t){return null}}(o);if(!t)return null;a.append("file",t,"pasted-image")}else a.append("url",o);try{return await I8()({path:"/ablocks/v1/paste/image",method:"POST",body:a})}catch(t){return null}})();i.set(o,l);const n=await l;return n&&n.url?(a(n),!0):(t.setAttribute("src",""),!1)}const O8="ablocks/atomic-text",Y8=["H1","H2","H3","H4","H5","H6"];function X8(t,e={},i=[]){return(0,o.getBlockType)(t)?(0,o.createBlock)(t,e,i):null}function B8(t){for(const[e,i,o]of t){const t=X8(e,i,o);if(t)return t}return null}function E8(t){return(t.innerHTML||"").replace(/\u00a0/g," ").trim()}function F8(t){const e=/^<strong>([\s\S]*)<\/strong>$/.exec(t);return!e||e[1].includes("<strong>")?t:e[1]}function q8(t,e){if(!e||!function(t){return!!/<(img|svg|iframe|video|audio)\b/i.test(t)||""!==t.replace(/<[^>]*>/g,"").replace(/&nbsp;|\u00a0/g," ").trim()}(e))return null;const i=/^h[1-6]$/.test(t);return B8([[O8,{tag:t,
6339 -content:e}],i?["ablocks/heading",{heading:e,headingTag:t}]:["ablocks/paragraph",{paragraph:e}],i?["core/heading",{content:e,level:Number(t.slice(1))}]:["core/paragraph",{content:e}]])}function $8(t){const e=t.getAttribute("src")||"";if(!e||e.startsWith("data:"))return null;const i=t.getAttribute("alt")||"",o=parseInt(t.getAttribute("data-ablocks-id"),10)||0,a={src:e,alt:i};o&&(a.imageId=o);const l=t.closest("a");return l&&l.getAttribute("href")&&(a.link={url:l.getAttribute("href"),newTab:!1,noFollow:!1}),B8([["ablocks/atomic-image",a],["ablocks/image",{imgUrl:e,imgId:o?String(o):"",altText:i}],["core/image",{url:e,alt:i,id:o||void 0}]])}function G8(t){const e="OL"===t.tagName,i=[],o=Array.from(t.children).filter(t=>"LI"===t.tagName).map(t=>{Array.from(t.children).filter(t=>"UL"===t.tagName||"OL"===t.tagName).forEach(t=>i.push(...G8(t)));const e=t.cloneNode(!0);return Array.from(e.querySelectorAll("ul, ol")).forEach(t=>t.remove()),E8(e)}).filter(Boolean);if(!o.length)return i
6340 -;const a=X8((0,b.applyFilters)("ablocks.googleDocs.listBlock","ablocks/lists",{ordered:e}),{markerType:e?"number":"disc",lists:o.map((t,e)=>({id:e,text:t,link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1}))});if(a)return[a,...i];const l=o.map(t=>X8("core/list-item",{content:t})).filter(Boolean),n=l.length?X8("core/list",{ordered:e},l):null;return n?[n,...i]:[...o.map(t=>q8("p",t)).filter(Boolean),...i]}function Z8(t,e){return Array.from(t.children).filter(t=>"TD"===t.tagName||"TH"===t.tagName).map(t=>{const i=function(t){if(t.querySelector("table, ul, ol, dl, hr, img, figure"))return(t.textContent||"").replace(/\s+/g," ").trim();const e=Array.from(t.children).filter(t=>["P","DIV"].includes(t.tagName));return e.length?e.map(E8).filter(Boolean).join("<br>"):E8(t)}(t),o={content:e?F8(i):i,tag:e?"th":"td"};e&&(o.scope="col")
6341 -;const a=parseInt(t.getAttribute("colspan"),10),l=parseInt(t.getAttribute("rowspan"),10);return a>1&&(o.colspan=String(a)),l>1&&(o.rowspan=String(l)),o})}function K8(t,e){const i=(e?t.slice(1):t).map(t=>({cells:Z8(t,!1)}));return X8("core/table",{head:e?[{cells:Z8(t[0],!0)}]:[],body:i,foot:[]})}function J8(t,e){const i=Array.from(t.children).filter(t=>"TD"===t.tagName||"TH"===t.tagName).map(t=>{const i={tagName:e||"TH"===t.tagName?"th":"td"},o=parseInt(t.getAttribute("colspan"),10),a=parseInt(t.getAttribute("rowspan"),10);return o>1&&(i.colSpan=o),a>1&&(i.rowSpan=a),X8("ablocks/table-cell",i,function(t,e){const i=a5(t).map(t=>{if(!e||O8!==t.name)return t;const i=F8(t.attributes?.content||"");return i===t.attributes?.content?t:X8(O8,{...t.attributes,content:i},t.innerBlocks)||t});return i.length?i:[X8(O8,{tag:"p",content:""})].filter(Boolean)}(t,e))}).filter(Boolean);return i.length?X8("ablocks/table-row",{},i):null}function Q8(t,e){const i=[];if(e){const e=J8(t[0],!0);if(e){
6342 -const t=X8("ablocks/table-header",{},[e]);t&&i.push(t)}}const o=(e?t.slice(1):t).map(t=>J8(t,!1)).filter(Boolean);if(o.length){const t=X8("ablocks/table-body",{},o);t&&i.push(t)}return i.length?X8("ablocks/table",{tableCreated:!0,isHeader:e},i):null}function t5(t){const e=Array.from(t.querySelectorAll("tr"));if(!e.length)return null;const i=e.length>1&&function(t){const e=Array.from(t.children).filter(t=>"TD"===t.tagName||"TH"===t.tagName);return!!e.length&&(!!e.every(t=>"TH"===t.tagName)||e.every(t=>{const e=(t.textContent||"").trim();return!!e&&Array.from(t.querySelectorAll("strong")).map(t=>t.textContent||"").join("").trim()===e}))}(e[0]),o="core/table"===(0,b.applyFilters)("ablocks.googleDocs.tableBlock","ablocks/table",{hasHeader:i})?[K8,Q8]:[Q8,K8];for(const t of o){const o=t(e,i);if(o)return o}return e.map(t=>q8("p",E8(t))).filter(Boolean)}const e5="table, ul, ol, dl, h1, h2, h3, h4, h5, h6, hr, p, div, blockquote, figure, pre, section, article, img, iframe";function i5(t){
6343 -const e=[],i=t.ownerDocument.createElement("p"),o=()=>{const t=q8("p",E8(i));t&&e.push(t),i.innerHTML=""};return Array.from(t.childNodes).forEach(t=>{!function(t){return 1===t.nodeType&&(t.matches(e5)||!!t.querySelector(e5))}(t)?i.appendChild(t.cloneNode(!0)):(o(),e.push(...t.matches(e5)?o5(t):i5(t)))}),o(),e}function o5(t){const{tagName:e}=t;return Y8.includes(e)?[q8(e.toLowerCase(),F8(E8(t)))].filter(Boolean):"IMG"===e?[$8(t)].filter(Boolean):"UL"===e||"OL"===e?G8(t):"TABLE"===e?[t5(t)].flat().filter(Boolean):"HR"===e?[B8([["ablocks/divider"],["core/separator"]])].filter(Boolean):"BLOCKQUOTE"===e||"SECTION"===e||"ARTICLE"===e||"FIGURE"===e?a5(t):t.querySelector(e5)?i5(t):function(t){return!t.querySelector("img, hr, iframe")&&""===(t.textContent||"").replace(/\u00a0/g," ").trim()}(t)?[]:[q8("p",E8(t))].filter(Boolean)}function a5(t){const e=[];let i="";const o=()=>{const t=i.replace(/\u00a0/g," ").trim();if(i="",t){const i=q8("p",t);i&&e.push(i)}}
6344 -;return Array.from(t.childNodes).forEach(t=>{3!==t.nodeType?1===t.nodeType&&(o(),e.push(...o5(t))):i+=t.textContent}),o(),e}const l5="ablocks-google-docs-paste",n5=["styles","globalClasses","alignment","customCSS"],s5=new WeakSet;function r5(t){return!!t&&t.name===O8&&!(t.attributes?.content||"").trim()}async function b5(t){const e=(0,r.dispatch)("core/notices"),i=function(t){const e=t.ownerDocument;return A8.forEach(e=>{t.querySelectorAll(e).forEach(t=>t.remove())}),t.querySelectorAll("hr").forEach(t=>{const e=t.getAttribute("style")||"";("none"===D8(e,"display")||e.includes("page-break"))&&t.remove()}),Array.from(t.querySelectorAll("*")).forEach(t=>{if(!t.isConnected)return;if("A"===t.tagName){const e=function(t){if(!t)return"";try{const e=new URL(t,window.location.href);if(/(^|\.)google\.[a-z.]+$/i.test(e.hostname)&&"/url"===e.pathname){const t=e.searchParams.get("q")||e.searchParams.get("url");if(t)return t}}catch(e){return t}return t}(t.getAttribute("href"))
6345 -;if(!e)return void L8(t);t.setAttribute("href",e)}if(function(t){const e=t.getAttribute("style")||"";if(!e)return[];const i=[],o=D8(e,"font-weight");("bold"===o||"bolder"===o||parseInt(o,10)>=600)&&i.push("strong"),"italic"===D8(e,"font-style")&&i.push("em");const a=D8(e,"text-decoration")+" "+D8(e,"text-decoration-line");a.includes("underline")&&!t.closest("a")&&i.push("u"),a.includes("line-through")&&i.push("s");const l=D8(e,"vertical-align");"super"===l?i.push("sup"):"sub"===l&&i.push("sub");const n=D8(e,"font-family");return(n.includes("courier")||n.includes("mono")||n.includes("consolas"))&&i.push("code"),i}(t).forEach(e=>function(t,e){const i=t.ownerDocument.createElement(e);for(;t.firstChild;)i.appendChild(t.firstChild);t.appendChild(i)}(t,e)),"SPAN"===t.tagName)return void L8(t);if("B"===t.tagName&&"normal"===D8(t.getAttribute("style")||"","font-weight"))return void L8(t);const e=C8[t.tagName]||[];Array.from(t.attributes).forEach(i=>{
6346 -e.includes(i.name.toLowerCase())||t.removeAttribute(i.name)})}),t.querySelectorAll("li > p").forEach(L8),t.querySelectorAll("strong, em, u, s, code").forEach(t=>{let i=t.nextSibling;for(;i&&i.nodeType===e.ELEMENT_NODE&&i.tagName===t.tagName;){for(;i.firstChild;)t.appendChild(i.firstChild);const e=i.nextSibling;i.remove(),i=e}}),t}(z8(t)),a=i.querySelectorAll("img").length;a&&e?.createInfoNotice((0,L.sprintf)(/* translators: %d: number of images being imported. */ /* translators: %d: number of images being imported. */
6347 -(0,L._n)("Importing %d image from Google Docs…","Importing %d images from Google Docs…",a,"ablocks"),a),{id:l5,isDismissible:!1,type:"snackbar"});const l=await async function(t,e){const i=Array.from(t.querySelectorAll("img"));if(!i.length)return{total:0,imported:0};const o=new Map,a=i.slice();let l=0;return await Promise.all(Array.from({length:Math.min(3,i.length)},async()=>{for(;a.length;){const t=a.shift();await V8(t,e,o)&&l++}})),{total:i.length,imported:l}}(i,(0,r.select)("core/editor")?.getCurrentPostId?.()||0),n=function(t){return a5(t)}(i);if(e?.removeNotice(l5),!n.length)return;const s=function(){const t=(0,r.select)("core/block-editor"),e=t.getSelectedBlockClientId(),i=e?t.getBlock(e):null;if(i&&((0,o.isUnmodifiedDefaultBlock)(i)||r5(i)))return{clientId:e,rootClientId:void 0,index:0};const a=t.getBlockInsertionPoint();return{clientId:null,rootClientId:a?.rootClientId,index:a?.index}}(),b=(0,r.dispatch)("core/block-editor");if(s.clientId){const t=(0,
6348 -r.select)("core/block-editor").getBlock(s.clientId);r5(t)&&n[0]?.name===O8&&n5.forEach(e=>{void 0!==t.attributes[e]&&(n[0].attributes[e]=t.attributes[e])}),b.replaceBlocks(s.clientId,n)}else b.insertBlocks(n,s.index,s.rootClientId);l.total&&l.imported<l.total&&e?.createWarningNotice((0,L.sprintf)(/* translators: 1: images imported, 2: images found. */ /* translators: 1: images imported, 2: images found. */
6349 -(0,L.__)("Pasted from Google Docs. %1$d of %2$d images could be imported — the rest were skipped.","ablocks"),l.imported,l.total),{id:l5,type:"snackbar"})}function c5(t){if(!1===window.ABlocksGlobal?.settings?.paste_google_docs||!t.clipboardData)return;if(!(0,r.select)("core/block-editor"))return;const e=t.target;if(e&&e.closest&&e.closest("input, textarea, .editor-post-title, .wp-block-post-title, .interface-interface-skeleton__sidebar"))return;const i=t.clipboardData.getData("text/html");(function(t){return"string"==typeof t&&t.includes(w8)})(i)&&(function(t,e){return!!t.target?.closest?.('[contenteditable="true"]')&&!e.querySelector("img, table, ul, ol")&&e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, blockquote, pre").length<=1}(t,z8(i))||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),b5(i).catch(()=>{(0,r.dispatch)("core/notices")?.createErrorNotice((0,L.__)("The Google Docs content could not be pasted.","ablocks"),{id:l5,type:"snackbar"})})))}function d5(t){
6350 -t&&!s5.has(t)&&(s5.add(t),t.addEventListener("paste",c5,!0))}j8()(()=>{window.self===window.top&&(d5(document),function(){const t=()=>{document.querySelectorAll('iframe[name="editor-canvas"]').forEach(t=>{try{const e=t.contentDocument;e&&"loading"!==e.readyState&&d5(e)}catch(t){}})};t(),window.setInterval(t,1e3)}())});const u5=window.wp.dom,p5="ablocks/atomic-text",m5=["styles","globalClasses","alignment","customCSS"],h5=/<!--\s*wp:/,g5=new WeakSet;function f5(t){if(t.defaultPrevented||!t.clipboardData)return;const e=(0,r.select)("core/block-editor");if(!e||!(0,o.getBlockType)(p5))return;const i=t.target;if(i?.closest?.("input, textarea, .editor-post-title, .wp-block-post-title, .interface-interface-skeleton__sidebar"))return;if(e.hasMultiSelection?.())return;const a=e.getSelectedBlockClientId();if(!a||e.getBlockName(a)!==p5)return;const l=i?.ownerDocument;if(!l||!function(t,e){const i=t.getElementById(`block-${e}`);return!!i?.isContentEditable&&(0,u5.isEntirelySelected)(i)
6351 -}(l,a))return;if("true"===t.clipboardData.getData("rich-text"))return;const n=t.clipboardData.getData("text/html"),s=t.clipboardData.getData("text/plain");if(!n&&!s)return;if(h5.test(n)||h5.test(s))return;const b=e.getBlockAttributes(a)||{},c=(0,o.pasteHandler)({HTML:n,plainText:s,mode:"AUTO",tagName:b.tag||"p",canUserUseUnfilteredHTML:e.getSettings?.()?.__experimentalCanUserUseUnfilteredHTML});if("string"==typeof c||!c?.length)return;const{updateBlockAttributes:d,replaceBlocks:u}=(0,r.dispatch)("core/block-editor"),p={};m5.forEach(t=>{void 0!==b[t]&&(p[t]=b[t])});const m=c.map(t=>function(t,e){return"core/paragraph"===t.name?(0,o.createBlock)(p5,{...e,tag:"p",content:t.attributes?.content||""}):"core/heading"===t.name?(0,o.createBlock)(p5,{...e,tag:`h${t.attributes?.level||2}`,content:t.attributes?.content||""}):t}(t,p));m.some(t=>t.name===p5)&&(t.preventDefault(),t.stopImmediatePropagation(),1!==m.length||m[0].name!==p5?u(a,m,m.length-1,-1):d(a,{content:m[0].attributes.content,
6352 -tag:m[0].attributes.tag}))}function y5(t){t&&!g5.has(t)&&(g5.add(t),t.addEventListener("paste",f5,!0))}j8()(()=>{window.self===window.top&&(y5(document),function(){const t=()=>{document.querySelectorAll('iframe[name="editor-canvas"]').forEach(t=>{try{const e=t.contentDocument;e&&"loading"!==e.readyState&&y5(e)}catch(t){}})};t(),window.setInterval(t,1e3)}())});const T5=(0,sH.createHigherOrderComponent)(t=>{function e(e){const{clientId:i,setAttributes:o}=e,a=(0,r.useRegistry)(),{__unstableMarkNextChangeAsNotPersistent:l}=(0,r.useDispatch)(D.store),n=(0,Yt.useCallback)(t=>{(function(t,e,i){if(!t||"object"!=typeof t)return!1;const o=Object.keys(t);return o.length>0&&o.every(o=>"block_id"===o?t.block_id===i&&e?.block_id!==i:"blockVersion"===o&&!!t.blockVersion&&!e?.blockVersion)})(t,a.select(D.store).getBlockAttributes(i),i)&&l(),o(t)},[a,i,o,l]);return(0,I.jsx)(t,{...e,setAttributes:n})}return i=>i.name?.startsWith("ablocks/")?(0,I.jsx)(e,{...i}):(0,I.jsx)(t,{...i})
6353 -},"withQuietHousekeeping");(0,b.addFilter)("editor.BlockEdit","ablocks/block-housekeeping/edit",T5)},92731(t,e,i){"use strict";i.d(e,{Ay:()=>b});var o=i(43271),a=i(42377),l=i(2489),n=i(80241),s=i(77168);const r=(0,a.D$)({attributeName:"headingTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),b={block_id:{type:"string",default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},headingColor:{type:"string",default:"#111"},headingColorH:{type:"string",default:"#111"},listColor:{type:"string",default:"#999"},listColorH:{type:"string",default:"#999"},tabColor:{type:"string",default:"#999"},tabColorH:{type:"string",default:"#999"},...(0,a.D$)({attributeName:"listTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),...r,...(0,a.D$)({attributeName:"tabTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),...(0,
6348 +getFeaturedMediasData:t=>t.featuredMediasData,getAllTaxonomiesTermsData:t=>t.allTaxonomiesTermsData,getRecentMediasUrls:t=>t.recentMediasUrls,getAuthorsData:t=>t.authorData,getAuthorProfilePictureUrl:t=>t.authorProfilePictureUrl},initialState:l5});(0,r.register)(n5);const s5=window.wp.domReady;var r5=i.n(s5);const b5="docs-internal-guid-";function c5(t){const e=document.implementation.createHTMLDocument("");e.body.innerHTML=t;const i=e.querySelector(`[id^="${b5}"]`);return i&&i.parentElement===e.body&&1===e.body.children.length?i:e.body}const d5={A:["href"],IMG:["src","alt","title","width","height"],TD:["colspan","rowspan"],TH:["colspan","rowspan"]},u5=["style","script","meta","link","title"];function p5(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}}function m5(t,e){const i=new RegExp(`(?:^|;)\\s*${e}\\s*:\\s*([^;]+)`,"i").exec(t);return i?i[1].trim().toLowerCase():""}const h5=window.wp.apiFetch;var g5=i.n(h5)
6349 +;async function f5(t,e,i){const o=t.getAttribute("src")||"";if(!o)return!1;const a=e=>{t.setAttribute("src",e.url),t.setAttribute("data-ablocks-id",String(e.id)),!t.getAttribute("alt")&&e.alt&&t.setAttribute("alt",e.alt)};if(i.has(o)){const e=await i.get(o);return e?(a(e),!0):(t.setAttribute("src",""),!1)}const l=(async()=>{const i=t.getAttribute("alt")||t.getAttribute("title")||"",a=new window.FormData;if(a.append("name",function(t){const e=t.getAttribute("alt")||t.getAttribute("title")||"";if(e.trim())return e.trim();let i=t.closest("p, div, figure")||t;for(;i;)if(i=i.previousElementSibling,i&&/^H[1-6]$/.test(i.tagName))return(i.textContent||"").trim();return""}(t)),a.append("alt",i),e&&a.append("post_id",String(e)),o.startsWith("data:")){const t=function(t){const e=/^data:([^;,]+)(;base64)?,(.*)$/s.exec(t);if(!e)return null;const[,i,o,a]=e;try{if(!o)return new Blob([decodeURIComponent(a)],{type:i});const t=window.atob(a),e=new Uint8Array(t.length)
6350 +;for(let i=0;i<t.length;i++)e[i]=t.charCodeAt(i);return new Blob([e],{type:i})}catch(t){return null}}(o);if(!t)return null;a.append("file",t,"pasted-image")}else a.append("url",o);try{return await g5()({path:"/ablocks/v1/paste/image",method:"POST",body:a})}catch(t){return null}})();i.set(o,l);const n=await l;return n&&n.url?(a(n),!0):(t.setAttribute("src",""),!1)}const y5="ablocks/atomic-text",T5=["H1","H2","H3","H4","H5","H6"];function H5(t,e={},i=[]){return(0,o.getBlockType)(t)?(0,o.createBlock)(t,e,i):null}function M5(t){for(const[e,i,o]of t){const t=H5(e,i,o);if(t)return t}return null}function x5(t){return(t.innerHTML||"").replace(/\u00a0/g," ").trim()}function k5(t){const e=/^<strong>([\s\S]*)<\/strong>$/.exec(t);return!e||e[1].includes("<strong>")?t:e[1]}function v5(t,e){if(!e||!function(t){return!!/<(img|svg|iframe|video|audio)\b/i.test(t)||""!==t.replace(/<[^>]*>/g,"").replace(/&nbsp;|\u00a0/g," ").trim()}(e))return null;const i=/^h[1-6]$/.test(t);return M5([[y5,{tag:t,
6351 +content:e}],i?["ablocks/heading",{heading:e,headingTag:t}]:["ablocks/paragraph",{paragraph:e}],i?["core/heading",{content:e,level:Number(t.slice(1))}]:["core/paragraph",{content:e}]])}function _5(t){const e=t.getAttribute("src")||"";if(!e||e.startsWith("data:"))return null;const i=t.getAttribute("alt")||"",o=parseInt(t.getAttribute("data-ablocks-id"),10)||0,a={src:e,alt:i};o&&(a.imageId=o);const l=t.closest("a");return l&&l.getAttribute("href")&&(a.link={url:l.getAttribute("href"),newTab:!1,noFollow:!1}),M5([["ablocks/atomic-image",a],["ablocks/image",{imgUrl:e,imgId:o?String(o):"",altText:i}],["core/image",{url:e,alt:i,id:o||void 0}]])}function R5(t){const e="OL"===t.tagName,i=[],o=Array.from(t.children).filter(t=>"LI"===t.tagName).map(t=>{Array.from(t.children).filter(t=>"UL"===t.tagName||"OL"===t.tagName).forEach(t=>i.push(...R5(t)));const e=t.cloneNode(!0);return Array.from(e.querySelectorAll("ul, ol")).forEach(t=>t.remove()),x5(e)}).filter(Boolean);if(!o.length)return i
6352 +;const a=H5((0,b.applyFilters)("ablocks.googleDocs.listBlock","ablocks/lists",{ordered:e}),{markerType:e?"number":"disc",lists:o.map((t,e)=>({id:e,text:t,link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1}))});if(a)return[a,...i];const l=o.map(t=>H5("core/list-item",{content:t})).filter(Boolean),n=l.length?H5("core/list",{ordered:e},l):null;return n?[n,...i]:[...o.map(t=>v5("p",t)).filter(Boolean),...i]}function S5(t,e){return Array.from(t.children).filter(t=>"TD"===t.tagName||"TH"===t.tagName).map(t=>{const i=function(t){if(t.querySelector("table, ul, ol, dl, hr, img, figure"))return(t.textContent||"").replace(/\s+/g," ").trim();const e=Array.from(t.children).filter(t=>["P","DIV"].includes(t.tagName));return e.length?e.map(x5).filter(Boolean).join("<br>"):x5(t)}(t),o={content:e?k5(i):i,tag:e?"th":"td"};e&&(o.scope="col")
6353 +;const a=parseInt(t.getAttribute("colspan"),10),l=parseInt(t.getAttribute("rowspan"),10);return a>1&&(o.colspan=String(a)),l>1&&(o.rowspan=String(l)),o})}function W5(t,e){const i=(e?t.slice(1):t).map(t=>({cells:S5(t,!1)}));return H5("core/table",{head:e?[{cells:S5(t[0],!0)}]:[],body:i,foot:[]})}function P5(t,e){const i=Array.from(t.children).filter(t=>"TD"===t.tagName||"TH"===t.tagName).map(t=>{const i={tagName:e||"TH"===t.tagName?"th":"td"},o=parseInt(t.getAttribute("colspan"),10),a=parseInt(t.getAttribute("rowspan"),10);return o>1&&(i.colSpan=o),a>1&&(i.rowSpan=a),H5("ablocks/table-cell",i,function(t,e){const i=A5(t).map(t=>{if(!e||y5!==t.name)return t;const i=k5(t.attributes?.content||"");return i===t.attributes?.content?t:H5(y5,{...t.attributes,content:i},t.innerBlocks)||t});return i.length?i:[H5(y5,{tag:"p",content:""})].filter(Boolean)}(t,e))}).filter(Boolean);return i.length?H5("ablocks/table-row",{},i):null}function U5(t,e){const i=[];if(e){const e=P5(t[0],!0);if(e){
6354 +const t=H5("ablocks/table-header",{},[e]);t&&i.push(t)}}const o=(e?t.slice(1):t).map(t=>P5(t,!1)).filter(Boolean);if(o.length){const t=H5("ablocks/table-body",{},o);t&&i.push(t)}return i.length?H5("ablocks/table",{tableCreated:!0,isHeader:e},i):null}function j5(t){const e=Array.from(t.querySelectorAll("tr"));if(!e.length)return null;const i=e.length>1&&function(t){const e=Array.from(t.children).filter(t=>"TD"===t.tagName||"TH"===t.tagName);return!!e.length&&(!!e.every(t=>"TH"===t.tagName)||e.every(t=>{const e=(t.textContent||"").trim();return!!e&&Array.from(t.querySelectorAll("strong")).map(t=>t.textContent||"").join("").trim()===e}))}(e[0]),o="core/table"===(0,b.applyFilters)("ablocks.googleDocs.tableBlock","ablocks/table",{hasHeader:i})?[W5,U5]:[U5,W5];for(const t of o){const o=t(e,i);if(o)return o}return e.map(t=>v5("p",x5(t))).filter(Boolean)}const w5="table, ul, ol, dl, h1, h2, h3, h4, h5, h6, hr, p, div, blockquote, figure, pre, section, article, img, iframe";function z5(t){
6355 +const e=[],i=t.ownerDocument.createElement("p"),o=()=>{const t=v5("p",x5(i));t&&e.push(t),i.innerHTML=""};return Array.from(t.childNodes).forEach(t=>{!function(t){return 1===t.nodeType&&(t.matches(w5)||!!t.querySelector(w5))}(t)?i.appendChild(t.cloneNode(!0)):(o(),e.push(...t.matches(w5)?C5(t):z5(t)))}),o(),e}function C5(t){const{tagName:e}=t;return T5.includes(e)?[v5(e.toLowerCase(),k5(x5(t)))].filter(Boolean):"IMG"===e?[_5(t)].filter(Boolean):"UL"===e||"OL"===e?R5(t):"TABLE"===e?[j5(t)].flat().filter(Boolean):"HR"===e?[M5([["ablocks/divider"],["core/separator"]])].filter(Boolean):"BLOCKQUOTE"===e||"SECTION"===e||"ARTICLE"===e||"FIGURE"===e?A5(t):t.querySelector(w5)?z5(t):function(t){return!t.querySelector("img, hr, iframe")&&""===(t.textContent||"").replace(/\u00a0/g," ").trim()}(t)?[]:[v5("p",x5(t))].filter(Boolean)}function A5(t){const e=[];let i="";const o=()=>{const t=i.replace(/\u00a0/g," ").trim();if(i="",t){const i=v5("p",t);i&&e.push(i)}}
6356 +;return Array.from(t.childNodes).forEach(t=>{3!==t.nodeType?1===t.nodeType&&(o(),e.push(...C5(t))):i+=t.textContent}),o(),e}const L5="ablocks-google-docs-paste",D5=["styles","globalClasses","alignment","customCSS"],N5=new WeakSet;function I5(t){return!!t&&t.name===y5&&!(t.attributes?.content||"").trim()}async function V5(t){const e=(0,r.dispatch)("core/notices"),i=function(t){const e=t.ownerDocument;return u5.forEach(e=>{t.querySelectorAll(e).forEach(t=>t.remove())}),t.querySelectorAll("hr").forEach(t=>{const e=t.getAttribute("style")||"";("none"===m5(e,"display")||e.includes("page-break"))&&t.remove()}),Array.from(t.querySelectorAll("*")).forEach(t=>{if(!t.isConnected)return;if("A"===t.tagName){const e=function(t){if(!t)return"";try{const e=new URL(t,window.location.href);if(/(^|\.)google\.[a-z.]+$/i.test(e.hostname)&&"/url"===e.pathname){const t=e.searchParams.get("q")||e.searchParams.get("url");if(t)return t}}catch(e){return t}return t}(t.getAttribute("href"))
6357 +;if(!e)return void p5(t);t.setAttribute("href",e)}if(function(t){const e=t.getAttribute("style")||"";if(!e)return[];const i=[],o=m5(e,"font-weight");("bold"===o||"bolder"===o||parseInt(o,10)>=600)&&i.push("strong"),"italic"===m5(e,"font-style")&&i.push("em");const a=m5(e,"text-decoration")+" "+m5(e,"text-decoration-line");a.includes("underline")&&!t.closest("a")&&i.push("u"),a.includes("line-through")&&i.push("s");const l=m5(e,"vertical-align");"super"===l?i.push("sup"):"sub"===l&&i.push("sub");const n=m5(e,"font-family");return(n.includes("courier")||n.includes("mono")||n.includes("consolas"))&&i.push("code"),i}(t).forEach(e=>function(t,e){const i=t.ownerDocument.createElement(e);for(;t.firstChild;)i.appendChild(t.firstChild);t.appendChild(i)}(t,e)),"SPAN"===t.tagName)return void p5(t);if("B"===t.tagName&&"normal"===m5(t.getAttribute("style")||"","font-weight"))return void p5(t);const e=d5[t.tagName]||[];Array.from(t.attributes).forEach(i=>{
6358 +e.includes(i.name.toLowerCase())||t.removeAttribute(i.name)})}),t.querySelectorAll("li > p").forEach(p5),t.querySelectorAll("strong, em, u, s, code").forEach(t=>{let i=t.nextSibling;for(;i&&i.nodeType===e.ELEMENT_NODE&&i.tagName===t.tagName;){for(;i.firstChild;)t.appendChild(i.firstChild);const e=i.nextSibling;i.remove(),i=e}}),t}(c5(t)),a=i.querySelectorAll("img").length;a&&e?.createInfoNotice((0,L.sprintf)(/* translators: %d: number of images being imported. */ /* translators: %d: number of images being imported. */
6359 +(0,L._n)("Importing %d image from Google Docs…","Importing %d images from Google Docs…",a,"ablocks"),a),{id:L5,isDismissible:!1,type:"snackbar"});const l=await async function(t,e){const i=Array.from(t.querySelectorAll("img"));if(!i.length)return{total:0,imported:0};const o=new Map,a=i.slice();let l=0;return await Promise.all(Array.from({length:Math.min(3,i.length)},async()=>{for(;a.length;){const t=a.shift();await f5(t,e,o)&&l++}})),{total:i.length,imported:l}}(i,(0,r.select)("core/editor")?.getCurrentPostId?.()||0),n=function(t){return A5(t)}(i);if(e?.removeNotice(L5),!n.length)return;const s=function(){const t=(0,r.select)("core/block-editor"),e=t.getSelectedBlockClientId(),i=e?t.getBlock(e):null;if(i&&((0,o.isUnmodifiedDefaultBlock)(i)||I5(i)))return{clientId:e,rootClientId:void 0,index:0};const a=t.getBlockInsertionPoint();return{clientId:null,rootClientId:a?.rootClientId,index:a?.index}}(),b=(0,r.dispatch)("core/block-editor");if(s.clientId){const t=(0,
6360 +r.select)("core/block-editor").getBlock(s.clientId);I5(t)&&n[0]?.name===y5&&D5.forEach(e=>{void 0!==t.attributes[e]&&(n[0].attributes[e]=t.attributes[e])}),b.replaceBlocks(s.clientId,n)}else b.insertBlocks(n,s.index,s.rootClientId);l.total&&l.imported<l.total&&e?.createWarningNotice((0,L.sprintf)(/* translators: 1: images imported, 2: images found. */ /* translators: 1: images imported, 2: images found. */
6361 +(0,L.__)("Pasted from Google Docs. %1$d of %2$d images could be imported — the rest were skipped.","ablocks"),l.imported,l.total),{id:L5,type:"snackbar"})}function O5(t){if(!1===window.ABlocksGlobal?.settings?.paste_google_docs||!t.clipboardData)return;if(!(0,r.select)("core/block-editor"))return;const e=t.target;if(e&&e.closest&&e.closest("input, textarea, .editor-post-title, .wp-block-post-title, .interface-interface-skeleton__sidebar"))return;const i=t.clipboardData.getData("text/html");(function(t){return"string"==typeof t&&t.includes(b5)})(i)&&(function(t,e){return!!t.target?.closest?.('[contenteditable="true"]')&&!e.querySelector("img, table, ul, ol")&&e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, blockquote, pre").length<=1}(t,c5(i))||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),V5(i).catch(()=>{(0,r.dispatch)("core/notices")?.createErrorNotice((0,L.__)("The Google Docs content could not be pasted.","ablocks"),{id:L5,type:"snackbar"})})))}function Y5(t){
6362 +t&&!N5.has(t)&&(N5.add(t),t.addEventListener("paste",O5,!0))}r5()(()=>{window.self===window.top&&(Y5(document),function(){const t=()=>{document.querySelectorAll('iframe[name="editor-canvas"]').forEach(t=>{try{const e=t.contentDocument;e&&"loading"!==e.readyState&&Y5(e)}catch(t){}})};t(),window.setInterval(t,1e3)}())});const X5=window.wp.dom,B5="ablocks/atomic-text",E5=["styles","globalClasses","alignment","customCSS"],F5=/<!--\s*wp:/,q5=new WeakSet;function $5(t){if(t.defaultPrevented||!t.clipboardData)return;const e=(0,r.select)("core/block-editor");if(!e||!(0,o.getBlockType)(B5))return;const i=t.target;if(i?.closest?.("input, textarea, .editor-post-title, .wp-block-post-title, .interface-interface-skeleton__sidebar"))return;if(e.hasMultiSelection?.())return;const a=e.getSelectedBlockClientId();if(!a||e.getBlockName(a)!==B5)return;const l=i?.ownerDocument;if(!l||!function(t,e){const i=t.getElementById(`block-${e}`);return!!i?.isContentEditable&&(0,X5.isEntirelySelected)(i)
6363 +}(l,a))return;if("true"===t.clipboardData.getData("rich-text"))return;const n=t.clipboardData.getData("text/html"),s=t.clipboardData.getData("text/plain");if(!n&&!s)return;if(F5.test(n)||F5.test(s))return;const b=e.getBlockAttributes(a)||{},c=(0,o.pasteHandler)({HTML:n,plainText:s,mode:"AUTO",tagName:b.tag||"p",canUserUseUnfilteredHTML:e.getSettings?.()?.__experimentalCanUserUseUnfilteredHTML});if("string"==typeof c||!c?.length)return;const{updateBlockAttributes:d,replaceBlocks:u}=(0,r.dispatch)("core/block-editor"),p={};E5.forEach(t=>{void 0!==b[t]&&(p[t]=b[t])});const m=c.map(t=>function(t,e){return"core/paragraph"===t.name?(0,o.createBlock)(B5,{...e,tag:"p",content:t.attributes?.content||""}):"core/heading"===t.name?(0,o.createBlock)(B5,{...e,tag:`h${t.attributes?.level||2}`,content:t.attributes?.content||""}):t}(t,p));m.some(t=>t.name===B5)&&(t.preventDefault(),t.stopImmediatePropagation(),1!==m.length||m[0].name!==B5?u(a,m,m.length-1,-1):d(a,{content:m[0].attributes.content,
6364 +tag:m[0].attributes.tag}))}function G5(t){t&&!q5.has(t)&&(q5.add(t),t.addEventListener("paste",$5,!0))}r5()(()=>{window.self===window.top&&(G5(document),function(){const t=()=>{document.querySelectorAll('iframe[name="editor-canvas"]').forEach(t=>{try{const e=t.contentDocument;e&&"loading"!==e.readyState&&G5(e)}catch(t){}})};t(),window.setInterval(t,1e3)}())});const Z5=(0,sH.createHigherOrderComponent)(t=>{function e(e){const{clientId:i,setAttributes:o}=e,a=(0,r.useRegistry)(),{__unstableMarkNextChangeAsNotPersistent:l}=(0,r.useDispatch)(D.store),n=(0,Yt.useCallback)(t=>{(function(t,e,i){if(!t||"object"!=typeof t)return!1;const o=Object.keys(t);return o.length>0&&o.every(o=>"block_id"===o?t.block_id===i&&e?.block_id!==i:"blockVersion"===o&&!!t.blockVersion&&!e?.blockVersion)})(t,a.select(D.store).getBlockAttributes(i),i)&&l(),o(t)},[a,i,o,l]);return(0,I.jsx)(t,{...e,setAttributes:n})}return i=>i.name?.startsWith("ablocks/")?(0,I.jsx)(e,{...i}):(0,I.jsx)(t,{...i})
6365 +},"withQuietHousekeeping");(0,b.addFilter)("editor.BlockEdit","ablocks/block-housekeeping/edit",Z5)},92731(t,e,i){"use strict";i.d(e,{Ay:()=>b});var o=i(43271),a=i(42377),l=i(2489),n=i(80241),s=i(77168);const r=(0,a.D$)({attributeName:"headingTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),b={block_id:{type:"string",default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},headingColor:{type:"string",default:"#111"},headingColorH:{type:"string",default:"#111"},listColor:{type:"string",default:"#999"},listColorH:{type:"string",default:"#999"},tabColor:{type:"string",default:"#999"},tabColorH:{type:"string",default:"#999"},...(0,a.D$)({attributeName:"listTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),...r,...(0,a.D$)({attributeName:"tabTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),...(0,
6354 6366 l.D$)("headingTypography",!0),...(0,l.D$)("listTypography",!0),...(0,l.D$)("tabTypography",!0),...(0,n.D$)("listMargin",!0),...(0,s.D$)("listBorder",!0),...o.Ay}},96931(t,e,i){"use strict";i.d(e,{A:()=>l,O:()=>a});var o=i(43271);i(80241);const a=(0,i(42377).D$)({attributeName:"containerWidth",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:250,copyStyle:!0}),l={block_id:{type:"string",default:""},floatAlignment:{type:"object",default:""},floatMargin:{type:"object",default:""},variationSelected:{type:"boolean",default:!1},...a,...o.Ay}},81568(t,e,i){"use strict";i.d(e,{Ay:()=>r,Yi:()=>n,xY:()=>s});var o=i(43271),a=i(42377),l=i(2489);const n=(0,a.D$)({attributeName:"lock_icon_size",attributeObjectKey:"value",isResponsive:!0,defaultValue:16,defaultValueTablet:16,defaultValueMobile:16,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),s=(0,a.D$)({attributeName:"readIconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:16,
6355 6367 defaultValueTablet:16,defaultValueMobile:12,hasUnit:!0,unitDefaultValue:"px"}),r={block_id:{type:"string",default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},heading_color_hover:{type:"string",default:"#000"},heading_color:{type:"string",default:"#000"},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:"#000"},contentColor:{type:"string",default:"#000"},contentColorH:{type:"string",default:"#000"},title_color:{type:"string",default:"#000"},title_color_hover:{type:"string",default:"#000"},lesson_list_bg:{type:"string",default:"#fff"},lesson_list_hover:{type:"string",default:"#fff"},lock_icon_color:{type:"string",default:"#000"},lock_icon_hover:{type:"string",default:"#000"},read_icon_color:{type:"string",default:"#e12a2a"},read_icon_hover:{type:"string",default:"#e12a2a"},...n,...s,...o.Ay,...(0,l.D$)("buttonTypography",!0),...(0,
6356 6368 l.D$)("heading_typography",!0),...(0,l.D$)("title_typography",!0),...(0,l.D$)("contentTypography",!0)}},37807(t,e,i){"use strict";i.d(e,{Ae:()=>n,Ay:()=>d,Hy:()=>s,Sg:()=>r});var o=i(43271),a=i(42377),l=i(2489);i(80241),i(77168),i(80554);const n=(0,a.D$)({attributeName:"avatarH",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:62,unitDefaultValue:"px"}),s=(0,a.D$)({attributeName:"avatarW",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:62,unitDefaultValue:"px"}),r=(0,a.D$)({attributeName:"star_size",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px"}),b=(0,a.D$)({attributeName:"titleTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),c=(0,a.D$)({attributeName:"textTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),d={block_id:{type:"string",default:""},titleColor:{type:"string",default:"#999"},
6357 6369 titleColorH:{type:"string",default:"#999"},textColor:{type:"string",default:"#111"},textColorH:{type:"string",default:"#111"},star_color:{type:"string",default:"#f4c150"},star_colorH:{type:"string",default:"#f4c150"},insColor:{type:"string",default:"#111"},insColorH:{type:"string",default:"#111"},...n,...s,...b,...c,...(0,l.D$)("titleTypography",!0),...(0,l.D$)("insTypography",!0),...o.Ay}},53036(t,e,i){"use strict";i.d(e,{Ay:()=>c,C$:()=>r,FN:()=>b});var o=i(43271),a=(i(2489),i(42377)),l=i(21993),n=i(80554),s=i(77168);const r=(0,a.D$)({attributeName:"imageWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"}),b=(0,a.D$)({attributeName:"imageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},imageOpacity:{
@@ -6371,103 +6383,104 @@
6371 6383 isResponsive:!0,defaultValue:6,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),p=(0,s.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"%",copyStyle:!0}),m=(0,s.D$)({attributeName:"weight",isResponsive:!1,defaultValue:4,copyStyle:!0}),h=(0,s.D$)({attributeName:"size",isResponsive:!1,defaultValue:20,copyStyle:!0}),g=(0,s.D$)({attributeName:"shapeSize",isResponsive:!0,defaultValue:14,copyStyle:!0}),f={block_id:{type:"string",default:""},markerType:{type:"string",default:"Icon",copyStyle:!0},shapeType:{type:"string",default:"dotted",copyStyle:!0},shapeColor:{type:"string",default:"black",copyStyle:!0},...g,emoji:{type:"string",default:"👍",copyStyle:!0},allowDivider:{type:"boolean",default:!1},...d,...u,advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1,copyStyle:!0},dropCapsTextColor:{type:"string",default:"#0f2aff",copyStyle:!0},advanceListItemTextSize:{type:"string",default:"md",copyStyle:!0},
6372 6384 textColor:{type:"string",default:"#000000",copyStyle:!0},dividerPatternUrl:{type:"string",default:"solid",copyStyle:!0},dividerType:{type:"string",default:"css-style",copyStyle:!0},color:{type:"string",default:"black",copyStyle:!0},...p,...m,...h,...(0,a.D$)("alignment",!0,{value:"start"}),...(0,a.D$)("iconAlignment",!0,{value:"row"}),...(0,n.D$)("icon",{className:"fas fa-check",path:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",viewBox:"0 0 512 512",size:"20",color:"#000"}),...(0,l.D$)("listsDirection",!0,{value:"column"}),...(0,r.D$)("listTypography",!0),...(0,b.D$)("listTextShadow"),...(0,c.D$)("listTextStroke",!0),...o.Ay}},58372(t,e,i){"use strict";i.d(e,{Ay:()=>b,St:()=>r,sk:()=>s});var o=i(43271),a=i(2489),l=i(42377),n=i(80241);i(86781);const s=(0,
6373 6385 l.D$)({attributeName:"breadcrumbSpaceBetween",defaultValue:10,copyStyle:!0}),r=(0,l.D$)({attributeName:"breadcrumbseparsize",defaultValue:20,copyStyle:!0}),b={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},homeBreadcrumbs:{type:"string",default:""},enableFaqSchema:{type:"boolean",default:!1},breadcrumbTitlecolor:{type:"string",default:""},SeparatorChange:{type:"string",default:""},beforeBreadcrumbTextImage:{type:"string",default:""},breadcrumbItemBackground:{type:"string",default:""},beforeBreadcrumbBackgroundcolor:{type:"string",default:""},beforeBreadcrumbImage:{type:"object",default:""},beforeBreadcrumbText:{type:"string",default:""},beforeSeparator:{type:"boolean",default:!1},beforeTextImage:{type:"boolean",default:!1},breadcrumbLinkcolor:{type:"string",default:""},breadcrumbHoverLinkcolor:{type:"string",default:""},breadcrumbseparatorcolor:{type:"string",default:""},positionBreadcrumb:{type:"object",default:""},...(0,
6374 6386 a.D$)("breadcrumbTitleTypography",!0),...(0,n.D$)("beforeBreadcrumbPaddingcolor",!0),...(0,n.D$)("breadcrumbItemPadding",!0),...(0,n.D$)("BreadcrumbBorderRadius",!0),...(0,n.D$)("beforeBreadcrumbBorderRadius",!0),...s,...r,...o.Ay}},17463(t,e,i){"use strict";i.d(e,{A:()=>h,e:()=>m});var o=i(43271),a=i(21993),l=i(2489),n=i(74411),s=i(80241),r=i(77168),b=i(68761),c=i(88554),d=i(80554),u=i(42377),p=i(27723);const m=(0,u.D$)({attributeName:"iconSpace",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:(0,p.__)("Click here","ablocks")},buttonType:{type:"string",default:"#ddd",copyStyle:!0},buttonSize:{type:"string",default:"small",copyStyle:!0},textColor:{type:"string",default:"#000000",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},background:{type:"string",default:"",copyStyle:!0},backgroundH:{type:"string",
6375 -default:"",copyStyle:!0},transition:{type:"number",default:"",copyStyle:!0},iconPosition:{type:"string",default:"left",copyStyle:!0},...m,showIcon:{type:"boolean",default:!1,copyStyle:!0},...(0,b.D$)("icon",{size:16}),...(0,c.D$)("link"),...(0,a.D$)("position",!0,{value:"left"}),...(0,a.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("typography",!0),...(0,n.D$)("textShadow"),...(0,s.D$)("padding",!0),...(0,r.D$)("border",!0),...(0,d.D$)("boxShadow"),...o.Ay}},58509(t,e,i){"use strict";i.d(e,{Ay:()=>_,Is:()=>h,Po:()=>y,Pu:()=>f,Qg:()=>g,Qh:()=>c,Ud:()=>m,Vq:()=>d,Wu:()=>M,Yd:()=>H,a5:()=>u,g7:()=>p,qO:()=>x,rQ:()=>T});var o=i(43271),a=i(42377),l=i(68761),n=i(90198),s=i(77168),r=i(80241),b=i(80554);const c=(0,a.D$)({attributeName:"carouselHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:300,defaultValueMobile:300,defaultValueTablet:300,copyStyle:!0}),d=(0,a.D$)({attributeName:"paginationPositionY",defaultValue:100,
6376 -attributeObjectKey:"value",hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",copyStyle:!0}),u=(0,a.D$)({attributeName:"paginationPositionX",defaultValue:47,attributeObjectKey:"value",hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",copyStyle:!0}),p=(0,a.D$)({attributeName:"paginationSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,a.D$)({attributeName:"paginationHoverSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,a.D$)({attributeName:"paginationActiveSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,a.D$)({attributeName:"paginationActiveHoverSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),f=(0,a.D$)({attributeName:"navigationIconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:35,hasUnit:!0,
6377 -unitDefaultValue:"px",copyStyle:!0}),y=(0,a.D$)({attributeName:"slidesPerView",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,defaultValueMobile:1,defaultValueTablet:1,copyStyle:!0}),T=(0,a.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueMobile:0,defaultValueTablet:0,copyStyle:!0}),H=(0,a.D$)({attributeName:"navigationIconPositionY",defaultValue:50,attributeObjectKey:"value",hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",copyStyle:!0}),M=(0,a.D$)({attributeName:"navigationIconPositionNextX",hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",defaultValue:-3,copyStyle:!0}),x=(0,a.D$)({attributeName:"navigationIconPositionPrevX",hasUnit:!0,unitDefaultValue:"%",isResponsive:!0,defaultValue:-3,copyStyle:!0}),k=(0,l.D$)("leftIcon",{
6378 -path:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z",viewBox:"0 0 512 512",hasNoSelectorOrSource:!0,className:"far fa-arrow-alt-circle-left"}),v=(0,l.D$)("rightIcon",{path:"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z",viewBox:"0 0 512 512",hasNoSelectorOrSource:!0,className:"far fa-arrow-alt-circle-right"}),_={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},carouselSlideLength:{type:"number",default:1},...c,effect:{type:"string",default:"slide",
6379 -copyStyle:!0},reverseDirection:{type:"boolean",default:!1,copyStyle:!0},...y,...T,isLoop:{type:"boolean",default:!1,copyStyle:!0},autoplay:{type:"boolean",default:!0,copyStyle:!0},autoPlayReverse:{type:"boolean",default:!1,copyStyle:!0},autoplayDelay:{type:"number",default:3e3,copyStyle:!0},autoplayPauseOnHover:{type:"boolean",default:!0,copyStyle:!0},speed:{type:"number",default:800,copyStyle:!0},paginationType:{type:"string",default:"default",copyStyle:!0},pagination:{type:"boolean",default:!0,copyStyle:!0},paginationClickable:{type:"boolean",default:!0,copyStyle:!0},...d,...u,...p,...m,...h,...g,navigation:{type:"boolean",default:!0,copyStyle:!0},...f,...M,...x,...H,navigationIconColor:{type:"string",default:"#686868",copyStyle:!0},navigationIconColorH:{type:"string",default:"",copyStyle:!0},navigationIconBgColor:{type:"string",default:"#e4e4e4",copyStyle:!0},navigationIconBgColorH:{type:"string",default:"",copyStyle:!0},navigationIconTransition:{type:"number",default:"",
6380 -copyStyle:!0},paginationColor:{type:"string",default:"black",copyStyle:!0},paginationHoverColor:{type:"string",default:"black",copyStyle:!0},paginationActiveColor:{type:"string",default:"black",copyStyle:!0},paginationActiveHoverColor:{type:"string",default:"black",copyStyle:!0},...k,...v,grabCursor:{type:"boolean",default:!0,copyStyle:!0},mousewheel:{type:"boolean",default:!0,copyStyle:!0},verticalAlignment:{type:"string",default:"center",copyStyle:!0},...(0,n.D$)("verticalAlign",!0,{value:"center"}),...(0,r.D$)("navigationIconPadding",!0),...(0,s.D$)("navigationIconBorder",!0),...(0,s.D$)("paginationBorder",!0),...(0,s.D$)("activePaginationBorder",!0),...(0,b.D$)("navigationIconBoxShadow",!0),...o.Ay}},71651(t,e,i){"use strict";i.d(e,{Ay:()=>b,Xb:()=>r});var o=i(43271),a=i(21993),l=i(42377),n=i(27723);const s=(0,l.D$)({attributeName:"chartHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:620,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),r=(0,l.D$)({
6381 -attributeName:"chartWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:95,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),b={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},chartType:{type:"string",default:"bar",copyStyle:!0},chartBG:{type:"string",default:"#fff",copyStyle:!0},...s,...r,data:{type:"object",default:{labels:[(0,n.__)("January","ablocks"),(0,n.__)("February","ablocks"),(0,n.__)("March","ablocks"),(0,n.__)("April","ablocks"),(0,n.__)("May","ablocks"),(0,n.__)("June","ablocks")],datasets:[{label:(0,n.__)("Sale","ablocks"),data:[300,500,200,800,700,900],backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1,pointStyle:"star",pointRadius:8,pointHoverRadius:12},{label:(0,n.__)("buys","ablocks"),data:[400,600,300,900,800,800],backgroundColor:"yellow",borderColor:"red",borderWidth:1,pointStyle:"triangle",pointRadius:8,pointHoverRadius:12}]}},options:{type:"object",default:{responsive:!0,aspectRatio:1,
6382 -maintainAspectRatio:!0,scales:{x:{ticks:{color:"blue",font:{size:14}},grid:{display:!0,color:"lightgray",lineWidth:1},title:{display:!0,text:"X-Axis Label",color:"darkblue",align:"center",font:{size:16,weight:"bold"}}},y:{ticks:{color:"green",font:{size:14}},grid:{display:!0,color:"gray",lineWidth:1},title:{display:!0,text:"Y-Axis Label",color:"darkgreen",align:"center",font:{size:16,weight:"bold"}}}},plugins:{legend:{position:"top",labels:{usePointStyle:!0}},title:{display:!0,text:(0,n.__)("Monthly Sales","ablocks"),position:"top",align:"center",padding:10,font:{size:20,weight:"bold"}},subtitle:{display:!1,text:(0,n.__)("Custom Chart Subtitle","ablocks"),position:"top",align:"center",padding:10,font:{size:12,weight:"bold"}}}}},...(0,a.D$)("alignment",!0,{value:"left"}),...o.Ay}},70866(t,e,i){"use strict";i.d(e,{Ay:()=>y,HU:()=>m,Kg:()=>r,OF:()=>h,OM:()=>b,Uq:()=>p,hV:()=>g,js:()=>c,rQ:()=>f});var o=i(43271),a=i(42377),l=i(10131),n=i(90198),s=i(88554);const r=(0,a.D$)({
6383 -attributeName:"minimumHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:null,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),b=(0,a.D$)({attributeName:"containerWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),c=(0,a.D$)({attributeName:"containerContentWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),d=(0,a.D$)({attributeName:"gap",attributeObjectKey:"columnGap",isResponsive:!0,defaultValue:null,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),u=(0,a.D$)({attributeName:"gap",attributeObjectKey:"rowGap",isResponsive:!0,defaultValue:null,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),p=((0,a.D$)({attributeName:"gridColumn",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueTablet:2,defaultValueMobile:1,hasUnit:!1,unitDefaultValue:"",copyStyle:!0}),(0,a.D$)({attributeName:"gridRow",attributeObjectKey:"value",isResponsive:!0,
6384 -defaultValue:"",hasUnit:!1,unitDefaultValue:"",copyStyle:!0}),(0,a.D$)({attributeName:"shapeBottomHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0})),m=(0,a.D$)({attributeName:"shapeBottomWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),h=(0,a.D$)({attributeName:"shapeTopHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,a.D$)({attributeName:"shapeTopWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),f={gap:{type:"object",default:{...d?.gap?.default,...u?.gap?.default},copyStyle:!0}},y={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},className:{type:"string",default:""},isRootContainer:{type:"boolean",default:!1},variationSelected:{type:"boolean",default:!1},...b,...c,...r,...f,...(0,
6385 -n.D$)("containerWidthType",!1,{value:"boxed"}),...(0,n.D$)("overflow",!1,{value:"visible"}),direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},wrap:{type:"string",default:""},wrapTablet:{type:"string",default:""},wrapMobile:{type:"string",default:""},layout:{type:"string",default:""},htmlTag:{type:"string",default:""},shapeTop:{type:"string",default:""},shapeBottom:{type:"string",default:""},shapeTopColor:{type:"string",default:"#61CE70"},shapeBottomColor:{type:"string",default:"#61CE70"},bottomShapeBringToFront:{type:"boolean",default:!1},topShapeBringToFront:{type:"boolean",default:!1},topShapeFlip:{type:"boolean",default:!1},bottomShapeFlip:{type:"boolean",default:!1},...h,...g,
6386 -...p,...m,...(0,n.D$)("dir",!0,{value:"column"}),...(0,n.D$)("justification",!0,{value:""}),...(0,n.D$)("alignment",!0,{value:""}),...(0,n.D$)("wrapping",!0,{value:""}),...(0,s.D$)("link"),...(0,l.D$)("_backgroundOverlay",!0),...o.Ay}},50174(t,e,i){"use strict";i.d(e,{Ay:()=>f,BI:()=>d,Qk:()=>u,RK:()=>p,Xf:()=>g,ah:()=>m,x7:()=>h});var o=i(43271),a=i(21993),l=i(2489),n=i(80241),s=i(68761),r=i(42377),b=i(77168),c=i(90198);const d=(0,r.D$)({attributeName:"iconBackgroundSize",isResponsive:!1,defaultValue:48,copyStyle:!0}),u=(0,r.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px"}),p=(0,r.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:18,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,r.D$)({attributeName:"lineLeft",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,r.D$)({attributeName:"lineRight",
6387 -attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,r.D$)({attributeName:"thickness",isResponsive:!1,defaultValue:3,copyStyle:!0}),f={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},iconColor:{type:"string",default:"#000000",copyStyle:!0},iconBackgroundColor:{type:"string",default:"#eee",copyStyle:!0},thicknessColor:{type:"string",default:"#eee",copyStyle:!0},showAnimation:{type:"boolean",default:!1,copyStyle:!0},connectorAnimationColor:{type:"string",default:"#00ad6b",copyStyle:!0},contentBackgroundColor:{type:"string",default:"#eee",copyStyle:!0},showDate:{type:"boolean",default:!0,copyStyle:!0},showDateTablet:{type:"boolean",default:!0,copyStyle:!0},showDateMobile:{type:"boolean",default:!0,copyStyle:!0},dateFormat:{type:"string",default:"F j, Y",copyStyle:!0},dateColor:{type:"string",default:"#333333",copyStyle:!0},dateBackground:{type:"string",default:"#eee",copyStyle:!0},...d,...u,...g,...p,
6388 -...m,...h,...(0,s.D$)("contentTimeLineIcon",{path:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-up",hasNoSelectorOrSource:!0}),...(0,a.D$)("alignment",!0,{value:"left"}),...(0,c.D$)("arrowAlignment",!1,{value:"center"}),...(0,c.D$)("dateAlign",!1,{value:"left"}),...(0,c.D$)("contentPosition",!1,{value:"center"}),...(0,l.D$)("dateTypography",!0),...(0,n.D$)("contentPadding",!0),...(0,n.D$)("datePadding",!0),...(0,b.D$)("dateBorder",!0),...o.Ay}},60766(t,e,i){"use strict";i.d(e,{Ay:()=>g,Gt:()=>p,Q8:()=>m,Vg:()=>h,Vo:()=>u});var o=i(27723),a=i(43271),l=i(42377),n=i(2489),s=i(21993),r=i(77168),b=i(80554),c=i(90198),d=i(80241);const u=(0,l.D$)({attributeName:"boxSize",
6389 -attributeObjectKey:"value",isResponsive:!0,defaultValue:130,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),p=(0,l.D$)({attributeName:"boxRowGap",isResponsive:!0,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,l.D$)({attributeName:"boxColumnGap",isResponsive:!0,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,l.D$)({attributeName:"numberAndLabelGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:5,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},...(0,s.D$)("alignment",!0,{value:"center"}),targetTime:{type:"string",default:""},direction:{type:"string",default:"row",copyStyle:!0},directionTablet:{type:"string",default:"row",copyStyle:!0},directionMobile:{type:"string",default:"row",copyStyle:!0},justify:{type:"string",default:"center",copyStyle:!0},justifyTablet:{type:"string",default:"center",copyStyle:!0},
6390 -justifyMobile:{type:"string",default:"center",copyStyle:!0},align:{type:"string",default:"stretch",copyStyle:!0},alignTablet:{type:"string",default:"stretch",copyStyle:!0},alignMobile:{type:"string",default:"stretch",copyStyle:!0},wrap:{type:"string",default:"wrap",copyStyle:!0},wrapTablet:{type:"string",default:"wrap",copyStyle:!0},wrapMobile:{type:"string",default:"wrap",copyStyle:!0},showDay:{type:"bool",default:!0},showHour:{type:"bool",default:!0},showMinute:{type:"bool",default:!0},showSecond:{typ:"bool",default:!0},dayLabel:{type:"string",default:"Days"},hourLabel:{type:"string",default:"Hours"},minuteLabel:{type:"string",default:"Minutes"},secondLabel:{type:"string",default:"Seconds"},evergreen:{type:"boolean",default:!1},evergreenHours:{type:"number",default:0},evergreenMinutes:{type:"number",default:0},evergreenDays:{type:"number",default:0},evergreenRestart:{type:"boolean",default:!1},isAction:{type:"bool",default:!0,copyStyle:!0},action:{type:"string",default:"none",
6391 -copyStyle:!0},actionMessage:{type:"string",default:(0,o.__)("Time Expire","ablocks"),copyStyle:!0},actionMessageColor:{type:"string",default:"black",copyStyle:!0},...(0,n.D$)("actionMessageTypography",!0),actionRedirectURL:{type:"string",default:"",copyStyle:!0},labelPosition:{type:"string",default:"column",copyStyle:!0},...u,...h,boxBackgroundColor:{type:"string",default:"",copyStyle:!0},...p,...m,...(0,r.D$)("boxBorder",!0),...(0,b.D$)("boxShadow",!0),labelColor:{type:"string",default:"",copyStyle:!0},showLabels:{type:"bool",default:!0,copyStyle:!0},labelBgColor:{type:"string",default:"",copyStyle:!0},...(0,n.D$)("labelTypography",!0),numberColor:{type:"string",default:"",copyStyle:!0},numberBgColor:{type:"string",default:"",copyStyle:!0},...(0,n.D$)("numberTypography",!0),showSeparator:{type:"bool",default:!0,copyStyle:!0},separatorColor:{type:"string",default:"black",copyStyle:!0},...(0,n.D$)("separatorTypography",!0),...(0,c.D$)("separator",!1,{value:":"}),...(0,
6392 -c.D$)("orient",!0,{value:"row"}),...(0,c.D$)("justificationAlign",!0,{value:"center"}),...(0,c.D$)("alignment",!0,{value:"stretch"}),...(0,c.D$)("wrapping",!0,{value:"wrap"}),...(0,d.D$)("padding",!0),...a.Ay}},58351(t,e,i){"use strict";i.d(e,{Ay:()=>y,NZ:()=>m,eU:()=>u,o7:()=>p,p0:()=>d});var o=i(27723),a=i(43271),l=i(21993),n=i(2489),s=i(68761),r=i(42377),b=i(80241),c=i(90198);const d=(0,r.D$)({attributeName:"duration",isResponsive:!1,defaultValue:1e3,copyStyle:!0}),u=(0,r.D$)({attributeName:"circleSize",isResponsive:!1,defaultValue:220,copyStyle:!0}),p=(0,r.D$)({attributeName:"circleStrokeSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),m=(0,r.D$)({attributeName:"barSize",isResponsive:!0,defaultValue:30,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,r.D$)({attributeName:"iconSize",isResponsive:!0,defaultValue:30,copyStyle:!0}),g=(0,r.D$)({attributeName:"iconRotate",isResponsive:!1,defaultValue:0,copyStyle:!0}),f=(0,r.D$)({attributeName:"decimalPlaces",isResponsive:!1,
6393 -defaultValue:0,copyStyle:!0}),y={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isShowIcon:{type:"bool",default:!0},mediaPosition:{type:"string",default:"top"},...d,animationRepeat:{type:"bool",default:!1},counterPrefix:{type:"string",default:""},counterSuffix:{type:"string",default:"%"},counterTitle:{type:"string",default:(0,o.__)("Enter your heading","ablocks")},numberColor:{type:"string",default:"#08fd00ff",copyStyle:!0},startNumber:{type:"number",default:0},endNumber:{type:"number",default:80},totalNumber:{type:"number",default:100},...f,separator:{type:"string",default:","},...(0,n.D$)("numberTypography",!0),...(0,b.D$)("numberMargin",!0),...(0,c.D$)("layout",!1,{value:"number"}),headingColor:{type:"string",default:"#4B4F58",copyStyle:!0},...(0,n.D$)("headingTypography",!0),...(0,b.D$)("headingMargin",!0),barHeadingPosition:{type:"string",default:"top",copyStyle:!0},circleProgressColor:{type:"string",default:"black",copyStyle:!0},
6394 -circleBackgroundColor:{type:"string",default:"#dadada",copyStyle:!0},...u,...p,barProgressColor:{type:"string",default:"black",copyStyle:!0},barBackgroundColor:{type:"string",default:"#dadada",copyStyle:!0},...m,iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},...h,...g,iconPrimaryColor:{type:"string",default:"black",copyStyle:!0},iconBackgroundColor:{type:"string",default:"#e8e8e8",copyStyle:!0},...(0,s.D$)("icon",{path:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z",viewBox:"0 0 576 512",className:"far fa-star"}),...(0,l.D$)("alignment",!0,{value:"center"}),...a.Ay}},2620(t,e,i){"use strict";i.d(e,{Ay:()=>f,Ej:()=>u,VA:()=>d,
6395 -VL:()=>c,Vl:()=>h,rQ:()=>p,rt:()=>m});var o=i(43271),a=i(21993),l=i(2489),n=i(16867),s=i(68761),r=i(42377),b=i(90198);const c=(0,r.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),d=(0,r.D$)({attributeName:"weight",isResponsive:!1,defaultValue:4,copyStyle:!0}),u=(0,r.D$)({attributeName:"size",isResponsive:!1,defaultValue:20,copyStyle:!0}),p=(0,r.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,copyStyle:!0}),m=(0,r.D$)({attributeName:"elementTextSpacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,r.D$)({attributeName:"elementIconSpacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueMobile:0,defaultValueTablet:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,r.D$)({attributeName:"elementIconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,
6396 -defaultValueMobile:20,defaultValueTablet:20,copyStyle:!0}),f={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},dividerPatternUrl:{type:"string",default:"solid",copyStyle:!0},dividerType:{type:"string",default:"css-style",copyStyle:!0},color:{type:"string",default:"#000000",copyStyle:!0},elementTextColor:{type:"string",default:"#000000",copyStyle:!0},...c,...d,...u,...p,elementText:{type:"string",default:"Divider"},...(0,l.D$)("elementTextTypography",!0),...(0,n.D$)("elementTextStroke",!0),...m,elementTextPosition:{type:"string",default:"center",copyStyle:!0},elementIconType:{type:"string",default:"default",copyStyle:!0},...g,elementIconPosition:{type:"string",default:"center",copyStyle:!0},...h,...(0,s.D$)("icon",{
6397 -path:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z",viewBox:"0 0 576 512",className:"far fa-star"}),...(0,a.D$)("alignment",!0,{value:"left"}),...(0,b.D$)("element",!1,{value:"none"}),...o.Ay}},91464(t,e,i){"use strict";i.d(e,{A:()=>u,r:()=>d});var o=i(43271),a=i(42377),l=i(21993),n=i(2489),s=i(74411),r=i(80241),b=i(77168),c=i(93044);const d=(0,a.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,defaultValueTablet:20,defaultValueMobile:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),u={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},justifyItems:{type:"string",default:"start",copyStyle:!0},...d,
6398 -buttonType:{type:"string",default:"#ddd",copyStyle:!0},buttonSize:{type:"string",default:"small",copyStyle:!0},textColor:{type:"string",default:"#000000",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},background:{type:"string",default:"",copyStyle:!0},backgroundH:{type:"string",default:"",copyStyle:!0},transition:{type:"number",default:0,copyStyle:!0},...(0,l.D$)("alignment",!0,{value:"flex-start"}),...(0,c.D$)("stack",!1,{value:"horizontal"}),...(0,n.D$)("typography",!0),...(0,s.D$)("textShadow"),...(0,r.D$)("padding",!0),...(0,b.D$)("border",!0),...o.Ay}},38652(t,e,i){"use strict";i.d(e,{A:()=>m});var o=i(27723),a=i(43271),l=i(2489),n=i(42377),s=i(80241),r=i(77168),b=i(80554),c=i(21993),d=i(16867),u=i(74411);i(88554);const p=(0,n.D$)({attributeName:"listWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:33,unitDefaultValue:"%",hasUnit:!0}),m={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},
6399 -not_found_text:{type:"string",default:(0,o.__)("Custom message when no bookmarks exist","ablocks")},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},notFoundColor:{type:"string",default:""},...p,...(0,c.D$)("listAignment",!0,{value:"left"}),...(0,s.D$)("listPadding",!0),...(0,r.D$)("listBorder",!0),...(0,b.D$)("listBoxShadow"),...(0,l.D$)("titleTypography",!0),...(0,d.D$)("titleTextStroke",!0),...(0,u.D$)("titleTextShadow"),...(0,l.D$)("desTypography",!0),...(0,d.D$)("desTextStroke",!0),...(0,u.D$)("desTextShadow"),...(0,c.D$)("notFoundAlignment",!0,{value:"center"}),...(0,l.D$)("notFoundTypography",!0),...a.Ay}},45352(t,e,i){"use strict";i.d(e,{Ay:()=>c});var o=i(43271),a=i(2489),l=i(77168),n=i(80241),s=i(21993),r=i(80554),b=i(42377);const c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},post_id:{type:"number"},text:{type:"string",default:""},buttonColor:{type:"string",default:""},
6400 -buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},pendingBadgeFillColor:{type:"string",default:""},confirmationBandageFillColor:{type:"string",default:""},...(0,b.D$)({attributeName:"pendingBadgeSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",hasUnit:!0}),...(0,b.D$)({attributeName:"confirmationBandageSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",hasUnit:!0}),...(0,s.D$)("listAlignment",!0,{value:"left"}),...(0,a.D$)("buttonTypography",!0),...(0,n.D$)("padding",!0),...(0,l.D$)("buttonBorder",!0),...(0,r.D$)("boxShadow"),...o.Ay}},93240(t,e,i){"use strict";i.d(e,{A:()=>m});var o=i(27723),a=i(43271),l=i(2489),n=i(42377),s=i(80241),r=i(77168),b=i(80554),c=i(21993),d=i(16867),u=i(74411);i(88554);const p=(0,n.D$)({attributeName:"listWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:33,unitDefaultValue:"%",hasUnit:!0}),m={
6401 -block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},status:{type:"string",default:""},not_found_text:{type:"string",default:(0,o.__)("Custom message when no claims exist","ablocks")},listStyle:{type:"string",default:"disc"},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},notFoundColor:{type:"string",default:""},...p,...(0,c.D$)("listAignment",!0,{value:"left"}),...(0,c.D$)("notFoundAlignment",!0,{value:"center"}),...(0,s.D$)("listPadding",!0),...(0,r.D$)("listBorder",!0),...(0,b.D$)("listBoxShadow"),...(0,l.D$)("titleTypography",!0),...(0,l.D$)("notFoundTypography",!0),...(0,d.D$)("titleTextStroke",!0),...(0,u.D$)("titleTextShadow"),...(0,l.D$)("desTypography",!0),...(0,d.D$)("desTextStroke",!0),...(0,u.D$)("desTextShadow"),...a.Ay}},6035(t,e,i){"use strict";i.d(e,{A:()=>b});var o=i(27723),a=i(43271),l=i(2489),n=(i(42377),i(80241),i(77168),i(80554),
6402 -i(21993)),s=i(16867),r=i(74411);const b={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},reacTitleColor:{type:"string",default:"#000000",copyStyle:!0},reacListColor:{type:"string",default:"#000000",copyStyle:!0},nobookmarksColor:{type:"string",default:"#000000",copyStyle:!0},reactionUlStyle:{type:"string",default:""},not_found_text:{type:"string",default:(0,o.__)("Custom message when no bookmarks exist","ablocks")},...(0,n.D$)("reactionAlignment",!0,{value:"left"}),...(0,l.D$)("reacTitleTypography",!0),...(0,l.D$)("reacListTypography",!0),...(0,l.D$)("nobookmarksTypography",!0),...(0,r.D$)("textShadow"),...(0,s.D$)("textStroke",!0),...a.Ay}},64608(t,e,i){"use strict";i.d(e,{Ay:()=>d,nO:()=>b,u2:()=>c});var o=i(43271),a=i(2489),l=i(42377),n=i(80241),s=i(77168),r=(i(80554),i(21993),i(90198));const b=(0,l.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",
6403 -copyStyle:!0}),c=(0,l.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),d={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},transition:{type:"number",default:10,copyStyle:!0},showTitle:{type:"boolean",default:!0},iconColor:{type:"string",default:"",copyStyle:!0},fillColor:{type:"string",default:"",copyStyle:!0},titleColor:{type:"string",default:"",copyStyle:!0},bgColor:{type:"string",default:"",copyStyle:!0},activeIconColor:{type:"string",default:"",copyStyle:!0},activeFillColor:{type:"string",default:"",copyStyle:!0},activeTitleColor:{type:"string",default:"",copyStyle:!0},activeBGColor:{type:"string",default:"",copyStyle:!0},...(0,r.D$)("justificationAlign",!0,{value:"center"}),...(0,s.D$)("border",!0),...(0,s.D$)("activeBorder",!0),...(0,a.D$)("activeTitleTypography",!0),...(0,a.D$)("titleTypography",!0),...(0,n.D$)("padding",!0),...b,...c,...o.Ay}},11053(t,e,i){
6404 -"use strict";i.d(e,{A:()=>u});var o=i(43271),a=i(2489),l=i(42377),n=i(80241),s=i(77168),r=i(80554),b=i(21993),c=i(16867),d=i(74411);i(88554);const u={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},not_found_text:{type:"string",default:""},listStyle:{type:"string",default:"disc"},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},...(0,l.D$)({attributeName:"listWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:33,unitDefaultValue:"%",hasUnit:!0}),...(0,b.D$)("listAignment",!0,{value:"left"}),...(0,n.D$)("listPadding",!0),...(0,s.D$)("listBorder",!0),...(0,r.D$)("listBoxShadow"),...(0,a.D$)("titleTypography",!0),...(0,c.D$)("titleTextStroke",!0),...(0,d.D$)("titleTextShadow"),...(0,a.D$)("desTypography",!0),...(0,c.D$)("desTextStroke",!0),...(0,d.D$)("desTextShadow"),...o.Ay}},9233(t,e,i){"use strict";i.d(e,{Ay:()=>h,ke:()=>d,md:()=>u,yy:()=>m})
6405 -;var o=i(43271),a=i(77168),l=i(21993),n=i(80241),s=i(2489),r=i(42314),b=i(80554),c=i(42377);const d=(0,c.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),u=(0,c.D$)({attributeName:"opacityH",defaultValue:1,copyStyle:!0}),p=(0,c.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),m=(0,c.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),h={block_id:{type:"string",default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""},copyStyle:!0},imgLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",
6406 -linkTarget:"",rel:"",linkClass:""}},...d,...u,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},copyStyle:!0},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},imgCaption:{type:"boolean",default:!1},position:{type:"string",default:"below",copyStyle:!0},imgAltText:{type:"string",default:""},onHoverImg:{type:"string",default:"static",copyStyle:!0},imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},...p,...m,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("captionAlignment",!0,{value:"left"}),...(0,r.D$)("cssFilter"),...(0,r.D$)("cssHoverFilter"),
6407 -...(0,b.D$)("boxShadow"),...(0,s.D$)("captionTypography",!0),...(0,l.D$)("captionPosition",!0),...(0,n.D$)("captionPadding",!0),...(0,a.D$)("captionBorder",!0),...(0,a.D$)("border",!0),...o.Ay}},29419(t,e,i){"use strict";i.d(e,{Ay:()=>m,H9:()=>p,Qk:()=>u,iA:()=>d});var o=i(43271),a=i(2489),l=i(77168),n=i(80241),s=i(42377),r=i(21993),b=i(80554);const c=(0,s.D$)({attributeName:"filterButtonGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),d=(0,s.D$)({attributeName:"loadMoreButtonGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),u=(0,s.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:10,hasUnit:!1,copyStyle:!0}),p=(0,s.D$)({attributeName:"animationDuration",isResponsive:!1,defaultValue:700,copyStyle:!0}),m={block_id:{type:"string"},blockVersion:{type:"number",default:""},filterList:{type:"array",default:[{id:0,
6408 -text:"All",isActive:!0},{id:1,text:"Item 01",isActive:!1}]},filterableCardsNumbers:{type:"number",default:"5",copyStyle:!0},enableFilter:{types:"boolean",default:!0,copyStyle:!0},layout:{type:"string",default:"filter"},searchNotFoundText:{type:"string",default:"No items Found"},animation:{type:"string",default:"fade-in"},filterButtonColor:{type:"string",default:"",copyStyle:!0},filterButtonColorH:{type:"string",default:"",copyStyle:!0},...c,...u,gridColumns:{types:"number",default:"2"},gridStyle:{type:"string",default:"grid"},searchMenuColor:{type:"string",default:"",copyStyle:!0},searchMenuColorH:{type:"string",default:"",copyStyle:!0},searchMenuBackground:{type:"string",default:"",copyStyle:!0},searchMenuBackgroundH:{type:"string",default:"",copyStyle:!0},searchMenuTransition:{type:"number",default:""},searchPlaceHolder:{type:"string",default:"search..."},cardHeight:{type:"number",default:""},filterButtonBackground:{type:"string",default:"",copyStyle:!0},filterButtonBackgroundH:{
6409 -type:"string",default:"",copyStyle:!0},filterButtonTransition:{type:"number",default:0,copyStyle:!0},itemShows:{type:"number",default:6,copyStyle:!0},activeClassColor:{type:"string",default:"#13191B",copyStyle:!0},activeClassBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButton:{type:"boolean",default:"false",copyStyle:!0},moreButtonAlignment:{type:"string",default:"center",copyStyle:!0},loadMoreButtonText:{type:"string",default:"Show More",copyStyle:!0},loadMoreButtonTextColor:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonTextColorH:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonBackgroundH:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonTransition:{type:"number",default:"",copyStyle:!0},dataPerPageShow:{type:"number",default:"6"},noMoreItemsText:{type:"string",default:"No More Items!"},...(0,r.D$)("filterAlignment",!0,{value:"Center"}),...o.Ay,...(0,
6410 -a.D$)("filterButtonTypography",!0),...(0,l.D$)("filterButtonBorder",!0),...(0,l.D$)("activeClassBorder",!0),...(0,n.D$)("filterButtonMargin",!0),...(0,n.D$)("filterButtonPadding",!0),...(0,n.D$)("searchMenuMargin",!0),...(0,n.D$)("searchMenuPadding",!0),...(0,l.D$)("searchMenuBorder",!0),...(0,a.D$)("moreButtonTypography",!0),...(0,n.D$)("moreButtonPadding",!0),...(0,l.D$)("moreButtonBorder",!0),...(0,b.D$)("moreButtonboxShadow")}},14745(t,e,i){"use strict";i.d(e,{A:()=>c,n:()=>b});var o=i(43271),a=i(21993),l=i(2489),n=i(74411),s=i(16867),r=i(88554);const b=(0,i(42377).D$)({attributeName:"highlightStrokeWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isAnimated:{type:"boolean",default:!1},heading:{type:"string",source:"html",selector:".ablocks-heading-text"},headingTag:{type:"string",default:"h2"},textColor:{type:"string",default:"",
6411 -copyStyle:!0},titleSource:{type:"string",default:""},animationType:{type:"string",default:"highlighted"},animationStyle:{type:"string",default:"highlighter-circle"},startingText:{type:"string",default:""},animatedText:{type:"string",default:"Animated"},endingText:{type:"string",default:""},highlightColor:{type:"string",default:"#ff000e"},highlightDuration:{type:"number",default:2e3},isInfiniteLoop:{type:"boolean",default:!0},highlightDelay:{type:"number",default:1e3},animatedTextColor:{type:"string",default:"",copyStyle:!0},...b,...(0,a.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("typography",!0),...(0,n.D$)("textShadow"),...(0,r.D$)("link"),...(0,s.D$)("textStroke",!0),...o.Ay}},60980(t,e,i){"use strict";i.d(e,{Ay:()=>c,cW:()=>b,eK:()=>r,gR:()=>s});var o=i(43271),a=i(42377),l=i(77168);const n=(0,a.D$)({attributeName:"sliderPosition",isResponsive:!1,defaultValue:50,copyStyle:!0}),s=(0,a.D$)({attributeName:"sliderBarSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:4,
6412 -copyStyle:!0}),r=(0,a.D$)({attributeName:"sliderIconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,copyStyle:!0}),b=(0,a.D$)({attributeName:"sliderIconBorderSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:2,copyStyle:!0}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},beforeImage:{type:"string",default:""},afterImage:{type:"string",default:""},...n,sliderOrientation:{type:"string",default:"horizontal",copyStyle:!0},showLabels:{type:"boolean",default:!1,copyStyle:!0},labelPosition:{type:"number",default:45,copyStyle:!0},labelBgColor:{type:"string",default:"rgba(0, 0, 0, 0.5)",copyStyle:!0},labelTextColor:{type:"string",default:"white",copyStyle:!0},labelWithOverlay:{type:"boolean",default:!1,copyStyle:!0},labelOverlayColor:{type:"string",default:"rgba(0, 0, 0, 0.5)",copyStyle:!0},...(0,l.D$)("labelBorder",!0),labelOnHover:{type:"boolean",default:!1,copyStyle:!0},beforeImageLabel:{type:"string",default:"Before"},
6413 -afterImageLabel:{type:"string",default:"After"},showHandle:{type:"boolean",default:!0,copyStyle:!0},moveOnHover:{type:"boolean",default:!1,copyStyle:!0},...s,...r,...b,handleColor:{type:"string",default:"white",copyStyle:!0},swapImages:{type:"boolean",default:!1},...o.Ay}},4851(t,e,i){"use strict";i.d(e,{A:()=>n,Q:()=>l});var o=i(80241),a=i(77168);const l=(0,i(42377).D$)({attributeName:"contentWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),n={block_id:{type:"string"},hotspotId:{type:"number",default:0},backgroundColor:{type:"string",default:"",copyStyle:!0},...l,...(0,o.D$)("contentPadding",!0),...(0,a.D$)("contentBorder",!0)}},50782(t,e,i){"use strict";i.d(e,{A:()=>c,P:()=>b});var o=i(43271),a=i(80241),l=i(77168),n=i(42377),s=i(80554),r=i(27723);const b=(0,n.D$)({attributeName:"childWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c={block_id:{
6414 -type:"string",default:""},blockVersion:{type:"number",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:{}},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9",copyStyle:!0},pinColorEffect:{type:"string",default:"#d9d9d9",copyStyle:!0},pinHoverColor:{type:"string",default:"#d9d9d9",copyStyle:!0},pinSize:{type:"number",default:15,copyStyle:!0},pinHoverSize:{type:"number",default:1.5,copyStyle:!0},pinIconColor:{type:"string",default:"#ffffff",copyStyle:!0},pinIconSize:{type:"number",default:60,copyStyle:!0},lists:{type:"array",default:[{id:0,text:(0,r.__)("Your title here 0","ablocks"),xAxis:35,yAxis:32,xAxisTab:30,yAxisTab:28,xAxisMob:22,yAxisMob:16,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite",copyStyle:!0},contentAnimation:{type:"string",
6415 -default:"ablocks-hotspot-fadeIn",copyStyle:!0},contentTrigger:{type:"string",default:"onClick",copyStyle:!0},contentPosition:{type:"string",default:"bottom",copyStyle:!0},backgroundColor:{type:"string",default:"white",copyStyle:!0},...b,...(0,a.D$)("commonChildPadding",!0),...(0,l.D$)("commonChildBorder",!0),...(0,s.D$)("commonBoxShadow",!0),...o.Ay}},11276(t,e,i){"use strict";i.d(e,{Ay:()=>f,IV:()=>b,aY:()=>g,ke:()=>u,md:()=>p,oF:()=>d,yy:()=>h,zE:()=>c});var o=i(43271),a=i(77168),l=i(21993),n=i(42314),s=i(42377),r=i(88554);const b=(0,s.D$)({attributeName:"iconFontSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:36,defaultValueTablet:24,defaultValueMobile:16,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c=(0,s.D$)({attributeName:"scrollHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:200,copyStyle:!0}),d=(0,s.D$)({attributeName:"scrollWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),u=(0,
6416 -s.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),p=(0,s.D$)({attributeName:"opacityH",defaultValue:"",copyStyle:!0}),m=(0,s.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),h=(0,s.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),g={imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},f={block_id:{type:"string",default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",
6417 -attribute:"src"},imageDataAttribute:{type:"object",default:{}},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""},copyStyle:!0},...c,...d,...u,...p,...b,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}},widthHeightWidget:{type:"object",default:g,copyStyle:!0},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},position:{type:"string",default:"below",copyStyle:!0},imgAltText:{type:"string",default:""},imgTitle:{type:"string",default:""},transitionTime:{type:"number",default:3},showNotice:{type:"boolean",default:!1},showOverlay:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!1},overlayColor:{type:"string",default:"#0202024C"},iconColor:{type:"string",default:""},...m,...h,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,n.D$)("cssFilter"),...(0,n.D$)("cssHoverFilter"),...(0,a.D$)("border",!0),
6418 -...(0,r.D$)("link"),...o.Ay}},1168(t,e,i){"use strict";i.d(e,{Ay:()=>g,aY:()=>h,ke:()=>d,md:()=>u,yy:()=>m});var o=i(43271),a=i(77168),l=i(21993),n=i(80241),s=i(2489),r=i(42314),b=i(80554),c=i(42377);const d=(0,c.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),u=(0,c.D$)({attributeName:"opacityH",defaultValue:"",copyStyle:!0}),p=(0,c.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),m=(0,c.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),h={imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string",
6419 -source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""},copyStyle:!0},imageDataAttribute:{type:"object",default:{}},...d,...u,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},widthHeightWidget:{type:"object",default:h,copyStyle:!0},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},imgCaption:{type:"boolean",default:!1},position:{type:"string",default:"below",copyStyle:!0},caption:{type:"string",default:""},captionBackground:{type:"string",default:"",copyStyle:!0},captionColor:{type:"string",default:"",copyStyle:!0},imgLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",
6420 -linkClass:""}},imgAltText:{type:"string",default:""},onHoverImg:{type:"string",default:"static",copyStyle:!0},imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},...p,...m,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("captionAlignment",!0,{value:"left"}),...(0,r.D$)("cssFilter"),...(0,r.D$)("cssHoverFilter"),...(0,b.D$)("boxShadow"),...(0,s.D$)("captionTypography",!0),...(0,l.D$)("captionPosition",!0),...(0,n.D$)("captionPadding",!0),...(0,a.D$)("captionBorder",!0),...(0,a.D$)("border",!0),...o.Ay}},91353(t,e,i){"use strict";i.d(e,{c8:()=>k,Ay:()=>v,AZ:()=>x});var o=i(43271),a=i(21993),l=i(42377),n=i(2489),s=i(74411),r=i(80241),b=i(77168),c=i(27723);const d={badgeText:{type:"string",default:(0,c.__)("Featured","ablocks")},badgeSize:{type:"string",default:"xs",copyStyle:!0},badgeTextColor:{type:"string",default:"#13191B",copyStyle:!0},badgeTextColorH:{type:"string",default:"",copyStyle:!0},badgeBackground:{type:"string",default:"#DDDDDF",copyStyle:!0},
6421 -badgeBackgroundH:{type:"string",default:"",copyStyle:!0},badgeTransition:{type:"number",default:"",copyStyle:!0},...(0,a.D$)("badgePosition",!0,{value:"top-right",valueTablet:"top-right",valueMobile:"top-right"}),...(0,a.D$)("badgeAlignment",!0,{value:"center"}),...(0,n.D$)("badgeTypography",!0,{fontFamily:"Roboto",weight:"400",fontSize:"12"}),...(0,s.D$)("badgeTextShadow"),...(0,r.D$)("badgePadding",!0),...(0,b.D$)("badgeBorder",!0)};var u=i(68761),p=i(88554);const m={btnText:{type:"string",default:(0,c.__)("Learn More","ablocks")},btnSize:{type:"string",default:"sm",copyStyle:!0},btnTextColor:{type:"string",default:"#FAFAFA",copyStyle:!0},btnTextColorH:{type:"string",default:"",copyStyle:!0},btnBackground:{type:"string",default:"#13191B",copyStyle:!0},btnBackgroundH:{type:"string",default:"",copyStyle:!0},btnTransition:{type:"number",default:"",copyStyle:!0},btnIconPosition:{type:"string",default:"right",copyStyle:!0},btnIconSpace:{type:"number",default:10,copyStyle:!0},btnShowIcon:{
6422 -type:"boolean",default:!0,copyStyle:!0},...(0,u.D$)("btnIcon",{size:20,color:"#FAFAFA",path:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z",viewBox:"0 0 448 512",className:"fas fa-arrow-right",hasNoSelectorOrSource:!0}),...(0,p.D$)("btnLink"),...(0,a.D$)("btnAlignment",!0,{value:"center"}),...(0,n.D$)("btnTypography",!0),...(0,s.D$)("btnTextShadow"),...(0,r.D$)("btnPadding",!0),...(0,r.D$)("btnMargin",!0),...(0,b.D$)("btnBorder",!0)};var h=i(16867);const g={heading:{type:"string",source:"html",selector:".ablocks-info-box-heading",default:(0,c.__)("Your Info Box Title","ablocks")},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B",copyStyle:!0},headingTextColorHover:{type:"string",default:"",copyStyle:!0},headingTransition:{type:"number",
6423 -default:"",copyStyle:!0},...(0,n.D$)("headingTypography",!0,{fontFamily:"Roboto",weight:"600"}),...(0,r.D$)("headingMargin",!0),...(0,s.D$)("headingTextShadow"),...(0,h.D$)("headingTextStroke",!0)},f={iconPrimaryColorH:{type:"string",default:"",copyStyle:!0},iconBackgroundColorH:{type:"string",default:"",copyStyle:!0},iconTransition:{type:"number",default:"",copyStyle:!0},...(0,u.D$)("icon",{color:"#000000",hasNoSelectorOrSource:!0}),...(0,r.D$)("iconMargin",!0),...(0,p.D$)("iconLink"),...(0,a.D$)("iconAlignment",!0)},y={des:{type:"string",source:"html",selector:".ablocks-info-box-text",default:(0,c.__)("Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!","ablocks")},desDropCaps:{type:"boolean",default:!1,copyStyle:!0},desDropCapsTextColor:{type:"string",default:"#0f2aff",copyStyle:!0},desGraphSize:{type:"string",default:"sm",copyStyle:!0},desTextColor:{type:"string",default:"#595959",copyStyle:!0},
6424 -desTextColorHover:{type:"string",default:"",copyStyle:!0},desTransition:{type:"number",default:"",copyStyle:!0},...(0,n.D$)("desTypography",!0,{fontFamily:"Roboto",weight:"400"}),...(0,r.D$)("desMargin",!0),...(0,s.D$)("desTextShadow"),...(0,h.D$)("desTextStroke",!0)};var T=i(34415);const H={subHeading:{type:"string",source:"html",selector:".ablocks-info-box-sub-heading",default:(0,c.__)("Your Info Box Sub Title","ablocks")},subHeadingTag:{type:"string",default:"h3"},subHeadingTextColor:{type:"string",default:"#13191B",copyStyle:!0},subHeadingTextColorHover:{type:"string",default:"",copyStyle:!0},subHeadingTransition:{type:"number",default:"",copyStyle:!0},...(0,n.D$)("subHeadingTypography",!0,{fontFamily:"Roboto",weight:"500"}),...(0,r.D$)("subHeadingMargin",!0),...(0,s.D$)("subHeadingTextShadow"),...(0,h.D$)("subHeadingTextStroke",!0)};var M=i(90198);const x=(0,l.D$)({attributeName:"iconGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",
6425 -copyStyle:!0}),k=(0,l.D$)({attributeName:"contentGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),v={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},blockElements:{type:"array",default:[{id:0,slug:"heading"},{id:1,slug:"sub-heading"},{id:2,slug:"description"},{id:3,slug:"rating"},{id:4,slug:"button"}]},...x,...k,allowBadgeHover:{type:"boolean",default:!1,copyStyle:!0},allowButtonHover:{type:"boolean",default:!1,copyStyle:!0},allowBadge:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!0},allowHeading:{type:"boolean",default:!0},allowSubHeading:{type:"boolean",default:!1},allowDes:{type:"boolean",default:!0},allowRating:{type:"boolean",default:!1},allowButton:{type:"boolean",default:!0},...d,...f,...g,...H,...y,...m,...T.Ay,...(0,a.D$)("alignment",!0),stack:{type:"string",default:""},...(0,M.D$)("iconPlacement",!0,{value:""}),...o.Ay}},34415(t,e,i){"use strict";i.d(e,{Ay:()=>b,
6426 -CB:()=>s,ZO:()=>r});var o=i(68761),a=i(42377),l=i(2489),n=i(80241);const s=(0,a.D$)({attributeName:"spacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),r=(0,a.D$)({attributeName:"ratingNumberGap",attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,copyStyle:!0}),b={ratingScale:{type:"number",default:5},...(0,a.D$)({attributeName:"rating",isResponsive:!1,defaultValue:4,copyStyle:!0}),ratingColor:{type:"string",default:"#e99516",copyStyle:!0},ratingColorHover:{type:"string",default:"",copyStyle:!0},ratingUnmarkedColor:{type:"string",default:"#696969",copyStyle:!0},ratingUnmarkedColorHover:{type:"string",default:"",copyStyle:!0},ratingTransition:{type:"number",default:"",copyStyle:!0},ratingShowCount:{type:"bool",default:!0},showRatingNumber:{type:"bool",default:!0},showCount:{type:"bool",default:!0},ratingNumberColor:{type:"string",default:"#000000",copyStyle:!0},ratingNumberPosition:{
6427 -type:"string",default:"right",copyStyle:!0},...r,...s,...(0,o.D$)("starIcon",{path:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z",viewBox:"0 0 576 512",className:"far fa-star",hasNoSelectorOrSource:!0}),...(0,n.D$)("ratingMargin",!0),...(0,l.D$)("ratingNumberTypography",!0)}},48396(t,e,i){"use strict";i.d(e,{AF:()=>d,Ay:()=>g,Qi:()=>h,RK:()=>c,VA:()=>m,VL:()=>p,p9:()=>u});var o=i(43271),a=i(80241),l=i(2489),n=i(21993),s=i(77168),r=i(42377),b=i(90198);const c=(0,r.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),d=(0,r.D$)({attributeName:"textIndent",attributeObjectKey:"value",
6428 -isResponsive:!0,defaultValue:8,defaultValueTablet:8,defaultValueMobile:8,copyStyle:!0}),u=(0,r.D$)({attributeName:"spaceBetween",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,defaultValueTablet:20,defaultValueMobile:20,copyStyle:!0}),p=(0,r.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,r.D$)({attributeName:"weight",attributeObjectKey:"value",isResponsive:!0,defaultValue:5,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,r.D$)({attributeName:"markerSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!1,copyStyle:!0}),g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},markerType:{type:"string",default:"icon",copyStyle:!0},markerColor:{type:"string",default:"",copyStyle:!0},...h,emoji:{type:"string",default:"✍",copyStyle:!0},iconColor:{type:"string",default:"#000000",copyStyle:!0},lists:{type:"array",default:[{id:0,text:"",link:{
6429 -linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1}]},listIconsClasses:{type:"array",default:[],copyStyle:!0},listIcons:{type:"array",selector:"svg.ablocks-svg-icon",source:"query",query:{viewBox:{type:"string",source:"attribute",attribute:"viewBox"},path:{type:"string",selector:"path",source:"attribute",attribute:"d"}},copyStyle:!0},iconType:{type:"string",default:"default",copyStyle:!0},iconShape:{type:"string",default:"circle",copyStyle:!0},...c,iconBackground:{type:"boolean",default:!1,copyStyle:!0},iconBackgroundColor:{type:"string",default:"",copyStyle:!0},textColor:{type:"string",default:"#000000",copyStyle:!0},...d,...u,belowItem:{type:"number",default:0,copyStyle:!0},divider:{type:"boolean",default:!1,copyStyle:!0},dividerPatternUrl:{type:"string",default:"solid",copyStyle:!0},...p,...m,borderColor:{type:"string",default:"#000000",copyStyle:!0},...(0,n.D$)("position",!0,{
6430 -value:"center"}),...(0,n.D$)("horizontalAlignment",!0,{value:"flex-start"}),...(0,b.D$)("stack",!1,{value:"vertical"}),...(0,b.D$)("verticalAlignmentment",!1,{value:"flex-start"}),...(0,a.D$)("padding",!1),...(0,s.D$)("border",!0),...(0,l.D$)("typography",!0),...o.Ay}},88297(t,e,i){"use strict";i.d(e,{Ay:()=>p,P6:()=>u,Yn:()=>d});var o=i(43271),a=i(42377),l=i(21993),n=i(2489),s=i(77168),r=i(74411),b=i(16867),c=i(90198);const d=(0,a.D$)({attributeName:"avatarWidth",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:40,copyStyle:!0}),u=(0,a.D$)({attributeName:"avatarHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:40,copyStyle:!0}),p={block_id:{type:"string"},blockVersion:{type:"number",default:2},logoutRedirect:{type:"string",default:"current-url"},logoutCustomUrl:{type:"string",default:""},loginRedirect:{type:"string",default:"current-url"},loginCustomUrl:{type:"string",default:""},logOutLabel:{
6431 -type:"string",default:"Logout"},logInLabel:{type:"string",default:"Login"},isRedirect:{type:"boolean",default:!0},isShowAvatar:{type:"boolean",default:!1},logOutLabelColor:{type:"string",default:"",copyStyle:!0},logOutLabelBgColor:{type:"string",default:""},isShowName:{type:"boolean",default:!1},nameColor:{type:"string",default:"",copyStyle:!0},...u,...d,...o.Ay,...(0,l.D$)("labelAlignment",!0,{value:"flex-start"}),...(0,c.D$)("direction",!0,{value:"row"}),...(0,s.D$)("avatarBorder",!0),...(0,n.D$)("nameTypography",!0),...(0,r.D$)("nameTextShadow"),...(0,b.D$)("nameTextStroke",!0),...(0,n.D$)("labelTypography",!0),...(0,r.D$)("labelTextShadow"),...(0,b.D$)("labelTextStroke",!0)}},41607(t,e,i){"use strict";i.d(e,{A:()=>o});const o={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1,
6432 -taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},selectedVariation:{type:"string",default:""},showOffset:{type:"boolean",default:!1},...i(43271).Ay}},5230(t,e,i){"use strict";i.d(e,{A:()=>d,f:()=>c});var o=i(43271),a=i(42377),l=i(21993),n=i(90198),s=i(2489),r=i(77168),b=i(80241);const c=(0,a.D$)({attributeName:"FilterBtnGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px"}),d={block_id:{type:"string",default:""},taxonomy:{type:"string",default:"category"},taxonomy_term_items:{type:"array",default:[]},filterBtnTextColor:{type:"string",default:"#000000",copyStyle:!0},filterBtnBgColor:{type:"string",default:"#F4F4F5",copyStyle:!0},activeBtnTextColor:{type:"string",default:"#FFFFFF",copyStyle:!0},activeBtnBgColor:{type:"string",default:"#000000",copyStyle:!0},...(0,n.D$)("buttonAlignment",!1,{value:"row"}),...(0,l.D$)("filterBtnAlignment",!1,{value:"center"}),...(0,l.D$)("rowAlignBtn",!1,{value:"center"}),...(0,
6433 -s.D$)("typography",!0),...c,...o.Ay,...(0,r.D$)("filterBtnBorder",!0),...(0,r.D$)("activeBtnBorder",!0),...(0,b.D$)("filterButtonMargin",!0),...(0,b.D$)("filterButtonPadding",!0)}},4788(t,e,i){"use strict";i.d(e,{A:()=>d,i:()=>c});var o=i(43271),a=i(42377),l=i(2489),n=i(77168),s=i(80241),r=i(21993),b=i(80554);const c=(0,a.D$)({attributeName:"loadMoreButtonGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),d={block_id:{type:"string"},taxonomy:{type:"string",default:"category"},loadMoreButtonText:{type:"string",default:"Load More",copyStyle:!0},noMoreItemsText:{type:"string",default:"No More Items!"},moreButtonAlignment:{type:"string",default:"center",copyStyle:!0},loadMoreButtonTextColor:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonTextColorH:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonBackgroundH:{type:"string",
6434 -default:"#13191B",copyStyle:!0},loadMoreButtonTransition:{type:"number",default:"",copyStyle:!0},...c,...(0,r.D$)("filterAlignment",!0,{value:"Center"}),...o.Ay,...(0,l.D$)("moreButtonTypography",!0),...(0,s.D$)("moreButtonPadding",!0),...(0,n.D$)("moreButtonBorder",!0),...(0,b.D$)("moreButtonboxShadow")}},62882(t,e,i){"use strict";i.d(e,{Ay:()=>r,E4:()=>s,Qk:()=>n});var o=i(42377),a=i(77168),l=i(80241);const n=(0,o.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:20,hasUnit:!1,copyStyle:!0}),s=(0,o.D$)({attributeName:"templateGridColumns",attributeObjectKey:"value",isResponsive:!0,defaultValue:2,defaultValueTablet:2,defaultValueMobile:1,hasUnit:!1,unitDefaultValue:"",copyStyle:!0}),r={block_id:{type:"string"},gridColumns:{type:"number",default:2},...s,bgColor:{type:"string",default:"",copyStyle:!0},...n,gridStyle:{type:"string",default:"grid"},...(0,a.D$)("border",!0),...(0,l.D$)("padding",!1)}},18057(t,e,i){"use strict"
6435 -;i.d(e,{AK:()=>r,Ay:()=>b,VZ:()=>s});var o=i(43271),a=i(42377),l=i(42314),n=i(68761);const s=(0,a.D$)({attributeName:"mapWidth",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",defaultValue:100,copyStyle:!0}),r=(0,a.D$)({attributeName:"mapHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:500,copyStyle:!0}),b={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},mapMarkerList:{type:"array",default:[{content:"",customIconHeight:40,customIconUrl:"",customIconWidth:25,iconType:"default",id:0,isDefault:!0,isOpen:!0,label:"Jhenaidah",lat:"23.5433525",lng:"89.1696229",title:"Jhenaidah"}],copyStyle:!0},mapZoom:{type:"number",default:10,copyStyle:!0},mapType:{type:"string",default:"GM",copyStyle:!0},...s,...r,scrollWheelZoom:{type:"boolean",default:!1,copyStyle:!0},centerIndex:{type:"number",default:0,copyStyle:!0},iconHeight:{type:"number",default:40},iconWidth:{type:"number",default:25},...(0,
6436 -n.D$)("icon",{path:"M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z",viewBox:"0 0 512 512",className:"",size:20}),...o.Ay,...(0,l.D$)("cssFilter")}},46804(t,e,i){"use strict";i.d(e,{AW:()=>o,Dc:()=>l,GM:()=>a,I3:()=>s,j0:()=>r,sg:()=>n})
6437 -;const o="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",a="https://maps.googleapis.com/maps/vt?pb=!1m5!1m4!1i{z}!2i{x}!3i{y}!4i256!2m3!1e0!2sm!3i349018013!3m9!2sen-US!3sUS!5e18!12m1!1e47!12m3!1e37!2m1!1ssmartmaps!4e0",l="https://maps.googleapis.com/maps/vt?lyrs=s&x={x}&y={y}&z={z}&key=YOUR_API_KEY",n=(t,e)=>{let i=null;return function(...o){const a=this;i&&clearTimeout(i),i=setTimeout(()=>t.apply(a,o),e)}},s=(t,e)=>{if(t&&t?.length){const i=t[t[e]?e:0];return{lat:i?.lat,lng:i?.lng}}return{lat:0,lng:0}},r=t=>({mapMarkerList:(t?.map_marker_list||[]).map((t,e)=>({id:t?.id||e,label:t?.title||`Marker ${e+1}`,lat:"",lng:"",title:"Marker",content:"",iconType:"default",customIconUrl:"",customIconWidth:25,customIconHeight:40,isOpen:!0,...t})),mapZoom:t?.map_zoom,mapType:t?.map_type,scrollWheelZoom:t?.scroll_wheel_zoom,centerIndex:t?.center_index})},23731(t,e,i){"use strict";i.d(e,{Ay:()=>s,GA:()=>n});var o=i(43271),a=i(42377);const l=(0,a.D$)({attributeName:"gap",
6438 -attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,unitDefaultValue:"px",defaultValue:12,copyStyle:!0}),n=(0,a.D$)({attributeName:"marqueeHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:200,copyStyle:!0}),s={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},marqueeSlideLength:{type:"number",default:0},pauseOnHover:{type:"boolean",default:!0},marqueeDirection:{type:"string",default:"left"},marqueeSpeed:{type:"number",default:10},loop:{type:"boolean",default:!1},loopCount:{type:"number",default:2},enableShadow:{type:"boolean",default:!0},...l,...n,...o.Ay}},91664(t,e,i){"use strict";i.d(e,{Ay:()=>s,VL:()=>l,qZ:()=>a});var o=i(42377);const a=(0,o.D$)({attributeName:"positionX",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,copyStyle:!0}),l=(0,o.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"%",hasUnit:!0,copyStyle:!0}),n=(0,o.D$)({
6439 -attributeName:"height",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",hasUnit:!0,copyStyle:!0}),s={block_id:{type:"string",default:""},...a,...l,...n}},46890(t,e,i){"use strict";i.d(e,{A:()=>c,V:()=>b});var o=i(80241),a=i(42377),l=i(2489),n=i(77168),s=i(80554),r=i(90198);const b=(0,a.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c={block_id:{type:"string",default:""},...b,position:{type:"string",default:"top-right"},background:{type:"string",default:"white",copyStyle:!0},...(0,o.D$)("padding",!0),...(0,s.D$)("boxShadow",!0),...(0,n.D$)("border",!0),menuItemTextColor:{type:"string",default:"#000000",copyStyle:!0},menuItemTextColorH:{type:"string",default:"#000000",copyStyle:!0},menuItemBackground:{type:"string",default:"",copyStyle:!0},menuItemBackgroundH:{type:"string",default:"",copyStyle:!0},menuItemTransition:{type:"number",default:0,copyStyle:!0},menuItemAlign:{type:"string",default:"",
6440 -copyStyle:!0},menuItemAlignTablet:{type:"string",default:"",copyStyle:!0},menuItemAlignMobile:{type:"string",default:"",copyStyle:!0},menuItemDirection:{type:"string",default:"row",copyStyle:!0},menuItemDirectionTablet:{type:"string",default:"",copyStyle:!0},menuItemDirectionMobile:{type:"string",default:"",copyStyle:!0},menuItemJustify:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyTablet:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyMobile:{type:"string",default:"space-between",copyStyle:!0},...(0,r.D$)("menuItemJustification",!0,{value:"space-between"}),...(0,l.D$)("menuItemTypography",!0),...(0,o.D$)("menuItemPadding",!0),...(0,o.D$)("menuItemMargin",!0),...(0,n.D$)("menuItemBorder",!0)}},60690(t,e,i){"use strict";i.d(e,{Ay:()=>u,JH:()=>c,km:()=>d,wP:()=>b});var o=i(80241),a=i(2489),l=i(77168),n=i(80554),s=i(42377),r=i(43271);const b=(0,s.D$)({attributeName:"hamburgerWidth",isResponsive:!1,defaultValue:30,copyStyle:!0,hasUnit:!0,
6441 -unitDefaultValue:"px"}),c=(0,s.D$)({attributeName:"hamburgerHeight",isResponsive:!1,defaultValue:3,unitDefaultValue:"px",hasUnit:!0}),d=(0,s.D$)({attributeName:"subMenuWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:250,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),u={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""},copyStyle:!0},...(0,o.D$)("padding",!0),...(0,n.D$)("boxShadow",!0),menuItemTextColor:{type:"string",default:"#000000",copyStyle:!0},menuItemTextColorH:{type:"string",default:"",copyStyle:!0},menuItemBackground:{type:"string",default:"",copyStyle:!0},menuItemBackgroundH:{type:"string",default:"",copyStyle:!0},menuItemTransition:{type:"number",default:0,copyStyle:!0},menuItemDisplay:{type:"string",default:"inline"},sideBarMenuDevice:{type:"string",default:"mobile"},enableTabletHamburger:{type:"boolean",default:!1},subMenuTrigger:{type:"string",
6442 -default:"hover"},mobileMenuPosition:{type:"string",default:"below-header"},...b,...c,hamburgerAlignment:{type:"string",default:"left",copyStyle:!0},hamburgerColor:{type:"string",default:"black",copyStyle:!0},hamburgerBackground:{type:"string",default:"",copyStyle:!0},menuResponsiveBackground:{type:"string",copyStyle:!0},menuResponsiveTextColor:{type:"string",copyStyle:!0},subMenuResponsiveColor:{type:"string",default:"",copyStyle:!0},subMenuResponsiveBg:{type:"string",default:"",copyStyle:!0},subMenuItemTextColor:{type:"string",default:"",copyStyle:!0},subMenuItemBackground:{type:"string",default:"",copyStyle:!0},subMenuItemTextColorH:{type:"string",default:"",copyStyle:!0},subMenuItemBackgroundH:{type:"string",default:"",copyStyle:!0},subMenuItemTransition:{type:"number",default:0,copyStyle:!0},menuActveColor:{type:"string",default:"",copyStyle:!0},menuActveColorBg:{type:"string",default:"",copyStyle:!0},...(0,o.D$)("hamburgerPadding",!0),...(0,a.D$)("menuItemTypography",!0),...(0,
6443 -o.D$)("menuItemPadding",!0),...(0,o.D$)("menuItemMargin",!0),...(0,l.D$)("menuItemBorder",!0),...(0,l.D$)("hamburgerBorder",!0),...(0,o.D$)("subMenuPadding",!0),...(0,n.D$)("subMenuBoxShadow",!0),...(0,l.D$)("subMenuBorder",!0),...r.Ay}},74196(t,e,i){"use strict";i.d(e,{Ay:()=>g,j_:()=>d,mF:()=>u});var o=i(43271),a=i(42377),l=i(80241),n=i(57654),s=i(77168),r=i(80554),b=i(90198);const c=(0,a.D$)({attributeName:"popupTopOffset",isResponsive:!1,defaultValue:0,copyStyle:!0}),d=(0,a.D$)({attributeName:"panelWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),u=(0,a.D$)({attributeName:"panelHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),p=(0,a.D$)({attributeName:"autoTriggerTime",isResponsive:!1,defaultValue:0,copyStyle:!0}),m=(0,a.D$)({attributeName:"closeBtnTop",isResponsive:!1,defaultValue:5,hasUnit:!1,copyStyle:!0}),h=(0,a.D$)({attributeName:"closeBtnSide",
6444 -isResponsive:!1,defaultValue:5,hasUnit:!1,copyStyle:!0}),g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},popupOnTop:{type:"boolean",default:!1,copyStyle:!0},disableCloseButton:{type:"boolean",default:!1},useHoverTrigger:{type:"boolean",default:!1},enableAutoTriggerTimer:{type:"boolean",default:!1},showAutoOnce:{type:"boolean",default:!1,copyStyle:!0},showOnMouseOutOfWindow:{type:"boolean",default:!1,copyStyle:!0},backdropColor:{type:"string",default:"#000000b3",copyStyle:!0},closeBtnBackgroundColor:{type:"string",default:"",copyStyle:!0},closeBtnColor:{type:"string",default:"",copyStyle:!0},noTrigger:{type:"boolean",default:!1,copyStyle:!0},...p,...c,...d,...u,...m,...h,...(0,b.D$)("openPanel",!1,{value:"close"}),...(0,b.D$)("popupPosition",!1,{value:"popup"}),...(0,b.D$)("panelBlockPosition",!1,{value:"bottom"}),...(0,b.D$)("panelContentPosition",!1,{value:"auto"}),...(0,b.D$)("closePosition",!1,{value:"right"}),...(0,l.D$)("panelPadding",!0),...(0,
6445 -n.D$)("panelBackground"),...(0,s.D$)("panelBorder",!0),...(0,r.D$)("panelShadow",!0),...o.Ay}},56027(t,e,i){"use strict";i.d(e,{Ay:()=>c,Ez:()=>b,id:()=>r});var o=i(43271),a=i(2489),l=i(74411),n=i(16867),s=i(42377);const r=(0,s.D$)({attributeName:"labelPadding",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:10,copyStyle:!0}),b=(0,s.D$)({attributeName:"tickerHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:50,copyStyle:!0}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},stickyLabel:{type:"string",source:"text",selector:".ablocks-block-news-ticker__label",default:"Breaking News"},stickyLabelTag:{type:"string",default:"div",copyStyle:!0},labelPosition:{type:"string",default:"left",copyStyle:!0},queryType:{type:"string",default:"customText",copyStyle:!0},selectedPosts:{type:"array",default:[]},postLink:{type:"boolean",default:!1},selectedPages:{type:"array",default:[]},
6446 -pageLink:{type:"boolean",default:!1},lists:{type:"array",default:[{id:0,text:"Stay updated with the latest trends!",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},isOpen:!1}]},markerType:{type:"string",default:"icon",copyStyle:!0},listIconsClasses:{type:"array",default:[],copyStyle:!0},slideDirection:{type:"string",default:"ltr",copyStyle:!0},spaceBetweenItems:{type:"number",default:90},slideSpeed:{type:"number",default:2},labelColor:{type:"string",default:"white",copyStyle:!0},labelBackgroundColor:{type:"string",default:"black",copyStyle:!0},labelColorH:{type:"string",default:"",copyStyle:!0},labelBackgroundColorH:{type:"string",default:"",copyStyle:!0},labelColorTransition:{type:"number",default:"",copyStyle:!0},tickerColor:{type:"string",default:"black",copyStyle:!0},tickerColorH:{type:"string",default:"",copyStyle:!0},tickerBgColorH:{type:"string",default:"",copyStyle:!0},tickerColorTransition:{type:"number",default:"",
6447 -copyStyle:!0},tickerBgColor:{type:"string",default:"#E5E5E6",copyStyle:!0},tickerType:{type:"string",default:"marquee"},...b,showTickerNavigator:{type:"boolean",default:!1},navigatorBgColor:{type:"string",default:""},navigatorColor:{type:"string",default:"#000000"},navigatorPosition:{type:"string",default:"right"},tickerListStyle:{type:"string",default:"none",copyStyle:!0},isPauseOnOver:{type:"boolean",default:!0},isPositionSticky:{type:"boolean",default:!1},stickyPosition:{type:"string",default:"up"},isShowLabel:{type:"boolean",default:!0},tickerLabelShape:{type:"string",default:"normal"},...r,isShowTime:{type:"boolean",default:!1},...(0,a.D$)("labelTypography",!0),...(0,l.D$)("labelTextShadow"),...(0,n.D$)("labelTextStroke",!0),...(0,a.D$)("tickerTypography",!0),...(0,l.D$)("tickerTextShadow"),...(0,n.D$)("tickerTextStroke",!0),...o.Ay}},60273(t,e,i){"use strict";i.d(e,{A:()=>p,e:()=>u})
6448 -;var o=i(43271),a=i(21993),l=i(2489),n=i(74411),s=i(80241),r=i(77168),b=i(68761),c=i(88554),d=i(80554);const u=(0,i(42377).D$)({attributeName:"iconSpace",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),p={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Buy Now"},buttonType:{type:"string",default:"#032e82",copyStyle:!0},buttonSize:{type:"string",default:"small",copyStyle:!0},textColor:{type:"string",default:"#000000",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},background:{type:"string",default:"",copyStyle:!0},backgroundH:{type:"string",default:"",copyStyle:!0},transition:{type:"number",default:"",copyStyle:!0},iconPosition:{type:"string",default:"left",copyStyle:!0},paypalAccount:{type:"string",default:""},trxType:{type:"string",default:"_xclick"},itemName:{type:"string",default:""},sku:{type:"string",default:""},price:{type:"number",default:0},
6449 -currency:{type:"string",default:""},quantity:{type:"number",default:1},shippingPrice:{type:"number",default:0},tax:{type:"number",default:0},isAmountFixed:{type:"boolean",default:!1},isAutoRenewal:{type:"boolean",default:!0},billingCycle:{type:"string",default:"M"},redirectionAfterPayment:{type:"string",default:""},sandboxMode:{type:"boolean",default:!1},sandboxEmail:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},...u,showIcon:{type:"boolean",default:!0,copyStyle:!0},...(0,b.D$)("icon",{size:16,className:"fab fa-paypal",
6450 -path:"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z",viewBox:"0 0 384 512",iconType:"default"}),...(0,c.D$)("link"),...(0,a.D$)("position",!0,{value:"left"}),...(0,a.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("typography",!0),...(0,n.D$)("textShadow"),...(0,s.D$)("padding",!0),...(0,r.D$)("border",!0),...(0,d.D$)("boxShadow"),...o.Ay}},99512(t,e,i){"use strict";i.d(e,{$w:()=>b,Ay:()=>d,IK:()=>r,JA:()=>c,mX:()=>n,o4:()=>l,oF:()=>s});var o=i(43271),a=i(42377);const l=(0,a.D$)({
6451 -attributeName:"youtubeIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),n=(0,a.D$)({attributeName:"youtubePlayPauseIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),s=(0,a.D$)({attributeName:"selfHostedIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),r=(0,a.D$)({attributeName:"selfHostedPlayIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),b=(0,a.D$)({attributeName:"vimeoIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),c=(0,a.D$)({attributeName:"vimeoPlayIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),d={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},...l,...n,...s,...r,...b,...c,videoSource:{type:"string",default:"youtube"},youtubeUrl:{type:"string",default:"https://www.youtube.com/watch?v=Yu0HH5S-8RY&t=1s",copyStyle:!0},selfHostedUrl:{type:"string",default:"",copyStyle:!0},videoUrl:{type:"string",default:"",copyStyle:!0},audioUrl:{type:"string",default:"",copyStyle:!0},vimeoUrl:{type:"string",
6452 -default:"https://vimeo.com/889428749",copyStyle:!0},videoStartTime:{type:"string",default:"",copyStyle:!0},videoEndTime:{type:"string",default:"",copyStyle:!0},youtubeUiColor:{type:"string",default:"",copyStyle:!0},youtubeProgressColor:{type:"string",default:"",copyStyle:!0},playerbgColor:{type:"string",default:"#0077CC",copyStyle:!0},selfVideoUiColor:{type:"string",default:"",copyStyle:!0},selfVideoProgressUiColor:{type:"string",default:"",copyStyle:!0},selfVideobgColor:{type:"string",default:"",copyStyle:!0},vimeoUiColor:{type:"string",default:"",copyStyle:!0},vimeoProgressUiColor:{type:"string",default:"",copyStyle:!0},vimeobgColor:{type:"string",default:""},posterImage:{type:"string",default:"",copyStyle:!0},autoplay:{type:"boolean",default:!1},mute:{type:"boolean",default:!1},loop:{type:"boolean",default:!1},...o.Ay}},14120(t,e,i){"use strict";i.d(e,{Ay:()=>h,Ej:()=>p,VA:()=>u,VL:()=>d});var o=i(43271),a=i(21993),l=i(2489),n=i(93044),s=i(74411),r=i(68761),b=i(16867),c=i(42377)
6453 -;const d=(0,c.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:null,unitDefaultValue:"%",copyStyle:!0}),u=(0,c.D$)({attributeName:"weight",isResponsive:!1,defaultValue:null,copyStyle:!0}),p=(0,c.D$)({attributeName:"size",isResponsive:!1,defaultValue:null,copyStyle:!0}),m=(0,c.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!1,defaultValue:10,defaultValueMobile:3,defaultValueTablet:1,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h={block_id:{type:"string",default:""},device:{type:"string",default:""},itemsDirection:{type:"string",default:{value:"row",valueTablet:"row",valueMobile:"row"},copyStyle:!0},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"",copyStyle:!0},description:{type:"string",
6454 -default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"",copyStyle:!0},placeDivider:{type:"string",default:"near title",copyStyle:!0},dividerPatternUrl:{type:"string",default:"",copyStyle:!0},dividerType:{type:"string",default:"",copyStyle:!0},color:{type:"string",default:"",copyStyle:!0},...d,...u,...p,...m,price:{type:"string",default:"$15.00"},placePrice:{type:"string",default:"right",copyStyle:!0},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"",copyStyle:!0},...(0,n.D$)("itemsDirection",!0,{value:"row"}),...(0,a.D$)("alignment",!0,{value:""}),...(0,a.D$)("titleAlignment",!0,{value:""}),...(0,a.D$)("descriptionAlignment",!0,{value:""}),...(0,a.D$)("priceAlignment",!0,{value:""}),...(0,r.D$)("icon",{className:"far fa-image",
6455 -path:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z",viewBox:"0 0 512 512",size:"40",iconType:"stacked",iconShape:"square"}),...(0,l.D$)("titleTypography",!0),...(0,s.D$)("titleTextShadow"),...(0,b.D$)("titleTextStroke",!0),...(0,l.D$)("descriptionTypography",!0),...(0,s.D$)("descriptionTextShadow"),...(0,b.D$)("descriptionTextStroke",!0),...(0,l.D$)("priceTypography",!0),...(0,s.D$)("priceTextShadow"),...(0,b.D$)("priceTextStroke",!0),...o.Ay}},28482(t,e,i){"use strict";i.d(e,{Ay:()=>y,Dv:()=>p,Ej:()=>g,VA:()=>h,VL:()=>m,rQ:()=>f})
6456 -;var o=i(43271),a=i(21993),l=i(93044),n=i(2489),s=i(74411),r=i(68761),b=i(16867),c=i(80241),d=i(77168),u=i(42377);const p=(0,u.D$)({attributeName:"columnGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,defaultValueTablet:20,defaultValueMobile:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,u.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,defaultValueTablet:100,defaultValueMobile:100,copyStyle:!0}),h=(0,u.D$)({attributeName:"weight",isResponsive:!1,defaultValue:2,copyStyle:!0}),g=(0,u.D$)({attributeName:"size",isResponsive:!1,defaultValue:20,copyStyle:!0}),f=(0,u.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,defaultValueMobile:3,defaultValueTablet:1,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),y={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10}},...p,
6457 -allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},itemBackgroundH:{type:"string",default:"",copyStyle:!0},itemBackground:{type:"string",default:"",copyStyle:!0},transition:{type:"number",default:"",copyStyle:!0},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"#13191B",copyStyle:!0},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"#595959",copyStyle:!0},placeDivider:{type:"string",default:"near title",copyStyle:!0},dividerPatternUrl:{type:"string",default:"dashed",copyStyle:!0},dividerType:{type:"string",default:"css-style",copyStyle:!0},color:{type:"string",default:"black",copyStyle:!0},...m,...h,...g,...f,placePrice:{type:"string",default:"right",copyStyle:!0},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"#595959",copyStyle:!0},...(0,l.D$)("itemsDirection",!0,{value:"row"}),...(0,a.D$)("alignment",!0,{value:"flex-start"}),...(0,
6458 -a.D$)("titleAlignment",!0,{value:"left"}),...(0,a.D$)("descriptionAlignment",!0,{value:"left"}),...(0,a.D$)("priceAlignment",!0,{value:"left"}),...(0,r.D$)(),...(0,n.D$)("titleTypography",!0),...(0,s.D$)("titleTextShadow"),...(0,b.D$)("titleTextStroke",!0),...(0,n.D$)("descriptionTypography",!0),...(0,s.D$)("descriptionTextShadow"),...(0,b.D$)("descriptionTextStroke",!0),...(0,n.D$)("priceTypography",!0),...(0,s.D$)("priceTextShadow"),...(0,b.D$)("priceTextStroke",!0),...(0,c.D$)("itemPadding",!0),...(0,d.D$)("itemBorder",!0),...(0,n.D$)("typography",!0),...(0,s.D$)("textShadow"),...(0,b.D$)("textStroke",!0),...o.Ay}},33206(t,e,i){"use strict";i.d(e,{Ay:()=>f,Nf:()=>g,fb:()=>m,gB:()=>h,mm:()=>p});var o=i(43271),a=i(68761),l=i(21993),n=i(77168),s=i(2489),r=i(74411),b=i(16867),c=i(80241),d=i(42377),u=i(90198);const p=(0,d.D$)({attributeName:"strokeSize",attributeObjectKey:"value",isResponsive:!1,defaultValue:3,hasUnit:!1,copyStyle:!0}),m=(0,d.D$)({attributeName:"positionBottom",
6459 -attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:20,hasUnit:!0,copyStyle:!0}),h=(0,d.D$)({attributeName:"positionRight",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:20,hasUnit:!0,copyStyle:!0}),g=(0,d.D$)({attributeName:"positionLeft",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:20,hasUnit:!0,copyStyle:!0}),f={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},appearance:{type:"string",default:"icon",copyStyle:!0},buttonText:{type:"string",default:"Top"},buttonTextColor:{type:"string",default:"",copyStyle:!0},buttonTextColorH:{type:"string",default:"",copyStyle:!0},buttonTextColorBg:{type:"string",default:"",copyStyle:!0},buttonTextColorH:{type:"string",default:"",copyStyle:!0},progressColor:{type:"string",default:"red",copyStyle:!0},progressColorBg:{type:"string",default:"#EEEEEE",copyStyle:!0},...(0,a.D$)("icon",{
6460 -path:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z",viewBox:"0 0 448 512",className:"far arrow-up",size:40}),...(0,l.D$)("alignment",!0,{value:"left"}),...(0,u.D$)("position",!1),...(0,u.D$)("visibleControl",!1,{value:"visible"}),...(0,n.D$)("border",!0),...(0,s.D$)("typography",!0),...(0,r.D$)("textShadow"),...(0,b.D$)("textStroke",!0),...(0,c.D$)("padding",!0),...o.Ay}},98479(t,e,i){"use strict";i.d(e,{Ay:()=>x,JT:()=>h,Qk:()=>T,RS:()=>y,SN:()=>f,gc:()=>H,kN:()=>u,kf:()=>M,rQ:()=>m,rW:()=>g,tc:()=>p});var o=i(43271),a=i(42377),l=i(21993),n=i(2489),s=i(74411),r=i(16867),b=i(88554),c=i(80241),d=i(77168);const u=(0,a.D$)({attributeName:"iconWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:18,defaultValueTablet:18,defaultValueMobile:12,hasUnit:!0,unitDefaultValue:"px",
6461 -copyStyle:!0}),p=(0,a.D$)({attributeName:"searchBtnWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:70,defaultValueTablet:70,defaultValueMobile:70,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,a.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueTablet:0,defaultValueMobile:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,a.D$)({attributeName:"listWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,a.D$)({attributeName:"listGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueTablet:0,defaultValueMobile:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),f=(0,a.D$)({attributeName:"itemWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),y=(0,a.D$)({attributeName:"searchItemHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:300,hasUnit:!0,
6462 -unitDefaultValue:"px",copyStyle:!0}),T=(0,a.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),H=(0,a.D$)({attributeName:"horizontalOffset",attributeObjectKey:"value",isResponsive:!0,defaultValue:230,defaultValueTablet:230,defaultValueMobile:230,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),M=(0,a.D$)({attributeName:"verticalOffset",attributeObjectKey:"value",isResponsive:!0,defaultValue:230,defaultValueTablet:230,defaultValueMobile:230,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),x={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},source:{type:"string",default:"any"},currentPostID:{type:"integer",default:""},...m,searchTerm:{type:"string",default:""},isIcon:{type:"string",default:"icon"},...u,...p,...g,...h,...f,...y,...T,...H,...M,allowCollapse:{type:"bool",default:!1},position:{type:"string",default:"default"},variant:{type:"string",default:"classic"},buttonText:{
6463 -type:"string",default:"Search"},buttonBgColor:{type:"string",default:"",copyStyle:!0},buttonBgColorH:{type:"string",default:"",copyStyle:!0},buttonTextColor:{type:"string",default:"",copyStyle:!0},buttonTextColorH:{type:"string",default:"",copyStyle:!0},placeholder:{type:"string",default:"Write anything......."},placeholderColor:{type:"string",default:"gray",copyStyle:!0},inputTextColor:{type:"string",default:"#949494",copyStyle:!0},inputBgColor:{type:"string",default:"#FFFFFF",copyStyle:!0},searchResTColor:{type:"string",default:"#000000",copyStyle:!0},loadingSpinnerColor:{type:"string",default:"#fff",copyStyle:!0},...(0,n.D$)("buttonTypography",!0),...(0,s.D$)("buttonTextShadow"),...(0,r.D$)("buttonTextStroke",!0),...(0,n.D$)("buttonTypographyH",!0),...(0,s.D$)("buttonTextShadowH"),...(0,r.D$)("buttonTextStrokeH",!0),...(0,n.D$)("inputTypography",!0),...(0,s.D$)("inputTextShadow"),...(0,r.D$)("inputTextStroke",!0),...(0,l.D$)("buttonAlignment",!1,{value:"left"}),...(0,
6464 -l.D$)("horizontalAlignment",!1,{value:"left"}),...(0,l.D$)("verticalAlignment",!1,{value:"top"}),...(0,l.D$)("fullscreenButtonAlignment",!0,{value:"center"}),...(0,l.D$)("alignment",!0,{value:"left"}),...(0,n.D$)("typography",!0),...(0,s.D$)("textShadow"),...(0,b.D$)("link"),...(0,r.D$)("textStroke",!0),...(0,c.D$)("listPadding",!1),...(0,d.D$)("listBorder",!0),...(0,c.D$)("itemPadding",!1),...(0,d.D$)("itemBorder",!0),...(0,d.D$)("searchBoxBorder",!0),...(0,n.D$)("searchResTypography",!0),...o.Ay}},80518(t,e,i){"use strict";i.d(e,{Ay:()=>p,RK:()=>d,eY:()=>u});var o=i(43271),a=i(2489),l=i(74411),n=i(16867),s=i(77168),r=i(80241),b=i(68761),c=i(42377);const d=(0,c.D$)({attributeName:"iconSize",isResponsive:!1,copyStyle:!0,attributeObjectKey:"value"}),u=(0,c.D$)({attributeName:"itemSpace",isResponsive:!1,copyStyle:!0,attributeObjectKey:"value",hasUnit:!1,unitDefaultValue:"px"}),p={block_id:{type:"string",default:""},accordionId:{type:"number",default:0},accordionTitle:{type:"string",
6465 -default:""},headerTextColor:{type:"string",default:"",copyStyle:!0},headerTextColorH:{type:"string",default:"",copyStyle:!0},headerTextActiveColor:{type:"string",default:"",copyStyle:!0},headerBackgroundActiveColor:{type:"string",default:"",copyStyle:!0},headerBackgroundColorH:{type:"string",default:"",copyStyle:!0},headerBackgroundColor:{type:"string",default:"",copyStyle:!0},...u,...d,iconColor:{type:"string",default:"",copyStyle:!0},iconColorH:{type:"string",default:"",copyStyle:!0},bodyBackgroundH:{type:"string",default:"",copyStyle:!0},bodyBackground:{type:"string",default:"",copyStyle:!0},parentAttributes:{type:"object",default:{iconPosition:"right",headingTag:"p",showIcon:!0,leftCloseIconClass:"far fa-arrow-alt-circle-up",leftActiveIconClass:"far fa-arrow-alt-circle-down",rightActiveIconClass:"fas fa-minus",rightCloseIconClass:"fas fa-plus"}},...(0,a.D$)("headerTypography",!0,{weight:""}),...(0,b.D$)("leftCloseIcon",{
6466 -path:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-up",hasNoSelectorOrSource:!0}),...(0,b.D$)("leftActiveIcon",{path:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-32-316v116h-67c-10.7 0-16 12.9-8.5 20.5l99 99c4.7 4.7 12.3 4.7 17 0l99-99c7.6-7.6 2.2-20.5-8.5-20.5h-67V140c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-down",hasNoSelectorOrSource:!0}),...(0,b.D$)("rightCloseIcon",{
6467 -path:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",viewBox:"0 0 448 512",className:"fas fa-plus",hasNoSelectorOrSource:!0}),...(0,b.D$)("rightActiveIcon",{path:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",viewBox:"0 0 448 512",className:"fas fa-minus",hasNoSelectorOrSource:!0}),...(0,l.D$)("headerTextShadow"),...(0,n.D$)("headerTextStroke",!0),...(0,s.D$)("itemBorder",!0),...(0,r.D$)("headerPadding",!0),...(0,r.D$)("bodyPadding",!0),...(0,s.D$)("headerBorder",!0),...o.Ay}},929(t,e,i){"use strict";i.d(e,{Ay:()=>H,CS:()=>f,H1:()=>g,YE:()=>T,_2:()=>p,jI:()=>m,jM:()=>y,p9:()=>u,vz:()=>h});var o=i(43271),a=i(21993),l=i(77168),n=i(42377),s=i(2489),r=i(74411),b=i(16867),c=i(90198),d=i(80554);const u=(0,n.D$)({
6468 -attributeName:"spaceBetween",attributeObjectKey:"value",isResponsive:!0,copyStyle:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px"}),p=(0,n.D$)({attributeName:"shareIconSize",attributeObjectKey:"value",isResponsive:!1,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,n.D$)({attributeName:"shareItemIconSize",isResponsive:!1,defaultValue:25,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,n.D$)({attributeName:"shareSize",isResponsive:!1,defaultValue:46,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,n.D$)({attributeName:"itemIconWidth",isResponsive:!1,defaultValue:43,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),f=(0,n.D$)({attributeName:"itemIconHeight",isResponsive:!1,defaultValue:42,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),y=(0,n.D$)({attributeName:"itemTextWidth",isResponsive:!1,defaultValue:80,attributeObjectKey:"value",hasUnit:!0,
6469 -unitDefaultValue:"px",copyStyle:!0}),T=(0,n.D$)({attributeName:"itemTextHeight",isResponsive:!1,defaultValue:42,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),H={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},buttonType:{type:"string",default:"Facebook",copyStyle:!0},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square"},lists:{type:"array",default:[{id:0,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373",buttonType:"Facebook"},{id:1,text:"Twitter",icon:{viewBox:"0 0 448 512",
6387 +default:"",copyStyle:!0},transition:{type:"number",default:"",copyStyle:!0},iconPosition:{type:"string",default:"left",copyStyle:!0},...m,showIcon:{type:"boolean",default:!1,copyStyle:!0},...(0,b.D$)("icon",{size:16}),...(0,c.D$)("link"),...(0,a.D$)("position",!0,{value:"left"}),...(0,a.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("typography",!0),...(0,n.D$)("textShadow"),...(0,s.D$)("padding",!0),...(0,r.D$)("border",!0),...(0,d.D$)("boxShadow"),...o.Ay}},58509(t,e,i){"use strict";i.d(e,{Ay:()=>W,Is:()=>h,Po:()=>y,Pu:()=>f,Qg:()=>g,Qh:()=>c,Ud:()=>m,Vq:()=>d,Wu:()=>v,Yd:()=>k,a5:()=>u,b0:()=>M,g7:()=>p,hG:()=>x,lC:()=>H,qO:()=>_,rQ:()=>T});var o=i(43271),a=i(42377),l=i(68761),n=i(90198),s=i(77168),r=i(80241),b=i(80554);const c=(0,a.D$)({attributeName:"carouselHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:300,defaultValueMobile:300,defaultValueTablet:300,copyStyle:!0}),d=(0,a.D$)({attributeName:"paginationPositionY",
6388 +defaultValue:100,attributeObjectKey:"value",hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",copyStyle:!0}),u=(0,a.D$)({attributeName:"paginationPositionX",defaultValue:47,attributeObjectKey:"value",hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",copyStyle:!0}),p=(0,a.D$)({attributeName:"paginationSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,a.D$)({attributeName:"paginationHoverSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,a.D$)({attributeName:"paginationActiveSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,a.D$)({attributeName:"paginationActiveHoverSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),f=(0,a.D$)({attributeName:"navigationIconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:35,hasUnit:!0,
6389 +unitDefaultValue:"px",copyStyle:!0}),y=(0,a.D$)({attributeName:"slidesPerView",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,defaultValueMobile:1,defaultValueTablet:1,copyStyle:!0}),T=(0,a.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueMobile:0,defaultValueTablet:0,copyStyle:!0}),H=(0,a.D$)({attributeName:"slidesPerGroup",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,defaultValueMobile:1,defaultValueTablet:1,copyStyle:!0}),M=(0,a.D$)({attributeName:"activeSlideOffset",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:"",copyStyle:!0}),x=(0,a.D$)({attributeName:"paginationActiveWidth",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:"",copyStyle:!0}),k=(0,a.D$)({attributeName:"navigationIconPositionY",defaultValue:50,attributeObjectKey:"value",hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",copyStyle:!0}),v=(0,a.D$)({
6390 +attributeName:"navigationIconPositionNextX",hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",defaultValue:-3,copyStyle:!0}),_=(0,a.D$)({attributeName:"navigationIconPositionPrevX",hasUnit:!0,unitDefaultValue:"%",isResponsive:!0,defaultValue:-3,copyStyle:!0}),R=(0,l.D$)("leftIcon",{path:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z",viewBox:"0 0 512 512",hasNoSelectorOrSource:!0,className:"far fa-arrow-alt-circle-left"}),S=(0,l.D$)("rightIcon",{
6391 +path:"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z",viewBox:"0 0 512 512",hasNoSelectorOrSource:!0,className:"far fa-arrow-alt-circle-right"}),W={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},carouselSlideLength:{type:"number",default:1},...c,effect:{type:"string",default:"slide",copyStyle:!0},reverseDirection:{type:"boolean",default:!1,copyStyle:!0},...y,...T,...H,...M,centeredSlides:{type:"boolean",default:!1,copyStyle:!0},isLoop:{type:"boolean",default:!1,copyStyle:!0},autoplay:{type:"boolean",default:!0,copyStyle:!0},autoPlayReverse:{type:"boolean",default:!1,copyStyle:!0},autoplayDelay:{type:"number",default:3e3,copyStyle:!0},autoplayPauseOnHover:{type:"boolean",default:!0,copyStyle:!0},
6392 +speed:{type:"number",default:800,copyStyle:!0},paginationType:{type:"string",default:"default",copyStyle:!0},pagination:{type:"boolean",default:!0,copyStyle:!0},paginationClickable:{type:"boolean",default:!0,copyStyle:!0},...d,...u,...p,...m,...h,...g,...x,navigation:{type:"boolean",default:!0,copyStyle:!0},...f,...v,..._,...k,navigationIconColor:{type:"string",default:"#686868",copyStyle:!0},navigationIconColorH:{type:"string",default:"",copyStyle:!0},navigationIconBgColor:{type:"string",default:"#e4e4e4",copyStyle:!0},navigationIconBgColorH:{type:"string",default:"",copyStyle:!0},navigationIconTransition:{type:"number",default:"",copyStyle:!0},paginationColor:{type:"string",default:"black",copyStyle:!0},paginationHoverColor:{type:"string",default:"black",copyStyle:!0},paginationActiveColor:{type:"string",default:"black",copyStyle:!0},paginationActiveHoverColor:{type:"string",default:"black",copyStyle:!0},...R,...S,grabCursor:{type:"boolean",default:!0,copyStyle:!0},mousewheel:{
6393 +type:"boolean",default:!0,copyStyle:!0},verticalAlignment:{type:"string",default:"center",copyStyle:!0},...(0,n.D$)("verticalAlign",!0,{value:"center"}),...(0,r.D$)("navigationIconPadding",!0),...(0,s.D$)("navigationIconBorder",!0),...(0,s.D$)("paginationBorder",!0),...(0,s.D$)("activePaginationBorder",!0),...(0,b.D$)("navigationIconBoxShadow",!0),...o.Ay}},71651(t,e,i){"use strict";i.d(e,{Ay:()=>b,Xb:()=>r});var o=i(43271),a=i(21993),l=i(42377),n=i(27723);const s=(0,l.D$)({attributeName:"chartHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:620,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),r=(0,l.D$)({attributeName:"chartWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:95,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),b={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},chartType:{type:"string",default:"bar",copyStyle:!0},chartBG:{type:"string",default:"#fff",copyStyle:!0},...s,...r,data:{type:"object",default:{labels:[(0,
6394 +n.__)("January","ablocks"),(0,n.__)("February","ablocks"),(0,n.__)("March","ablocks"),(0,n.__)("April","ablocks"),(0,n.__)("May","ablocks"),(0,n.__)("June","ablocks")],datasets:[{label:(0,n.__)("Sale","ablocks"),data:[300,500,200,800,700,900],backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1,pointStyle:"star",pointRadius:8,pointHoverRadius:12},{label:(0,n.__)("buys","ablocks"),data:[400,600,300,900,800,800],backgroundColor:"yellow",borderColor:"red",borderWidth:1,pointStyle:"triangle",pointRadius:8,pointHoverRadius:12}]}},options:{type:"object",default:{responsive:!0,aspectRatio:1,maintainAspectRatio:!0,scales:{x:{ticks:{color:"blue",font:{size:14}},grid:{display:!0,color:"lightgray",lineWidth:1},title:{display:!0,text:"X-Axis Label",color:"darkblue",align:"center",font:{size:16,weight:"bold"}}},y:{ticks:{color:"green",font:{size:14}},grid:{display:!0,color:"gray",lineWidth:1},title:{display:!0,text:"Y-Axis Label",color:"darkgreen",
6395 +align:"center",font:{size:16,weight:"bold"}}}},plugins:{legend:{position:"top",labels:{usePointStyle:!0}},title:{display:!0,text:(0,n.__)("Monthly Sales","ablocks"),position:"top",align:"center",padding:10,font:{size:20,weight:"bold"}},subtitle:{display:!1,text:(0,n.__)("Custom Chart Subtitle","ablocks"),position:"top",align:"center",padding:10,font:{size:12,weight:"bold"}}}}},...(0,a.D$)("alignment",!0,{value:"left"}),...o.Ay}},70866(t,e,i){"use strict";i.d(e,{Ay:()=>y,HU:()=>m,Kg:()=>r,OF:()=>h,OM:()=>b,Uq:()=>p,hV:()=>g,js:()=>c,rQ:()=>f});var o=i(43271),a=i(42377),l=i(10131),n=i(90198),s=i(88554);const r=(0,a.D$)({attributeName:"minimumHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:null,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),b=(0,a.D$)({attributeName:"containerWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),c=(0,a.D$)({attributeName:"containerContentWidth",attributeObjectKey:"value",
6396 +isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),d=(0,a.D$)({attributeName:"gap",attributeObjectKey:"columnGap",isResponsive:!0,defaultValue:null,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),u=(0,a.D$)({attributeName:"gap",attributeObjectKey:"rowGap",isResponsive:!0,defaultValue:null,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),p=((0,a.D$)({attributeName:"gridColumn",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueTablet:2,defaultValueMobile:1,hasUnit:!1,unitDefaultValue:"",copyStyle:!0}),(0,a.D$)({attributeName:"gridRow",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!1,unitDefaultValue:"",copyStyle:!0}),(0,a.D$)({attributeName:"shapeBottomHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0})),m=(0,a.D$)({attributeName:"shapeBottomWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0
6397 +}),h=(0,a.D$)({attributeName:"shapeTopHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,a.D$)({attributeName:"shapeTopWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),f={gap:{type:"object",default:{...d?.gap?.default,...u?.gap?.default},copyStyle:!0}},y={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},className:{type:"string",default:""},isRootContainer:{type:"boolean",default:!1},variationSelected:{type:"boolean",default:!1},...b,...c,...r,...f,...(0,n.D$)("containerWidthType",!1,{value:"boxed"}),...(0,n.D$)("overflow",!1,{value:"visible"}),direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},
6398 +alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},wrap:{type:"string",default:""},wrapTablet:{type:"string",default:""},wrapMobile:{type:"string",default:""},layout:{type:"string",default:""},htmlTag:{type:"string",default:""},shapeTop:{type:"string",default:""},shapeBottom:{type:"string",default:""},shapeTopColor:{type:"string",default:"#61CE70"},shapeBottomColor:{type:"string",default:"#61CE70"},bottomShapeBringToFront:{type:"boolean",default:!1},topShapeBringToFront:{type:"boolean",default:!1},topShapeFlip:{type:"boolean",default:!1},bottomShapeFlip:{type:"boolean",default:!1},...h,...g,...p,...m,...(0,n.D$)("dir",!0,{value:"column"}),...(0,n.D$)("justification",!0,{value:""}),...(0,n.D$)("alignment",!0,{value:""}),...(0,n.D$)("wrapping",!0,{value:""}),...(0,s.D$)("link"),...(0,l.D$)("_backgroundOverlay",!0),...o.Ay}},50174(t,e,i){"use strict";i.d(e,{Ay:()=>h,BI:()=>d,Qk:()=>u,RK:()=>p,Xf:()=>m})
6399 +;var o=i(43271),a=i(21993),l=i(2489),n=i(80241),s=i(68761),r=i(42377),b=i(77168),c=i(90198);const d=(0,r.D$)({attributeName:"iconBackgroundSize",isResponsive:!1,defaultValue:48,copyStyle:!0}),u=(0,r.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px"}),p=(0,r.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:18,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,r.D$)({attributeName:"thickness",isResponsive:!1,defaultValue:3,copyStyle:!0}),h={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},iconColor:{type:"string",default:"#000000",copyStyle:!0},iconBackgroundColor:{type:"string",default:"#eee",copyStyle:!0},thicknessColor:{type:"string",default:"#eee",copyStyle:!0},showAnimation:{type:"boolean",default:!1,copyStyle:!0},connectorAnimationColor:{type:"string",default:"#00ad6b",copyStyle:!0},contentBackgroundColor:{type:"string",default:"#eee",copyStyle:!0
6400 +},showDate:{type:"boolean",default:!0,copyStyle:!0},showDateTablet:{type:"boolean",default:!0,copyStyle:!0},showDateMobile:{type:"boolean",default:!0,copyStyle:!0},dateFormat:{type:"string",default:"F j, Y",copyStyle:!0},dateColor:{type:"string",default:"#333333",copyStyle:!0},dateBackground:{type:"string",default:"#eee",copyStyle:!0},...d,...u,...m,...p,...(0,s.D$)("contentTimeLineIcon",{path:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-up",hasNoSelectorOrSource:!0}),...(0,a.D$)("alignment",!0,{value:"left"}),...(0,c.D$)("arrowAlignment",!1,{value:"center"}),...(0,c.D$)("dateAlign",!1,{value:"left"}),...(0,c.D$)("contentPosition",!1,{value:"center"}),...(0,
6401 +l.D$)("dateTypography",!0),...(0,n.D$)("contentPadding",!0),...(0,n.D$)("datePadding",!0),...(0,b.D$)("dateBorder",!0),...o.Ay}},60766(t,e,i){"use strict";i.d(e,{Ay:()=>g,Gt:()=>p,Q8:()=>m,Vg:()=>h,Vo:()=>u});var o=i(27723),a=i(43271),l=i(42377),n=i(2489),s=i(21993),r=i(77168),b=i(80554),c=i(90198),d=i(80241);const u=(0,l.D$)({attributeName:"boxSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:130,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),p=(0,l.D$)({attributeName:"boxRowGap",isResponsive:!0,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,l.D$)({attributeName:"boxColumnGap",isResponsive:!0,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,l.D$)({attributeName:"numberAndLabelGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:5,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},...(0,
6402 +s.D$)("alignment",!0,{value:"center"}),targetTime:{type:"string",default:""},direction:{type:"string",default:"row",copyStyle:!0},directionTablet:{type:"string",default:"row",copyStyle:!0},directionMobile:{type:"string",default:"row",copyStyle:!0},justify:{type:"string",default:"center",copyStyle:!0},justifyTablet:{type:"string",default:"center",copyStyle:!0},justifyMobile:{type:"string",default:"center",copyStyle:!0},align:{type:"string",default:"stretch",copyStyle:!0},alignTablet:{type:"string",default:"stretch",copyStyle:!0},alignMobile:{type:"string",default:"stretch",copyStyle:!0},wrap:{type:"string",default:"wrap",copyStyle:!0},wrapTablet:{type:"string",default:"wrap",copyStyle:!0},wrapMobile:{type:"string",default:"wrap",copyStyle:!0},showDay:{type:"bool",default:!0},showHour:{type:"bool",default:!0},showMinute:{type:"bool",default:!0},showSecond:{typ:"bool",default:!0},dayLabel:{type:"string",default:"Days"},hourLabel:{type:"string",default:"Hours"},minuteLabel:{type:"string",
6403 +default:"Minutes"},secondLabel:{type:"string",default:"Seconds"},evergreen:{type:"boolean",default:!1},evergreenHours:{type:"number",default:0},evergreenMinutes:{type:"number",default:0},evergreenDays:{type:"number",default:0},evergreenRestart:{type:"boolean",default:!1},isAction:{type:"bool",default:!0,copyStyle:!0},action:{type:"string",default:"none",copyStyle:!0},actionMessage:{type:"string",default:(0,o.__)("Time Expire","ablocks"),copyStyle:!0},actionMessageColor:{type:"string",default:"black",copyStyle:!0},...(0,n.D$)("actionMessageTypography",!0),actionRedirectURL:{type:"string",default:"",copyStyle:!0},labelPosition:{type:"string",default:"column",copyStyle:!0},...u,...h,boxBackgroundColor:{type:"string",default:"",copyStyle:!0},...p,...m,...(0,r.D$)("boxBorder",!0),...(0,b.D$)("boxShadow",!0),labelColor:{type:"string",default:"",copyStyle:!0},showLabels:{type:"bool",default:!0,copyStyle:!0},labelBgColor:{type:"string",default:"",copyStyle:!0},...(0,
6404 +n.D$)("labelTypography",!0),numberColor:{type:"string",default:"",copyStyle:!0},numberBgColor:{type:"string",default:"",copyStyle:!0},...(0,n.D$)("numberTypography",!0),showSeparator:{type:"bool",default:!0,copyStyle:!0},separatorColor:{type:"string",default:"black",copyStyle:!0},...(0,n.D$)("separatorTypography",!0),...(0,c.D$)("separator",!1,{value:":"}),...(0,c.D$)("orient",!0,{value:"row"}),...(0,c.D$)("justificationAlign",!0,{value:"center"}),...(0,c.D$)("alignment",!0,{value:"stretch"}),...(0,c.D$)("wrapping",!0,{value:"wrap"}),...(0,d.D$)("padding",!0),...a.Ay}},58351(t,e,i){"use strict";i.d(e,{Ay:()=>y,NZ:()=>m,eU:()=>u,o7:()=>p,p0:()=>d});var o=i(27723),a=i(43271),l=i(21993),n=i(2489),s=i(68761),r=i(42377),b=i(80241),c=i(90198);const d=(0,r.D$)({attributeName:"duration",isResponsive:!1,defaultValue:1e3,copyStyle:!0}),u=(0,r.D$)({attributeName:"circleSize",isResponsive:!1,defaultValue:220,copyStyle:!0}),p=(0,r.D$)({attributeName:"circleStrokeSize",isResponsive:!1,
6405 +defaultValue:20,copyStyle:!0}),m=(0,r.D$)({attributeName:"barSize",isResponsive:!0,defaultValue:30,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,r.D$)({attributeName:"iconSize",isResponsive:!0,defaultValue:30,copyStyle:!0}),g=(0,r.D$)({attributeName:"iconRotate",isResponsive:!1,defaultValue:0,copyStyle:!0}),f=(0,r.D$)({attributeName:"decimalPlaces",isResponsive:!1,defaultValue:0,copyStyle:!0}),y={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isShowIcon:{type:"bool",default:!0},mediaPosition:{type:"string",default:"top"},...d,animationRepeat:{type:"bool",default:!1},counterPrefix:{type:"string",default:""},counterSuffix:{type:"string",default:"%"},counterTitle:{type:"string",default:(0,o.__)("Enter your heading","ablocks")},numberColor:{type:"string",default:"#08fd00ff",copyStyle:!0},startNumber:{type:"number",default:0},endNumber:{type:"number",default:80},totalNumber:{type:"number",default:100},...f,separator:{type:"string",default:","},...(0,
6406 +n.D$)("numberTypography",!0),...(0,b.D$)("numberMargin",!0),...(0,c.D$)("layout",!1,{value:"number"}),headingColor:{type:"string",default:"#4B4F58",copyStyle:!0},...(0,n.D$)("headingTypography",!0),...(0,b.D$)("headingMargin",!0),barHeadingPosition:{type:"string",default:"top",copyStyle:!0},circleProgressColor:{type:"string",default:"black",copyStyle:!0},circleBackgroundColor:{type:"string",default:"#dadada",copyStyle:!0},...u,...p,barProgressColor:{type:"string",default:"black",copyStyle:!0},barBackgroundColor:{type:"string",default:"#dadada",copyStyle:!0},...m,iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},...h,...g,iconPrimaryColor:{type:"string",default:"black",copyStyle:!0},iconBackgroundColor:{type:"string",default:"#e8e8e8",copyStyle:!0},...(0,s.D$)("icon",{
6407 +path:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z",viewBox:"0 0 576 512",className:"far fa-star"}),...(0,l.D$)("alignment",!0,{value:"center"}),...a.Ay}},2620(t,e,i){"use strict";i.d(e,{Ay:()=>f,Ej:()=>u,VA:()=>d,VL:()=>c,Vl:()=>h,rQ:()=>p,rt:()=>m});var o=i(43271),a=i(21993),l=i(2489),n=i(16867),s=i(68761),r=i(42377),b=i(90198);const c=(0,r.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),d=(0,r.D$)({attributeName:"weight",isResponsive:!1,defaultValue:4,copyStyle:!0}),u=(0,r.D$)({attributeName:"size",isResponsive:!1,defaultValue:20,copyStyle:!0}),p=(0,r.D$)({attributeName:"gap",
6408 +attributeObjectKey:"value",isResponsive:!0,defaultValue:10,copyStyle:!0}),m=(0,r.D$)({attributeName:"elementTextSpacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,r.D$)({attributeName:"elementIconSpacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueMobile:0,defaultValueTablet:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,r.D$)({attributeName:"elementIconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,defaultValueMobile:20,defaultValueTablet:20,copyStyle:!0}),f={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},dividerPatternUrl:{type:"string",default:"solid",copyStyle:!0},dividerType:{type:"string",default:"css-style",copyStyle:!0},color:{type:"string",default:"#000000",copyStyle:!0},elementTextColor:{type:"string",default:"#000000",copyStyle:!0},...c,...d,...u,...p,elementText:{type:"string",default:"Divider"},...(0,
6409 +l.D$)("elementTextTypography",!0),...(0,n.D$)("elementTextStroke",!0),...m,elementTextPosition:{type:"string",default:"center",copyStyle:!0},elementIconType:{type:"string",default:"default",copyStyle:!0},...g,elementIconPosition:{type:"string",default:"center",copyStyle:!0},...h,...(0,s.D$)("icon",{path:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z",viewBox:"0 0 576 512",className:"far fa-star"}),...(0,a.D$)("alignment",!0,{value:"left"}),...(0,b.D$)("element",!1,{value:"none"}),...o.Ay}},91464(t,e,i){"use strict";i.d(e,{A:()=>u,r:()=>d});var o=i(43271),a=i(42377),l=i(21993),n=i(2489),s=i(74411),r=i(80241),b=i(77168),c=i(93044);const d=(0,a.D$)({attributeName:"gap",
6410 +attributeObjectKey:"value",isResponsive:!0,defaultValue:20,defaultValueTablet:20,defaultValueMobile:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),u={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},justifyItems:{type:"string",default:"start",copyStyle:!0},...d,buttonType:{type:"string",default:"#ddd",copyStyle:!0},buttonSize:{type:"string",default:"small",copyStyle:!0},textColor:{type:"string",default:"#000000",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},background:{type:"string",default:"",copyStyle:!0},backgroundH:{type:"string",default:"",copyStyle:!0},transition:{type:"number",default:0,copyStyle:!0},...(0,l.D$)("alignment",!0,{value:"flex-start"}),...(0,c.D$)("stack",!1,{value:"horizontal"}),...(0,n.D$)("typography",!0),...(0,s.D$)("textShadow"),...(0,r.D$)("padding",!0),...(0,b.D$)("border",!0),...o.Ay}},38652(t,e,i){"use strict";i.d(e,{A:()=>m})
6411 +;var o=i(27723),a=i(43271),l=i(2489),n=i(42377),s=i(80241),r=i(77168),b=i(80554),c=i(21993),d=i(16867),u=i(74411);i(88554);const p=(0,n.D$)({attributeName:"listWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:33,unitDefaultValue:"%",hasUnit:!0}),m={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},not_found_text:{type:"string",default:(0,o.__)("Custom message when no bookmarks exist","ablocks")},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},notFoundColor:{type:"string",default:""},...p,...(0,c.D$)("listAignment",!0,{value:"left"}),...(0,s.D$)("listPadding",!0),...(0,r.D$)("listBorder",!0),...(0,b.D$)("listBoxShadow"),...(0,l.D$)("titleTypography",!0),...(0,d.D$)("titleTextStroke",!0),...(0,u.D$)("titleTextShadow"),...(0,l.D$)("desTypography",!0),...(0,d.D$)("desTextStroke",!0),...(0,u.D$)("desTextShadow"),...(0,c.D$)("notFoundAlignment",!0,{
6412 +value:"center"}),...(0,l.D$)("notFoundTypography",!0),...a.Ay}},45352(t,e,i){"use strict";i.d(e,{Ay:()=>c});var o=i(43271),a=i(2489),l=i(77168),n=i(80241),s=i(21993),r=i(80554),b=i(42377);const c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},post_id:{type:"number"},text:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonColorH:{type:"string",default:""},buttonBackground:{type:"string",default:""},buttonBackgroundH:{type:"string",default:""},pendingBadgeFillColor:{type:"string",default:""},confirmationBandageFillColor:{type:"string",default:""},...(0,b.D$)({attributeName:"pendingBadgeSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",hasUnit:!0}),...(0,b.D$)({attributeName:"confirmationBandageSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",hasUnit:!0}),...(0,s.D$)("listAlignment",!0,{value:"left"}),...(0,a.D$)("buttonTypography",!0),...(0,n.D$)("padding",!0),
6413 +...(0,l.D$)("buttonBorder",!0),...(0,r.D$)("boxShadow"),...o.Ay}},93240(t,e,i){"use strict";i.d(e,{A:()=>m});var o=i(27723),a=i(43271),l=i(2489),n=i(42377),s=i(80241),r=i(77168),b=i(80554),c=i(21993),d=i(16867),u=i(74411);i(88554);const p=(0,n.D$)({attributeName:"listWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:33,unitDefaultValue:"%",hasUnit:!0}),m={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},status:{type:"string",default:""},not_found_text:{type:"string",default:(0,o.__)("Custom message when no claims exist","ablocks")},listStyle:{type:"string",default:"disc"},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},notFoundColor:{type:"string",default:""},...p,...(0,c.D$)("listAignment",!0,{value:"left"}),...(0,c.D$)("notFoundAlignment",!0,{value:"center"}),...(0,s.D$)("listPadding",!0),...(0,r.D$)("listBorder",!0),...(0,
6414 +b.D$)("listBoxShadow"),...(0,l.D$)("titleTypography",!0),...(0,l.D$)("notFoundTypography",!0),...(0,d.D$)("titleTextStroke",!0),...(0,u.D$)("titleTextShadow"),...(0,l.D$)("desTypography",!0),...(0,d.D$)("desTextStroke",!0),...(0,u.D$)("desTextShadow"),...a.Ay}},6035(t,e,i){"use strict";i.d(e,{A:()=>b});var o=i(27723),a=i(43271),l=i(2489),n=(i(42377),i(80241),i(77168),i(80554),i(21993)),s=i(16867),r=i(74411);const b={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},reacTitleColor:{type:"string",default:"#000000",copyStyle:!0},reacListColor:{type:"string",default:"#000000",copyStyle:!0},nobookmarksColor:{type:"string",default:"#000000",copyStyle:!0},reactionUlStyle:{type:"string",default:""},not_found_text:{type:"string",default:(0,o.__)("Custom message when no bookmarks exist","ablocks")},...(0,n.D$)("reactionAlignment",!0,{value:"left"}),...(0,l.D$)("reacTitleTypography",!0),...(0,l.D$)("reacListTypography",!0),...(0,
6415 +l.D$)("nobookmarksTypography",!0),...(0,r.D$)("textShadow"),...(0,s.D$)("textStroke",!0),...a.Ay}},64608(t,e,i){"use strict";i.d(e,{Ay:()=>d,nO:()=>b,u2:()=>c});var o=i(43271),a=i(2489),l=i(42377),n=i(80241),s=i(77168),r=(i(80554),i(21993),i(90198));const b=(0,l.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c=(0,l.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),d={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},transition:{type:"number",default:10,copyStyle:!0},showTitle:{type:"boolean",default:!0},iconColor:{type:"string",default:"",copyStyle:!0},fillColor:{type:"string",default:"",copyStyle:!0},titleColor:{type:"string",default:"",copyStyle:!0},bgColor:{type:"string",default:"",copyStyle:!0},activeIconColor:{type:"string",default:"",copyStyle:!0},activeFillColor:{type:"string",
6416 +default:"",copyStyle:!0},activeTitleColor:{type:"string",default:"",copyStyle:!0},activeBGColor:{type:"string",default:"",copyStyle:!0},...(0,r.D$)("justificationAlign",!0,{value:"center"}),...(0,s.D$)("border",!0),...(0,s.D$)("activeBorder",!0),...(0,a.D$)("activeTitleTypography",!0),...(0,a.D$)("titleTypography",!0),...(0,n.D$)("padding",!0),...b,...c,...o.Ay}},11053(t,e,i){"use strict";i.d(e,{A:()=>u});var o=i(43271),a=i(2489),l=i(42377),n=i(80241),s=i(77168),r=i(80554),b=i(21993),c=i(16867),d=i(74411);i(88554);const u={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},user_id:{type:"number",default:0},not_found_text:{type:"string",default:""},listStyle:{type:"string",default:"disc"},listBackground:{type:"string",default:""},titleColor:{type:"string",default:""},desColor:{type:"string",default:""},...(0,l.D$)({attributeName:"listWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:33,unitDefaultValue:"%",hasUnit:!0}),...(0,b.D$)("listAignment",!0,{
6417 +value:"left"}),...(0,n.D$)("listPadding",!0),...(0,s.D$)("listBorder",!0),...(0,r.D$)("listBoxShadow"),...(0,a.D$)("titleTypography",!0),...(0,c.D$)("titleTextStroke",!0),...(0,d.D$)("titleTextShadow"),...(0,a.D$)("desTypography",!0),...(0,c.D$)("desTextStroke",!0),...(0,d.D$)("desTextShadow"),...o.Ay}},9233(t,e,i){"use strict";i.d(e,{Ay:()=>h,ke:()=>d,md:()=>u,yy:()=>m});var o=i(43271),a=i(77168),l=i(21993),n=i(80241),s=i(2489),r=i(42314),b=i(80554),c=i(42377);const d=(0,c.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),u=(0,c.D$)({attributeName:"opacityH",defaultValue:1,copyStyle:!0}),p=(0,c.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),m=(0,c.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),h={block_id:{type:"string",default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",
6418 +attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""},copyStyle:!0},imgLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",linkClass:""}},...d,...u,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},copyStyle:!0},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},imgCaption:{type:"boolean",default:!1},
6419 +position:{type:"string",default:"below",copyStyle:!0},imgAltText:{type:"string",default:""},onHoverImg:{type:"string",default:"static",copyStyle:!0},imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},...p,...m,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("captionAlignment",!0,{value:"left"}),...(0,r.D$)("cssFilter"),...(0,r.D$)("cssHoverFilter"),...(0,b.D$)("boxShadow"),...(0,s.D$)("captionTypography",!0),...(0,l.D$)("captionPosition",!0),...(0,n.D$)("captionPadding",!0),...(0,a.D$)("captionBorder",!0),...(0,a.D$)("border",!0),...o.Ay}},29419(t,e,i){"use strict";i.d(e,{Ay:()=>m,H9:()=>p,Qk:()=>u,iA:()=>d});var o=i(43271),a=i(2489),l=i(77168),n=i(80241),s=i(42377),r=i(21993),b=i(80554);const c=(0,s.D$)({attributeName:"filterButtonGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),d=(0,s.D$)({attributeName:"loadMoreButtonGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",
6420 +unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),u=(0,s.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:10,hasUnit:!1,copyStyle:!0}),p=(0,s.D$)({attributeName:"animationDuration",isResponsive:!1,defaultValue:700,copyStyle:!0}),m={block_id:{type:"string"},blockVersion:{type:"number",default:""},filterList:{type:"array",default:[{id:0,text:"All",isActive:!0},{id:1,text:"Item 01",isActive:!1}]},filterableCardsNumbers:{type:"number",default:"5",copyStyle:!0},enableFilter:{types:"boolean",default:!0,copyStyle:!0},layout:{type:"string",default:"filter"},searchNotFoundText:{type:"string",default:"No items Found"},animation:{type:"string",default:"fade-in"},filterButtonColor:{type:"string",default:"",copyStyle:!0},filterButtonColorH:{type:"string",default:"",copyStyle:!0},...c,...u,gridColumns:{types:"number",default:"2"},gridStyle:{type:"string",default:"grid"},searchMenuColor:{type:"string",default:"",copyStyle:!0},searchMenuColorH:{
6421 +type:"string",default:"",copyStyle:!0},searchMenuBackground:{type:"string",default:"",copyStyle:!0},searchMenuBackgroundH:{type:"string",default:"",copyStyle:!0},searchMenuTransition:{type:"number",default:""},searchPlaceHolder:{type:"string",default:"search..."},cardHeight:{type:"number",default:""},filterButtonBackground:{type:"string",default:"",copyStyle:!0},filterButtonBackgroundH:{type:"string",default:"",copyStyle:!0},filterButtonTransition:{type:"number",default:0,copyStyle:!0},itemShows:{type:"number",default:6,copyStyle:!0},activeClassColor:{type:"string",default:"#13191B",copyStyle:!0},activeClassBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButton:{type:"boolean",default:"false",copyStyle:!0},moreButtonAlignment:{type:"string",default:"center",copyStyle:!0},loadMoreButtonText:{type:"string",default:"Show More",copyStyle:!0},loadMoreButtonTextColor:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonTextColorH:{type:"string",default:"#fff",
6422 +copyStyle:!0},loadMoreButtonBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonBackgroundH:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonTransition:{type:"number",default:"",copyStyle:!0},dataPerPageShow:{type:"number",default:"6"},noMoreItemsText:{type:"string",default:"No More Items!"},...(0,r.D$)("filterAlignment",!0,{value:"Center"}),...o.Ay,...(0,a.D$)("filterButtonTypography",!0),...(0,l.D$)("filterButtonBorder",!0),...(0,l.D$)("activeClassBorder",!0),...(0,n.D$)("filterButtonMargin",!0),...(0,n.D$)("filterButtonPadding",!0),...(0,n.D$)("searchMenuMargin",!0),...(0,n.D$)("searchMenuPadding",!0),...(0,l.D$)("searchMenuBorder",!0),...(0,a.D$)("moreButtonTypography",!0),...(0,n.D$)("moreButtonPadding",!0),...(0,l.D$)("moreButtonBorder",!0),...(0,b.D$)("moreButtonboxShadow")}},14745(t,e,i){"use strict";i.d(e,{A:()=>c,n:()=>b});var o=i(43271),a=i(21993),l=i(2489),n=i(74411),s=i(16867),r=i(88554);const b=(0,i(42377).D$)({
6423 +attributeName:"highlightStrokeWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isAnimated:{type:"boolean",default:!1},heading:{type:"string",source:"html",selector:".ablocks-heading-text"},headingTag:{type:"string",default:"h2"},textColor:{type:"string",default:"",copyStyle:!0},titleSource:{type:"string",default:""},animationType:{type:"string",default:"highlighted"},animationStyle:{type:"string",default:"highlighter-circle"},startingText:{type:"string",default:""},animatedText:{type:"string",default:"Animated"},endingText:{type:"string",default:""},highlightColor:{type:"string",default:"#ff000e"},highlightDuration:{type:"number",default:2e3},isInfiniteLoop:{type:"boolean",default:!0},highlightDelay:{type:"number",default:1e3},animatedTextColor:{type:"string",default:"",copyStyle:!0},...b,...(0,a.D$)("alignment",!0,{value:"left"}),...(0,
6424 +l.D$)("typography",!0),...(0,n.D$)("textShadow"),...(0,r.D$)("link"),...(0,s.D$)("textStroke",!0),...o.Ay}},60980(t,e,i){"use strict";i.d(e,{Ay:()=>c,cW:()=>b,eK:()=>r,gR:()=>s});var o=i(43271),a=i(42377),l=i(77168);const n=(0,a.D$)({attributeName:"sliderPosition",isResponsive:!1,defaultValue:50,copyStyle:!0}),s=(0,a.D$)({attributeName:"sliderBarSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:4,copyStyle:!0}),r=(0,a.D$)({attributeName:"sliderIconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,copyStyle:!0}),b=(0,a.D$)({attributeName:"sliderIconBorderSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:2,copyStyle:!0}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},beforeImage:{type:"string",default:""},afterImage:{type:"string",default:""},...n,sliderOrientation:{type:"string",default:"horizontal",copyStyle:!0},showLabels:{type:"boolean",default:!1,copyStyle:!0},labelPosition:{type:"number",default:45,copyStyle:!0
6425 +},labelBgColor:{type:"string",default:"rgba(0, 0, 0, 0.5)",copyStyle:!0},labelTextColor:{type:"string",default:"white",copyStyle:!0},labelWithOverlay:{type:"boolean",default:!1,copyStyle:!0},labelOverlayColor:{type:"string",default:"rgba(0, 0, 0, 0.5)",copyStyle:!0},...(0,l.D$)("labelBorder",!0),labelOnHover:{type:"boolean",default:!1,copyStyle:!0},beforeImageLabel:{type:"string",default:"Before"},afterImageLabel:{type:"string",default:"After"},showHandle:{type:"boolean",default:!0,copyStyle:!0},moveOnHover:{type:"boolean",default:!1,copyStyle:!0},...s,...r,...b,handleColor:{type:"string",default:"white",copyStyle:!0},swapImages:{type:"boolean",default:!1},...o.Ay}},4851(t,e,i){"use strict";i.d(e,{A:()=>n,Q:()=>l});var o=i(80241),a=i(77168);const l=(0,i(42377).D$)({attributeName:"contentWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),n={block_id:{type:"string"},hotspotId:{type:"number",default:0},backgroundColor:{
6426 +type:"string",default:"",copyStyle:!0},...l,...(0,o.D$)("contentPadding",!0),...(0,a.D$)("contentBorder",!0)}},50782(t,e,i){"use strict";i.d(e,{A:()=>c,P:()=>b});var o=i(43271),a=i(80241),l=i(77168),n=i(42377),s=i(80554),r=i(27723);const b=(0,n.D$)({attributeName:"childWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:{}},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9",copyStyle:!0},pinColorEffect:{type:"string",default:"#d9d9d9",copyStyle:!0},pinHoverColor:{type:"string",default:"#d9d9d9",copyStyle:!0},pinSize:{type:"number",default:15,copyStyle:!0},pinHoverSize:{type:"number",default:1.5,copyStyle:!0},pinIconColor:{type:"string",default:"#ffffff",copyStyle:!0},pinIconSize:{type:"number",
6427 +default:60,copyStyle:!0},lists:{type:"array",default:[{id:0,text:(0,r.__)("Your title here 0","ablocks"),xAxis:35,yAxis:32,xAxisTab:30,yAxisTab:28,xAxisMob:22,yAxisMob:16,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite",copyStyle:!0},contentAnimation:{type:"string",default:"ablocks-hotspot-fadeIn",copyStyle:!0},contentTrigger:{type:"string",default:"onClick",copyStyle:!0},contentPosition:{type:"string",default:"bottom",copyStyle:!0},backgroundColor:{type:"string",default:"white",copyStyle:!0},...b,...(0,a.D$)("commonChildPadding",!0),...(0,l.D$)("commonChildBorder",!0),...(0,s.D$)("commonBoxShadow",!0),...o.Ay}},11276(t,e,i){"use strict";i.d(e,{Ay:()=>f,IV:()=>b,aY:()=>g,ke:()=>u,md:()=>p,oF:()=>d,yy:()=>h,zE:()=>c});var o=i(43271),a=i(77168),l=i(21993),n=i(42314),s=i(42377),r=i(88554);const b=(0,s.D$)({attributeName:"iconFontSize",attributeObjectKey:"value",
6428 +isResponsive:!0,defaultValue:36,defaultValueTablet:24,defaultValueMobile:16,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c=(0,s.D$)({attributeName:"scrollHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:200,copyStyle:!0}),d=(0,s.D$)({attributeName:"scrollWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),u=(0,s.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),p=(0,s.D$)({attributeName:"opacityH",defaultValue:"",copyStyle:!0}),m=(0,s.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),h=(0,s.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),g={imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},f={block_id:{type:"string",
6429 +default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imageDataAttribute:{type:"object",default:{}},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""},copyStyle:!0},...c,...d,...u,...p,...b,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}},widthHeightWidget:{type:"object",default:g,copyStyle:!0},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},position:{type:"string",default:"below",copyStyle:!0},imgAltText:{type:"string",default:""},imgTitle:{type:"string",
6430 +default:""},transitionTime:{type:"number",default:3},showNotice:{type:"boolean",default:!1},showOverlay:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!1},overlayColor:{type:"string",default:"#0202024C"},iconColor:{type:"string",default:""},...m,...h,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,n.D$)("cssFilter"),...(0,n.D$)("cssHoverFilter"),...(0,a.D$)("border",!0),...(0,r.D$)("link"),...o.Ay}},1168(t,e,i){"use strict";i.d(e,{Ay:()=>g,aY:()=>h,ke:()=>d,md:()=>u,yy:()=>m});var o=i(43271),a=i(77168),l=i(21993),n=i(80241),s=i(2489),r=i(42314),b=i(80554),c=i(42377);const d=(0,c.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),u=(0,c.D$)({attributeName:"opacityH",defaultValue:"",copyStyle:!0}),p=(0,c.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),m=(0,c.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),h={imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",
6431 +imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""},copyStyle:!0},imageDataAttribute:{type:"object",default:{}},...d,...u,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},widthHeightWidget:{type:"object",default:h,copyStyle:!0},objectFit:{type:"object",
6432 +default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},imgCaption:{type:"boolean",default:!1},position:{type:"string",default:"below",copyStyle:!0},caption:{type:"string",default:""},captionBackground:{type:"string",default:"",copyStyle:!0},captionColor:{type:"string",default:"",copyStyle:!0},imgLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",linkClass:""}},imgAltText:{type:"string",default:""},onHoverImg:{type:"string",default:"static",copyStyle:!0},imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},...p,...m,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("captionAlignment",!0,{value:"left"}),...(0,r.D$)("cssFilter"),...(0,r.D$)("cssHoverFilter"),...(0,b.D$)("boxShadow"),...(0,s.D$)("captionTypography",!0),...(0,l.D$)("captionPosition",!0),...(0,n.D$)("captionPadding",!0),...(0,a.D$)("captionBorder",!0),...(0,a.D$)("border",!0),...o.Ay}},91353(t,e,i){"use strict";i.d(e,{c8:()=>k,Ay:()=>v,AZ:()=>x})
6433 +;var o=i(43271),a=i(21993),l=i(42377),n=i(2489),s=i(74411),r=i(80241),b=i(77168),c=i(27723);const d={badgeText:{type:"string",default:(0,c.__)("Featured","ablocks")},badgeSize:{type:"string",default:"xs",copyStyle:!0},badgeTextColor:{type:"string",default:"#13191B",copyStyle:!0},badgeTextColorH:{type:"string",default:"",copyStyle:!0},badgeBackground:{type:"string",default:"#DDDDDF",copyStyle:!0},badgeBackgroundH:{type:"string",default:"",copyStyle:!0},badgeTransition:{type:"number",default:"",copyStyle:!0},...(0,a.D$)("badgePosition",!0,{value:"top-right",valueTablet:"top-right",valueMobile:"top-right"}),...(0,a.D$)("badgeAlignment",!0,{value:"center"}),...(0,n.D$)("badgeTypography",!0,{fontFamily:"Roboto",weight:"400",fontSize:"12"}),...(0,s.D$)("badgeTextShadow"),...(0,r.D$)("badgePadding",!0),...(0,b.D$)("badgeBorder",!0)};var u=i(68761),p=i(88554);const m={btnText:{type:"string",default:(0,c.__)("Learn More","ablocks")},btnSize:{type:"string",default:"sm",copyStyle:!0},
6434 +btnTextColor:{type:"string",default:"#FAFAFA",copyStyle:!0},btnTextColorH:{type:"string",default:"",copyStyle:!0},btnBackground:{type:"string",default:"#13191B",copyStyle:!0},btnBackgroundH:{type:"string",default:"",copyStyle:!0},btnTransition:{type:"number",default:"",copyStyle:!0},btnIconPosition:{type:"string",default:"right",copyStyle:!0},btnIconSpace:{type:"number",default:10,copyStyle:!0},btnShowIcon:{type:"boolean",default:!0,copyStyle:!0},...(0,u.D$)("btnIcon",{size:20,color:"#FAFAFA",path:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z",viewBox:"0 0 448 512",className:"fas fa-arrow-right",hasNoSelectorOrSource:!0}),...(0,p.D$)("btnLink"),...(0,a.D$)("btnAlignment",!0,{value:"center"}),...(0,n.D$)("btnTypography",!0),...(0,s.D$)("btnTextShadow"),...(0,r.D$)("btnPadding",!0),
6435 +...(0,r.D$)("btnMargin",!0),...(0,b.D$)("btnBorder",!0)};var h=i(16867);const g={heading:{type:"string",source:"html",selector:".ablocks-info-box-heading",default:(0,c.__)("Your Info Box Title","ablocks")},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B",copyStyle:!0},headingTextColorHover:{type:"string",default:"",copyStyle:!0},headingTransition:{type:"number",default:"",copyStyle:!0},...(0,n.D$)("headingTypography",!0,{fontFamily:"Roboto",weight:"600"}),...(0,r.D$)("headingMargin",!0),...(0,s.D$)("headingTextShadow"),...(0,h.D$)("headingTextStroke",!0)},f={iconPrimaryColorH:{type:"string",default:"",copyStyle:!0},iconBackgroundColorH:{type:"string",default:"",copyStyle:!0},iconTransition:{type:"number",default:"",copyStyle:!0},...(0,u.D$)("icon",{color:"#000000",hasNoSelectorOrSource:!0}),...(0,r.D$)("iconMargin",!0),...(0,p.D$)("iconLink"),...(0,a.D$)("iconAlignment",!0)},y={des:{type:"string",source:"html",selector:".ablocks-info-box-text",
6436 +default:(0,c.__)("Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!","ablocks")},desDropCaps:{type:"boolean",default:!1,copyStyle:!0},desDropCapsTextColor:{type:"string",default:"#0f2aff",copyStyle:!0},desGraphSize:{type:"string",default:"sm",copyStyle:!0},desTextColor:{type:"string",default:"#595959",copyStyle:!0},desTextColorHover:{type:"string",default:"",copyStyle:!0},desTransition:{type:"number",default:"",copyStyle:!0},...(0,n.D$)("desTypography",!0,{fontFamily:"Roboto",weight:"400"}),...(0,r.D$)("desMargin",!0),...(0,s.D$)("desTextShadow"),...(0,h.D$)("desTextStroke",!0)};var T=i(34415);const H={subHeading:{type:"string",source:"html",selector:".ablocks-info-box-sub-heading",default:(0,c.__)("Your Info Box Sub Title","ablocks")},subHeadingTag:{type:"string",default:"h3"},subHeadingTextColor:{type:"string",default:"#13191B",copyStyle:!0},subHeadingTextColorHover:{type:"string",default:"",copyStyle:!0},
6437 +subHeadingTransition:{type:"number",default:"",copyStyle:!0},...(0,n.D$)("subHeadingTypography",!0,{fontFamily:"Roboto",weight:"500"}),...(0,r.D$)("subHeadingMargin",!0),...(0,s.D$)("subHeadingTextShadow"),...(0,h.D$)("subHeadingTextStroke",!0)};var M=i(90198);const x=(0,l.D$)({attributeName:"iconGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),k=(0,l.D$)({attributeName:"contentGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),v={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},blockElements:{type:"array",default:[{id:0,slug:"heading"},{id:1,slug:"sub-heading"},{id:2,slug:"description"},{id:3,slug:"rating"},{id:4,slug:"button"}]},...x,...k,allowBadgeHover:{type:"boolean",default:!1,copyStyle:!0},allowButtonHover:{type:"boolean",default:!1,copyStyle:!0},allowBadge:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!0},
6438 +allowHeading:{type:"boolean",default:!0},allowSubHeading:{type:"boolean",default:!1},allowDes:{type:"boolean",default:!0},allowRating:{type:"boolean",default:!1},allowButton:{type:"boolean",default:!0},...d,...f,...g,...H,...y,...m,...T.Ay,...(0,a.D$)("alignment",!0),stack:{type:"string",default:""},...(0,M.D$)("iconPlacement",!0,{value:""}),...o.Ay}},34415(t,e,i){"use strict";i.d(e,{Ay:()=>b,CB:()=>s,ZO:()=>r});var o=i(68761),a=i(42377),l=i(2489),n=i(80241);const s=(0,a.D$)({attributeName:"spacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),r=(0,a.D$)({attributeName:"ratingNumberGap",attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,copyStyle:!0}),b={ratingScale:{type:"number",default:5},...(0,a.D$)({attributeName:"rating",isResponsive:!1,defaultValue:4,copyStyle:!0}),ratingColor:{type:"string",default:"#e99516",copyStyle:!0},ratingColorHover:{type:"string",default:"",copyStyle:!0},
6439 +ratingUnmarkedColor:{type:"string",default:"#696969",copyStyle:!0},ratingUnmarkedColorHover:{type:"string",default:"",copyStyle:!0},ratingTransition:{type:"number",default:"",copyStyle:!0},ratingShowCount:{type:"bool",default:!0},showRatingNumber:{type:"bool",default:!0},showCount:{type:"bool",default:!0},ratingNumberColor:{type:"string",default:"#000000",copyStyle:!0},ratingNumberPosition:{type:"string",default:"right",copyStyle:!0},...r,...s,...(0,o.D$)("starIcon",{path:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z",viewBox:"0 0 576 512",className:"far fa-star",hasNoSelectorOrSource:!0}),...(0,n.D$)("ratingMargin",!0),...(0,l.D$)("ratingNumberTypography",!0)}},
6440 +48396(t,e,i){"use strict";i.d(e,{AF:()=>d,Ay:()=>g,Qi:()=>h,RK:()=>c,VA:()=>m,VL:()=>p,p9:()=>u});var o=i(43271),a=i(80241),l=i(2489),n=i(21993),s=i(77168),r=i(42377),b=i(90198);const c=(0,r.D$)({attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),d=(0,r.D$)({attributeName:"textIndent",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,defaultValueTablet:8,defaultValueMobile:8,copyStyle:!0}),u=(0,r.D$)({attributeName:"spaceBetween",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,defaultValueTablet:20,defaultValueMobile:20,copyStyle:!0}),p=(0,r.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,r.D$)({attributeName:"weight",attributeObjectKey:"value",isResponsive:!0,defaultValue:5,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,r.D$)({attributeName:"markerSize",attributeObjectKey:"value",
6441 +isResponsive:!0,defaultValue:10,hasUnit:!1,copyStyle:!0}),g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},markerType:{type:"string",default:"icon",copyStyle:!0},markerColor:{type:"string",default:"",copyStyle:!0},...h,emoji:{type:"string",default:"✍",copyStyle:!0},iconColor:{type:"string",default:"#000000",copyStyle:!0},lists:{type:"array",default:[{id:0,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1}]},listIconsClasses:{type:"array",default:[],copyStyle:!0},listIcons:{type:"array",selector:"svg.ablocks-svg-icon",source:"query",query:{viewBox:{type:"string",source:"attribute",attribute:"viewBox"},path:{type:"string",selector:"path",source:"attribute",attribute:"d"}},copyStyle:!0},iconType:{type:"string",default:"default",copyStyle:!0},iconShape:{type:"string",default:"circle",copyStyle:!0},...c,iconBackground:{type:"boolean",default:!1,
6442 +copyStyle:!0},iconBackgroundColor:{type:"string",default:"",copyStyle:!0},textColor:{type:"string",default:"#000000",copyStyle:!0},...d,...u,belowItem:{type:"number",default:0,copyStyle:!0},divider:{type:"boolean",default:!1,copyStyle:!0},dividerPatternUrl:{type:"string",default:"solid",copyStyle:!0},...p,...m,borderColor:{type:"string",default:"#000000",copyStyle:!0},...(0,n.D$)("position",!0,{value:"center"}),...(0,n.D$)("horizontalAlignment",!0,{value:"flex-start"}),...(0,b.D$)("stack",!1,{value:"vertical"}),...(0,b.D$)("verticalAlignmentment",!1,{value:"flex-start"}),...(0,a.D$)("padding",!1),...(0,s.D$)("border",!0),...(0,l.D$)("typography",!0),...o.Ay}},88297(t,e,i){"use strict";i.d(e,{Ay:()=>p,P6:()=>u,Yn:()=>d});var o=i(43271),a=i(42377),l=i(21993),n=i(2489),s=i(77168),r=i(74411),b=i(16867),c=i(90198);const d=(0,a.D$)({attributeName:"avatarWidth",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:40,copyStyle:!0}),u=(0,a.D$)({
6443 +attributeName:"avatarHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:40,copyStyle:!0}),p={block_id:{type:"string"},blockVersion:{type:"number",default:2},logoutRedirect:{type:"string",default:"current-url"},logoutCustomUrl:{type:"string",default:""},loginRedirect:{type:"string",default:"current-url"},loginCustomUrl:{type:"string",default:""},logOutLabel:{type:"string",default:"Logout"},logInLabel:{type:"string",default:"Login"},isRedirect:{type:"boolean",default:!0},isShowAvatar:{type:"boolean",default:!1},logOutLabelColor:{type:"string",default:"",copyStyle:!0},logOutLabelBgColor:{type:"string",default:""},isShowName:{type:"boolean",default:!1},nameColor:{type:"string",default:"",copyStyle:!0},...u,...d,...o.Ay,...(0,l.D$)("labelAlignment",!0,{value:"flex-start"}),...(0,c.D$)("direction",!0,{value:"row"}),...(0,s.D$)("avatarBorder",!0),...(0,n.D$)("nameTypography",!0),...(0,r.D$)("nameTextShadow"),...(0,b.D$)("nameTextStroke",!0),...(0,
6444 +n.D$)("labelTypography",!0),...(0,r.D$)("labelTextShadow"),...(0,b.D$)("labelTextStroke",!0)}},41607(t,e,i){"use strict";i.d(e,{A:()=>o});const o={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},selectedVariation:{type:"string",default:""},showOffset:{type:"boolean",default:!1},...i(43271).Ay}},5230(t,e,i){"use strict";i.d(e,{A:()=>d,f:()=>c});var o=i(43271),a=i(42377),l=i(21993),n=i(90198),s=i(2489),r=i(77168),b=i(80241);const c=(0,a.D$)({attributeName:"FilterBtnGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px"}),d={block_id:{type:"string",default:""},taxonomy:{type:"string",default:"category"},taxonomy_term_items:{type:"array",default:[]},filterBtnTextColor:{
6445 +type:"string",default:"#000000",copyStyle:!0},filterBtnBgColor:{type:"string",default:"#F4F4F5",copyStyle:!0},activeBtnTextColor:{type:"string",default:"#FFFFFF",copyStyle:!0},activeBtnBgColor:{type:"string",default:"#000000",copyStyle:!0},...(0,n.D$)("buttonAlignment",!1,{value:"row"}),...(0,l.D$)("filterBtnAlignment",!1,{value:"center"}),...(0,l.D$)("rowAlignBtn",!1,{value:"center"}),...(0,s.D$)("typography",!0),...c,...o.Ay,...(0,r.D$)("filterBtnBorder",!0),...(0,r.D$)("activeBtnBorder",!0),...(0,b.D$)("filterButtonMargin",!0),...(0,b.D$)("filterButtonPadding",!0)}},4788(t,e,i){"use strict";i.d(e,{A:()=>d,i:()=>c});var o=i(43271),a=i(42377),l=i(2489),n=i(77168),s=i(80241),r=i(21993),b=i(80554);const c=(0,a.D$)({attributeName:"loadMoreButtonGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),d={block_id:{type:"string"},taxonomy:{type:"string",default:"category"},loadMoreButtonText:{type:"string",default:"Load More",
6446 +copyStyle:!0},noMoreItemsText:{type:"string",default:"No More Items!"},moreButtonAlignment:{type:"string",default:"center",copyStyle:!0},loadMoreButtonTextColor:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonTextColorH:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonBackgroundH:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonTransition:{type:"number",default:"",copyStyle:!0},...c,...(0,r.D$)("filterAlignment",!0,{value:"Center"}),...o.Ay,...(0,l.D$)("moreButtonTypography",!0),...(0,s.D$)("moreButtonPadding",!0),...(0,n.D$)("moreButtonBorder",!0),...(0,b.D$)("moreButtonboxShadow")}},62882(t,e,i){"use strict";i.d(e,{Ay:()=>r,E4:()=>s,Qk:()=>n});var o=i(42377),a=i(77168),l=i(80241);const n=(0,o.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:20,hasUnit:!1,copyStyle:!0}),s=(0,o.D$)({attributeName:"templateGridColumns",
6447 +attributeObjectKey:"value",isResponsive:!0,defaultValue:2,defaultValueTablet:2,defaultValueMobile:1,hasUnit:!1,unitDefaultValue:"",copyStyle:!0}),r={block_id:{type:"string"},gridColumns:{type:"number",default:2},...s,bgColor:{type:"string",default:"",copyStyle:!0},...n,gridStyle:{type:"string",default:"grid"},...(0,a.D$)("border",!0),...(0,l.D$)("padding",!1)}},18057(t,e,i){"use strict";i.d(e,{AK:()=>r,Ay:()=>b,VZ:()=>s});var o=i(43271),a=i(42377),l=i(42314),n=i(68761);const s=(0,a.D$)({attributeName:"mapWidth",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",defaultValue:100,copyStyle:!0}),r=(0,a.D$)({attributeName:"mapHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:500,copyStyle:!0}),b={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},mapMarkerList:{type:"array",default:[{content:"",customIconHeight:40,customIconUrl:"",customIconWidth:25,iconType:"default",id:0,isDefault:!0,
6448 +isOpen:!0,label:"Jhenaidah",lat:"23.5433525",lng:"89.1696229",title:"Jhenaidah"}],copyStyle:!0},mapZoom:{type:"number",default:10,copyStyle:!0},mapType:{type:"string",default:"GM",copyStyle:!0},...s,...r,scrollWheelZoom:{type:"boolean",default:!1,copyStyle:!0},centerIndex:{type:"number",default:0,copyStyle:!0},iconHeight:{type:"number",default:40},iconWidth:{type:"number",default:25},...(0,n.D$)("icon",{path:"M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z",viewBox:"0 0 512 512",className:"",size:20}),...o.Ay,...(0,l.D$)("cssFilter")}},
6449 +46804(t,e,i){"use strict";i.d(e,{AW:()=>o,Dc:()=>l,GM:()=>a,I3:()=>s,j0:()=>r,sg:()=>n});const o="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",a="https://maps.googleapis.com/maps/vt?pb=!1m5!1m4!1i{z}!2i{x}!3i{y}!4i256!2m3!1e0!2sm!3i349018013!3m9!2sen-US!3sUS!5e18!12m1!1e47!12m3!1e37!2m1!1ssmartmaps!4e0",l="https://maps.googleapis.com/maps/vt?lyrs=s&x={x}&y={y}&z={z}&key=YOUR_API_KEY",n=(t,e)=>{let i=null;return function(...o){const a=this;i&&clearTimeout(i),i=setTimeout(()=>t.apply(a,o),e)}},s=(t,e)=>{if(t&&t?.length){const i=t[t[e]?e:0];return{lat:i?.lat,lng:i?.lng}}return{lat:0,lng:0}},r=t=>({mapMarkerList:(t?.map_marker_list||[]).map((t,e)=>({id:t?.id||e,label:t?.title||`Marker ${e+1}`,lat:"",lng:"",title:"Marker",content:"",iconType:"default",customIconUrl:"",customIconWidth:25,customIconHeight:40,isOpen:!0,...t})),mapZoom:t?.map_zoom,mapType:t?.map_type,scrollWheelZoom:t?.scroll_wheel_zoom,centerIndex:t?.center_index})},23731(t,e,i){"use strict";i.d(e,{Ay:()=>s,GA:()=>n})
6450 +;var o=i(43271),a=i(42377);const l=(0,a.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,unitDefaultValue:"px",defaultValue:12,copyStyle:!0}),n=(0,a.D$)({attributeName:"marqueeHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:200,copyStyle:!0}),s={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},marqueeSlideLength:{type:"number",default:0},pauseOnHover:{type:"boolean",default:!0},marqueeDirection:{type:"string",default:"left"},marqueeSpeed:{type:"number",default:10},loop:{type:"boolean",default:!1},loopCount:{type:"number",default:2},enableShadow:{type:"boolean",default:!0},...l,...n,...o.Ay}},91664(t,e,i){"use strict";i.d(e,{Ay:()=>s,VL:()=>l,qZ:()=>a});var o=i(42377);const a=(0,o.D$)({attributeName:"positionX",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,copyStyle:!0}),l=(0,o.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,
6451 +unitDefaultValue:"%",hasUnit:!0,copyStyle:!0}),n=(0,o.D$)({attributeName:"height",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",hasUnit:!0,copyStyle:!0}),s={block_id:{type:"string",default:""},...a,...l,...n}},46890(t,e,i){"use strict";i.d(e,{A:()=>c,V:()=>b});var o=i(80241),a=i(42377),l=i(2489),n=i(77168),s=i(80554),r=i(90198);const b=(0,a.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c={block_id:{type:"string",default:""},...b,position:{type:"string",default:"top-right"},background:{type:"string",default:"white",copyStyle:!0},...(0,o.D$)("padding",!0),...(0,s.D$)("boxShadow",!0),...(0,n.D$)("border",!0),menuItemTextColor:{type:"string",default:"#000000",copyStyle:!0},menuItemTextColorH:{type:"string",default:"#000000",copyStyle:!0},menuItemBackground:{type:"string",default:"",copyStyle:!0},menuItemBackgroundH:{type:"string",default:"",copyStyle:!0},menuItemTransition:{type:"number",default:0,
6452 +copyStyle:!0},menuItemAlign:{type:"string",default:"",copyStyle:!0},menuItemAlignTablet:{type:"string",default:"",copyStyle:!0},menuItemAlignMobile:{type:"string",default:"",copyStyle:!0},menuItemDirection:{type:"string",default:"row",copyStyle:!0},menuItemDirectionTablet:{type:"string",default:"",copyStyle:!0},menuItemDirectionMobile:{type:"string",default:"",copyStyle:!0},menuItemJustify:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyTablet:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyMobile:{type:"string",default:"space-between",copyStyle:!0},...(0,r.D$)("menuItemJustification",!0,{value:"space-between"}),...(0,l.D$)("menuItemTypography",!0),...(0,o.D$)("menuItemPadding",!0),...(0,o.D$)("menuItemMargin",!0),...(0,n.D$)("menuItemBorder",!0)}},80952(t,e,i){"use strict";i.d(e,{A:()=>n,e:()=>l});var o=i(88554),a=i(68761);const l=(0,i(42377).D$)({attributeName:"iconSpace",attributeObjectKey:"value",isResponsive:!0,defaultValue:8,hasUnit:!0,
6453 +unitDefaultValue:"px",copyStyle:!0}),n={block_id:{type:"string",default:""},label:{type:"string",default:"Menu"},isSubMenu:{type:"boolean",default:!1},hasMegaMenu:{type:"boolean",default:!1},hasLink:{type:"boolean",default:!1},link:{type:"string",default:"#"},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},...(0,o.D$)("link"),...(0,a.D$)("icon",{size:16,color:"",hasNoSelectorOrSource:!0}),...l}},60690(t,e,i){"use strict";i.d(e,{Ay:()=>u,JH:()=>c,km:()=>d,wP:()=>b});var o=i(80241),a=i(2489),l=i(77168),n=i(80554),s=i(42377),r=i(43271);const b=(0,s.D$)({attributeName:"hamburgerWidth",isResponsive:!1,defaultValue:30,copyStyle:!0,hasUnit:!0,unitDefaultValue:"px"}),c=(0,s.D$)({attributeName:"hamburgerHeight",isResponsive:!1,defaultValue:3,unitDefaultValue:"px",hasUnit:!0}),d=(0,s.D$)({attributeName:"subMenuWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:250,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),u={block_id:{type:"string",default:""},
6454 +blockVersion:{type:"number",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""},copyStyle:!0},...(0,o.D$)("padding",!0),...(0,n.D$)("boxShadow",!0),menuItemTextColor:{type:"string",default:"#000000",copyStyle:!0},menuItemTextColorH:{type:"string",default:"",copyStyle:!0},menuItemBackground:{type:"string",default:"",copyStyle:!0},menuItemBackgroundH:{type:"string",default:"",copyStyle:!0},menuItemTransition:{type:"number",default:0,copyStyle:!0},menuItemDisplay:{type:"string",default:"inline"},sideBarMenuDevice:{type:"string",default:"mobile"},enableTabletHamburger:{type:"boolean",default:!1},subMenuTrigger:{type:"string",default:"hover"},mobileMenuPosition:{type:"string",default:"below-header"},...b,...c,hamburgerAlignment:{type:"string",default:"left",copyStyle:!0},hamburgerColor:{type:"string",default:"black",copyStyle:!0},hamburgerBackground:{type:"string",default:"",copyStyle:!0},menuResponsiveBackground:{type:"string",copyStyle:!0},
6455 +menuResponsiveTextColor:{type:"string",copyStyle:!0},subMenuResponsiveColor:{type:"string",default:"",copyStyle:!0},subMenuResponsiveBg:{type:"string",default:"",copyStyle:!0},subMenuItemTextColor:{type:"string",default:"",copyStyle:!0},subMenuItemBackground:{type:"string",default:"",copyStyle:!0},subMenuItemTextColorH:{type:"string",default:"",copyStyle:!0},subMenuItemBackgroundH:{type:"string",default:"",copyStyle:!0},subMenuItemTransition:{type:"number",default:0,copyStyle:!0},menuActveColor:{type:"string",default:"",copyStyle:!0},menuActveColorBg:{type:"string",default:"",copyStyle:!0},...(0,o.D$)("hamburgerPadding",!0),...(0,a.D$)("menuItemTypography",!0),...(0,o.D$)("menuItemPadding",!0),...(0,o.D$)("menuItemMargin",!0),...(0,l.D$)("menuItemBorder",!0),...(0,l.D$)("hamburgerBorder",!0),...(0,o.D$)("subMenuPadding",!0),...(0,n.D$)("subMenuBoxShadow",!0),...(0,l.D$)("subMenuBorder",!0),...r.Ay}},74196(t,e,i){"use strict";i.d(e,{Ay:()=>g,j_:()=>d,mF:()=>u})
6456 +;var o=i(43271),a=i(42377),l=i(80241),n=i(57654),s=i(77168),r=i(80554),b=i(90198);const c=(0,a.D$)({attributeName:"popupTopOffset",isResponsive:!1,defaultValue:0,copyStyle:!0}),d=(0,a.D$)({attributeName:"panelWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),u=(0,a.D$)({attributeName:"panelHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),p=(0,a.D$)({attributeName:"autoTriggerTime",isResponsive:!1,defaultValue:0,copyStyle:!0}),m=(0,a.D$)({attributeName:"closeBtnTop",isResponsive:!1,defaultValue:5,hasUnit:!1,copyStyle:!0}),h=(0,a.D$)({attributeName:"closeBtnSide",isResponsive:!1,defaultValue:5,hasUnit:!1,copyStyle:!0}),g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},popupOnTop:{type:"boolean",default:!1,copyStyle:!0},disableCloseButton:{type:"boolean",default:!1},useHoverTrigger:{type:"boolean",default:!1},enableAutoTriggerTimer:{
6457 +type:"boolean",default:!1},showAutoOnce:{type:"boolean",default:!1,copyStyle:!0},showOnMouseOutOfWindow:{type:"boolean",default:!1,copyStyle:!0},backdropColor:{type:"string",default:"#000000b3",copyStyle:!0},closeBtnBackgroundColor:{type:"string",default:"",copyStyle:!0},closeBtnColor:{type:"string",default:"",copyStyle:!0},noTrigger:{type:"boolean",default:!1,copyStyle:!0},...p,...c,...d,...u,...m,...h,...(0,b.D$)("openPanel",!1,{value:"close"}),...(0,b.D$)("popupPosition",!1,{value:"popup"}),...(0,b.D$)("panelBlockPosition",!1,{value:"bottom"}),...(0,b.D$)("panelContentPosition",!1,{value:"auto"}),...(0,b.D$)("closePosition",!1,{value:"right"}),...(0,l.D$)("panelPadding",!0),...(0,n.D$)("panelBackground"),...(0,s.D$)("panelBorder",!0),...(0,r.D$)("panelShadow",!0),...o.Ay}},56027(t,e,i){"use strict";i.d(e,{Ay:()=>c,Ez:()=>b,id:()=>r});var o=i(43271),a=i(2489),l=i(74411),n=i(16867),s=i(42377);const r=(0,s.D$)({attributeName:"labelPadding",attributeObjectKey:"value",isResponsive:!0,
6458 +hasUnit:!0,unitDefaultValue:"px",defaultValue:10,copyStyle:!0}),b=(0,s.D$)({attributeName:"tickerHeight",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",defaultValue:50,copyStyle:!0}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},stickyLabel:{type:"string",source:"text",selector:".ablocks-block-news-ticker__label",default:"Breaking News"},stickyLabelTag:{type:"string",default:"div",copyStyle:!0},labelPosition:{type:"string",default:"left",copyStyle:!0},queryType:{type:"string",default:"customText",copyStyle:!0},selectedPosts:{type:"array",default:[]},postLink:{type:"boolean",default:!1},selectedPages:{type:"array",default:[]},pageLink:{type:"boolean",default:!1},lists:{type:"array",default:[{id:0,text:"Stay updated with the latest trends!",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},isOpen:!1}]},markerType:{type:"string",default:"icon",copyStyle:!0},listIconsClasses:{
6459 +type:"array",default:[],copyStyle:!0},slideDirection:{type:"string",default:"ltr",copyStyle:!0},spaceBetweenItems:{type:"number",default:90},slideSpeed:{type:"number",default:2},labelColor:{type:"string",default:"white",copyStyle:!0},labelBackgroundColor:{type:"string",default:"black",copyStyle:!0},labelColorH:{type:"string",default:"",copyStyle:!0},labelBackgroundColorH:{type:"string",default:"",copyStyle:!0},labelColorTransition:{type:"number",default:"",copyStyle:!0},tickerColor:{type:"string",default:"black",copyStyle:!0},tickerColorH:{type:"string",default:"",copyStyle:!0},tickerBgColorH:{type:"string",default:"",copyStyle:!0},tickerColorTransition:{type:"number",default:"",copyStyle:!0},tickerBgColor:{type:"string",default:"#E5E5E6",copyStyle:!0},tickerType:{type:"string",default:"marquee"},...b,showTickerNavigator:{type:"boolean",default:!1},navigatorBgColor:{type:"string",default:""},navigatorColor:{type:"string",default:"#000000"},navigatorPosition:{type:"string",
6460 +default:"right"},tickerListStyle:{type:"string",default:"none",copyStyle:!0},isPauseOnOver:{type:"boolean",default:!0},isPositionSticky:{type:"boolean",default:!1},stickyPosition:{type:"string",default:"up"},isShowLabel:{type:"boolean",default:!0},tickerLabelShape:{type:"string",default:"normal"},...r,isShowTime:{type:"boolean",default:!1},...(0,a.D$)("labelTypography",!0),...(0,l.D$)("labelTextShadow"),...(0,n.D$)("labelTextStroke",!0),...(0,a.D$)("tickerTypography",!0),...(0,l.D$)("tickerTextShadow"),...(0,n.D$)("tickerTextStroke",!0),...o.Ay}},60273(t,e,i){"use strict";i.d(e,{A:()=>p,e:()=>u});var o=i(43271),a=i(21993),l=i(2489),n=i(74411),s=i(80241),r=i(77168),b=i(68761),c=i(88554),d=i(80554);const u=(0,i(42377).D$)({attributeName:"iconSpace",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),p={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Buy Now"},buttonType:{
6461 +type:"string",default:"#032e82",copyStyle:!0},buttonSize:{type:"string",default:"small",copyStyle:!0},textColor:{type:"string",default:"#000000",copyStyle:!0},textColorH:{type:"string",default:"",copyStyle:!0},background:{type:"string",default:"",copyStyle:!0},backgroundH:{type:"string",default:"",copyStyle:!0},transition:{type:"number",default:"",copyStyle:!0},iconPosition:{type:"string",default:"left",copyStyle:!0},paypalAccount:{type:"string",default:""},trxType:{type:"string",default:"_xclick"},itemName:{type:"string",default:""},sku:{type:"string",default:""},price:{type:"number",default:0},currency:{type:"string",default:""},quantity:{type:"number",default:1},shippingPrice:{type:"number",default:0},tax:{type:"number",default:0},isAmountFixed:{type:"boolean",default:!1},isAutoRenewal:{type:"boolean",default:!0},billingCycle:{type:"string",default:"M"},redirectionAfterPayment:{type:"string",default:""},sandboxMode:{type:"boolean",default:!1},sandboxEmail:{type:"string",default:""},
6462 +openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},...u,showIcon:{type:"boolean",default:!0,copyStyle:!0},...(0,b.D$)("icon",{size:16,className:"fab fa-paypal",path:"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z",viewBox:"0 0 384 512",iconType:"default"}),...(0,c.D$)("link"),...(0,a.D$)("position",!0,{value:"left"}),...(0,a.D$)("alignment",!0,{value:"left"}),...(0,
6463 +l.D$)("typography",!0),...(0,n.D$)("textShadow"),...(0,s.D$)("padding",!0),...(0,r.D$)("border",!0),...(0,d.D$)("boxShadow"),...o.Ay}},99512(t,e,i){"use strict";i.d(e,{$w:()=>b,Ay:()=>d,IK:()=>r,JA:()=>c,mX:()=>n,o4:()=>l,oF:()=>s});var o=i(43271),a=i(42377);const l=(0,a.D$)({attributeName:"youtubeIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),n=(0,a.D$)({attributeName:"youtubePlayPauseIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),s=(0,a.D$)({attributeName:"selfHostedIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),r=(0,a.D$)({attributeName:"selfHostedPlayIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),b=(0,a.D$)({attributeName:"vimeoIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),c=(0,a.D$)({attributeName:"vimeoPlayIconSize",isResponsive:!1,defaultValue:20,copyStyle:!0}),d={block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},...l,...n,...s,...r,...b,...c,videoSource:{type:"string",default:"youtube"},youtubeUrl:{
6464 +type:"string",default:"https://www.youtube.com/watch?v=Yu0HH5S-8RY&t=1s",copyStyle:!0},selfHostedUrl:{type:"string",default:"",copyStyle:!0},videoUrl:{type:"string",default:"",copyStyle:!0},audioUrl:{type:"string",default:"",copyStyle:!0},vimeoUrl:{type:"string",default:"https://vimeo.com/889428749",copyStyle:!0},videoStartTime:{type:"string",default:"",copyStyle:!0},videoEndTime:{type:"string",default:"",copyStyle:!0},youtubeUiColor:{type:"string",default:"",copyStyle:!0},youtubeProgressColor:{type:"string",default:"",copyStyle:!0},playerbgColor:{type:"string",default:"#0077CC",copyStyle:!0},selfVideoUiColor:{type:"string",default:"",copyStyle:!0},selfVideoProgressUiColor:{type:"string",default:"",copyStyle:!0},selfVideobgColor:{type:"string",default:"",copyStyle:!0},vimeoUiColor:{type:"string",default:"",copyStyle:!0},vimeoProgressUiColor:{type:"string",default:"",copyStyle:!0},vimeobgColor:{type:"string",default:""},posterImage:{type:"string",default:"",copyStyle:!0},autoplay:{
6465 +type:"boolean",default:!1},mute:{type:"boolean",default:!1},loop:{type:"boolean",default:!1},...o.Ay}},14120(t,e,i){"use strict";i.d(e,{Ay:()=>h,Ej:()=>p,VA:()=>u,VL:()=>d});var o=i(43271),a=i(21993),l=i(2489),n=i(93044),s=i(74411),r=i(68761),b=i(16867),c=i(42377);const d=(0,c.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:null,hasUnit:!0,unitDefaultValue:"",copyStyle:!0}),u=(0,c.D$)({attributeName:"weight",isResponsive:!1,defaultValue:null,copyStyle:!0}),p=(0,c.D$)({attributeName:"size",isResponsive:!1,defaultValue:null,copyStyle:!0}),m=(0,c.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!1,defaultValue:10,defaultValueMobile:3,defaultValueTablet:1,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h={block_id:{type:"string",default:""},device:{type:"string",default:""},itemsDirection:{type:"string",default:{value:"row",valueTablet:"row",valueMobile:"row"},copyStyle:!0},allowIcon:{type:"boolean",default:!0},allowDescription:{
6466 +type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"",copyStyle:!0},description:{type:"string",default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"",copyStyle:!0},placeDivider:{type:["string","object"],default:"near title",copyStyle:!0},dividerPatternUrl:{type:"string",default:"",copyStyle:!0},dividerType:{type:"string",default:"",copyStyle:!0},color:{type:"string",default:"",copyStyle:!0},...d,...u,...p,...m,price:{type:"string",default:"$15.00"},placePrice:{type:["string","object"],default:"right",copyStyle:!0},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"",copyStyle:!0},...(0,n.D$)("itemsDirection",!0,{value:"row"}),...(0,a.D$)("alignment",!0,{value:""}),...(0,
6467 +a.D$)("titleAlignment",!0,{value:""}),...(0,a.D$)("descriptionAlignment",!0,{value:""}),...(0,a.D$)("priceAlignment",!0,{value:""}),priceAlignmentCustom:{type:"boolean",default:!1,copyStyle:!0},...(0,r.D$)("icon",{className:"far fa-image",path:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z",viewBox:"0 0 512 512",size:"40",iconType:"stacked",iconShape:"square"}),...(0,l.D$)("titleTypography",!0),...(0,s.D$)("titleTextShadow"),...(0,b.D$)("titleTextStroke",!0),...(0,l.D$)("descriptionTypography",!0),...(0,s.D$)("descriptionTextShadow"),...(0,b.D$)("descriptionTextStroke",!0),...(0,l.D$)("priceTypography",!0),...(0,
6468 +s.D$)("priceTextShadow"),...(0,b.D$)("priceTextStroke",!0),...o.Ay}},28482(t,e,i){"use strict";i.d(e,{Ay:()=>T,Dv:()=>p,Ej:()=>g,VA:()=>h,VL:()=>m,cI:()=>y,rQ:()=>f});var o=i(43271),a=i(21993),l=i(93044),n=i(2489),s=i(74411),r=i(68761),b=i(16867),c=i(80241),d=i(77168),u=i(42377);const p=(0,u.D$)({attributeName:"columnGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,defaultValueTablet:20,defaultValueMobile:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,u.D$)({attributeName:"width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,defaultValueTablet:"",defaultValueMobile:"",hasUnit:!0,unitDefaultValue:"",copyStyle:!0}),h=(0,u.D$)({attributeName:"weight",isResponsive:!1,defaultValue:2,copyStyle:!0}),g=(0,u.D$)({attributeName:"size",isResponsive:!1,defaultValue:20,copyStyle:!0}),f=(0,u.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,defaultValueMobile:3,defaultValueTablet:1,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0
6469 +}),y=(0,u.D$)({attributeName:"titlePriceGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),T={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10}},...p,allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},itemBackgroundH:{type:"string",default:"",copyStyle:!0},itemBackground:{type:"string",default:"",copyStyle:!0},transition:{type:"number",default:"",copyStyle:!0},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"#13191B",copyStyle:!0},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"#595959",copyStyle:!0},placeDivider:{type:["string","object"],default:"near title",copyStyle:!0},dividerPatternUrl:{type:"string",default:"dashed",copyStyle:!0},dividerType:{type:"string",
6470 +default:"css-style",copyStyle:!0},color:{type:"string",default:"black",copyStyle:!0},...m,...h,...g,...f,...y,placePrice:{type:["string","object"],default:"right",copyStyle:!0},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"#595959",copyStyle:!0},...(0,l.D$)("itemsDirection",!0,{value:"row"}),...(0,a.D$)("alignment",!0,{value:"flex-start"}),...(0,a.D$)("titleAlignment",!0,{value:"left"}),...(0,a.D$)("descriptionAlignment",!0,{value:"left"}),...(0,a.D$)("priceAlignment",!0,{value:"left"}),priceAlignmentCustom:{type:"boolean",default:!1,copyStyle:!0},...(0,r.D$)(),...(0,n.D$)("titleTypography",!0),...(0,s.D$)("titleTextShadow"),...(0,b.D$)("titleTextStroke",!0),...(0,n.D$)("descriptionTypography",!0),...(0,s.D$)("descriptionTextShadow"),...(0,b.D$)("descriptionTextStroke",!0),...(0,n.D$)("priceTypography",!0),...(0,s.D$)("priceTextShadow"),...(0,b.D$)("priceTextStroke",!0),...(0,c.D$)("itemPadding",!0),...(0,d.D$)("itemBorder",!0),...(0,n.D$)("typography",!0),
6471 +...(0,s.D$)("textShadow"),...(0,b.D$)("textStroke",!0),...o.Ay}},33206(t,e,i){"use strict";i.d(e,{Ay:()=>f,Nf:()=>g,fb:()=>m,gB:()=>h,mm:()=>p});var o=i(43271),a=i(68761),l=i(21993),n=i(77168),s=i(2489),r=i(74411),b=i(16867),c=i(80241),d=i(42377),u=i(90198);const p=(0,d.D$)({attributeName:"strokeSize",attributeObjectKey:"value",isResponsive:!1,defaultValue:3,hasUnit:!1,copyStyle:!0}),m=(0,d.D$)({attributeName:"positionBottom",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:20,hasUnit:!0,copyStyle:!0}),h=(0,d.D$)({attributeName:"positionRight",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:20,hasUnit:!0,copyStyle:!0}),g=(0,d.D$)({attributeName:"positionLeft",attributeObjectKey:"value",isResponsive:!0,unitDefaultValue:"px",defaultValue:20,hasUnit:!0,copyStyle:!0}),f={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},appearance:{type:"string",default:"icon",copyStyle:!0},buttonText:{type:"string",
6472 +default:"Top"},buttonTextColor:{type:"string",default:"",copyStyle:!0},buttonTextColorH:{type:"string",default:"",copyStyle:!0},buttonTextColorBg:{type:"string",default:"",copyStyle:!0},buttonTextColorH:{type:"string",default:"",copyStyle:!0},progressColor:{type:"string",default:"red",copyStyle:!0},progressColorBg:{type:"string",default:"#EEEEEE",copyStyle:!0},...(0,a.D$)("icon",{path:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z",viewBox:"0 0 448 512",className:"far arrow-up",size:40}),...(0,l.D$)("alignment",!0,{value:"left"}),...(0,u.D$)("position",!1),...(0,u.D$)("visibleControl",!1,{value:"visible"}),...(0,n.D$)("border",!0),...(0,s.D$)("typography",!0),...(0,r.D$)("textShadow"),...(0,b.D$)("textStroke",!0),...(0,c.D$)("padding",!0),...o.Ay}},98479(t,e,i){"use strict";i.d(e,{
6473 +Ay:()=>x,JT:()=>h,Qk:()=>T,RS:()=>y,SN:()=>f,gc:()=>H,kN:()=>u,kf:()=>M,rQ:()=>m,rW:()=>g,tc:()=>p});var o=i(43271),a=i(42377),l=i(21993),n=i(2489),s=i(74411),r=i(16867),b=i(88554),c=i(80241),d=i(77168);const u=(0,a.D$)({attributeName:"iconWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:18,defaultValueTablet:18,defaultValueMobile:12,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),p=(0,a.D$)({attributeName:"searchBtnWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:70,defaultValueTablet:70,defaultValueMobile:70,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,a.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueTablet:0,defaultValueMobile:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,a.D$)({attributeName:"listWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),g=(0,a.D$)({attributeName:"listGap",attributeObjectKey:"value",isResponsive:!0,
6474 +defaultValue:0,defaultValueTablet:0,defaultValueMobile:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),f=(0,a.D$)({attributeName:"itemWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),y=(0,a.D$)({attributeName:"searchItemHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:300,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),T=(0,a.D$)({attributeName:"itemGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),H=(0,a.D$)({attributeName:"horizontalOffset",attributeObjectKey:"value",isResponsive:!0,defaultValue:230,defaultValueTablet:230,defaultValueMobile:230,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),M=(0,a.D$)({attributeName:"verticalOffset",attributeObjectKey:"value",isResponsive:!0,defaultValue:230,defaultValueTablet:230,defaultValueMobile:230,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),x={block_id:{type:"string",default:""},blockVersion:{
6475 +type:"number",default:""},source:{type:"string",default:"any"},currentPostID:{type:"integer",default:""},...m,searchTerm:{type:"string",default:""},isIcon:{type:"string",default:"icon"},...u,...p,...g,...h,...f,...y,...T,...H,...M,allowCollapse:{type:"bool",default:!1},position:{type:"string",default:"default"},variant:{type:"string",default:"classic"},buttonText:{type:"string",default:"Search"},buttonBgColor:{type:"string",default:"",copyStyle:!0},buttonBgColorH:{type:"string",default:"",copyStyle:!0},buttonTextColor:{type:"string",default:"",copyStyle:!0},buttonTextColorH:{type:"string",default:"",copyStyle:!0},placeholder:{type:"string",default:"Write anything......."},placeholderColor:{type:"string",default:"gray",copyStyle:!0},inputTextColor:{type:"string",default:"#949494",copyStyle:!0},inputBgColor:{type:"string",default:"#FFFFFF",copyStyle:!0},searchResTColor:{type:"string",default:"#000000",copyStyle:!0},loadingSpinnerColor:{type:"string",default:"#fff",copyStyle:!0},...(0,
6476 +n.D$)("buttonTypography",!0),...(0,s.D$)("buttonTextShadow"),...(0,r.D$)("buttonTextStroke",!0),...(0,n.D$)("buttonTypographyH",!0),...(0,s.D$)("buttonTextShadowH"),...(0,r.D$)("buttonTextStrokeH",!0),...(0,n.D$)("inputTypography",!0),...(0,s.D$)("inputTextShadow"),...(0,r.D$)("inputTextStroke",!0),...(0,l.D$)("buttonAlignment",!1,{value:"left"}),...(0,l.D$)("horizontalAlignment",!1,{value:"left"}),...(0,l.D$)("verticalAlignment",!1,{value:"top"}),...(0,l.D$)("fullscreenButtonAlignment",!0,{value:"center"}),...(0,l.D$)("alignment",!0,{value:"left"}),...(0,n.D$)("typography",!0),...(0,s.D$)("textShadow"),...(0,b.D$)("link"),...(0,r.D$)("textStroke",!0),...(0,c.D$)("listPadding",!1),...(0,d.D$)("listBorder",!0),...(0,c.D$)("itemPadding",!1),...(0,d.D$)("itemBorder",!0),...(0,d.D$)("searchBoxBorder",!0),...(0,n.D$)("searchResTypography",!0),...o.Ay}},80518(t,e,i){"use strict";i.d(e,{Ay:()=>p,RK:()=>d,eY:()=>u})
6477 +;var o=i(43271),a=i(2489),l=i(74411),n=i(16867),s=i(77168),r=i(80241),b=i(68761),c=i(42377);const d=(0,c.D$)({attributeName:"iconSize",isResponsive:!1,copyStyle:!0,attributeObjectKey:"value"}),u=(0,c.D$)({attributeName:"itemSpace",isResponsive:!1,copyStyle:!0,attributeObjectKey:"value",hasUnit:!1,unitDefaultValue:"px"}),p={block_id:{type:"string",default:""},accordionId:{type:"number",default:0},accordionTitle:{type:"string",default:""},headerTextColor:{type:"string",default:"",copyStyle:!0},headerTextColorH:{type:"string",default:"",copyStyle:!0},headerTextActiveColor:{type:"string",default:"",copyStyle:!0},headerBackgroundActiveColor:{type:"string",default:"",copyStyle:!0},headerBackgroundColorH:{type:"string",default:"",copyStyle:!0},headerBackgroundColor:{type:"string",default:"",copyStyle:!0},...u,...d,iconColor:{type:"string",default:"",copyStyle:!0},iconColorH:{type:"string",default:"",copyStyle:!0},bodyBackgroundH:{type:"string",default:"",copyStyle:!0},bodyBackground:{
6478 +type:"string",default:"",copyStyle:!0},parentAttributes:{type:"object",default:{iconPosition:"right",headingTag:"p",showIcon:!0,leftCloseIconClass:"far fa-arrow-alt-circle-up",leftActiveIconClass:"far fa-arrow-alt-circle-down",rightActiveIconClass:"fas fa-minus",rightCloseIconClass:"fas fa-plus"}},...(0,a.D$)("headerTypography",!0,{weight:""}),...(0,b.D$)("leftCloseIcon",{path:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-up",hasNoSelectorOrSource:!0}),...(0,b.D$)("leftActiveIcon",{
6479 +path:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-32-316v116h-67c-10.7 0-16 12.9-8.5 20.5l99 99c4.7 4.7 12.3 4.7 17 0l99-99c7.6-7.6 2.2-20.5-8.5-20.5h-67V140c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-down",hasNoSelectorOrSource:!0}),...(0,b.D$)("rightCloseIcon",{path:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",viewBox:"0 0 448 512",className:"fas fa-plus",hasNoSelectorOrSource:!0}),...(0,b.D$)("rightActiveIcon",{path:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",viewBox:"0 0 448 512",className:"fas fa-minus",hasNoSelectorOrSource:!0}),...(0,
6480 +l.D$)("headerTextShadow"),...(0,n.D$)("headerTextStroke",!0),...(0,s.D$)("itemBorder",!0),...(0,r.D$)("headerPadding",!0),...(0,r.D$)("bodyPadding",!0),...(0,s.D$)("headerBorder",!0),...o.Ay}},929(t,e,i){"use strict";i.d(e,{Ay:()=>H,CS:()=>f,H1:()=>g,YE:()=>T,_2:()=>p,jI:()=>m,jM:()=>y,p9:()=>u,vz:()=>h});var o=i(43271),a=i(21993),l=i(77168),n=i(42377),s=i(2489),r=i(74411),b=i(16867),c=i(90198),d=i(80554);const u=(0,n.D$)({attributeName:"spaceBetween",attributeObjectKey:"value",isResponsive:!0,copyStyle:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px"}),p=(0,n.D$)({attributeName:"shareIconSize",attributeObjectKey:"value",isResponsive:!1,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),m=(0,n.D$)({attributeName:"shareItemIconSize",isResponsive:!1,defaultValue:25,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),h=(0,n.D$)({attributeName:"shareSize",isResponsive:!1,defaultValue:46,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",
6481 +copyStyle:!0}),g=(0,n.D$)({attributeName:"itemIconWidth",isResponsive:!1,defaultValue:43,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),f=(0,n.D$)({attributeName:"itemIconHeight",isResponsive:!1,defaultValue:42,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),y=(0,n.D$)({attributeName:"itemTextWidth",isResponsive:!1,defaultValue:80,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),T=(0,n.D$)({attributeName:"itemTextHeight",isResponsive:!1,defaultValue:42,attributeObjectKey:"value",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),H={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},buttonType:{type:"string",default:"Facebook",copyStyle:!0},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square"},lists:{type:"array",default:[{id:0,text:"Facebook",icon:{viewBox:"0 0 320 512",
6482 +path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373",buttonType:"Facebook"},{id:1,text:"Twitter",icon:{viewBox:"0 0 448 512",
6470 6483 path:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},buttonBackgroundColor:"ablocks-social-share-item--twitter-bg",iconBackgroundColor:"ablocks-social-share-item--twitter-icon-bg",link:"https://twitter.com/intent/tweet?url=",isOpen:!1,
6471 6484 backgroundH:"#1da1f2",buttonType:"Twitter"},{id:2,text:"Telegram",icon:{viewBox:"0 0 448 512",path:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},buttonBackgroundColor:"ablocks-social-share-item--telegram-bg",iconBackgroundColor:"ablocks-social-share-item--telegram-icon-bg",link:"https://t.me/share/url?url=",isOpen:!1,backgroundH:"#007ab8",buttonType:"Telegram"}],copyStyle:!0},listIconsClasses:{type:"array",copyStyle:!0},iconType:{type:"string",default:"default",copyStyle:!0},iconShape:{type:"string",default:"circle",copyStyle:!0},windowsPopUp:{type:"boolean",default:!1,copyStyle:!0},buttonBackground:{type:"string",default:"",copyStyle:!0},buttonHover:{type:"string",default:"",copyStyle:!0},shareBar:{type:"boolean",default:!0},shareBgColor:{type:"string",default:"",copyStyle:!0},
6472 6485 iconFillColor:{type:"string",default:"#ffffff",copyStyle:!0},shareTextBgColor:{type:"string",default:"",copyStyle:!0},shareIconH:{type:"string",default:"",copyStyle:!0},shareTextH:{type:"string",default:"",copyStyle:!0},backgroundColor:{type:"string",default:"",copyStyle:!0},backgroundColorH:{type:"string",default:"",copyStyle:!0},shareButtonIconColor:{type:"string",default:"#170a1b",copyStyle:!0},shareButtonIconColorH:{type:"string",default:"",copyStyle:!0},...f,...g,...m,...u,...h,...p,...T,...y,belowItem:{type:"number",default:0,copyStyle:!0},...(0,a.D$)("position",!0,{value:"center"}),...(0,a.D$)("horizontalAlignment",!0,{value:"flex-start"}),...(0,c.D$)("stack",!1,{value:"horizontal"}),...(0,c.D$)("verticalAlignment",!1,{value:"flex-start"}),...(0,l.D$)("border",!0),...(0,d.D$)("shareItemShadow",!0),...(0,l.D$)("itemBorder",!0),...(0,s.D$)("typography",!0),...(0,r.D$)("textShadow"),...(0,b.D$)("textStroke",!0),...o.Ay}},70399(t,e,i){"use strict";i.d(e,{A:()=>l,i:()=>a})
6473 6486 ;var o=i(43271);const a=(0,i(42377).D$)({attributeName:"spacerHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,hasUnit:!0,unitDefaultValue:"px",unitDefaultValueTablet:"px",unitDefaultValueMobile:"px"}),l={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},...a,...o.Ay}},25314(t,e,i){"use strict";i.d(e,{Ay:()=>d,CB:()=>b,ZO:()=>c});var o=i(43271),a=i(42377),l=i(21993),n=i(2489),s=i(68761);const r=(0,a.D$)({attributeName:"size",attributeObjectKey:"value",isResponsive:!0,defaultValue:24,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),b=(0,a.D$)({attributeName:"spacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c=(0,a.D$)({attributeName:"ratingNumberGap",attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,copyStyle:!0}),d={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},scale:{type:"number",default:5},ratingColor:{
@@ -6503,9 +6516,9 @@
6503 6516 "ablocks-editor-block-control-wrap--overflow-not-visible":"auto"===o||"hidden"===o}),children:(0,b.jsxs)("div",{className:"ablocks-editor-block-control-wrap__buttons",children:[(0,b.jsx)("button",{type:"button",className:"ablocks-editor-block-control-button ablocks-editor-block-control-button--add",onClick:c,children:(0,b.jsx)("span",{className:"ablocks-icon ablocks-icon--add"})}),(0,b.jsx)("button",{type:"button",className:"ablocks-editor-block-control-button ablocks-editor-block-control-button--"+(s||u?"drag":"edit-two"),children:(0,b.jsx)("span",{className:"ablocks-icon ablocks-icon--"+(s||u?"drag":"edit-two")})}),(0,b.jsx)("button",{type:"button",className:"ablocks-editor-block-control-button ablocks-editor-block-control-button--delete",onClick:d,children:(0,b.jsx)("span",{className:"ablocks-icon ablocks-icon--delete-two"})})]})})})}u.propTypes={}},39387(t,e,i){"use strict";i.d(e,{A:()=>v})
6504 6517 ;var o=i(51609),a=i(46942),l=i.n(a),n=i(94715),s=i(5556),r=i.n(s),b=i(52619),c=i(2489),d=i(17618),u=i(36168),p=i(80777),m=i(72649),h=i(50506),g=i(66087),f=i.n(g),y=i(86816),T=i(24175),H=i(10790);const M={name:r().string,blockId:r().string,typography:r().array,blockProps:r().object},x={},k=t=>{const e=t?.fontFamily,i=t?.weight||"400",o=x[e];e&&!o?.includes(i)&&(o?i&&o.push(i):x[e]=i?[i]:[])};function v({name:t,blockId:e,children:i,attributes:a={},typography:s,className:r="",blockProps:g={}}){const M=(0,o.useRef)(null),v=M?.current,{_hide_on_desktop:_,_hide_on_tablet:R,_hide_on_mobile:S,_animation:W,overflow:P}=a;let U=(0,b.applyFilters)("ablocks.global.render_container_classes",{},a),j=(0,b.applyFilters)("ablocks.global.render_container_attributes",{},a),w=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{attivuteValue:a?.className,context:{}})
6505 6518 ;const z=W?.animationType&&"none"!==W?.animationType||W?.animationTypeTablet&&"none"!==W?.animationTypeTablet||W?.animationTypeMobile&&"none"!==W?.animationTypeMobile,C={className:(0,m.Z)({name:t,blockId:e,className:l()(r,w,{"ablocks-invisible":z,...U}),_hide_on_desktop:_,_hide_on_tablet:R,_hide_on_mobile:S}),...g},A={...z?W:{},...j};f().isEmpty(A)||(C["data-settings"]=JSON.stringify(A));const L=(0,n.useBlockProps)(C);if(Array.isArray(s))for(const t of s)k(t);else for(const t in a)/typography/i.test(t)&&k(a[t]);(0,o.useEffect)(()=>{Object.keys(x).length>0&&(0,c.Kx)(x,v)},Object.keys(x).concat(Object.values(x).reduce((t,e)=>t.concat(e),[])).concat(v)),(0,o.useEffect)(()=>{new p.A((0,u.bu)(`.ablocks-block-${e}`))},[W?.animationType,W?.animationTypeTablet,W?.animationTypeMobile])
6506 6519 ;const{videoSource:D,vimeoURL:N,youtubeURL:I,introPortrait:V,introTitle:O,introByline:Y,videoPlayOnce:X=!1,fallbackImageUrl:B="",preload:E="",videoUrl:F="",videoStartTime:q="",videoEndTime:$="",externalLink:G=!1,selfHostedURL:Z="",videoPrivacyMode:K}=a?._background||{};let J;const Q=(0,m.U)(q,$),tt="color"===a?._background?.backgroundTypeH&&""!==a?._background?.backgroundColorH||"image"===a?._background?.backgroundTypeH&&""!==a?._background?.backgroundImageH;if("none"!==D)switch(D){case"selfHosted":J=(0,H.jsx)("video",{src:(G?Z:F)+Q,autoPlay:!0,muted:!0,loop:!X,preload:E,controls:!1,controlsList:"",className:l()("ablocks-background--video",{"ablocks-bg-video--hover":tt})});break;case"youtube":J=(0,H.jsx)(y.A,{block_id:e,autoplay:!0,mute:!0,loop:!X,youtubeURL:I,videoStartTime:q,videoEndTime:$,externalLink:G,selfHostedURL:Z,playerControl:!1,privacyMode:K,className:l()("ablocks-background--video",{"ablocks-bg-video--hover":tt}),isBackground:!0});break;case"vimeo":J=(0,H.jsx)(T.A,{
6507 -block_id:e,autoplay:!0,mute:!0,loop:!X,vimeoURL:N,privacyMode:K,videoStartTime:q,introPortrait:V,introTitle:O,introByline:Y,isBackground:!0,className:l()("ablocks-background--video",{"ablocks-bg-video--hover":tt})});break;default:J=void 0}return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(h.A,{}),(0,H.jsxs)("div",{...L,children:[(0,H.jsx)(d.A,{blockId:e,name:t,overflow:P}),"video"===a?._background?.backgroundType&&J,(0,H.jsx)("div",{className:"ablocks-block-container",ref:M,children:i})]})]})}v.propTypes=M},50506(t,e,i){"use strict";i.d(e,{A:()=>u});var o=i(51609),a=i.n(o),l=i(27723),n=i(94715),s=i(56427),r=i(84391),b=i(36168),c=i(31050),d=i(10790);function u(){return(0,d.jsx)(a().Fragment,{children:b.W0?.enabled_block_copy_paste_style&&(0,c.KU)()&&(0,d.jsx)(n.BlockControls,{group:"block",children:(0,d.jsxs)(s.ToolbarGroup,{children:[(0,d.jsx)(s.ToolbarButton,{icon:"admin-comments",label:(0,l.__)("aBlocks Copy Styles (cmd+shift+c)","ablocks"),onClick:()=>{(0,r._)()}}),(0,
6520 +block_id:e,autoplay:!0,mute:!0,loop:!X,vimeoURL:N,privacyMode:K,videoStartTime:q,introPortrait:V,introTitle:O,introByline:Y,isBackground:!0,className:l()("ablocks-background--video",{"ablocks-bg-video--hover":tt})});break;default:J=void 0}return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(h.A,{}),(0,H.jsxs)("div",{...L,children:[(0,H.jsx)(d.A,{blockId:e,name:t,overflow:P}),"video"===a?._background?.backgroundType&&J,(0,H.jsx)("div",{className:"ablocks-block-container",ref:M,children:i})]})]})}v.propTypes=M},50506(t,e,i){"use strict";i.d(e,{A:()=>u});var o=i(51609),a=i.n(o),l=i(27723),n=i(94715),s=i(56427),r=i(62598),b=i(36168),c=i(31050),d=i(10790);function u(){return(0,d.jsx)(a().Fragment,{children:b.W0?.enabled_block_copy_paste_style&&(0,c.KU)()&&(0,d.jsx)(n.BlockControls,{group:"block",children:(0,d.jsxs)(s.ToolbarGroup,{children:[(0,d.jsx)(s.ToolbarButton,{icon:"admin-comments",label:(0,l.__)("aBlocks Copy Styles (cmd+shift+c)","ablocks"),onClick:()=>{(0,r._)()}}),(0,
6508 6521 d.jsx)(s.ToolbarButton,{icon:"admin-collapse",label:(0,l.__)("aBlocks Paste Styles (cmd+shift+v)","ablocks"),onClick:()=>{(0,r.G)()}})]})})})}u.propTypes={}},90198(t,e,i){"use strict";i.d(e,{D$:()=>l});var o=i(27723);(0,o.__)("left","ablocks"),(0,o.__)("center","ablocks"),(0,o.__)("right","ablocks"),(0,o.__)("justify","ablocks");const a=(t=!1,e)=>t?{value:"default",valueTablet:"",valueMobile:"",...e}:e.value??"default",l=(t,e=!1,i={})=>e?{[t]:{type:"object",default:a(e,i),copyStyle:!0}}:{[t]:{type:"string",default:a(e,i),copyStyle:!0}}},24175(t,e,i){"use strict";i.d(e,{A:()=>b}),i(51609);const o=t=>t?function(t){const e=Math.floor(t/3600),i=Math.floor(t%3600/60),o=t%60;return`#t=${e.toString().padStart(2,"0")}h${i.toString().padStart(2,"0")}m${o.toString().padStart(2,"0")}s`}(t):"";var a=i(5556),l=i.n(a),n=i(27723),s=i(10790);const r={autoplay:l().bool,mute:l().bool,loop:l().bool,vimeoURL:l().string,videoStartTime:l().string,introPortrait:l().bool,introTitle:l().bool,
6509 6522 introByline:l().bool,isBackground:l().bool,className:l().string};function b(t){const{vimeoURL:e="",autoplay:i=!1,videoStartTime:a="",loop:l=!1,mute:r=!1,introPortrait:b=!1,introTitle:c=!1,introByline:d=!1,isBackground:u=!1,className:p=""}=t,m=(({vimeoVideoId:t,autoplay:e,loop:i,mute:o,introPortrait:a,introTitle:l,introByline:n,isBackground:s,getStartTime:r})=>t?`https://player.vimeo.com/video/${t}?color&autopause=0&muted=${o?"1":"0"}&autoplay=${e?"1":"0"}&portrait=${a?"1":"0"}&title=${l?"1":"0"}&byline=${n?"1":"0"}&loop=${i?"1":"0"}${s?"&background=1":"&background=0"}${r||""}`:null)({vimeoVideoId:function(t){const e=t?.match(/vimeo\.com\/(\d+)/);return e&&e[1]}(e),autoplay:i,loop:l,introByline:d,mute:r,introPortrait:b,introTitle:c,isBackground:u,getStartTime:o(a)});return m?(0,s.jsx)("iframe",{title:(0,n.__)("vimeo-video-player","ablocks"),src:m,frameBorder:"0",className:u?p:"ablocks-vimeo-video-player",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0}):null}
6510 6523 b.propTypes=r},86816(t,e,i){"use strict";i.d(e,{A:()=>b}),i(51609);var o=i(5556),a=i.n(o),l=i(27723),n=i(10790);const s={youtubeURL:a().string,videoStartTime:a().string,videoEndTime:a().string,loop:a().bool,mute:a().bool,autoplay:a().bool,playerControl:a().bool,privacyMode:a().bool,className:a().string,isBackground:a().bool},r=t=>{const{youtubeURL:e="",videoStartTime:i="",videoEndTime:o="",loop:a=!1,mute:s=!1,autoplay:r=!1,playerControl:b=!1,privacyMode:c=!1,className:d="",isBackground:u=!1}=t,p=function(t=""){const e=t?.match(/(?:youtu\.be\/|youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return e?e[1]:null}(e),m=((t,e)=>{const i=t||0,o=e||"";return i||o?`&start=${i}&end=${o}`:""})(i,o),h=((t,e,i,o,a,l,n)=>t?`https://${e?"www.youtube-nocookie.com":"www.youtube.com"}/embed/${t}?controls=${l?"1":"0"}&rel=0&playsinline=1&mute=${o?"1":"0"}&autoplay=${a?"1":"0"}&loop=${i?"1":"0"}${n||""}`:null)(p,c,a,s,r,b,m);return h?(0,n.jsx)("iframe",{
6511 6524 width:"100%",height:"100%",src:h,frameBorder:"0",className:u?d:"ablocks-video-player",title:(0,l.__)("YouTube video player","ablocks"),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):null};r.propTypes=s;const b=r},21993(t,e,i){"use strict";i.d(e,{D$:()=>n,gh:()=>a,qD:()=>s,tJ:()=>l});var o=i(27723);const a=[{label:(0,o.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,o.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,o.__)("right","ablocks"),value:"right",icon:"right"},{label:(0,o.__)("justify","ablocks"),value:"justify",icon:"justify"}],l=(t=!1,e)=>t?{value:"default",valueTablet:"",valueMobile:"",...e}:{value:"default",...e},n=(t,e=!1,i={})=>({[t]:{type:"object",default:l(e,i),copyStyle:!0}}),s=(t,e="",i="")=>{const o={...l(!!i),...t},a={};return""!==o["value"+i]&&(a[`${e}`]=o["value"+i]),a}},57654(t,e,i){"use strict";i.d(e,{B2:()=>n,D$:()=>b,a9:()=>d,qD:()=>c,tJ:()=>r,yP:()=>s})
@@ -6568,19 +6581,20 @@
6568 6581 ""!==l["scale"+i]&&void 0!==l["scale"+i]&&b.push(`scale(${l["scale"+i]})`),void 0!==l["scaleX"+i]&&""!==l["scaleX"+i]&&b.push(`scaleX(${l["scaleX"+i]})`),void 0!==l["scaleY"+i]&&""!==l["scaleY"+i]&&b.push(`scaleY(${l["scaleY"+i]})`),void 0!==l.flipHorizontal&&!1!==l.flipHorizontal&&b.push("scaleX(-1)"),void 0!==l.flipVertical&&!1!==l.flipVertical&&b.push("scaleY(-1)"),""!==l["offsetX"+i]&&void 0!==l["offsetX"+i]&&b.push(`translateX(${l["offsetX"+i]+s})`),""!==l["offsetY"+i]&&void 0!==l["offsetY"+i]&&b.push(`translateY(${l["offsetY"+i]+r})`),void 0!==l["skewX"+i]&&""!==l["skewX"+i]&&b.push(`skewX(${l["skewX"+i]}deg)`),void 0!==l["skewY"+i]&&""!==l["skewY"+i]&&b.push(`skewY(${l["skewY"+i]}deg)`),l["xAnchorPoint"+i]&&(c=`${l["yAnchorPoint"+i]} ${l["xAnchorPoint"+i]}`),l["yAnchorPoint"+i]&&(c=`${l.yAnchorPoint} ${l.xAnchorPoint}`),c&&(n["transform-origin"]=c),b.length>0&&(n[e]=b.join(" ")),n},s=(t,e="",i="")=>{const l={...a(!!i),...t},n={},s=(0,o.Ic)(l,"offsetXHUnit",i)||"px",r=(0,
6569 6582 o.Ic)(l,"offsetYHUnit",i)||"px",b=[];let c="";return""!==l["rotateH"+i]&&void 0!==l["rotateH"+i]&&b.push(`rotate(${l["rotateH"+i]}deg)`),""!==l["rotateXH"+i]&&void 0!==l["rotateXH"+i]&&b.push(`rotateX(${l["rotateXH"+i]}deg)`),""!==l["rotateYH"+i]&&void 0!==l["rotateYH"+i]&&b.push(`rotateY(${l["rotateYH"+i]}deg)`),!1!==l["rotate3DH"+i]&&l["rotateH"+i]>=0&&b.push(`rotateZ(${l["rotateH"+i]?l["rotateH"+i]:0}deg)`),""!==l["rotatePH"+i]&&b.push(`perspective(${l["rotatePH"+i]?l["rotatePH"+i]:0}px)`),""!==l["scaleH"+i]&&void 0!==l["scaleH"+i]&&b.push(`scale(${l["scaleH"+i]})`),void 0!==l["scaleXH"+i]&&""!==l["scaleXH"+i]&&b.push(`scaleX(${l["scaleXH"+i]})`),void 0!==l["scaleYH"+i]&&""!==l["scaleYH"+i]&&b.push(`scaleY(${l["scaleYH"+i]})`),void 0!==l.flipHorizontalH&&!1!==l.flipHorizontalH&&b.push("scaleX(-1)"),void 0!==l.flipVerticalH&&!1!==l.flipVerticalH&&b.push("scaleY(-1)"),""!==l["offsetXH"+i]&&void 0!==l["offsetXH"+i]&&b.push(`translateX(${l["offsetXH"+i]+s})`),
6570 6583 ""!==l["offsetYH"+i]&&void 0!==l["offsetYH"+i]&&b.push(`translateY(${l["offsetYH"+i]+r})`),void 0!==l["skewXH"+i]&&""!==l["skewXH"+i]&&b.push(`skewX(${l["skewXH"+i]}deg)`),void 0!==l["skewYH"+i]&&""!==l["skewYH"+i]&&b.push(`skewY(${l["skewYH"+i]}deg)`),l["xAnchorPointH"+i]&&(c=`${l["yAnchorPointH"+i]} ${l["xAnchorPointH"+i]}`),l["yAnchorPointH"+i]&&(c=`${l["yAnchorPointH"+i]} ${l["xAnchorPointH"+i]}`),c&&(n["transform-origin"]=c),b.length>0&&(n[e]=b.join(" ")),""!==l["transitionH"+i]&&void 0!==l["transitionH"+i]&&(n["transition-duration"]=`${l["transitionH"+i]}s`),n}},5905(t,e,i){"use strict";i.d(e,{D$:()=>s,qD:()=>r,tJ:()=>n,v2:()=>l});var o=i(27723),a=i(36168);const l=[{value:"default",label:(0,o.__)("Default","ablocks")},{value:"full",label:(0,o.__)("Full Width (100%)","ablocks")},{value:"auto",label:(0,o.__)("Inline (auto)","ablocks")},{value:"custom",label:(0,o.__)("Custom","ablocks")}],n=(t=!1)=>t?{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",
6571 6584 customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}:{widthType:"default",customWidth:"",customWidthUnit:"%"},s=(t,e=!1)=>({[t]:{type:"object",default:n(e),copyStyle:!0}}),r=(t,e="",i="")=>{const o={...n(!!i),...t},l=(0,a.Ic)(o,"widthType",i);if(l&&"default"!==l){const t={};if("full"===l)t[e]="100%";else if("auto"===l)t[e]="auto",t.display="inline-block";else if("custom"===l){const l=(0,a.Ic)(o,"customWidth",i),n=(0,a.Ic)(o,"customWidthUnit",i);t[e]=`${l}${n}`,l&&(t.display="inline-block")}return t}return{}}},4480(t,e,i){"use strict";i.d(e,{D$:()=>a,qD:()=>l,tJ:()=>o});const o=(t=!1)=>t?{zIndex:"",zIndexTablet:"",zIndexMobile:""}:{zIndex:""},a=(t,e=!1)=>({[t]:{type:"object",default:o(e),copyStyle:!0}}),l=(t,e="",i="")=>{const a={...o(!!i),...t},l={};return a["zIndex"+i]&&(l[`${e}`]=a["zIndex"+i]),l}},72916(t,e,i){"use strict";i.d(e,{Mw:()=>s,V4:()=>b,X6:()=>n,qX:()=>l,tN:()=>r,yt:()=>c});var o=i(27723),a=i(36168)
6572 -;const l=()=>!!a.W0?.lock_global_typography,n=()=>l()&&!!a.W0?.lock_global_typography_strict,s=()=>!!a.W0?.lock_global_colors,r={typography:(0,o.__)("Locked to your global typography. Use the globe button to pick a preset.","ablocks"),family:(0,o.__)("The typeface is set by your design system. Size and spacing are still yours to change; use the globe button for a full preset.","ablocks"),color:(0,o.__)("Locked to your global colors. Use the globe button to pick one.","ablocks")},b=t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&"fontFamily"in t&&"fontSizeUnit"in t,c=t=>!("string"!=typeof t||!t.trim())&&!(t=>"string"==typeof t&&t.startsWith("var:"))(t)&&/^(#|rgba?\(|hsla?\(|(linear|radial|conic)-gradient\()/i.test(t.trim())},36168(t,e,i){"use strict";i.d(e,{$B:()=>c,An:()=>at,BP:()=>it,Bn:()=>q,By:()=>Y,Gv:()=>ot,IO:()=>ut,Ic:()=>B,Ie:()=>T,In:()=>tt,MF:()=>d,MK:()=>g,N$:()=>O,P:()=>C,Uz:()=>x,V1:()=>Q,VA:()=>I,W0:()=>k,Xz:()=>dt,ZK:()=>A,Zy:()=>st,a4:()=>nt,bD:()=>rt,bu:()=>G,fX:()=>U,
6573 -hW:()=>bt,hq:()=>p,jI:()=>F,kF:()=>z,l_:()=>Z,nC:()=>X,qS:()=>lt,r6:()=>et,rI:()=>w,rb:()=>L,su:()=>J,u3:()=>E,um:()=>N,vL:()=>$,vb:()=>K,xV:()=>ct,zX:()=>m});var o=i(99418),a=i(38443),l=i(27723),n=i(47143),s=i(57536),r=i(66087),b=i.n(r);const{ajax_url:c,namespace:d,plugin_root_path:u,plugin_root_url:p,is_pro:m,route_path:h,menu:g,nonce:f,addons:y,ablocks_nonce:T,rest_url:H,toplevel_menu_icon_url:M,third_party_plugin_status:x,settings:k,site_url:v,blocks_status:_,theme_builder:R,cookie_consent:S,admin_url:W,is_fse_theme:P,post_types:U,breakpoints:j,responsive_devices:w,breakpoint_mode:z,permissions:C,is_admin_user:A}=window.ABlocksGlobal??{},L="ablocks/responsive",D=[{id:"Desktop",suffix:"",width:0,min:0,max:0},{id:"Tablet",suffix:"Tablet",width:800,min:0,max:800},{id:"Mobile",suffix:"Mobile",width:480,min:0,max:480}],N=t=>[...t||[]].sort((t,e)=>{const i=t=>!t.min&&!t.max;if(i(t)!==i(e))return i(t)?-1:1;const o=(e.width||0)-(t.width||0)
6574 -;return 0!==o?o:String(t.id).localeCompare(String(e.id))}),I=()=>{const t=(0,n.select)(L)?.getDevices?.();return Array.isArray(t)&&t.length?t:Array.isArray(w)&&w.length?w:D},V=t=>{const e="Desktop"===t?"":t||"";if(!e)return[];const i=N(I()),o=i.findIndex(t=>t.suffix===e);if(-1===o)return[""];const a=[];for(let t=o-1;t>=0;t--)(i[t].min||i[t].max)&&O(i[t],i[o])&&a.push(i[t].suffix);return a.push(""),a},O=(t,e)=>{const i=Number(t?.min)||0,o=Number(t?.max)||0,a=Number(e?.max)||Number(e?.min)||0;return(!i||a>=i)&&(!o||a<=o)},Y=(t,e,{includeSelf:i=!0}={})=>{const o="Desktop"===t?"":t||"",a=i?[o,...V(o)]:V(o);for(const t of a){const i=e(t);if(nt(i))return i}},X=s.A.create({baseURL:H,headers:{"content-type":"application/json","X-WP-Nonce":f,"Cache-Control":"no-cache"}}),B=(t,e,i,o={})=>{const a=Y(i,i=>nt(t?.[e+i])?t[e+i]:o?.[e+i]);return void 0!==a&&a},E=(t,e,i,o={})=>Y(i,i=>nt(t?.[e+i])?t[e+i]:o?.[e+i],{includeSelf:!1}),F=(t,e)=>{const i={};return Object.keys(e).forEach(o=>{
6575 -b().isEqual(t[o],e[o])||(i[o]=e[o])}),i},q=(t={},e="")=>{const i=t[e];return i?.default??t},$=[{value:"M j, Y",label:(0,a.dateI18n)("M j, Y",new Date)},{value:"F j, Y",label:(0,a.dateI18n)("F j, Y",new Date)},{value:"m/d/Y",label:(0,a.dateI18n)("m/d/Y",new Date)},{value:"m-d-Y",label:(0,a.dateI18n)("m-d-Y",new Date)},{value:"m.d.Y",label:(0,a.dateI18n)("m.d.Y",new Date)},{value:"d M Y",label:(0,a.dateI18n)("d M Y",new Date)},{value:"d F Y",label:(0,a.dateI18n)("d F Y",new Date)},{value:"d-m-Y",label:(0,a.dateI18n)("d-m-Y",new Date)},{value:"d.m.Y",label:(0,a.dateI18n)("d.m.Y",new Date)},{value:"d/m/Y",label:(0,a.dateI18n)("d/m/Y",new Date)},{value:"Y-m-d",label:(0,a.dateI18n)("Y-m-d",new Date)},{value:"Y.m.d",label:(0,a.dateI18n)("Y.m.d",new Date)},{value:"Y/m/d",label:(0,a.dateI18n)("Y/m/d",new Date)},{value:"M, Y",label:(0,a.dateI18n)("M, Y",new Date)},{value:"M Y",label:(0,a.dateI18n)("M Y",new Date)},{value:"F, Y",label:(0,a.dateI18n)("F, Y",new Date)},{value:"F Y",label:(0,
6576 -a.dateI18n)("F Y",new Date)},{value:"custom",label:(0,l.__)("Normal Text","ablocks")}],G=(t,e=null)=>{let i=document.querySelector(t);if(i)return e?i.querySelector(e):i;const o=document.querySelector('iframe[name="editor-canvas"]');return o&&o.contentDocument?(i=o.contentDocument.querySelector(t),e?i?.querySelector(e):i):null},Z=(t,e="")=>B(t,"unit",e),K=t=>!!t&&!["Desktop","Tablet","Mobile"].includes(t),J=(t,e)=>{if(!K(e))return t;const i={...t};return Object.keys(t).forEach(o=>{if(o.endsWith("Tablet")){const a=o.slice(0,-6)+e;a in i||(i[a]=t[o])}}),i},Q=(t,e,i="")=>B(t,e,i),tt=async(t={},e=!1)=>{let i=new FormData;return i.append("security",T),Object.entries(t).forEach(([t,o])=>{e||"object"!=typeof o||null===o?i.append(t,o):i.append(t,JSON.stringify(o))}),await s.A.post(c,i).then(t=>t,t=>t.response)},et=(t,e)=>{const i=new Date(t);if(isNaN(i.getTime()))throw new Error("Invalid date string")
6585 +;const l=()=>!!a.W0?.lock_global_typography,n=()=>l()&&!!a.W0?.lock_global_typography_strict,s=()=>!!a.W0?.lock_global_colors,r={typography:(0,o.__)("Locked to your global typography. Use the globe button to pick a preset.","ablocks"),family:(0,o.__)("The typeface is set by your design system. Size and spacing are still yours to change; use the globe button for a full preset.","ablocks"),color:(0,o.__)("Locked to your global colors. Use the globe button to pick one.","ablocks")},b=t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&"fontFamily"in t&&"fontSizeUnit"in t,c=t=>!("string"!=typeof t||!t.trim())&&!(t=>"string"==typeof t&&t.startsWith("var:"))(t)&&/^(#|rgba?\(|hsla?\(|(linear|radial|conic)-gradient\()/i.test(t.trim())},36168(t,e,i){"use strict";i.d(e,{$B:()=>d,$g:()=>et,An:()=>rt,BP:()=>nt,Bn:()=>$,By:()=>X,Gv:()=>st,IO:()=>gt,Ic:()=>E,In:()=>at,MF:()=>u,MK:()=>f,N$:()=>Y,P:()=>A,Uz:()=>k,V1:()=>tt,VA:()=>V,W0:()=>v,Xz:()=>ht,ZK:()=>L,Zy:()=>dt,a4:()=>ct,bD:()=>ut,bu:()=>Z,
6586 +fX:()=>j,hW:()=>pt,hq:()=>m,jI:()=>q,kF:()=>C,l_:()=>K,nC:()=>B,qS:()=>bt,r6:()=>lt,rI:()=>z,rb:()=>D,su:()=>Q,u3:()=>F,um:()=>I,vL:()=>G,vb:()=>J,xV:()=>mt,zX:()=>h});var o=i(99418),a=i(38443),l=i(27723),n=i(47143),s=i(52619),r=i(57536),b=i(66087),c=i.n(b);const{ajax_url:d,namespace:u,plugin_root_path:p,plugin_root_url:m,is_pro:h,route_path:g,menu:f,nonce:y,addons:T,ablocks_nonce:H,rest_url:M,toplevel_menu_icon_url:x,third_party_plugin_status:k,settings:v,site_url:_,blocks_status:R,theme_builder:S,cookie_consent:W,admin_url:P,is_fse_theme:U,post_types:j,breakpoints:w,responsive_devices:z,breakpoint_mode:C,permissions:A,is_admin_user:L}=window.ABlocksGlobal??{},D="ablocks/responsive",N=[{id:"Desktop",suffix:"",width:0,min:0,max:0},{id:"Tablet",suffix:"Tablet",width:800,min:0,max:800},{id:"Mobile",suffix:"Mobile",width:480,min:0,max:480}],I=t=>[...t||[]].sort((t,e)=>{const i=t=>!t.min&&!t.max;if(i(t)!==i(e))return i(t)?-1:1;const o=(e.width||0)-(t.width||0)
6587 +;return 0!==o?o:String(t.id).localeCompare(String(e.id))}),V=()=>{const t=(0,n.select)(D)?.getDevices?.();return Array.isArray(t)&&t.length?t:Array.isArray(z)&&z.length?z:N},O=t=>{const e="Desktop"===t?"":t||"";if(!e)return[];const i=I(V()),o=i.findIndex(t=>t.suffix===e);if(-1===o)return[""];const a=[];for(let t=o-1;t>=0;t--)(i[t].min||i[t].max)&&Y(i[t],i[o])&&a.push(i[t].suffix);return a.push(""),a},Y=(t,e)=>{const i=Number(t?.min)||0,o=Number(t?.max)||0,a=Number(e?.max)||Number(e?.min)||0;return(!i||a>=i)&&(!o||a<=o)},X=(t,e,{includeSelf:i=!0}={})=>{const o="Desktop"===t?"":t||"",a=i?[o,...O(o)]:O(o);for(const t of a){const i=e(t);if(ct(i))return i}},B=r.A.create({baseURL:M,headers:{"content-type":"application/json","X-WP-Nonce":y,"Cache-Control":"no-cache"}}),E=(t,e,i,o={})=>{const a=X(i,i=>ct(t?.[e+i])?t[e+i]:o?.[e+i]);return void 0!==a&&a},F=(t,e,i,o={})=>X(i,i=>ct(t?.[e+i])?t[e+i]:o?.[e+i],{includeSelf:!1}),q=(t,e)=>{const i={};return Object.keys(e).forEach(o=>{
6588 +c().isEqual(t[o],e[o])||(i[o]=e[o])}),i},$=(t={},e="")=>{const i=t[e];return i?.default??t},G=[{value:"M j, Y",label:(0,a.dateI18n)("M j, Y",new Date)},{value:"F j, Y",label:(0,a.dateI18n)("F j, Y",new Date)},{value:"m/d/Y",label:(0,a.dateI18n)("m/d/Y",new Date)},{value:"m-d-Y",label:(0,a.dateI18n)("m-d-Y",new Date)},{value:"m.d.Y",label:(0,a.dateI18n)("m.d.Y",new Date)},{value:"d M Y",label:(0,a.dateI18n)("d M Y",new Date)},{value:"d F Y",label:(0,a.dateI18n)("d F Y",new Date)},{value:"d-m-Y",label:(0,a.dateI18n)("d-m-Y",new Date)},{value:"d.m.Y",label:(0,a.dateI18n)("d.m.Y",new Date)},{value:"d/m/Y",label:(0,a.dateI18n)("d/m/Y",new Date)},{value:"Y-m-d",label:(0,a.dateI18n)("Y-m-d",new Date)},{value:"Y.m.d",label:(0,a.dateI18n)("Y.m.d",new Date)},{value:"Y/m/d",label:(0,a.dateI18n)("Y/m/d",new Date)},{value:"M, Y",label:(0,a.dateI18n)("M, Y",new Date)},{value:"M Y",label:(0,a.dateI18n)("M Y",new Date)},{value:"F, Y",label:(0,a.dateI18n)("F, Y",new Date)},{value:"F Y",label:(0,
6589 +a.dateI18n)("F Y",new Date)},{value:"custom",label:(0,l.__)("Normal Text","ablocks")}],Z=(t,e=null)=>{let i=document.querySelector(t);if(i)return e?i.querySelector(e):i;const o=document.querySelector('iframe[name="editor-canvas"]');return o&&o.contentDocument?(i=o.contentDocument.querySelector(t),e?i?.querySelector(e):i):null},K=(t,e="")=>E(t,"unit",e),J=t=>!!t&&!["Desktop","Tablet","Mobile"].includes(t),Q=(t,e)=>{if(!J(e))return t;const i={...t};return Object.keys(t).forEach(o=>{if(o.endsWith("Tablet")){const a=o.slice(0,-6)+e;a in i||(i[a]=t[o])}}),i},tt=(t,e,i="")=>E(t,e,i),et=()=>window.ABlocksGlobal?.ablocks_nonce??H,it=t=>{t&&(window.ABlocksGlobal=window.ABlocksGlobal||{},window.ABlocksGlobal.ablocks_nonce=t)};"undefined"==typeof window||window.__ablocksNonceHeartbeat||(window.__ablocksNonceHeartbeat=!0,(0,s.addAction)("heartbeat.tick","ablocks/refresh-nonce",t=>it(t?.ablocks_nonce)));let ot=null;const at=async(t={},e=!1)=>{const i=()=>r.A.post(d,((t,e)=>{const i=new FormData
6590 +;return i.append("security",et()),Object.entries(t).forEach(([t,o])=>{e||"object"!=typeof o||null===o?i.append(t,o):i.append(t,JSON.stringify(o))}),i})(t,e)).then(t=>t,t=>t.response),o=await i();return o&&(a=o.status,l=o.data,403===a&&"-1"===String(l).trim()||l&&!1===l.success&&(Array.isArray(l.data)?l.data:[l.data]).some(t=>"invalid_nonce"===t?.code))&&await(()=>{if(!ot){const t=new FormData;t.append("action","ablocks/refresh_nonce"),ot=fetch(d,{method:"POST",body:t}).then(t=>t.ok?t.json():null).then(t=>{const e=t?.success?t.data?.nonce:null;return it(e),!!e}).catch(()=>!1).finally(()=>{ot=null})}return ot})()?await i():o;var a,l},lt=(t,e)=>{const i=new Date(t);if(isNaN(i.getTime()))throw new Error("Invalid date string")
6577 6591 ;const o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],l=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return e.replace(/d|j|S|l|D|m|n|F|M|Y|y|a|A|g|h|G|H|i|s|T|c|r|U/g,t=>{switch(t){case"d":return String(i.getDate()).padStart(2,"0");case"j":return i.getDate();case"S":return(t=>{if(t>=11&&t<=13)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(i.getDate());case"l":return o[i.getDay()];case"D":return a[i.getDay()];case"m":return String(i.getMonth()+1).padStart(2,"0");case"n":return i.getMonth()+1;case"F":return l[i.getMonth()];case"M":return n[i.getMonth()];case"Y":return i.getFullYear();case"y":return String(i.getFullYear()).slice(-2);case"a":return i.getHours()<12?"am":"pm";case"A":return i.getHours()<12?"AM":"PM";case"g":
6578 -return i.getHours()%12||12;case"h":return String(i.getHours()%12||12).padStart(2,"0");case"G":return i.getHours();case"H":return String(i.getHours()).padStart(2,"0");case"i":return String(i.getMinutes()).padStart(2,"0");case"s":return String(i.getSeconds()).padStart(2,"0");case"T":return Intl.DateTimeFormat().resolvedOptions().timeZone;case"c":return i.toISOString();case"r":return i.toUTCString();case"U":return Math.floor(i.getTime()/1e3);default:return t}})},it=({dynamicAttributeValue:t,post:e,isTime:i=!1})=>{const{dateTimeType:o,dateTimeFormat:a,customDateTimeFormat:l,source:n,DateFormatOfCurrentDateTime:s,customFormatOfCurrentDateTime:r,TimeFormatOfCurrentDateTime:b}=t||{};let c="",d=Date.now();if("current-date-time"===n){const t="F j, Y",e="g:i a";c=s||r||b?"custom"===s?r||`${t} ${e}`:`${s||t} ${b||e}`:`${t} ${e}`}else{c=a;const t=i?"g:i a":"j M, Y";if(a?"custom"===a&&(c=l||t):c=t,d=e.date,"post_published"===o?d=e.date:"post_modified"===o&&(d=e.modified),!d)return}return et(d,c)
6579 -},ot=t=>null!==t&&"object"==typeof t,at=({type:t="error",message:e='Error! cannot access copied data in "http" protocol. Please use "https"',config:i={}})=>{window.wp.data.dispatch("core/notices").createNotice(t,e,{isDismissible:!0,...i})},lt=()=>new Promise(t=>{const e=document.createElement("input");e.type="file",e.accept="application/json",e.onchange=e=>{const i=e.target.files[0];if(i){const e=new FileReader;e.onload=e=>{t(e.target.result)},e.readAsText(i)}},e.click()}),nt=function(t){return null!=t&&("string"==typeof t?""!==t.trim():Array.isArray(t)||"object"==typeof t?Object.keys(t).length>0:"number"==typeof t||""!==t)},st=(t,e={})=>(b().isString(t)&&(t=b().fromPairs(t.split("&").map(t=>t.split("=").map(decodeURIComponent)))),b().defaults(b().isObject(t)?t:{},e)),rt=(t,e)=>{if(t===e)return!0;if("object"!=typeof t||"object"!=typeof e||null===t||null===e)return!1;const i=Object.keys(t),o=Object.keys(e);return i.length===o.length&&i.every(i=>rt(t[i],e[i]))},bt=(t="")=>{
6592 +return i.getHours()%12||12;case"h":return String(i.getHours()%12||12).padStart(2,"0");case"G":return i.getHours();case"H":return String(i.getHours()).padStart(2,"0");case"i":return String(i.getMinutes()).padStart(2,"0");case"s":return String(i.getSeconds()).padStart(2,"0");case"T":return Intl.DateTimeFormat().resolvedOptions().timeZone;case"c":return i.toISOString();case"r":return i.toUTCString();case"U":return Math.floor(i.getTime()/1e3);default:return t}})},nt=({dynamicAttributeValue:t,post:e,isTime:i=!1})=>{const{dateTimeType:o,dateTimeFormat:a,customDateTimeFormat:l,source:n,DateFormatOfCurrentDateTime:s,customFormatOfCurrentDateTime:r,TimeFormatOfCurrentDateTime:b}=t||{};let c="",d=Date.now();if("current-date-time"===n){const t="F j, Y",e="g:i a";c=s||r||b?"custom"===s?r||`${t} ${e}`:`${s||t} ${b||e}`:`${t} ${e}`}else{c=a;const t=i?"g:i a":"j M, Y";if(a?"custom"===a&&(c=l||t):c=t,d=e.date,"post_published"===o?d=e.date:"post_modified"===o&&(d=e.modified),!d)return}return lt(d,c)
6593 +},st=t=>null!==t&&"object"==typeof t,rt=({type:t="error",message:e='Error! cannot access copied data in "http" protocol. Please use "https"',config:i={}})=>{window.wp.data.dispatch("core/notices").createNotice(t,e,{isDismissible:!0,...i})},bt=()=>new Promise(t=>{const e=document.createElement("input");e.type="file",e.accept="application/json",e.onchange=e=>{const i=e.target.files[0];if(i){const e=new FileReader;e.onload=e=>{t(e.target.result)},e.readAsText(i)}},e.click()}),ct=function(t){return null!=t&&("string"==typeof t?""!==t.trim():Array.isArray(t)||"object"==typeof t?Object.keys(t).length>0:"number"==typeof t||""!==t)},dt=(t,e={})=>(c().isString(t)&&(t=c().fromPairs(t.split("&").map(t=>t.split("=").map(decodeURIComponent)))),c().defaults(c().isObject(t)?t:{},e)),ut=(t,e)=>{if(t===e)return!0;if("object"!=typeof t||"object"!=typeof e||null===t||null===e)return!1;const i=Object.keys(t),o=Object.keys(e);return i.length===o.length&&i.every(i=>ut(t[i],e[i]))},pt=(t="")=>{
6580 6594 if("string"!=typeof t)return{};const e=t.match(/ablocks_dc:(.*?):ablocks_dc/);if(!e)return{isDynamicByNewSolution:!1};let i=[];i=e[1].split("|");const o=i[0]||"current";let a="",l="",n="",s="",r="",b="",c="",d="",u="",p="",m="",h="",g="",f="",y="",T="",H="",M="",x="",k="",v="",_="",R="",S="",W="",P="",U="",j="",w="";if(s=i[4]||"",r=i[5]||"",b=i[6]||"",["current","post-type"].includes(o))switch(a=i[1]||"",l=i[2]||"",n=i[3]||"",n){case"post-custom-field":c=i[7]||"";break;case"post-date":case"post-time":d=i[7]||"",u=i[8]||"","custom"===u&&(p=i[9]||"");break;case"post-excerpt":m=i[7]||"";break;case"post-terms":h=i[7]||"",g=i[8]||"";break;case"author-meta":f=i[7]||"";break;case"numberOfTopics":y=i[7]||0;break;case"numberOfReviews":T=i[7]||0;break;case"numberOfEnrolled":H=i[7]||0;break;case"totalDuration":M=i[7]||0}else if("link"===o)switch(n=i[1]||"",n){case"internal-url-content":l=i[2],a=i[3];break;case"internal-url-taxonomy":x=i[2];break;case"internal-url-media":k=i[2];break
6581 -;case"internal-url-author":v=i[2]}else"image"===o?n=i[1]||"":"current-date-time"===o?(_=i[1],R=i[2],S=i[3]):"request-parameter"===o?(W=i[1],P=i[2]):"user-info"===o?(U=i[1],j=i[2]):"shortcode"===o&&(w=i[1]);return{isDynamicByNewSolution:!0,source:o,source_type:a,source_id:l,group_item:n,before:s,after:r,fallback:b,metaKey:c,dateTimeType:d,dateTimeFormat:u,customDateTimeFormat:p,excerptWords:m,taxonomy:h,termsSeparator:g,authorMetaKey:f,numberOfTopics:y,numberOfReviews:T,numberOfEnrolled:H,taxonomyTermsUrlId:x,mediaId:k,authorId:v,TimeFormatOfCurrentDateTime:_,DateFormatOfCurrentDateTime:R,customFormatOfCurrentDateTime:S,requestParamType:W,requestParamName:P,userFieldName:U,userFieldMetaKey:j,shortcode:w}},ct=(t,e="",i="")=>{if(i)return x[i]??!1;const o=(e||t).replace(/^ablocks\//,"");return!!_[o]&&_[o]},dt=t=>{let e=o.A.sanitize(t,{ALLOWED_TAGS:["a","p","br","em","strong","ul","ol","li","blockquote","code","pre","img","b","i","u","h1","h2","h3","h4","h5","h6"],
6582 -ALLOWED_ATTR:["href","src","alt","title","target","rel","class"],ALLOW_DATA_ATTR:!1});return"string"==typeof e&&/^-?\d+(\.\d+)?$/.test(e.trim())&&(e=e.includes(".")?parseFloat(e):parseInt(e,10)),String(e)},ut=(t="")=>t?k.global_typography_list[t]:{}},31050(t,e,i){"use strict";i.d(e,{KU:()=>b,Rz:()=>s,to:()=>r,wA:()=>n});var o=i(36168);const a=Array.isArray(o.P)?o.P:[],l=t=>!(!o.ZK&&a.length)||a.includes(t),n=()=>l("ablocks_edit_style"),s=()=>l("ablocks_edit_advanced"),r=()=>l("ablocks_edit_custom_css"),b=()=>l("ablocks_copy_paste_style")},30228(t){"use strict";var e=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function l(t,e,o,l,n){if("function"!=typeof o)throw new TypeError("The listener must be a function");var s=new a(o,l||t,n),r=i?i+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],s]:t._events[r].push(s):(t._events[r]=s,t._eventsCount++),t}function n(t,e){
6595 +;case"internal-url-author":v=i[2]}else"image"===o?n=i[1]||"":"current-date-time"===o?(_=i[1],R=i[2],S=i[3]):"request-parameter"===o?(W=i[1],P=i[2]):"user-info"===o?(U=i[1],j=i[2]):"shortcode"===o&&(w=i[1]);return{isDynamicByNewSolution:!0,source:o,source_type:a,source_id:l,group_item:n,before:s,after:r,fallback:b,metaKey:c,dateTimeType:d,dateTimeFormat:u,customDateTimeFormat:p,excerptWords:m,taxonomy:h,termsSeparator:g,authorMetaKey:f,numberOfTopics:y,numberOfReviews:T,numberOfEnrolled:H,taxonomyTermsUrlId:x,mediaId:k,authorId:v,TimeFormatOfCurrentDateTime:_,DateFormatOfCurrentDateTime:R,customFormatOfCurrentDateTime:S,requestParamType:W,requestParamName:P,userFieldName:U,userFieldMetaKey:j,shortcode:w}},mt=(t,e="",i="")=>{if(i&&!k[i])return!1;const o=(e||t).replace(/^ablocks\//,"");return!!R[o]&&R[o]},ht=t=>{let e=o.A.sanitize(t,{ALLOWED_TAGS:["a","p","br","em","strong","ul","ol","li","blockquote","code","pre","img","b","i","u","h1","h2","h3","h4","h5","h6"],
6596 +ALLOWED_ATTR:["href","src","alt","title","target","rel","class"],ALLOW_DATA_ATTR:!1});return"string"==typeof e&&/^-?\d+(\.\d+)?$/.test(e.trim())&&(e=e.includes(".")?parseFloat(e):parseInt(e,10)),String(e)},gt=(t="")=>t?v.global_typography_list[t]:{}},31050(t,e,i){"use strict";i.d(e,{KU:()=>b,Rz:()=>s,to:()=>r,wA:()=>n});var o=i(36168);const a=Array.isArray(o.P)?o.P:[],l=t=>!(!o.ZK&&a.length)||a.includes(t),n=()=>l("ablocks_edit_style"),s=()=>l("ablocks_edit_advanced"),r=()=>l("ablocks_edit_custom_css"),b=()=>l("ablocks_copy_paste_style")},30228(t){"use strict";var e=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function l(t,e,o,l,n){if("function"!=typeof o)throw new TypeError("The listener must be a function");var s=new a(o,l||t,n),r=i?i+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],s]:t._events[r].push(s):(t._events[r]=s,t._eventsCount++),t}function n(t,e){
6583 6597 0===--t._eventsCount?t._events=new o:delete t._events[e]}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),s.prototype.eventNames=function(){var t,o,a=[];if(0===this._eventsCount)return a;for(o in t=this._events)e.call(t,o)&&a.push(i?o.slice(1):o);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(t)):a},s.prototype.listeners=function(t){var e=i?i+t:t,o=this._events[e];if(!o)return[];if(o.fn)return[o.fn];for(var a=0,l=o.length,n=new Array(l);a<l;a++)n[a]=o[a].fn;return n},s.prototype.listenerCount=function(t){var e=i?i+t:t,o=this._events[e];return o?o.fn?1:o.length:0},s.prototype.emit=function(t,e,o,a,l,n){var s=i?i+t:t;if(!this._events[s])return!1;var r,b,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,o),!0;case 4:
6584 6598 return c.fn.call(c.context,e,o,a),!0;case 5:return c.fn.call(c.context,e,o,a,l),!0;case 6:return c.fn.call(c.context,e,o,a,l,n),!0}for(b=1,r=new Array(d-1);b<d;b++)r[b-1]=arguments[b];c.fn.apply(c.context,r)}else{var u,p=c.length;for(b=0;b<p;b++)switch(c[b].once&&this.removeListener(t,c[b].fn,void 0,!0),d){case 1:c[b].fn.call(c[b].context);break;case 2:c[b].fn.call(c[b].context,e);break;case 3:c[b].fn.call(c[b].context,e,o);break;case 4:c[b].fn.call(c[b].context,e,o,a);break;default:if(!r)for(u=1,r=new Array(d-1);u<d;u++)r[u-1]=arguments[u];c[b].fn.apply(c[b].context,r)}}return!0},s.prototype.on=function(t,e,i){return l(this,t,e,i,!1)},s.prototype.once=function(t,e,i){return l(this,t,e,i,!0)},s.prototype.removeListener=function(t,e,o,a){var l=i?i+t:t;if(!this._events[l])return this;if(!e)return n(this,l),this;var s=this._events[l];if(s.fn)s.fn!==e||a&&!s.once||o&&s.context!==o||n(this,l);else{
6585 6599 for(var r=0,b=[],c=s.length;r<c;r++)(s[r].fn!==e||a&&!s[r].once||o&&s[r].context!==o)&&b.push(s[r]);b.length?this._events[l]=1===b.length?b[0]:b:n(this,l)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&n(this,e)):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=i,s.EventEmitter=s,t.exports=s},50411(t,e,i){var o;!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),l={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};void 0===(o=function(){return l}.call(e,i,e,t))||(t.exports=o)}()},85606(t){var e=-1;function i(t,p,m,h,g){if(t===p)return t?[[0,t]]:[];if(null!=m){var y=function(t,e,i){var o="number"==typeof i?{index:i,length:0
6586 6600 }:i.oldRange,a="number"==typeof i?null:i.newRange,l=t.length,n=e.length;if(0===o.length&&(null===a||0===a.length)){var s=o.index,r=t.slice(0,s),b=t.slice(s),c=a?a.index:null,d=s+n-l;if((null===c||c===d)&&!(d<0||d>n)){var u=e.slice(0,d);if((h=e.slice(d))===b){var p=Math.min(s,d);if((y=r.slice(0,p))===(H=u.slice(0,p)))return f(y,r.slice(p),u.slice(p),b)}}if(null===c||c===s){var m=s,h=(u=e.slice(0,m),e.slice(m));if(u===r){var g=Math.min(l-m,n-m);if((T=b.slice(b.length-g))===(M=h.slice(h.length-g)))return f(r,b.slice(0,b.length-g),h.slice(0,h.length-g),T)}}}if(o.length>0&&a&&0===a.length){var y=t.slice(0,o.index),T=t.slice(o.index+o.length);if(!(n<(p=y.length)+(g=T.length))){var H=e.slice(0,p),M=e.slice(n-g);if(y===H&&T===M)return f(y,t.slice(p,l-g),e.slice(p,n-g),T)}}return null}(t,p,m);if(y)return y}var T=a(t,p),H=t.substring(0,T);T=n(t=t.substring(T),p=p.substring(T));var M=t.substring(t.length-T),x=function(t,l){var s;if(!t)return[[1,l]];if(!l)return[[e,t]]
@@ -7423,8 +7437,8 @@
7423 7437 offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",
7424 7438 offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",
7425 7439 yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{
7426 7440 type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}}}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return l[t].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=l,s.amdO={},t=[],s.O=(e,i,o,a)=>{if(!i){var l=1/0;for(c=0;c<t.length;c++){for(var[i,o,a]=t[c],n=!0,r=0;r<i.length;r++)(!1&a||l>=a)&&Object.keys(s.O).every(t=>s.O[t](i[r]))?i.splice(r--,1):(n=!1,a<l&&(l=a));if(n){t.splice(c--,1);var b=o();void 0!==b&&(e=b)}}return e}a=a||0;for(var c=t.length;c>0&&t[c-1][2]>a;c--)t[c]=t[c-1];t[c]=[i,o,a]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},i=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var a=Object.create(null);s.r(a);var l={};e=e||[null,i({}),i([]),i(i)]
7427 -;for(var n=2&o&&t;("object"==typeof n||"function"==typeof n)&&!~e.indexOf(n);n=i(n))Object.getOwnPropertyNames(n).forEach(e=>l[e]=()=>t[e]);return l.default=()=>t,s.d(a,l),a},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce((e,i)=>(s.f[i](t,e),e),[])),s.u=t=>(({82:"ablocks-code-editor",5961:"ablocks-chart",6758:"ablocks-leaflet",7530:"ablocks-lottie",8399:"ablocks-google-fonts"}[t]||t)+".js?ver="+{82:"b81137796961db4af734",106:"d0eaad53c5153e09eabf",5961:"006387df67e9cde43451",6758:"3a0790e25849b42f47d7",7530:"aeb5c601eb9a350eb624",8399:"21cea396e60f154f6c75"}[t]),s.miniCssF=t=>{},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o={},a="academy-blocks:",s.l=(t,e,i,l)=>{if(o[t])o[t].push(e);else{var n,r;if(void 0!==i)for(var b=document.getElementsByTagName("script"),c=0;c<b.length;c++){var d=b[c];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==a+i){n=d;break}}n||(r=!0,
7441 +;for(var n=2&o&&t;("object"==typeof n||"function"==typeof n)&&!~e.indexOf(n);n=i(n))Object.getOwnPropertyNames(n).forEach(e=>l[e]=()=>t[e]);return l.default=()=>t,s.d(a,l),a},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce((e,i)=>(s.f[i](t,e),e),[])),s.u=t=>(({82:"ablocks-code-editor",5961:"ablocks-chart",6758:"ablocks-leaflet",7530:"ablocks-lottie",8399:"ablocks-google-fonts"}[t]||t)+".js?ver="+{82:"b81137796961db4af734",106:"d0eaad53c5153e09eabf",5961:"006387df67e9cde43451",6758:"dee90de9780e3149d522",7530:"aeb5c601eb9a350eb624",8399:"92ba32a7c36a4616fea2"}[t]),s.miniCssF=t=>{},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o={},a="academy-blocks:",s.l=(t,e,i,l)=>{if(o[t])o[t].push(e);else{var n,r;if(void 0!==i)for(var b=document.getElementsByTagName("script"),c=0;c<b.length;c++){var d=b[c];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==a+i){n=d;break}}n||(r=!0,
7428 7442 (n=document.createElement("script")).charset="utf-8",s.nc&&n.setAttribute("nonce",s.nc),n.setAttribute("data-webpack",a+i),n.src=t),o[t]=[e];var u=(e,i)=>{n.onerror=n.onload=null,clearTimeout(p);var a=o[t];if(delete o[t],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(t=>t(i)),e)return e(i)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),r&&document.head.appendChild(n)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var e=globalThis.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var o=i.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=i[o--].src}
7429 7443 if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={2617:0,7232:0};s.f.j=(e,i)=>{var o=s.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else if(7232!=e){var a=new Promise((i,a)=>o=t[e]=[i,a]);i.push(o[2]=a);var l=s.p+s.u(e),n=new Error;s.l(l,i=>{if(s.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var a=i&&("load"===i.type?"missing":i.type),l=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+a+": "+l+")",n.name="ChunkLoadError",n.type=a,n.request=l,o[1](n)}},"chunk-"+e,e)}else t[e]=0},s.O.j=e=>0===t[e];var e=(e,i)=>{var o,a,[l,n,r]=i,b=0;if(l.some(e=>0!==t[e])){for(o in n)s.o(n,o)&&(s.m[o]=n[o]);if(r)var c=r(s)}for(e&&e(i);b<l.length;b++)a=l[b],s.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return s.O(c)},i=globalThis.webpackChunkacademy_blocks=globalThis.webpackChunkacademy_blocks||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})()
7430 -;var r=s.O(void 0,[7232],()=>s(67083));r=s.O(r)})();
7444 +;var r=s.O(void 0,[7232],()=>s(85414));r=s.O(r)})();